Skip to content

Commit 36a0dd0

Browse files
committed
[sc-11931] increase version 1.1.0
1 parent 30a0497 commit 36a0dd0

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,16 @@ callbackFn = function (response) {
532532
client.putSentimentClick('conversation_id', 'sentiment_value');
533533
```
534534

535+
## POST API
536+
:exclamation: POST API is not fully supported. If you need to use some methods in the library, please contact our support.
537+
538+
#### Fetch AI answers
539+
540+
```js
541+
// default method: "GET"
542+
client.setApiMethod('POST');
543+
```
544+
535545
## Indexing API
536546

537547
With the Indexing API, you can fetch, create, update, and delete single documents or batches of

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "addsearch-js-client",
3-
"version": "1.0.5",
3+
"version": "1.1.0",
44
"description": "AddSearch API JavaScript client",
55
"repository": {
66
"type": "git",

src/apifetch.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ const executeApiFetch: ExecuteApiFetch = function (
184184
requestPayloadObject = {
185185
...requestPayloadObject,
186186
language: settings?.lang,
187-
// fuzzy: fuzzy !== true && fuzzy !== false ? fuzzy : JSON.stringify(fuzzy),
188-
fuzzy: fuzzy,
187+
fuzzy: fuzzy !== true && fuzzy !== false ? fuzzy : JSON.stringify(fuzzy),
189188
collectAnalytics: settings?.collectAnalytics,
190189
postfixWildcard: settings?.postfixWildcard,
191190
categories: settings?.categories ? settings?.categories.split(',') : undefined,

0 commit comments

Comments
 (0)