@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.js
CHANGED
|
@@ -2115,7 +2115,7 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
2115
2115
|
* Coscine.Api.Admin
|
|
2116
2116
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2117
2117
|
*
|
|
2118
|
-
* The version of the OpenAPI document:
|
|
2118
|
+
* The version of the OpenAPI document: 3.0.0
|
|
2119
2119
|
*
|
|
2120
2120
|
*
|
|
2121
2121
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5071,146 +5071,6 @@ const RoleApiFactory = function (configuration, basePath, axios) {
|
|
|
5071
5071
|
},
|
|
5072
5072
|
};
|
|
5073
5073
|
};
|
|
5074
|
-
/**
|
|
5075
|
-
* SearchApi - axios parameter creator
|
|
5076
|
-
* @export
|
|
5077
|
-
*/
|
|
5078
|
-
const SearchApiAxiosParamCreator = function (configuration) {
|
|
5079
|
-
return {
|
|
5080
|
-
/**
|
|
5081
|
-
*
|
|
5082
|
-
* @summary Returns results for the search word
|
|
5083
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5084
|
-
* @param {*} [options] Override http request option.
|
|
5085
|
-
* @throws {RequiredError}
|
|
5086
|
-
*/
|
|
5087
|
-
searchSearch: (encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5088
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5089
|
-
assertParamExists$4('searchSearch', 'encodedSearchWord', encodedSearchWord);
|
|
5090
|
-
const localVarPath = `/Search/all/{encodedSearchWord}`
|
|
5091
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5092
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5093
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5094
|
-
let baseOptions;
|
|
5095
|
-
if (configuration) {
|
|
5096
|
-
baseOptions = configuration.baseOptions;
|
|
5097
|
-
}
|
|
5098
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5099
|
-
const localVarHeaderParameter = {};
|
|
5100
|
-
const localVarQueryParameter = {};
|
|
5101
|
-
// authentication JWT token required
|
|
5102
|
-
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5103
|
-
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5104
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5105
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5106
|
-
return {
|
|
5107
|
-
url: toPathString$5(localVarUrlObj),
|
|
5108
|
-
options: localVarRequestOptions,
|
|
5109
|
-
};
|
|
5110
|
-
}),
|
|
5111
|
-
/**
|
|
5112
|
-
*
|
|
5113
|
-
* @summary Returns searched projects
|
|
5114
|
-
* @param {string} projectId Id of the project
|
|
5115
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5116
|
-
* @param {*} [options] Override http request option.
|
|
5117
|
-
* @throws {RequiredError}
|
|
5118
|
-
*/
|
|
5119
|
-
searchSearchProject: (projectId, encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5120
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
5121
|
-
assertParamExists$4('searchSearchProject', 'projectId', projectId);
|
|
5122
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5123
|
-
assertParamExists$4('searchSearchProject', 'encodedSearchWord', encodedSearchWord);
|
|
5124
|
-
const localVarPath = `/Search/project/{projectId}/{encodedSearchWord}`
|
|
5125
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5126
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5127
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5128
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5129
|
-
let baseOptions;
|
|
5130
|
-
if (configuration) {
|
|
5131
|
-
baseOptions = configuration.baseOptions;
|
|
5132
|
-
}
|
|
5133
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5134
|
-
const localVarHeaderParameter = {};
|
|
5135
|
-
const localVarQueryParameter = {};
|
|
5136
|
-
// authentication JWT token required
|
|
5137
|
-
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5138
|
-
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5139
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5140
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5141
|
-
return {
|
|
5142
|
-
url: toPathString$5(localVarUrlObj),
|
|
5143
|
-
options: localVarRequestOptions,
|
|
5144
|
-
};
|
|
5145
|
-
}),
|
|
5146
|
-
};
|
|
5147
|
-
};
|
|
5148
|
-
/**
|
|
5149
|
-
* SearchApi - functional programming interface
|
|
5150
|
-
* @export
|
|
5151
|
-
*/
|
|
5152
|
-
const SearchApiFp = function (configuration) {
|
|
5153
|
-
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
5154
|
-
return {
|
|
5155
|
-
/**
|
|
5156
|
-
*
|
|
5157
|
-
* @summary Returns results for the search word
|
|
5158
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5159
|
-
* @param {*} [options] Override http request option.
|
|
5160
|
-
* @throws {RequiredError}
|
|
5161
|
-
*/
|
|
5162
|
-
searchSearch(encodedSearchWord, options) {
|
|
5163
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5164
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(encodedSearchWord, options);
|
|
5165
|
-
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5166
|
-
});
|
|
5167
|
-
},
|
|
5168
|
-
/**
|
|
5169
|
-
*
|
|
5170
|
-
* @summary Returns searched projects
|
|
5171
|
-
* @param {string} projectId Id of the project
|
|
5172
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5173
|
-
* @param {*} [options] Override http request option.
|
|
5174
|
-
* @throws {RequiredError}
|
|
5175
|
-
*/
|
|
5176
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5178
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProject(projectId, encodedSearchWord, options);
|
|
5179
|
-
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5180
|
-
});
|
|
5181
|
-
},
|
|
5182
|
-
};
|
|
5183
|
-
};
|
|
5184
|
-
/**
|
|
5185
|
-
* SearchApi - factory interface
|
|
5186
|
-
* @export
|
|
5187
|
-
*/
|
|
5188
|
-
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
5189
|
-
const localVarFp = SearchApiFp(configuration);
|
|
5190
|
-
return {
|
|
5191
|
-
/**
|
|
5192
|
-
*
|
|
5193
|
-
* @summary Returns results for the search word
|
|
5194
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5195
|
-
* @param {*} [options] Override http request option.
|
|
5196
|
-
* @throws {RequiredError}
|
|
5197
|
-
*/
|
|
5198
|
-
searchSearch(encodedSearchWord, options) {
|
|
5199
|
-
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5200
|
-
},
|
|
5201
|
-
/**
|
|
5202
|
-
*
|
|
5203
|
-
* @summary Returns searched projects
|
|
5204
|
-
* @param {string} projectId Id of the project
|
|
5205
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5206
|
-
* @param {*} [options] Override http request option.
|
|
5207
|
-
* @throws {RequiredError}
|
|
5208
|
-
*/
|
|
5209
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5210
|
-
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5211
|
-
},
|
|
5212
|
-
};
|
|
5213
|
-
};
|
|
5214
5074
|
/**
|
|
5215
5075
|
* SubProjectApi - axios parameter creator
|
|
5216
5076
|
* @export
|
|
@@ -6343,14 +6203,14 @@ const createRequestFunction$3 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
6343
6203
|
|
|
6344
6204
|
/* tslint:disable */
|
|
6345
6205
|
/**
|
|
6346
|
-
*
|
|
6206
|
+
* SearchApi - axios parameter creator
|
|
6347
6207
|
* @export
|
|
6348
6208
|
*/
|
|
6349
|
-
const
|
|
6209
|
+
const SearchApiAxiosParamCreator = function (configuration) {
|
|
6350
6210
|
return {
|
|
6351
6211
|
/**
|
|
6352
6212
|
*
|
|
6353
|
-
* @summary Search
|
|
6213
|
+
* @summary Search
|
|
6354
6214
|
* @param {string} [query] Elasticsearch query
|
|
6355
6215
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6356
6216
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6358,8 +6218,8 @@ const SemanticSearchApiAxiosParamCreator = function (configuration) {
|
|
|
6358
6218
|
* @param {*} [options] Override http request option.
|
|
6359
6219
|
* @throws {RequiredError}
|
|
6360
6220
|
*/
|
|
6361
|
-
|
|
6362
|
-
const localVarPath = `/
|
|
6221
|
+
searchSearch: (query, user, adv, languages, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6222
|
+
const localVarPath = `/Search`;
|
|
6363
6223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6364
6224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$3);
|
|
6365
6225
|
let baseOptions;
|
|
@@ -6394,15 +6254,15 @@ const SemanticSearchApiAxiosParamCreator = function (configuration) {
|
|
|
6394
6254
|
};
|
|
6395
6255
|
};
|
|
6396
6256
|
/**
|
|
6397
|
-
*
|
|
6257
|
+
* SearchApi - functional programming interface
|
|
6398
6258
|
* @export
|
|
6399
6259
|
*/
|
|
6400
|
-
const
|
|
6401
|
-
const localVarAxiosParamCreator =
|
|
6260
|
+
const SearchApiFp = function (configuration) {
|
|
6261
|
+
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
6402
6262
|
return {
|
|
6403
6263
|
/**
|
|
6404
6264
|
*
|
|
6405
|
-
* @summary Search
|
|
6265
|
+
* @summary Search
|
|
6406
6266
|
* @param {string} [query] Elasticsearch query
|
|
6407
6267
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6408
6268
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6410,24 +6270,24 @@ const SemanticSearchApiFp = function (configuration) {
|
|
|
6410
6270
|
* @param {*} [options] Override http request option.
|
|
6411
6271
|
* @throws {RequiredError}
|
|
6412
6272
|
*/
|
|
6413
|
-
|
|
6273
|
+
searchSearch(query, user, adv, languages, options) {
|
|
6414
6274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6415
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(query, user, adv, languages, options);
|
|
6416
6276
|
return createRequestFunction$3(localVarAxiosArgs, axios, BASE_PATH$3, configuration);
|
|
6417
6277
|
});
|
|
6418
6278
|
},
|
|
6419
6279
|
};
|
|
6420
6280
|
};
|
|
6421
6281
|
/**
|
|
6422
|
-
*
|
|
6282
|
+
* SearchApi - factory interface
|
|
6423
6283
|
* @export
|
|
6424
6284
|
*/
|
|
6425
|
-
const
|
|
6426
|
-
const localVarFp =
|
|
6285
|
+
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
6286
|
+
const localVarFp = SearchApiFp(configuration);
|
|
6427
6287
|
return {
|
|
6428
6288
|
/**
|
|
6429
6289
|
*
|
|
6430
|
-
* @summary Search
|
|
6290
|
+
* @summary Search
|
|
6431
6291
|
* @param {string} [query] Elasticsearch query
|
|
6432
6292
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6433
6293
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6435,8 +6295,8 @@ const SemanticSearchApiFactory = function (configuration, basePath, axios) {
|
|
|
6435
6295
|
* @param {*} [options] Override http request option.
|
|
6436
6296
|
* @throws {RequiredError}
|
|
6437
6297
|
*/
|
|
6438
|
-
|
|
6439
|
-
return localVarFp.
|
|
6298
|
+
searchSearch(query, user, adv, languages, options) {
|
|
6299
|
+
return localVarFp.searchSearch(query, user, adv, languages, options).then((request) => request(axios, basePath));
|
|
6440
6300
|
},
|
|
6441
6301
|
};
|
|
6442
6302
|
};
|
|
@@ -7906,8 +7766,7 @@ function implementations(axios) {
|
|
|
7906
7766
|
ResourceQuotaApi: ResourceQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
7907
7767
|
ResourceTypeApi: ResourceTypeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
7908
7768
|
RoleApi: RoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7909
|
-
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.
|
|
7910
|
-
SemanticSearchApi: SemanticSearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
7769
|
+
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
7911
7770
|
SubProjectApi: SubProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7912
7771
|
TitleApi: TitleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
7913
7772
|
TokenApi: TokenApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Token', axios),
|
|
@@ -7974,7 +7833,6 @@ const ResourceQuotaApi = apis.ResourceQuotaApi;
|
|
|
7974
7833
|
const ResourceTypeApi = apis.ResourceTypeApi;
|
|
7975
7834
|
const RoleApi = apis.RoleApi;
|
|
7976
7835
|
const SearchApi = apis.SearchApi;
|
|
7977
|
-
const SemanticSearchApi = apis.SemanticSearchApi;
|
|
7978
7836
|
const SubProjectApi = apis.SubProjectApi;
|
|
7979
7837
|
const TitleApi = apis.TitleApi;
|
|
7980
7838
|
const TokenApi = apis.TokenApi;
|
|
@@ -7983,5 +7841,5 @@ const TreeApi = apis.TreeApi;
|
|
|
7983
7841
|
const UserApi = apis.UserApi;
|
|
7984
7842
|
const VisibilityApi = apis.VisibilityApi;
|
|
7985
7843
|
|
|
7986
|
-
export { AdminApi, BlobApi, ContactChangeApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, ProjectApi, ProjectQuotaApi, ProjectRoleApi, ResourceApi, ResourceQuotaApi, ResourceTypeApi, RoleApi, SearchApi,
|
|
7844
|
+
export { AdminApi, BlobApi, ContactChangeApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, ProjectApi, ProjectQuotaApi, ProjectRoleApi, ResourceApi, ResourceQuotaApi, ResourceTypeApi, RoleApi, SearchApi, SubProjectApi, TOSApi, TitleApi, TokenApi, TreeApi, UserApi, VisibilityApi, apis as default };
|
|
7987
7845
|
//# sourceMappingURL=index.js.map
|