Skip to content

Commit 37b3ac2

Browse files
committed
Regenerated client
1 parent e352180 commit 37b3ac2

21 files changed

+532
-38
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ docs/GeoDistance.md
1919
docs/GeoDistanceLocationAnchor.md
2020
docs/Highlight.md
2121
docs/HighlightFieldOption.md
22+
docs/HitsHits.md
2223
docs/IndexApi.md
2324
docs/InsertDocumentRequest.md
2425
docs/Join.md
@@ -40,6 +41,7 @@ docs/SearchRequest.md
4041
docs/SearchResponse.md
4142
docs/SearchResponseHits.md
4243
docs/SourceRules.md
44+
docs/SqlObjResponse.md
4345
docs/SqlResponse.md
4446
docs/SuccessResponse.md
4547
docs/UpdateDocumentRequest.md
@@ -69,6 +71,7 @@ src/model/GeoDistance.js
6971
src/model/GeoDistanceLocationAnchor.js
7072
src/model/Highlight.js
7173
src/model/HighlightFieldOption.js
74+
src/model/HitsHits.js
7275
src/model/InsertDocumentRequest.js
7376
src/model/Join.js
7477
src/model/JoinCond.js
@@ -88,6 +91,7 @@ src/model/SearchRequest.js
8891
src/model/SearchResponse.js
8992
src/model/SearchResponseHits.js
9093
src/model/SourceRules.js
94+
src/model/SqlObjResponse.js
9195
src/model/SqlResponse.js
9296
src/model/SuccessResponse.js
9397
src/model/UpdateDocumentRequest.js
@@ -111,6 +115,7 @@ test/model/GeoDistance.spec.js
111115
test/model/GeoDistanceLocationAnchor.spec.js
112116
test/model/Highlight.spec.js
113117
test/model/HighlightFieldOption.spec.js
118+
test/model/HitsHits.spec.js
114119
test/model/InsertDocumentRequest.spec.js
115120
test/model/Join.spec.js
116121
test/model/JoinCond.spec.js
@@ -130,6 +135,7 @@ test/model/SearchRequest.spec.js
130135
test/model/SearchResponse.spec.js
131136
test/model/SearchResponseHits.spec.js
132137
test/model/SourceRules.spec.js
138+
test/model/SqlObjResponse.spec.js
133139
test/model/SqlResponse.spec.js
134140
test/model/SuccessResponse.spec.js
135141
test/model/UpdateDocumentRequest.spec.js

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Class | Method | HTTP request | Description
104104
- [Manticoresearch.GeoDistanceLocationAnchor](docs/GeoDistanceLocationAnchor.md)
105105
- [Manticoresearch.Highlight](docs/Highlight.md)
106106
- [Manticoresearch.HighlightFieldOption](docs/HighlightFieldOption.md)
107+
- [Manticoresearch.HitsHits](docs/HitsHits.md)
107108
- [Manticoresearch.InsertDocumentRequest](docs/InsertDocumentRequest.md)
108109
- [Manticoresearch.Join](docs/Join.md)
109110
- [Manticoresearch.JoinCond](docs/JoinCond.md)
@@ -123,6 +124,7 @@ Class | Method | HTTP request | Description
123124
- [Manticoresearch.SearchResponse](docs/SearchResponse.md)
124125
- [Manticoresearch.SearchResponseHits](docs/SearchResponseHits.md)
125126
- [Manticoresearch.SourceRules](docs/SourceRules.md)
127+
- [Manticoresearch.SqlObjResponse](docs/SqlObjResponse.md)
126128
- [Manticoresearch.SqlResponse](docs/SqlResponse.md)
127129
- [Manticoresearch.SuccessResponse](docs/SuccessResponse.md)
128130
- [Manticoresearch.UpdateDocumentRequest](docs/UpdateDocumentRequest.md)

