@coscine/api-client 2.3.0 → 2.4.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 +20 -162
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +19 -162
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +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.Project/api.js +2 -177
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +1 -1
- package/dist/lib/Coscine.Api.Search/api.js +29 -29
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +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 +18 -20
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +1 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -1
- 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.Project/api.d.ts +1 -97
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +478 -24
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- 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 +1 -5
- package/dist/types/index.d.ts +2 -10
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -2121,7 +2121,7 @@
|
|
|
2121
2121
|
* Coscine.Api.Admin
|
|
2122
2122
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2123
2123
|
*
|
|
2124
|
-
* The version of the OpenAPI document:
|
|
2124
|
+
* The version of the OpenAPI document: 3.0.0
|
|
2125
2125
|
*
|
|
2126
2126
|
*
|
|
2127
2127
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5077,146 +5077,6 @@
|
|
|
5077
5077
|
},
|
|
5078
5078
|
};
|
|
5079
5079
|
};
|
|
5080
|
-
/**
|
|
5081
|
-
* SearchApi - axios parameter creator
|
|
5082
|
-
* @export
|
|
5083
|
-
*/
|
|
5084
|
-
const SearchApiAxiosParamCreator = function (configuration) {
|
|
5085
|
-
return {
|
|
5086
|
-
/**
|
|
5087
|
-
*
|
|
5088
|
-
* @summary Returns results for the search word
|
|
5089
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5090
|
-
* @param {*} [options] Override http request option.
|
|
5091
|
-
* @throws {RequiredError}
|
|
5092
|
-
*/
|
|
5093
|
-
searchSearch: (encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5094
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5095
|
-
assertParamExists$4('searchSearch', 'encodedSearchWord', encodedSearchWord);
|
|
5096
|
-
const localVarPath = `/Search/all/{encodedSearchWord}`
|
|
5097
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5098
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5099
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5100
|
-
let baseOptions;
|
|
5101
|
-
if (configuration) {
|
|
5102
|
-
baseOptions = configuration.baseOptions;
|
|
5103
|
-
}
|
|
5104
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5105
|
-
const localVarHeaderParameter = {};
|
|
5106
|
-
const localVarQueryParameter = {};
|
|
5107
|
-
// authentication JWT token required
|
|
5108
|
-
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5109
|
-
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5110
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5111
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5112
|
-
return {
|
|
5113
|
-
url: toPathString$5(localVarUrlObj),
|
|
5114
|
-
options: localVarRequestOptions,
|
|
5115
|
-
};
|
|
5116
|
-
}),
|
|
5117
|
-
/**
|
|
5118
|
-
*
|
|
5119
|
-
* @summary Returns searched projects
|
|
5120
|
-
* @param {string} projectId Id of the project
|
|
5121
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5122
|
-
* @param {*} [options] Override http request option.
|
|
5123
|
-
* @throws {RequiredError}
|
|
5124
|
-
*/
|
|
5125
|
-
searchSearchProject: (projectId, encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5126
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
5127
|
-
assertParamExists$4('searchSearchProject', 'projectId', projectId);
|
|
5128
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5129
|
-
assertParamExists$4('searchSearchProject', 'encodedSearchWord', encodedSearchWord);
|
|
5130
|
-
const localVarPath = `/Search/project/{projectId}/{encodedSearchWord}`
|
|
5131
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5132
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5133
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5134
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5135
|
-
let baseOptions;
|
|
5136
|
-
if (configuration) {
|
|
5137
|
-
baseOptions = configuration.baseOptions;
|
|
5138
|
-
}
|
|
5139
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5140
|
-
const localVarHeaderParameter = {};
|
|
5141
|
-
const localVarQueryParameter = {};
|
|
5142
|
-
// authentication JWT token required
|
|
5143
|
-
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5144
|
-
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5145
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5146
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5147
|
-
return {
|
|
5148
|
-
url: toPathString$5(localVarUrlObj),
|
|
5149
|
-
options: localVarRequestOptions,
|
|
5150
|
-
};
|
|
5151
|
-
}),
|
|
5152
|
-
};
|
|
5153
|
-
};
|
|
5154
|
-
/**
|
|
5155
|
-
* SearchApi - functional programming interface
|
|
5156
|
-
* @export
|
|
5157
|
-
*/
|
|
5158
|
-
const SearchApiFp = function (configuration) {
|
|
5159
|
-
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
5160
|
-
return {
|
|
5161
|
-
/**
|
|
5162
|
-
*
|
|
5163
|
-
* @summary Returns results for the search word
|
|
5164
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5165
|
-
* @param {*} [options] Override http request option.
|
|
5166
|
-
* @throws {RequiredError}
|
|
5167
|
-
*/
|
|
5168
|
-
searchSearch(encodedSearchWord, options) {
|
|
5169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5170
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(encodedSearchWord, options);
|
|
5171
|
-
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5172
|
-
});
|
|
5173
|
-
},
|
|
5174
|
-
/**
|
|
5175
|
-
*
|
|
5176
|
-
* @summary Returns searched projects
|
|
5177
|
-
* @param {string} projectId Id of the project
|
|
5178
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5179
|
-
* @param {*} [options] Override http request option.
|
|
5180
|
-
* @throws {RequiredError}
|
|
5181
|
-
*/
|
|
5182
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5183
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5184
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProject(projectId, encodedSearchWord, options);
|
|
5185
|
-
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5186
|
-
});
|
|
5187
|
-
},
|
|
5188
|
-
};
|
|
5189
|
-
};
|
|
5190
|
-
/**
|
|
5191
|
-
* SearchApi - factory interface
|
|
5192
|
-
* @export
|
|
5193
|
-
*/
|
|
5194
|
-
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
5195
|
-
const localVarFp = SearchApiFp(configuration);
|
|
5196
|
-
return {
|
|
5197
|
-
/**
|
|
5198
|
-
*
|
|
5199
|
-
* @summary Returns results for the search word
|
|
5200
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5201
|
-
* @param {*} [options] Override http request option.
|
|
5202
|
-
* @throws {RequiredError}
|
|
5203
|
-
*/
|
|
5204
|
-
searchSearch(encodedSearchWord, options) {
|
|
5205
|
-
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5206
|
-
},
|
|
5207
|
-
/**
|
|
5208
|
-
*
|
|
5209
|
-
* @summary Returns searched projects
|
|
5210
|
-
* @param {string} projectId Id of the project
|
|
5211
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5212
|
-
* @param {*} [options] Override http request option.
|
|
5213
|
-
* @throws {RequiredError}
|
|
5214
|
-
*/
|
|
5215
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5216
|
-
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5217
|
-
},
|
|
5218
|
-
};
|
|
5219
|
-
};
|
|
5220
5080
|
/**
|
|
5221
5081
|
* SubProjectApi - axios parameter creator
|
|
5222
5082
|
* @export
|
|
@@ -6349,14 +6209,14 @@
|
|
|
6349
6209
|
|
|
6350
6210
|
/* tslint:disable */
|
|
6351
6211
|
/**
|
|
6352
|
-
*
|
|
6212
|
+
* SearchApi - axios parameter creator
|
|
6353
6213
|
* @export
|
|
6354
6214
|
*/
|
|
6355
|
-
const
|
|
6215
|
+
const SearchApiAxiosParamCreator = function (configuration) {
|
|
6356
6216
|
return {
|
|
6357
6217
|
/**
|
|
6358
6218
|
*
|
|
6359
|
-
* @summary Search
|
|
6219
|
+
* @summary Search
|
|
6360
6220
|
* @param {string} [query] Elasticsearch query
|
|
6361
6221
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6362
6222
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6364,8 +6224,8 @@
|
|
|
6364
6224
|
* @param {*} [options] Override http request option.
|
|
6365
6225
|
* @throws {RequiredError}
|
|
6366
6226
|
*/
|
|
6367
|
-
|
|
6368
|
-
const localVarPath = `/
|
|
6227
|
+
searchSearch: (query, user, adv, languages, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6228
|
+
const localVarPath = `/Search`;
|
|
6369
6229
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6370
6230
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$3);
|
|
6371
6231
|
let baseOptions;
|
|
@@ -6400,15 +6260,15 @@
|
|
|
6400
6260
|
};
|
|
6401
6261
|
};
|
|
6402
6262
|
/**
|
|
6403
|
-
*
|
|
6263
|
+
* SearchApi - functional programming interface
|
|
6404
6264
|
* @export
|
|
6405
6265
|
*/
|
|
6406
|
-
const
|
|
6407
|
-
const localVarAxiosParamCreator =
|
|
6266
|
+
const SearchApiFp = function (configuration) {
|
|
6267
|
+
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
6408
6268
|
return {
|
|
6409
6269
|
/**
|
|
6410
6270
|
*
|
|
6411
|
-
* @summary Search
|
|
6271
|
+
* @summary Search
|
|
6412
6272
|
* @param {string} [query] Elasticsearch query
|
|
6413
6273
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6414
6274
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6416,24 +6276,24 @@
|
|
|
6416
6276
|
* @param {*} [options] Override http request option.
|
|
6417
6277
|
* @throws {RequiredError}
|
|
6418
6278
|
*/
|
|
6419
|
-
|
|
6279
|
+
searchSearch(query, user, adv, languages, options) {
|
|
6420
6280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6421
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(query, user, adv, languages, options);
|
|
6422
6282
|
return createRequestFunction$3(localVarAxiosArgs, axios, BASE_PATH$3, configuration);
|
|
6423
6283
|
});
|
|
6424
6284
|
},
|
|
6425
6285
|
};
|
|
6426
6286
|
};
|
|
6427
6287
|
/**
|
|
6428
|
-
*
|
|
6288
|
+
* SearchApi - factory interface
|
|
6429
6289
|
* @export
|
|
6430
6290
|
*/
|
|
6431
|
-
const
|
|
6432
|
-
const localVarFp =
|
|
6291
|
+
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
6292
|
+
const localVarFp = SearchApiFp(configuration);
|
|
6433
6293
|
return {
|
|
6434
6294
|
/**
|
|
6435
6295
|
*
|
|
6436
|
-
* @summary Search
|
|
6296
|
+
* @summary Search
|
|
6437
6297
|
* @param {string} [query] Elasticsearch query
|
|
6438
6298
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6439
6299
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6441,8 +6301,8 @@
|
|
|
6441
6301
|
* @param {*} [options] Override http request option.
|
|
6442
6302
|
* @throws {RequiredError}
|
|
6443
6303
|
*/
|
|
6444
|
-
|
|
6445
|
-
return localVarFp.
|
|
6304
|
+
searchSearch(query, user, adv, languages, options) {
|
|
6305
|
+
return localVarFp.searchSearch(query, user, adv, languages, options).then((request) => request(axios, basePath));
|
|
6446
6306
|
},
|
|
6447
6307
|
};
|
|
6448
6308
|
};
|
|
@@ -7912,8 +7772,7 @@
|
|
|
7912
7772
|
ResourceQuotaApi: ResourceQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
7913
7773
|
ResourceTypeApi: ResourceTypeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
7914
7774
|
RoleApi: RoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7915
|
-
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.
|
|
7916
|
-
SemanticSearchApi: SemanticSearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
7775
|
+
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
7917
7776
|
SubProjectApi: SubProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7918
7777
|
TitleApi: TitleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
7919
7778
|
TokenApi: TokenApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Token', axios),
|
|
@@ -7980,7 +7839,6 @@
|
|
|
7980
7839
|
const ResourceTypeApi = apis.ResourceTypeApi;
|
|
7981
7840
|
const RoleApi = apis.RoleApi;
|
|
7982
7841
|
const SearchApi = apis.SearchApi;
|
|
7983
|
-
const SemanticSearchApi = apis.SemanticSearchApi;
|
|
7984
7842
|
const SubProjectApi = apis.SubProjectApi;
|
|
7985
7843
|
const TitleApi = apis.TitleApi;
|
|
7986
7844
|
const TokenApi = apis.TokenApi;
|
|
@@ -8006,7 +7864,6 @@
|
|
|
8006
7864
|
exports.ResourceTypeApi = ResourceTypeApi;
|
|
8007
7865
|
exports.RoleApi = RoleApi;
|
|
8008
7866
|
exports.SearchApi = SearchApi;
|
|
8009
|
-
exports.SemanticSearchApi = SemanticSearchApi;
|
|
8010
7867
|
exports.SubProjectApi = SubProjectApi;
|
|
8011
7868
|
exports.TOSApi = TOSApi;
|
|
8012
7869
|
exports.TitleApi = TitleApi;
|