@coscine/api-client 1.0.0 → 1.3.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/dist/index.js +715 -545
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +718 -547
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +52 -52
- package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +1 -1
- package/dist/lib/Coscine.Api.Blob/common.js +1 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Blob/index.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/api.js +75 -88
- package/dist/lib/Coscine.Api.Metadata/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/index.js +1 -1
- package/dist/lib/Coscine.Api.Search/api.js +159 -0
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/base.js +65 -0
- package/dist/lib/Coscine.Api.Search/base.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/common.js +153 -0
- package/dist/lib/Coscine.Api.Search/common.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/configuration.js +43 -0
- package/dist/lib/Coscine.Api.Search/configuration.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/index.js +28 -0
- package/dist/lib/Coscine.Api.Search/index.js.map +1 -0
- package/dist/lib/Coscine.Api.Tree/api.js +35 -35
- package/dist/lib/Coscine.Api.Tree/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +1 -1
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +1 -1
- package/dist/lib/apis.js +13 -11
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/axios-basic.js +7 -3
- package/dist/lib/axios-basic.js.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +25 -25
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/api.d.ts +116 -55
- package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +110 -0
- package/dist/types/Coscine.Api.Search/base.d.ts +55 -0
- package/dist/types/Coscine.Api.Search/common.d.ts +65 -0
- package/dist/types/Coscine.Api.Search/configuration.d.ts +83 -0
- package/dist/types/Coscine.Api.Search/index.d.ts +13 -0
- package/dist/types/Coscine.Api.Tree/api.d.ts +17 -17
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/apis.d.ts +13 -10
- package/dist/types/index.d.ts +26 -20
- package/package.json +4 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Coscine.Api.Metadata
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1
|
|
5
|
+
* The version of the OpenAPI document: 2.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,28 +13,87 @@ import { Configuration } from './configuration';
|
|
|
13
13
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
14
14
|
import { RequestArgs, BaseAPI } from './base';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Parameter object containing the application profile informations.
|
|
17
17
|
* @export
|
|
18
|
+
* @interface ApplicationProfile
|
|
18
19
|
*/
|
|
19
|
-
export
|
|
20
|
+
export interface ApplicationProfile {
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
* @
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
* Name of the application profile
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ApplicationProfile
|
|
25
|
+
*/
|
|
26
|
+
name?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Base URL of the application profile
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ApplicationProfile
|
|
31
|
+
*/
|
|
32
|
+
base_url?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Definition of the application profile
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ApplicationProfile
|
|
27
37
|
*/
|
|
28
|
-
|
|
38
|
+
definition?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Mime type of the application profile
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ApplicationProfile
|
|
43
|
+
*/
|
|
44
|
+
mimeType?: string | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Bilingual labels
|
|
48
|
+
* @export
|
|
49
|
+
* @interface BilingualLabels
|
|
50
|
+
*/
|
|
51
|
+
export interface BilingualLabels {
|
|
52
|
+
/**
|
|
53
|
+
* English labels
|
|
54
|
+
* @type {Array<Label>}
|
|
55
|
+
* @memberof BilingualLabels
|
|
56
|
+
*/
|
|
57
|
+
en?: Array<Label> | null;
|
|
58
|
+
/**
|
|
59
|
+
* German labels
|
|
60
|
+
* @type {Array<Label>}
|
|
61
|
+
* @memberof BilingualLabels
|
|
62
|
+
*/
|
|
63
|
+
de?: Array<Label> | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Label of a vocabulary entry
|
|
67
|
+
* @export
|
|
68
|
+
* @interface Label
|
|
69
|
+
*/
|
|
70
|
+
export interface Label {
|
|
71
|
+
/**
|
|
72
|
+
* Name of the application profile
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof Label
|
|
75
|
+
*/
|
|
76
|
+
name?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the application profile
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof Label
|
|
81
|
+
*/
|
|
82
|
+
value?: string | null;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* MetadataApi - axios parameter creator
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const MetadataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
89
|
/**
|
|
30
90
|
*
|
|
31
91
|
* @summary This method returns instances.
|
|
32
|
-
* @param {string} projectId Id of the project
|
|
33
92
|
* @param {string} className class name
|
|
34
93
|
* @param {*} [options] Override http request option.
|
|
35
94
|
* @throws {RequiredError}
|
|
36
95
|
*/
|
|
37
|
-
metadataGetClassInstances: (
|
|
96
|
+
metadataGetClassInstances: (className: string, options?: any) => Promise<RequestArgs>;
|
|
38
97
|
/**
|
|
39
98
|
*
|
|
40
99
|
* @summary This method returns the application profile for the given profileUrl.
|
|
@@ -65,30 +124,28 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
65
124
|
* @throws {RequiredError}
|
|
66
125
|
*/
|
|
67
126
|
metadataGetVocabulary: (path: string, options?: any) => Promise<RequestArgs>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @summary Create a request for storing a given application profile.
|
|
130
|
+
* @param {ApplicationProfile} applicationProfile Object describing the application profile
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
metadataSaveApplicationProfile: (applicationProfile: ApplicationProfile, options?: any) => Promise<RequestArgs>;
|
|
68
135
|
};
|
|
69
136
|
/**
|
|
70
137
|
* MetadataApi - functional programming interface
|
|
71
138
|
* @export
|
|
72
139
|
*/
|
|
73
140
|
export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
77
|
-
* @param {string} profile Url of the application profile
|
|
78
|
-
* @param {string} resourceId Id of the resource
|
|
79
|
-
* @param {*} [options] Override http request option.
|
|
80
|
-
* @throws {RequiredError}
|
|
81
|
-
*/
|
|
82
|
-
metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
83
141
|
/**
|
|
84
142
|
*
|
|
85
143
|
* @summary This method returns instances.
|
|
86
|
-
* @param {string} projectId Id of the project
|
|
87
144
|
* @param {string} className class name
|
|
88
145
|
* @param {*} [options] Override http request option.
|
|
89
146
|
* @throws {RequiredError}
|
|
90
147
|
*/
|
|
91
|
-
metadataGetClassInstances(
|
|
148
|
+
metadataGetClassInstances(className: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BilingualLabels>>;
|
|
92
149
|
/**
|
|
93
150
|
*
|
|
94
151
|
* @summary This method returns the application profile for the given profileUrl.
|
|
@@ -103,14 +160,14 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
103
160
|
* @param {*} [options] Override http request option.
|
|
104
161
|
* @throws {RequiredError}
|
|
105
162
|
*/
|
|
106
|
-
metadataGetProfiles(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
163
|
+
metadataGetProfiles(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
107
164
|
/**
|
|
108
165
|
*
|
|
109
166
|
* @summary This method returns a list of all vocabularies.
|
|
110
167
|
* @param {*} [options] Override http request option.
|
|
111
168
|
* @throws {RequiredError}
|
|
112
169
|
*/
|
|
113
|
-
metadataGetVocabularies(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
170
|
+
metadataGetVocabularies(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
114
171
|
/**
|
|
115
172
|
*
|
|
116
173
|
* @summary This method returns a specific vocabulary.
|
|
@@ -118,31 +175,29 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
118
175
|
* @param {*} [options] Override http request option.
|
|
119
176
|
* @throws {RequiredError}
|
|
120
177
|
*/
|
|
121
|
-
metadataGetVocabulary(path: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
178
|
+
metadataGetVocabulary(path: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BilingualLabels>>;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Create a request for storing a given application profile.
|
|
182
|
+
* @param {ApplicationProfile} applicationProfile Object describing the application profile
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
metadataSaveApplicationProfile(applicationProfile: ApplicationProfile, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
122
187
|
};
|
|
123
188
|
/**
|
|
124
189
|
* MetadataApi - factory interface
|
|
125
190
|
* @export
|
|
126
191
|
*/
|
|
127
192
|
export declare const MetadataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
131
|
-
* @param {string} profile Url of the application profile
|
|
132
|
-
* @param {string} resourceId Id of the resource
|
|
133
|
-
* @param {*} [options] Override http request option.
|
|
134
|
-
* @throws {RequiredError}
|
|
135
|
-
*/
|
|
136
|
-
metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any): AxiosPromise<any>;
|
|
137
193
|
/**
|
|
138
194
|
*
|
|
139
195
|
* @summary This method returns instances.
|
|
140
|
-
* @param {string} projectId Id of the project
|
|
141
196
|
* @param {string} className class name
|
|
142
197
|
* @param {*} [options] Override http request option.
|
|
143
198
|
* @throws {RequiredError}
|
|
144
199
|
*/
|
|
145
|
-
metadataGetClassInstances(
|
|
200
|
+
metadataGetClassInstances(className: string, options?: any): AxiosPromise<BilingualLabels>;
|
|
146
201
|
/**
|
|
147
202
|
*
|
|
148
203
|
* @summary This method returns the application profile for the given profileUrl.
|
|
@@ -157,14 +212,14 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
157
212
|
* @param {*} [options] Override http request option.
|
|
158
213
|
* @throws {RequiredError}
|
|
159
214
|
*/
|
|
160
|
-
metadataGetProfiles(options?: any): AxiosPromise<
|
|
215
|
+
metadataGetProfiles(options?: any): AxiosPromise<Array<string>>;
|
|
161
216
|
/**
|
|
162
217
|
*
|
|
163
218
|
* @summary This method returns a list of all vocabularies.
|
|
164
219
|
* @param {*} [options] Override http request option.
|
|
165
220
|
* @throws {RequiredError}
|
|
166
221
|
*/
|
|
167
|
-
metadataGetVocabularies(options?: any): AxiosPromise<
|
|
222
|
+
metadataGetVocabularies(options?: any): AxiosPromise<Array<string>>;
|
|
168
223
|
/**
|
|
169
224
|
*
|
|
170
225
|
* @summary This method returns a specific vocabulary.
|
|
@@ -172,7 +227,15 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
172
227
|
* @param {*} [options] Override http request option.
|
|
173
228
|
* @throws {RequiredError}
|
|
174
229
|
*/
|
|
175
|
-
metadataGetVocabulary(path: string, options?: any): AxiosPromise<
|
|
230
|
+
metadataGetVocabulary(path: string, options?: any): AxiosPromise<BilingualLabels>;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @summary Create a request for storing a given application profile.
|
|
234
|
+
* @param {ApplicationProfile} applicationProfile Object describing the application profile
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
metadataSaveApplicationProfile(applicationProfile: ApplicationProfile, options?: any): AxiosPromise<any>;
|
|
176
239
|
};
|
|
177
240
|
/**
|
|
178
241
|
* MetadataApi - object-oriented interface
|
|
@@ -181,26 +244,15 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
181
244
|
* @extends {BaseAPI}
|
|
182
245
|
*/
|
|
183
246
|
export declare class MetadataApi extends BaseAPI {
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
187
|
-
* @param {string} profile Url of the application profile
|
|
188
|
-
* @param {string} resourceId Id of the resource
|
|
189
|
-
* @param {*} [options] Override http request option.
|
|
190
|
-
* @throws {RequiredError}
|
|
191
|
-
* @memberof MetadataApi
|
|
192
|
-
*/
|
|
193
|
-
metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any): Promise<import("axios").AxiosResponse<any>>;
|
|
194
247
|
/**
|
|
195
248
|
*
|
|
196
249
|
* @summary This method returns instances.
|
|
197
|
-
* @param {string} projectId Id of the project
|
|
198
250
|
* @param {string} className class name
|
|
199
251
|
* @param {*} [options] Override http request option.
|
|
200
252
|
* @throws {RequiredError}
|
|
201
253
|
* @memberof MetadataApi
|
|
202
254
|
*/
|
|
203
|
-
metadataGetClassInstances(
|
|
255
|
+
metadataGetClassInstances(className: string, options?: any): Promise<import("axios").AxiosResponse<BilingualLabels>>;
|
|
204
256
|
/**
|
|
205
257
|
*
|
|
206
258
|
* @summary This method returns the application profile for the given profileUrl.
|
|
@@ -217,7 +269,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
217
269
|
* @throws {RequiredError}
|
|
218
270
|
* @memberof MetadataApi
|
|
219
271
|
*/
|
|
220
|
-
metadataGetProfiles(options?: any): Promise<import("axios").AxiosResponse<
|
|
272
|
+
metadataGetProfiles(options?: any): Promise<import("axios").AxiosResponse<string[]>>;
|
|
221
273
|
/**
|
|
222
274
|
*
|
|
223
275
|
* @summary This method returns a list of all vocabularies.
|
|
@@ -225,7 +277,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
225
277
|
* @throws {RequiredError}
|
|
226
278
|
* @memberof MetadataApi
|
|
227
279
|
*/
|
|
228
|
-
metadataGetVocabularies(options?: any): Promise<import("axios").AxiosResponse<
|
|
280
|
+
metadataGetVocabularies(options?: any): Promise<import("axios").AxiosResponse<string[]>>;
|
|
229
281
|
/**
|
|
230
282
|
*
|
|
231
283
|
* @summary This method returns a specific vocabulary.
|
|
@@ -234,5 +286,14 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
234
286
|
* @throws {RequiredError}
|
|
235
287
|
* @memberof MetadataApi
|
|
236
288
|
*/
|
|
237
|
-
metadataGetVocabulary(path: string, options?: any): Promise<import("axios").AxiosResponse<
|
|
289
|
+
metadataGetVocabulary(path: string, options?: any): Promise<import("axios").AxiosResponse<BilingualLabels>>;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @summary Create a request for storing a given application profile.
|
|
293
|
+
* @param {ApplicationProfile} applicationProfile Object describing the application profile
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
* @memberof MetadataApi
|
|
297
|
+
*/
|
|
298
|
+
metadataSaveApplicationProfile(applicationProfile: ApplicationProfile, options?: any): Promise<import("axios").AxiosResponse<any>>;
|
|
238
299
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Coscine.Api.Metadata
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1
|
|
5
|
+
* The version of the OpenAPI document: 2.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Coscine.Api.Metadata
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1
|
|
5
|
+
* The version of the OpenAPI document: 2.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Coscine.Api.Metadata
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1
|
|
5
|
+
* The version of the OpenAPI document: 2.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Coscine.Api.Metadata
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1
|
|
5
|
+
* The version of the OpenAPI document: 2.2.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coscine.Api.Search
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from './configuration';
|
|
13
|
+
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from './base';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SearchResult
|
|
19
|
+
*/
|
|
20
|
+
export interface SearchResult {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof SearchResult
|
|
25
|
+
*/
|
|
26
|
+
graphName?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SearchResult
|
|
31
|
+
*/
|
|
32
|
+
project?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {any}
|
|
36
|
+
* @memberof SearchResult
|
|
37
|
+
*/
|
|
38
|
+
source?: any | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* SemanticSearchApi - axios parameter creator
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const SemanticSearchApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Search with SemanticSearch;
|
|
48
|
+
* @param {string} [query] Elasticsearch query
|
|
49
|
+
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
50
|
+
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
51
|
+
* @param {Array<string>} [languages] Set the used languages
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
semanticSearchSearch: (query?: string, user?: boolean, adv?: boolean, languages?: Array<string>, options?: any) => Promise<RequestArgs>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* SemanticSearchApi - functional programming interface
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const SemanticSearchApiFp: (configuration?: Configuration) => {
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary Search with SemanticSearch;
|
|
65
|
+
* @param {string} [query] Elasticsearch query
|
|
66
|
+
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
67
|
+
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
68
|
+
* @param {Array<string>} [languages] Set the used languages
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
semanticSearchSearch(query?: string, user?: boolean, adv?: boolean, languages?: Array<string>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchResult>>>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* SemanticSearchApi - factory interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const SemanticSearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @summary Search with SemanticSearch;
|
|
82
|
+
* @param {string} [query] Elasticsearch query
|
|
83
|
+
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
84
|
+
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
85
|
+
* @param {Array<string>} [languages] Set the used languages
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
semanticSearchSearch(query?: string, user?: boolean, adv?: boolean, languages?: Array<string>, options?: any): AxiosPromise<Array<SearchResult>>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* SemanticSearchApi - object-oriented interface
|
|
93
|
+
* @export
|
|
94
|
+
* @class SemanticSearchApi
|
|
95
|
+
* @extends {BaseAPI}
|
|
96
|
+
*/
|
|
97
|
+
export declare class SemanticSearchApi extends BaseAPI {
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Search with SemanticSearch;
|
|
101
|
+
* @param {string} [query] Elasticsearch query
|
|
102
|
+
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
103
|
+
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
104
|
+
* @param {Array<string>} [languages] Set the used languages
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof SemanticSearchApi
|
|
108
|
+
*/
|
|
109
|
+
semanticSearchSearch(query?: string, user?: boolean, adv?: boolean, languages?: Array<string>, options?: any): Promise<import("axios").AxiosResponse<SearchResult[]>>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coscine.Api.Search
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { AxiosInstance } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
name: "RequiredError";
|
|
54
|
+
constructor(field: string, msg?: string);
|
|
55
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coscine.Api.Search
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { RequestArgs } from "./base";
|
|
14
|
+
import { AxiosInstance } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coscine.Api.Search
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coscine.Api.Search
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|