docs/HitsHits.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Manticoresearch.HitsHits
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **Number** | The ID of the matched document | [optional]
8+
**score** | **Number** | The score of the matched document | [optional]
9+
**source** | **Object** | The source data of the matched document | [optional]
10+
**knnDist** | **Number** | The knn distance of the matched document returned for knn queries | [optional]
11+
**highlight** | **Object** | The highlighting-related data of the matched document | [optional]
12+
**table** | **String** | The table name of the matched document returned for percolate queries | [optional]
13+
**type** | **String** | The type of the matched document returned for percolate queries | [optional]
14+
**fields** | **Object** | The percolate-related fields of the matched document returned for percolate queries | [optional]
15+
16+

docs/SearchResponseHits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**maxScore** | **Number** | Maximum score among the matched documents | [optional]
88
**total** | **Number** | Total number of matched documents | [optional]
99
**totalRelation** | **String** | Indicates whether the total number of hits is accurate or an estimate | [optional]
10-
**hits** | **[Object]** | Array of hit objects, each representing a matched document | [optional]
10+
**hits** | [**[HitsHits]**](HitsHits.md) | Array of hit objects, each representing a matched document | [optional]
1111

1212

docs/SqlObjResponse.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Manticoresearch.SqlObjResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**hits** | **Object** | |
8+
9+

docs/SqlResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**hits** | **Object** | |
78

89

