@squonk/data-manager-client 3.1.0-beta.2 → 3.1.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/accounting/accounting.cjs +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
package/user/user.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
1
|
+
import { UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
2
|
import { customInstance, UsersGetResponse, ErrorType, DmError, GetUserAccountParams, UserAccountDetail, UserAccountPatchBodyBody, GetUserApiLogParams, UserApiLogGetResponse } from '../index.js';
|
|
4
3
|
import 'axios';
|
|
5
4
|
|
|
@@ -12,37 +11,55 @@ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
|
|
|
12
11
|
declare const getUsers: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<UsersGetResponse>;
|
|
13
12
|
declare const getGetUsersQueryKey: () => readonly ["data-manager-api", "/user"];
|
|
14
13
|
declare const getGetUsersQueryOptions: <TData = UsersGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
15
|
-
query?: Partial<UseQueryOptions<
|
|
14
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
16
15
|
request?: SecondParameter<typeof customInstance>;
|
|
17
|
-
}
|
|
16
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & {
|
|
18
17
|
queryKey: QueryKey;
|
|
19
18
|
};
|
|
20
19
|
type GetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>;
|
|
21
20
|
type GetUsersQueryError = ErrorType<void | DmError>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
declare const useGetUsers: <TData = UsersGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
26
|
-
query?: Partial<UseQueryOptions<UsersGetResponse, TError, TData, QueryKey>> | undefined;
|
|
21
|
+
declare function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options: {
|
|
22
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>, 'initialData'>;
|
|
27
23
|
request?: SecondParameter<typeof customInstance>;
|
|
28
|
-
}
|
|
24
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
25
|
+
queryKey: QueryKey;
|
|
26
|
+
};
|
|
27
|
+
declare function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options?: {
|
|
28
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>, 'initialData'>;
|
|
29
|
+
request?: SecondParameter<typeof customInstance>;
|
|
30
|
+
}): UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
declare function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options?: {
|
|
34
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
35
|
+
request?: SecondParameter<typeof customInstance>;
|
|
36
|
+
}): UseQueryResult<TData, TError> & {
|
|
29
37
|
queryKey: QueryKey;
|
|
30
38
|
};
|
|
31
39
|
declare const getGetUsersSuspenseQueryOptions: <TData = UsersGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
32
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
40
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
33
41
|
request?: SecondParameter<typeof customInstance>;
|
|
34
|
-
}
|
|
42
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & {
|
|
35
43
|
queryKey: QueryKey;
|
|
36
44
|
};
|
|
37
45
|
type GetUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>;
|
|
38
46
|
type GetUsersSuspenseQueryError = ErrorType<void | DmError>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
declare function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options: {
|
|
48
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
49
|
+
request?: SecondParameter<typeof customInstance>;
|
|
50
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
51
|
+
queryKey: QueryKey;
|
|
52
|
+
};
|
|
53
|
+
declare function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options?: {
|
|
54
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
44
55
|
request?: SecondParameter<typeof customInstance>;
|
|
45
|
-
}
|
|
56
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
57
|
+
queryKey: QueryKey;
|
|
58
|
+
};
|
|
59
|
+
declare function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(options?: {
|
|
60
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>;
|
|
61
|
+
request?: SecondParameter<typeof customInstance>;
|
|
62
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
46
63
|
queryKey: QueryKey;
|
|
47
64
|
};
|
|
48
65
|
/**
|
|
@@ -51,63 +68,81 @@ declare const useGetUsersSuspense: <TData = UsersGetResponse, TError = ErrorType
|
|
|
51
68
|
declare const getUserAccount: (params?: GetUserAccountParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<UserAccountDetail>;
|
|
52
69
|
declare const getGetUserAccountQueryKey: (params?: GetUserAccountParams) => readonly ["data-manager-api", "/user/account", ...GetUserAccountParams[]];
|
|
53
70
|
declare const getGetUserAccountQueryOptions: <TData = UserAccountDetail, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
54
|
-
query?: Partial<UseQueryOptions<
|
|
71
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
55
72
|
request?: SecondParameter<typeof customInstance>;
|
|
56
|
-
}
|
|
73
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & {
|
|
57
74
|
queryKey: QueryKey;
|
|
58
75
|
};
|
|
59
76
|
type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
60
77
|
type GetUserAccountQueryError = ErrorType<void | DmError>;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
78
|
+
declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params: undefined | GetUserAccountParams, options: {
|
|
79
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>, 'initialData'>;
|
|
80
|
+
request?: SecondParameter<typeof customInstance>;
|
|
81
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
82
|
+
queryKey: QueryKey;
|
|
83
|
+
};
|
|
84
|
+
declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
85
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>, 'initialData'>;
|
|
86
|
+
request?: SecondParameter<typeof customInstance>;
|
|
87
|
+
}): UseQueryResult<TData, TError> & {
|
|
88
|
+
queryKey: QueryKey;
|
|
89
|
+
};
|
|
90
|
+
declare function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
91
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
66
92
|
request?: SecondParameter<typeof customInstance>;
|
|
67
|
-
}
|
|
93
|
+
}): UseQueryResult<TData, TError> & {
|
|
68
94
|
queryKey: QueryKey;
|
|
69
95
|
};
|
|
70
96
|
declare const getGetUserAccountSuspenseQueryOptions: <TData = UserAccountDetail, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
71
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
97
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
72
98
|
request?: SecondParameter<typeof customInstance>;
|
|
73
|
-
}
|
|
99
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & {
|
|
74
100
|
queryKey: QueryKey;
|
|
75
101
|
};
|
|
76
102
|
type GetUserAccountSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
77
103
|
type GetUserAccountSuspenseQueryError = ErrorType<void | DmError>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
104
|
+
declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params: undefined | GetUserAccountParams, options: {
|
|
105
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
106
|
+
request?: SecondParameter<typeof customInstance>;
|
|
107
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
108
|
+
queryKey: QueryKey;
|
|
109
|
+
};
|
|
110
|
+
declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
111
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
83
112
|
request?: SecondParameter<typeof customInstance>;
|
|
84
|
-
}
|
|
113
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
114
|
+
queryKey: QueryKey;
|
|
115
|
+
};
|
|
116
|
+
declare function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: {
|
|
117
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
118
|
+
request?: SecondParameter<typeof customInstance>;
|
|
119
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
85
120
|
queryKey: QueryKey;
|
|
86
121
|
};
|
|
87
122
|
/**
|
|
88
123
|
* @summary Patch your account
|
|
89
124
|
*/
|
|
90
125
|
declare const patchUserAccount: (userAccountPatchBodyBody: UserAccountPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
91
|
-
declare const getPatchUserAccountMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
92
|
-
mutation?: UseMutationOptions<
|
|
126
|
+
declare const getPatchUserAccountMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
127
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError, {
|
|
93
128
|
data: UserAccountPatchBodyBody;
|
|
94
|
-
}, TContext
|
|
129
|
+
}, TContext>;
|
|
95
130
|
request?: SecondParameter<typeof customInstance>;
|
|
96
|
-
}
|
|
131
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError, {
|
|
97
132
|
data: UserAccountPatchBodyBody;
|
|
98
133
|
}, TContext>;
|
|
99
134
|
type PatchUserAccountMutationResult = NonNullable<Awaited<ReturnType<typeof patchUserAccount>>>;
|
|
100
135
|
type PatchUserAccountMutationBody = UserAccountPatchBodyBody;
|
|
101
|
-
type PatchUserAccountMutationError = ErrorType<DmError>;
|
|
136
|
+
type PatchUserAccountMutationError = ErrorType<void | DmError>;
|
|
102
137
|
/**
|
|
103
138
|
* @summary Patch your account
|
|
104
139
|
*/
|
|
105
|
-
declare const usePatchUserAccount: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
106
|
-
mutation?: UseMutationOptions<
|
|
140
|
+
declare const usePatchUserAccount: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
141
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError, {
|
|
107
142
|
data: UserAccountPatchBodyBody;
|
|
108
|
-
}, TContext
|
|
143
|
+
}, TContext>;
|
|
109
144
|
request?: SecondParameter<typeof customInstance>;
|
|
110
|
-
}
|
|
145
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof patchUserAccount>>, TError, {
|
|
111
146
|
data: UserAccountPatchBodyBody;
|
|
112
147
|
}, TContext>;
|
|
113
148
|
/**
|
|
@@ -118,37 +153,55 @@ declare const usePatchUserAccount: <TError = ErrorType<DmError>, TContext = unkn
|
|
|
118
153
|
declare const getUserApiLog: (params?: GetUserApiLogParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<UserApiLogGetResponse>;
|
|
119
154
|
declare const getGetUserApiLogQueryKey: (params?: GetUserApiLogParams) => readonly ["data-manager-api", "/user/api-log", ...GetUserApiLogParams[]];
|
|
120
155
|
declare const getGetUserApiLogQueryOptions: <TData = UserApiLogGetResponse, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
121
|
-
query?: Partial<UseQueryOptions<
|
|
156
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
122
157
|
request?: SecondParameter<typeof customInstance>;
|
|
123
|
-
}
|
|
158
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & {
|
|
124
159
|
queryKey: QueryKey;
|
|
125
160
|
};
|
|
126
161
|
type GetUserApiLogQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>;
|
|
127
162
|
type GetUserApiLogQueryError = ErrorType<void>;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
163
|
+
declare function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params: undefined | GetUserApiLogParams, options: {
|
|
164
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>, 'initialData'>;
|
|
165
|
+
request?: SecondParameter<typeof customInstance>;
|
|
166
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
167
|
+
queryKey: QueryKey;
|
|
168
|
+
};
|
|
169
|
+
declare function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
170
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>, 'initialData'>;
|
|
133
171
|
request?: SecondParameter<typeof customInstance>;
|
|
134
|
-
}
|
|
172
|
+
}): UseQueryResult<TData, TError> & {
|
|
173
|
+
queryKey: QueryKey;
|
|
174
|
+
};
|
|
175
|
+
declare function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
176
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
177
|
+
request?: SecondParameter<typeof customInstance>;
|
|
178
|
+
}): UseQueryResult<TData, TError> & {
|
|
135
179
|
queryKey: QueryKey;
|
|
136
180
|
};
|
|
137
181
|
declare const getGetUserApiLogSuspenseQueryOptions: <TData = UserApiLogGetResponse, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
138
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
182
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
139
183
|
request?: SecondParameter<typeof customInstance>;
|
|
140
|
-
}
|
|
184
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & {
|
|
141
185
|
queryKey: QueryKey;
|
|
142
186
|
};
|
|
143
187
|
type GetUserApiLogSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>;
|
|
144
188
|
type GetUserApiLogSuspenseQueryError = ErrorType<void>;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
189
|
+
declare function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params: undefined | GetUserApiLogParams, options: {
|
|
190
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
191
|
+
request?: SecondParameter<typeof customInstance>;
|
|
192
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
193
|
+
queryKey: QueryKey;
|
|
194
|
+
};
|
|
195
|
+
declare function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
196
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
197
|
+
request?: SecondParameter<typeof customInstance>;
|
|
198
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
199
|
+
queryKey: QueryKey;
|
|
200
|
+
};
|
|
201
|
+
declare function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: {
|
|
202
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>;
|
|
150
203
|
request?: SecondParameter<typeof customInstance>;
|
|
151
|
-
}
|
|
204
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
152
205
|
queryKey: QueryKey;
|
|
153
206
|
};
|
|
154
207
|
|
package/user/user.js
CHANGED
|
@@ -27,24 +27,24 @@ var getGetUsersQueryOptions = (options) => {
|
|
|
27
27
|
const queryFn = ({ signal }) => getUsers(requestOptions, signal);
|
|
28
28
|
return { queryKey, queryFn, ...queryOptions };
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
function useGetUsers(options) {
|
|
31
31
|
const queryOptions = getGetUsersQueryOptions(options);
|
|
32
32
|
const query = useQuery(queryOptions);
|
|
33
33
|
query.queryKey = queryOptions.queryKey;
|
|
34
34
|
return query;
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
36
|
var getGetUsersSuspenseQueryOptions = (options) => {
|
|
37
37
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
38
38
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetUsersQueryKey();
|
|
39
39
|
const queryFn = ({ signal }) => getUsers(requestOptions, signal);
|
|
40
40
|
return { queryKey, queryFn, ...queryOptions };
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
function useGetUsersSuspense(options) {
|
|
43
43
|
const queryOptions = getGetUsersSuspenseQueryOptions(options);
|
|
44
44
|
const query = useSuspenseQuery(queryOptions);
|
|
45
45
|
query.queryKey = queryOptions.queryKey;
|
|
46
46
|
return query;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
var getUserAccount = (params, options, signal) => {
|
|
49
49
|
return customInstance(
|
|
50
50
|
{
|
|
@@ -65,24 +65,24 @@ var getGetUserAccountQueryOptions = (params, options) => {
|
|
|
65
65
|
const queryFn = ({ signal }) => getUserAccount(params, requestOptions, signal);
|
|
66
66
|
return { queryKey, queryFn, ...queryOptions };
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
function useGetUserAccount(params, options) {
|
|
69
69
|
const queryOptions = getGetUserAccountQueryOptions(params, options);
|
|
70
70
|
const query = useQuery(queryOptions);
|
|
71
71
|
query.queryKey = queryOptions.queryKey;
|
|
72
72
|
return query;
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
var getGetUserAccountSuspenseQueryOptions = (params, options) => {
|
|
75
75
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
76
76
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetUserAccountQueryKey(params);
|
|
77
77
|
const queryFn = ({ signal }) => getUserAccount(params, requestOptions, signal);
|
|
78
78
|
return { queryKey, queryFn, ...queryOptions };
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
function useGetUserAccountSuspense(params, options) {
|
|
81
81
|
const queryOptions = getGetUserAccountSuspenseQueryOptions(params, options);
|
|
82
82
|
const query = useSuspenseQuery(queryOptions);
|
|
83
83
|
query.queryKey = queryOptions.queryKey;
|
|
84
84
|
return query;
|
|
85
|
-
}
|
|
85
|
+
}
|
|
86
86
|
var patchUserAccount = (userAccountPatchBodyBody, options) => {
|
|
87
87
|
const formData = new FormData();
|
|
88
88
|
if (userAccountPatchBodyBody.private !== void 0) {
|
|
@@ -139,24 +139,24 @@ var getGetUserApiLogQueryOptions = (params, options) => {
|
|
|
139
139
|
const queryFn = ({ signal }) => getUserApiLog(params, requestOptions, signal);
|
|
140
140
|
return { queryKey, queryFn, ...queryOptions };
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
function useGetUserApiLog(params, options) {
|
|
143
143
|
const queryOptions = getGetUserApiLogQueryOptions(params, options);
|
|
144
144
|
const query = useQuery(queryOptions);
|
|
145
145
|
query.queryKey = queryOptions.queryKey;
|
|
146
146
|
return query;
|
|
147
|
-
}
|
|
147
|
+
}
|
|
148
148
|
var getGetUserApiLogSuspenseQueryOptions = (params, options) => {
|
|
149
149
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
150
150
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetUserApiLogQueryKey(params);
|
|
151
151
|
const queryFn = ({ signal }) => getUserApiLog(params, requestOptions, signal);
|
|
152
152
|
return { queryKey, queryFn, ...queryOptions };
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
function useGetUserApiLogSuspense(params, options) {
|
|
155
155
|
const queryOptions = getGetUserApiLogSuspenseQueryOptions(params, options);
|
|
156
156
|
const query = useSuspenseQuery(queryOptions);
|
|
157
157
|
query.queryKey = queryOptions.queryKey;
|
|
158
158
|
return query;
|
|
159
|
-
}
|
|
159
|
+
}
|
|
160
160
|
export {
|
|
161
161
|
getGetUserAccountQueryKey,
|
|
162
162
|
getGetUserAccountQueryOptions,
|
package/user/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/user/user.ts"],"sourcesContent":["/**\n * Generated by orval v6.25.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 3.1\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DmError,\n GetUserAccountParams,\n GetUserApiLogParams,\n UserAccountDetail,\n UserAccountPatchBodyBody,\n UserApiLogGetResponse,\n UsersGetResponse\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * Returns a summary of all users that have accessed the Data Manager API and where the account is not `private`. Users can set their accounts to be private and therefore will not show up in methods like this\n\n * @summary Get information about all known Users\n */\nexport const getUsers = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UsersGetResponse>(\n {url: `/user`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetUsersQueryKey = () => {\n return [\"data-manager-api\", `/user`] as const;\n }\n\n \nexport const getGetUsersQueryOptions = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUsersQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUsers>>> = ({ signal }) => getUsers(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>\nexport type GetUsersQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get information about all known Users\n */\nexport const useGetUsers = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUsersQueryOptions(options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUsersSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>( options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUsersQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUsers>>> = ({ signal }) => getUsers(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>\nexport type GetUsersSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get information about all known Users\n */\nexport const useGetUsersSuspense = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUsersSuspenseQueryOptions(options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * @summary Get information about your account\n */\nexport const getUserAccount = (\n params?: GetUserAccountParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UserAccountDetail>(\n {url: `/user/account`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetUserAccountQueryKey = (params?: GetUserAccountParams,) => {\n return [\"data-manager-api\", `/user/account`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetUserAccountQueryOptions = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) => getUserAccount(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>\nexport type GetUserAccountQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get information about your account\n */\nexport const useGetUserAccount = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUserAccountQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUserAccountSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) => getUserAccount(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserAccountSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>\nexport type GetUserAccountSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get information about your account\n */\nexport const useGetUserAccountSuspense = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUserAccountSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * @summary Patch your account\n */\nexport const patchUserAccount = (\n userAccountPatchBodyBody: UserAccountPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(userAccountPatchBodyBody.private !== undefined) {\n formData.append('private', userAccountPatchBodyBody.private.toString())\n }\nif(userAccountPatchBodyBody.become_admin !== undefined) {\n formData.append('become_admin', userAccountPatchBodyBody.become_admin.toString())\n }\nif(userAccountPatchBodyBody.impersonate !== undefined) {\n formData.append('impersonate', userAccountPatchBodyBody.impersonate)\n }\nif(userAccountPatchBodyBody.use_impersonation !== undefined) {\n formData.append('use_impersonation', userAccountPatchBodyBody.use_impersonation.toString())\n }\n\n return customInstance<void>(\n {url: `/user/account`, method: 'PATCH',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getPatchUserAccountMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof patchUserAccount>>, {data: UserAccountPatchBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return patchUserAccount(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type PatchUserAccountMutationResult = NonNullable<Awaited<ReturnType<typeof patchUserAccount>>>\n export type PatchUserAccountMutationBody = UserAccountPatchBodyBody\n export type PatchUserAccountMutationError = ErrorType<DmError>\n\n /**\n * @summary Patch your account\n */\nexport const usePatchUserAccount = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getPatchUserAccountMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns a summary of your API activity optionally filtered by date. The API log does not include the use of GET methods, and only contains records of potential state-changing calls made against the Data Manager using your account\n\n * @summary Get the API call log recorded against your account\n */\nexport const getUserApiLog = (\n params?: GetUserApiLogParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UserApiLogGetResponse>(\n {url: `/user/api-log`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetUserApiLogQueryKey = (params?: GetUserApiLogParams,) => {\n return [\"data-manager-api\", `/user/api-log`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetUserApiLogQueryOptions = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserApiLogQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserApiLog>>> = ({ signal }) => getUserApiLog(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserApiLogQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>\nexport type GetUserApiLogQueryError = ErrorType<void>\n\n/**\n * @summary Get the API call log recorded against your account\n */\nexport const useGetUserApiLog = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUserApiLogQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUserApiLogSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserApiLogQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserApiLog>>> = ({ signal }) => getUserApiLog(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserApiLogSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>\nexport type GetUserApiLogSuspenseQueryError = ErrorType<void>\n\n/**\n * @summary Get the API call log recorded against your account\n */\nexport const useGetUserApiLogSuspense = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetUserApiLogSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgCA,IAAM,WAAW,CAEvB,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAS,QAAQ;AAAA,MAAO;AAAA,IAChC;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,sBAAsB,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CAAuC,CAA8E,QAA8B,YAC3J;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,yBAAyB,MAAM;AAIzE,QAAM,UAAoE,CAAC,EAAE,OAAO,MAAM,cAAc,QAAQ,gBAAgB,MAAM;AAMvI,SAAQ,EAAE,UAAU,SAAS,GAAG,aAAY;AAC/C;AAQO,IAAM,2BAA2B,CACvC,QAA8B,YAEyC;AAEtE,QAAM,eAAe,qCAAqC,QAAO,OAAO;AAExE,QAAM,QAAQ,iBAAiB,YAAY;AAE3C,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/user/user.ts"],"sourcesContent":["// @ts-nocheck\n/**\n * Generated by orval v7.2.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 3.1\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DmError,\n GetUserAccountParams,\n GetUserApiLogParams,\n UserAccountDetail,\n UserAccountPatchBodyBody,\n UserApiLogGetResponse,\n UsersGetResponse\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * Returns a summary of all users that have accessed the Data Manager API and where the account is not `private`. Users can set their accounts to be private and therefore will not show up in methods like this\n\n * @summary Get information about all known Users\n */\nexport const getUsers = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UsersGetResponse>(\n {url: `/user`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetUsersQueryKey = () => {\n return [\"data-manager-api\", `/user`] as const;\n }\n\n \nexport const getGetUsersQueryOptions = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUsersQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUsers>>> = ({ signal }) => getUsers(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>\nexport type GetUsersQueryError = ErrorType<void | DmError>\n\n\nexport function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUsers>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUsers>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get information about all known Users\n */\n\nexport function useGetUsers<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUsersQueryOptions(options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUsersSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>( options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUsersQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUsers>>> = ({ signal }) => getUsers(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>\nexport type GetUsersSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get information about all known Users\n */\n\nexport function useGetUsersSuspense<TData = Awaited<ReturnType<typeof getUsers>>, TError = ErrorType<void | DmError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUsersSuspenseQueryOptions(options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * @summary Get information about your account\n */\nexport const getUserAccount = (\n params?: GetUserAccountParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UserAccountDetail>(\n {url: `/user/account`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetUserAccountQueryKey = (params?: GetUserAccountParams,) => {\n return [\"data-manager-api\", `/user/account`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetUserAccountQueryOptions = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) => getUserAccount(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>\nexport type GetUserAccountQueryError = ErrorType<void | DmError>\n\n\nexport function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetUserAccountParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserAccount>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccount<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUserAccountQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUserAccountSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserAccount>>> = ({ signal }) => getUserAccount(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserAccountSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>\nexport type GetUserAccountSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetUserAccountParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get information about your account\n */\n\nexport function useGetUserAccountSuspense<TData = Awaited<ReturnType<typeof getUserAccount>>, TError = ErrorType<void | DmError>>(\n params?: GetUserAccountParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUserAccountSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * @summary Patch your account\n */\nexport const patchUserAccount = (\n userAccountPatchBodyBody: UserAccountPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(userAccountPatchBodyBody.private !== undefined) {\n formData.append('private', userAccountPatchBodyBody.private.toString())\n }\nif(userAccountPatchBodyBody.become_admin !== undefined) {\n formData.append('become_admin', userAccountPatchBodyBody.become_admin.toString())\n }\nif(userAccountPatchBodyBody.impersonate !== undefined) {\n formData.append('impersonate', userAccountPatchBodyBody.impersonate)\n }\nif(userAccountPatchBodyBody.use_impersonation !== undefined) {\n formData.append('use_impersonation', userAccountPatchBodyBody.use_impersonation.toString())\n }\n\n return customInstance<void>(\n {url: `/user/account`, method: 'PATCH',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getPatchUserAccountMutationOptions = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext> => {\nconst {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof patchUserAccount>>, {data: UserAccountPatchBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return patchUserAccount(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type PatchUserAccountMutationResult = NonNullable<Awaited<ReturnType<typeof patchUserAccount>>>\n export type PatchUserAccountMutationBody = UserAccountPatchBodyBody\n export type PatchUserAccountMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Patch your account\n */\nexport const usePatchUserAccount = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof patchUserAccount>>, TError,{data: UserAccountPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationResult<\n Awaited<ReturnType<typeof patchUserAccount>>,\n TError,\n {data: UserAccountPatchBodyBody},\n TContext\n > => {\n\n const mutationOptions = getPatchUserAccountMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns a summary of your API activity optionally filtered by date. The API log does not include the use of GET methods, and only contains records of potential state-changing calls made against the Data Manager using your account\n\n * @summary Get the API call log recorded against your account\n */\nexport const getUserApiLog = (\n params?: GetUserApiLogParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<UserApiLogGetResponse>(\n {url: `/user/api-log`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetUserApiLogQueryKey = (params?: GetUserApiLogParams,) => {\n return [\"data-manager-api\", `/user/api-log`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetUserApiLogQueryOptions = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserApiLogQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserApiLog>>> = ({ signal }) => getUserApiLog(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserApiLogQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>\nexport type GetUserApiLogQueryError = ErrorType<void>\n\n\nexport function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params: undefined | GetUserApiLogParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserApiLog>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserApiLog>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get the API call log recorded against your account\n */\n\nexport function useGetUserApiLog<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUserApiLogQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetUserApiLogSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserApiLogQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserApiLog>>> = ({ signal }) => getUserApiLog(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetUserApiLogSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserApiLog>>>\nexport type GetUserApiLogSuspenseQueryError = ErrorType<void>\n\n\nexport function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params: undefined | GetUserApiLogParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Get the API call log recorded against your account\n */\n\nexport function useGetUserApiLogSuspense<TData = Awaited<ReturnType<typeof getUserApiLog>>, TError = ErrorType<void>>(\n params?: GetUserApiLogParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserApiLog>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetUserApiLogSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAWA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAoCA,IAAM,WAAW,CAEvB,SAAiD,WAC7C;AAGC,SAA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