Skip to content

Commit 93cd32b

Browse files
committed
Regenerated the client
1 parent f6f934e commit 93cd32b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+56
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "manticoresearch-dev",
3-
"version": "9.0.0-dev",
3+
"version": "8.1.1-dev",
44
"description": "Сlient for Manticore Search. ",
55
"license": "MIT",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { JSONParse } from 'json-with-bigint';
1818

1919
/**
2020
* @module ApiClient
21-
* @version 9.0.0
21+
* @version 8.1.1
2222
*/
2323

2424
/**
@@ -55,7 +55,7 @@ class ApiClient {
5555
* @default {}
5656
*/
5757
this.defaultHeaders = {
58-
'User-Agent': 'OpenAPI-Generator/9.0.0/Javascript'
58+
'User-Agent': 'OpenAPI-Generator/8.1.1/Javascript'
5959
};
6060

6161
/**
@@ -360,7 +360,7 @@ class ApiClient {
360360
// Use json-with-bigint for parsing json responses otherwise rely on SuperAgent
361361
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
362362
var data;
363-
if (returnType === Object || typeof returnType === 'object') {
363+
if (returnType === Object || typeof returnType === 'object' || typeof returnType === 'function') {
364364
data = JSONParse(response.text);
365365
} else {
366366
data = response.body;
@@ -543,7 +543,7 @@ class ApiClient {
543543
case 'Integer':
544544
return parseInt(data, 10);
545545
case 'Number':
546-
return parseFloat(data);
546+
return Number(data) === data ? parseFloat(data) : data;
547547
case 'String':
548548
return String(data);
549549
case 'Date':

src/api/IndexApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import UpdateResponse from '../model/UpdateResponse';
2626
/**
2727
* Index service.
2828
* @module api/IndexApi
29-
* @version 9.0.0
29+
* @version 8.1.1
3030
*/
3131
export default class IndexApi {
3232

src/api/SearchApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import SearchResponse from '../model/SearchResponse';
2222
/**
2323
* Search service.
2424
* @module api/SearchApi
25-
* @version 9.0.0
25+
* @version 8.1.1
2626
*/
2727
export default class SearchApi {
2828

src/api/UtilsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import SqlResponse from '../model/SqlResponse';
1919
/**
2020
* Utils service.
2121
* @module api/UtilsApi
22-
* @version 9.0.0
22+
* @version 8.1.1
2323
*/
2424
export default class UtilsApi {
2525

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import UtilsApi from './api/UtilsApi';
9292
* </pre>
9393
* </p>
9494
* @module index
95-
* @version 9.0.0
95+
* @version 8.1.1
9696
*/
9797
export {
9898
/**

src/model/AggComposite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import AggCompositeSource from './AggCompositeSource';
1717
/**
1818
* The AggComposite model module.
1919
* @module model/AggComposite
20-
* @version 9.0.0
20+
* @version 8.1.1
2121
*/
2222
class AggComposite {
2323
/**

src/model/AggCompositeSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import AggCompositeTerm from './AggCompositeTerm';
1717
/**
1818
* The AggCompositeSource model module.
1919
* @module model/AggCompositeSource
20-
* @version 9.0.0
20+
* @version 8.1.1
2121
*/
2222
class AggCompositeSource {
2323
/**

src/model/AggCompositeTerm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The AggCompositeTerm model module.
1818
* @module model/AggCompositeTerm
19-
* @version 9.0.0
19+
* @version 8.1.1
2020
*/
2121
class AggCompositeTerm {
2222
/**

0 commit comments

Comments
 (0)