@squonk/data-manager-client 1.1.3 → 1.1.4-rc.1
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 +27 -18
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.ts +23 -5
- package/accounting/accounting.js +27 -18
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +66 -21
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.ts +74 -4
- package/admin/admin.js +65 -20
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +18 -10
- package/application/application.cjs.map +1 -1
- package/application/application.d.ts +16 -4
- package/application/application.js +18 -10
- package/application/application.js.map +1 -1
- package/{custom-instance-d49ce6d9.d.ts → custom-instance-e49ba702.d.ts} +1 -1
- package/dataset/dataset.cjs +85 -34
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.ts +85 -7
- package/dataset/dataset.js +84 -33
- package/dataset/dataset.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +58 -17
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.ts +50 -6
- package/exchange-rate/exchange-rate.js +57 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file/file.cjs +39 -19
- package/file/file.cjs.map +1 -1
- package/file/file.d.ts +40 -4
- package/file/file.js +39 -19
- package/file/file.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.js.map +1 -1
- package/instance/instance.cjs +54 -24
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.ts +60 -4
- package/instance/instance.js +53 -23
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +28 -26
- package/job/job.cjs.map +1 -1
- package/job/job.d.ts +23 -5
- package/job/job.js +28 -26
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +36 -14
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.ts +38 -4
- package/metadata/metadata.js +36 -14
- package/metadata/metadata.js.map +1 -1
- package/package.json +9 -9
- package/project/project.cjs +103 -39
- package/project/project.cjs.map +1 -1
- package/project/project.d.ts +106 -6
- package/project/project.js +102 -38
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +91 -39
- package/src/admin/admin.ts +255 -96
- package/src/application/application.ts +66 -28
- package/src/data-manager-api.schemas.ts +1 -1
- package/src/dataset/dataset.ts +318 -124
- package/src/exchange-rate/exchange-rate.ts +213 -81
- package/src/file/file.ts +150 -60
- package/src/instance/instance.ts +204 -84
- package/src/job/job.ts +96 -46
- package/src/metadata/metadata.ts +133 -51
- package/src/project/project.ts +369 -140
- package/src/task/task.ts +93 -41
- package/src/type/type.ts +28 -12
- package/src/user/user.ts +124 -57
- package/task/task.cjs +26 -21
- package/task/task.cjs.map +1 -1
- package/task/task.d.ts +24 -4
- package/task/task.js +26 -21
- package/task/task.js.map +1 -1
- package/type/type.cjs +9 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.ts +9 -3
- package/type/type.js +9 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +34 -22
- package/user/user.cjs.map +1 -1
- package/user/user.d.ts +31 -5
- package/user/user.js +33 -21
- package/user/user.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v6.
|
|
2
|
+
* Generated by orval v6.15.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Dataset Manager API
|
|
5
5
|
* The Dataset Manager API service.
|
|
@@ -49,14 +49,9 @@ export const getApplications = (
|
|
|
49
49
|
);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export const getGetApplicationsQueryKey = () => [`/application`];
|
|
52
|
+
export const getGetApplicationsQueryKey = () => [`/application`] as const;
|
|
53
53
|
|
|
54
|
-
export
|
|
55
|
-
Awaited<ReturnType<typeof getApplications>>
|
|
56
|
-
>;
|
|
57
|
-
export type GetApplicationsQueryError = ErrorType<DmError>;
|
|
58
|
-
|
|
59
|
-
export const useGetApplications = <
|
|
54
|
+
export const useGetApplicationsQueryOptions = <
|
|
60
55
|
TData = Awaited<ReturnType<typeof getApplications>>,
|
|
61
56
|
TError = ErrorType<DmError>
|
|
62
57
|
>(options?: {
|
|
@@ -66,7 +61,11 @@ export const useGetApplications = <
|
|
|
66
61
|
TData
|
|
67
62
|
>;
|
|
68
63
|
request?: SecondParameter<typeof customInstance>;
|
|
69
|
-
}):
|
|
64
|
+
}): UseQueryOptions<
|
|
65
|
+
Awaited<ReturnType<typeof getApplications>>,
|
|
66
|
+
TError,
|
|
67
|
+
TData
|
|
68
|
+
> & { queryKey: QueryKey } => {
|
|
70
69
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
71
70
|
|
|
72
71
|
const queryKey = queryOptions?.queryKey ?? getGetApplicationsQueryKey();
|
|
@@ -77,13 +76,32 @@ export const useGetApplications = <
|
|
|
77
76
|
|
|
78
77
|
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
return customOptions;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type GetApplicationsQueryResult = NonNullable<
|
|
83
|
+
Awaited<ReturnType<typeof getApplications>>
|
|
84
|
+
>;
|
|
85
|
+
export type GetApplicationsQueryError = ErrorType<DmError>;
|
|
86
|
+
|
|
87
|
+
export const useGetApplications = <
|
|
88
|
+
TData = Awaited<ReturnType<typeof getApplications>>,
|
|
89
|
+
TError = ErrorType<DmError>
|
|
90
|
+
>(options?: {
|
|
91
|
+
query?: UseQueryOptions<
|
|
81
92
|
Awaited<ReturnType<typeof getApplications>>,
|
|
82
93
|
TError,
|
|
83
94
|
TData
|
|
84
|
-
|
|
95
|
+
>;
|
|
96
|
+
request?: SecondParameter<typeof customInstance>;
|
|
97
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
98
|
+
const queryOptions = useGetApplicationsQueryOptions(options);
|
|
99
|
+
|
|
100
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {
|
|
101
|
+
queryKey: QueryKey;
|
|
102
|
+
};
|
|
85
103
|
|
|
86
|
-
query.queryKey =
|
|
104
|
+
query.queryKey = queryOptions.queryKey;
|
|
87
105
|
|
|
88
106
|
return query;
|
|
89
107
|
};
|
|
@@ -104,16 +122,10 @@ export const getApplication = (
|
|
|
104
122
|
);
|
|
105
123
|
};
|
|
106
124
|
|
|
107
|
-
export const getGetApplicationQueryKey = (applicationId: string) =>
|
|
108
|
-
`/application/${applicationId}
|
|
109
|
-
];
|
|
110
|
-
|
|
111
|
-
export type GetApplicationQueryResult = NonNullable<
|
|
112
|
-
Awaited<ReturnType<typeof getApplication>>
|
|
113
|
-
>;
|
|
114
|
-
export type GetApplicationQueryError = ErrorType<void | DmError>;
|
|
125
|
+
export const getGetApplicationQueryKey = (applicationId: string) =>
|
|
126
|
+
[`/application/${applicationId}`] as const;
|
|
115
127
|
|
|
116
|
-
export const
|
|
128
|
+
export const useGetApplicationQueryOptions = <
|
|
117
129
|
TData = Awaited<ReturnType<typeof getApplication>>,
|
|
118
130
|
TError = ErrorType<void | DmError>
|
|
119
131
|
>(
|
|
@@ -126,7 +138,11 @@ export const useGetApplication = <
|
|
|
126
138
|
>;
|
|
127
139
|
request?: SecondParameter<typeof customInstance>;
|
|
128
140
|
}
|
|
129
|
-
):
|
|
141
|
+
): UseQueryOptions<
|
|
142
|
+
Awaited<ReturnType<typeof getApplication>>,
|
|
143
|
+
TError,
|
|
144
|
+
TData
|
|
145
|
+
> & { queryKey: QueryKey } => {
|
|
130
146
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
131
147
|
|
|
132
148
|
const queryKey =
|
|
@@ -138,13 +154,35 @@ export const useGetApplication = <
|
|
|
138
154
|
|
|
139
155
|
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
140
156
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
157
|
+
return customOptions;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export type GetApplicationQueryResult = NonNullable<
|
|
161
|
+
Awaited<ReturnType<typeof getApplication>>
|
|
162
|
+
>;
|
|
163
|
+
export type GetApplicationQueryError = ErrorType<void | DmError>;
|
|
164
|
+
|
|
165
|
+
export const useGetApplication = <
|
|
166
|
+
TData = Awaited<ReturnType<typeof getApplication>>,
|
|
167
|
+
TError = ErrorType<void | DmError>
|
|
168
|
+
>(
|
|
169
|
+
applicationId: string,
|
|
170
|
+
options?: {
|
|
171
|
+
query?: UseQueryOptions<
|
|
172
|
+
Awaited<ReturnType<typeof getApplication>>,
|
|
173
|
+
TError,
|
|
174
|
+
TData
|
|
175
|
+
>;
|
|
176
|
+
request?: SecondParameter<typeof customInstance>;
|
|
177
|
+
}
|
|
178
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
179
|
+
const queryOptions = useGetApplicationQueryOptions(applicationId, options);
|
|
180
|
+
|
|
181
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {
|
|
182
|
+
queryKey: QueryKey;
|
|
183
|
+
};
|
|
146
184
|
|
|
147
|
-
query.queryKey =
|
|
185
|
+
query.queryKey = queryOptions.queryKey;
|
|
148
186
|
|
|
149
187
|
return query;
|
|
150
188
|
};
|