ch-admin-api-client-typescript 4.8.5 → 4.8.7-test
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/lib/api.d.ts +10 -8
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +7 -13
- package/package.json +1 -1
package/lib/api.js
CHANGED
|
@@ -35730,11 +35730,10 @@ var SearchApiAxiosParamCreator = function (configuration) {
|
|
|
35730
35730
|
*
|
|
35731
35731
|
* @summary RecreateIndex
|
|
35732
35732
|
* @param {SearchIndexType} [searchIndexType]
|
|
35733
|
-
* @param {object} [body]
|
|
35734
35733
|
* @param {*} [options] Override http request option.
|
|
35735
35734
|
* @throws {RequiredError}
|
|
35736
35735
|
*/
|
|
35737
|
-
apiV1SearchRecreatePost: function (searchIndexType,
|
|
35736
|
+
apiV1SearchRecreatePost: function (searchIndexType, options) {
|
|
35738
35737
|
if (options === void 0) { options = {}; }
|
|
35739
35738
|
return __awaiter(_this, void 0, void 0, function () {
|
|
35740
35739
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -35759,11 +35758,9 @@ var SearchApiAxiosParamCreator = function (configuration) {
|
|
|
35759
35758
|
if (searchIndexType !== undefined) {
|
|
35760
35759
|
localVarQueryParameter['searchIndexType'] = searchIndexType;
|
|
35761
35760
|
}
|
|
35762
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35763
35761
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
35764
35762
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35765
35763
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35766
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
35767
35764
|
return [2 /*return*/, {
|
|
35768
35765
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
35769
35766
|
options: localVarRequestOptions,
|
|
@@ -35786,16 +35783,15 @@ var SearchApiFp = function (configuration) {
|
|
|
35786
35783
|
*
|
|
35787
35784
|
* @summary RecreateIndex
|
|
35788
35785
|
* @param {SearchIndexType} [searchIndexType]
|
|
35789
|
-
* @param {object} [body]
|
|
35790
35786
|
* @param {*} [options] Override http request option.
|
|
35791
35787
|
* @throws {RequiredError}
|
|
35792
35788
|
*/
|
|
35793
|
-
apiV1SearchRecreatePost: function (searchIndexType,
|
|
35789
|
+
apiV1SearchRecreatePost: function (searchIndexType, options) {
|
|
35794
35790
|
return __awaiter(this, void 0, void 0, function () {
|
|
35795
35791
|
var localVarAxiosArgs;
|
|
35796
35792
|
return __generator(this, function (_a) {
|
|
35797
35793
|
switch (_a.label) {
|
|
35798
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType,
|
|
35794
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType, options)];
|
|
35799
35795
|
case 1:
|
|
35800
35796
|
localVarAxiosArgs = _a.sent();
|
|
35801
35797
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -35817,12 +35813,11 @@ var SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
35817
35813
|
*
|
|
35818
35814
|
* @summary RecreateIndex
|
|
35819
35815
|
* @param {SearchIndexType} [searchIndexType]
|
|
35820
|
-
* @param {object} [body]
|
|
35821
35816
|
* @param {*} [options] Override http request option.
|
|
35822
35817
|
* @throws {RequiredError}
|
|
35823
35818
|
*/
|
|
35824
|
-
apiV1SearchRecreatePost: function (searchIndexType,
|
|
35825
|
-
return localVarFp.apiV1SearchRecreatePost(searchIndexType,
|
|
35819
|
+
apiV1SearchRecreatePost: function (searchIndexType, options) {
|
|
35820
|
+
return localVarFp.apiV1SearchRecreatePost(searchIndexType, options).then(function (request) { return request(axios, basePath); });
|
|
35826
35821
|
},
|
|
35827
35822
|
};
|
|
35828
35823
|
};
|
|
@@ -35842,14 +35837,13 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
35842
35837
|
*
|
|
35843
35838
|
* @summary RecreateIndex
|
|
35844
35839
|
* @param {SearchIndexType} [searchIndexType]
|
|
35845
|
-
* @param {object} [body]
|
|
35846
35840
|
* @param {*} [options] Override http request option.
|
|
35847
35841
|
* @throws {RequiredError}
|
|
35848
35842
|
* @memberof SearchApi
|
|
35849
35843
|
*/
|
|
35850
|
-
SearchApi.prototype.apiV1SearchRecreatePost = function (searchIndexType,
|
|
35844
|
+
SearchApi.prototype.apiV1SearchRecreatePost = function (searchIndexType, options) {
|
|
35851
35845
|
var _this = this;
|
|
35852
|
-
return (0, exports.SearchApiFp)(this.configuration).apiV1SearchRecreatePost(searchIndexType,
|
|
35846
|
+
return (0, exports.SearchApiFp)(this.configuration).apiV1SearchRecreatePost(searchIndexType, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
35853
35847
|
};
|
|
35854
35848
|
return SearchApi;
|
|
35855
35849
|
}(base_1.BaseAPI));
|