1 |
b61ca51b
|
Schwobik
|
/* eslint-disable */
|
2 |
|
|
/* tslint:disable */
|
3 |
|
|
/*
|
4 |
|
|
* ---------------------------------------------------------------
|
5 |
|
|
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
6 |
|
|
* ## ##
|
7 |
|
|
* ## AUTHOR: acacode ##
|
8 |
|
|
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
9 |
|
|
* ---------------------------------------------------------------
|
10 |
|
|
*/
|
11 |
|
|
|
12 |
|
|
import { ExternalCatalogItemDto } from "./data-contracts";
|
13 |
|
|
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
14 |
|
|
|
15 |
|
|
export class ExternalCatalogItems<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
16 |
|
|
/**
|
17 |
|
|
* No description
|
18 |
|
|
*
|
19 |
|
|
* @tags external-catalog-controller
|
20 |
|
|
* @name GetCatalog
|
21 |
|
|
* @summary returns external catalog items based on filter
|
22 |
|
|
* @request GET:/external-catalog-items
|
23 |
|
|
*/
|
24 |
|
|
getCatalog = (
|
25 |
|
|
query: { name: string; source: "PLEIADES" | "GEONAMES" | "CIGS" | "ANE" },
|
26 |
|
|
params: RequestParams = {},
|
27 |
|
|
) =>
|
28 |
|
|
this.request<ExternalCatalogItemDto[], any>({
|
29 |
|
|
path: `/external-catalog-items`,
|
30 |
|
|
method: "GET",
|
31 |
|
|
query: query,
|
32 |
|
|
...params,
|
33 |
|
|
});
|
34 |
|
|
/**
|
35 |
|
|
* No description
|
36 |
|
|
*
|
37 |
|
|
* @tags external-catalog-controller
|
38 |
|
|
* @name UpdateCatalog
|
39 |
|
|
* @summary updates external catalog
|
40 |
|
|
* @request POST:/external-catalog-items
|
41 |
|
|
*/
|
42 |
|
|
updateCatalog = (data: { file: File }, params: RequestParams = {}) =>
|
43 |
|
|
this.request<void, any>({
|
44 |
|
|
path: `/external-catalog-items`,
|
45 |
|
|
method: "POST",
|
46 |
|
|
body: data,
|
47 |
|
|
type: ContentType.FormData,
|
48 |
|
|
...params,
|
49 |
|
|
});
|
50 |
|
|
}
|