src/api/IndexApi.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class IndexApi {
4545

4646
/**
4747
* Bulk table operations
48-
* Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON. Each operation object needs to be serialized to JSON and separated by endline (\\n). An example of raw input: ``` {\"insert\": {\"table\": \"movies\", \"doc\": {\"plot\": \"A secret team goes to North Pole\", \"rating\": 9.5, \"language\": [2, 3], \"title\": \"This is an older movie\", \"lon\": 51.99, \"meta\": {\"keywords\":[\"travel\",\"ice\"],\"genre\":[\"adventure\"]}, \"year\": 1950, \"lat\": 60.4, \"advise\": \"PG-13\"}}} \\n {\"delete\": {\"table\": \"movies\",\"id\":700}} ``` Responds with an object telling whenever any errors occured and an array with status for each operation: ``` { 'items': [ { 'update':{'table':'products','_id':1,'result':'updated'} }, { 'update':{'table':'products','_id':2,'result':'updated'} } ], 'errors':false } ```
48+
* Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON. Each operation object needs to be serialized to JSON and separated by endline (\\n). An example of raw input: ``` {\"insert\": {\"table\": \"movies\", \"doc\": {\"plot\": \"A secret team goes to North Pole\", \"rating\": 9.5, \"language\": [2, 3], \"title\": \"This is an older movie\", \"lon\": 51.99, \"meta\": {\"keywords\":[\"travel\",\"ice\"],\"genre\":[\"adventure\"]}, \"year\": 1950, \"lat\": 60.4, \"advise\": \"PG-13\"}}} \\n {\"delete\": {\"table\": \"movies\",\"id\":700}} ``` Responds with an object telling whenever any errors occured and an array with status for each operation: ``` { 'items': [ { 'update':{'table':'products','id':1,'result':'updated'} }, { 'update':{'table':'products','id':2,'result':'updated'} } ], 'errors':false } ```
4949
* @param {String} body
5050
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BulkResponse} and HTTP response
5151
*/
@@ -78,7 +78,7 @@ export default class IndexApi {
7878

7979
/**
8080
* Bulk table operations
81-
* Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON. Each operation object needs to be serialized to JSON and separated by endline (\\n). An example of raw input: ``` {\"insert\": {\"table\": \"movies\", \"doc\": {\"plot\": \"A secret team goes to North Pole\", \"rating\": 9.5, \"language\": [2, 3], \"title\": \"This is an older movie\", \"lon\": 51.99, \"meta\": {\"keywords\":[\"travel\",\"ice\"],\"genre\":[\"adventure\"]}, \"year\": 1950, \"lat\": 60.4, \"advise\": \"PG-13\"}}} \\n {\"delete\": {\"table\": \"movies\",\"id\":700}} ``` Responds with an object telling whenever any errors occured and an array with status for each operation: ``` { 'items': [ { 'update':{'table':'products','_id':1,'result':'updated'} }, { 'update':{'table':'products','_id':2,'result':'updated'} } ], 'errors':false } ```
81+
* Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON. Each operation object needs to be serialized to JSON and separated by endline (\\n). An example of raw input: ``` {\"insert\": {\"table\": \"movies\", \"doc\": {\"plot\": \"A secret team goes to North Pole\", \"rating\": 9.5, \"language\": [2, 3], \"title\": \"This is an older movie\", \"lon\": 51.99, \"meta\": {\"keywords\":[\"travel\",\"ice\"],\"genre\":[\"adventure\"]}, \"year\": 1950, \"lat\": 60.4, \"advise\": \"PG-13\"}}} \\n {\"delete\": {\"table\": \"movies\",\"id\":700}} ``` Responds with an object telling whenever any errors occured and an array with status for each operation: ``` { 'items': [ { 'update':{'table':'products','id':1,'result':'updated'} }, { 'update':{'table':'products','id':2,'result':'updated'} } ], 'errors':false } ```
8282
* @param {String} body
8383
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BulkResponse}
8484
*/
@@ -139,7 +139,7 @@ export default class IndexApi {
139139

140140
/**
141141
* Create a new document in a table
142-
* Insert a document. Expects an object like: ``` { 'table':'movies', 'id':701, 'doc': { 'title':'This is an old movie', 'plot':'A secret team goes to North Pole', 'year':1950, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` The document id can also be missing, in which case an autogenerated one will be used: ``` { 'table':'movies', 'doc': { 'title':'This is a new movie', 'plot':'A secret team goes to North Pole', 'year':2020, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` It responds with an object in format: ``` {'table':'products','_id':701,'created':true,'result':'created','status':201} ```
142+
* Insert a document. Expects an object like: ``` { 'table':'movies', 'id':701, 'doc': { 'title':'This is an old movie', 'plot':'A secret team goes to North Pole', 'year':1950, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` The document id can also be missing, in which case an autogenerated one will be used: ``` { 'table':'movies', 'doc': { 'title':'This is a new movie', 'plot':'A secret team goes to North Pole', 'year':2020, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` It responds with an object in format: ``` {'table':'products','id':701,'created':true,'result':'created','status':201} ```
143143
* @param {module:model/InsertDocumentRequest} insertDocumentRequest
144144
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SuccessResponse} and HTTP response
145145
*/
@@ -172,7 +172,7 @@ export default class IndexApi {
172172

173173
/**
174174
* Create a new document in a table
175-
* Insert a document. Expects an object like: ``` { 'table':'movies', 'id':701, 'doc': { 'title':'This is an old movie', 'plot':'A secret team goes to North Pole', 'year':1950, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` The document id can also be missing, in which case an autogenerated one will be used: ``` { 'table':'movies', 'doc': { 'title':'This is a new movie', 'plot':'A secret team goes to North Pole', 'year':2020, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` It responds with an object in format: ``` {'table':'products','_id':701,'created':true,'result':'created','status':201} ```
175+
* Insert a document. Expects an object like: ``` { 'table':'movies', 'id':701, 'doc': { 'title':'This is an old movie', 'plot':'A secret team goes to North Pole', 'year':1950, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` The document id can also be missing, in which case an autogenerated one will be used: ``` { 'table':'movies', 'doc': { 'title':'This is a new movie', 'plot':'A secret team goes to North Pole', 'year':2020, 'rating':9.5, 'lat':60.4, 'lon':51.99, 'advise':'PG-13', 'meta':'{\"keywords\":{\"travel\",\"ice\"},\"genre\":{\"adventure\"}}', 'language':[2,3] } } ``` It responds with an object in format: ``` {'table':'products','id':701,'created':true,'result':'created','status':201} ```
176176
* @param {module:model/InsertDocumentRequest} insertDocumentRequest
177177
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SuccessResponse}
178178
*/
@@ -247,7 +247,7 @@ export default class IndexApi {
247247

248248
/**
249249
* Replace new document in a table
250-
* Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','_id':1,'created':false,'result':'updated','status':200} ```
250+
* Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','id':1,'created':false,'result':'updated','status':200} ```
251251
* @param {module:model/InsertDocumentRequest} insertDocumentRequest
252252
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SuccessResponse} and HTTP response
253253
*/
@@ -280,7 +280,7 @@ export default class IndexApi {
280280

281281
/**
282282
* Replace new document in a table
283-
* Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','_id':1,'created':false,'result':'updated','status':200} ```
283+
* Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','id':1,'created':false,'result':'updated','status':200} ```
284284
* @param {module:model/InsertDocumentRequest} insertDocumentRequest
285285
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SuccessResponse}
286286
*/

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import GeoDistance from './model/GeoDistance';
2929
import GeoDistanceLocationAnchor from './model/GeoDistanceLocationAnchor';
3030
import Highlight from './model/Highlight';
3131
import HighlightFieldOption from './model/HighlightFieldOption';
32+
import HitsHits from './model/HitsHits';
3233
import InsertDocumentRequest from './model/InsertDocumentRequest';
3334
import Join from './model/Join';
3435
import JoinCond from './model/JoinCond';
@@ -48,6 +49,7 @@ import SearchRequest from './model/SearchRequest';
4849
import SearchResponse from './model/SearchResponse';
4950
import SearchResponseHits from './model/SearchResponseHits';
5051
import SourceRules from './model/SourceRules';
52+
import SqlObjResponse from './model/SqlObjResponse';
5153
import SqlResponse from './model/SqlResponse';
5254
import SuccessResponse from './model/SuccessResponse';
5355
import UpdateDocumentRequest from './model/UpdateDocumentRequest';
@@ -191,6 +193,12 @@ export {
191193
*/
192194
HighlightFieldOption,
193195

196+
/**
197+
* The HitsHits model constructor.
198+
* @property {module:model/HitsHits}
199+
*/
200+
HitsHits,
201+
194202
/**
195203
* The InsertDocumentRequest model constructor.
196204
* @property {module:model/InsertDocumentRequest}
@@ -305,6 +313,12 @@ export {
305313
*/
306314
SourceRules,
307315

316+
/**
317+
* The SqlObjResponse model constructor.
318+
* @property {module:model/SqlObjResponse}
319+
*/
320+
SqlObjResponse,
321+
308322
/**
309323
* The SqlResponse model constructor.
310324
* @property {module:model/SqlResponse}

src/model/DeleteResponse.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class DeleteResponse {
5454
if (data.hasOwnProperty('deleted')) {
5555
obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Number');
5656
}
57-
if (data.hasOwnProperty('_id')) {
58-
obj['_id'] = ApiClient.convertToType(data['_id'], 'Number');
57+
if (data.hasOwnProperty('id')) {
58+
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
5959
}
6060
if (data.hasOwnProperty('found')) {
6161
obj['found'] = ApiClient.convertToType(data['found'], 'Boolean');
@@ -104,9 +104,9 @@ DeleteResponse.prototype['deleted'] = undefined;
104104

105105
/**
106106
* The ID of the deleted document. If multiple documents are deleted, the ID of the first deleted document is returned
107-
* @member {Number} _id
107+
* @member {Number} id
108108
*/
109-
DeleteResponse.prototype['_id'] = undefined;
109+
DeleteResponse.prototype['id'] = undefined;
110110

111111
/**
112112
* Indicates whether any documents to be deleted were found

0 commit comments

Comments
 (0)