Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit def3f29

Browse files
committed
(Again) build dist and tag
1 parent 232e6da commit def3f29

File tree

8 files changed

+25
-15
lines changed

8 files changed

+25
-15
lines changed

dist/apisearch.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Repository/HttpRepository.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,14 @@ export declare class HttpRepository extends Repository {
131131
/**
132132
* Click
133133
*
134-
* @param {Item} item
134+
* @param {string} app_id
135+
* @param {string} index_id
136+
* @param {string} item_id
135137
* @param {string} user_id
136138
*
137139
* @return {Promise<void>}
138140
*/
139-
click(item: Item, user_id?: string): Promise<void>;
141+
click(app_id: string, index_id: string, item_id: string, user_id?: string): Promise<void>;
140142
/**
141143
* Get query values
142144
*

lib/Repository/HttpRepository.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,14 @@ var HttpRepository = /** @class */ (function (_super) {
362362
/**
363363
* Click
364364
*
365-
* @param {Item} item
365+
* @param {string} app_id
366+
* @param {string} index_id
367+
* @param {string} item_id
366368
* @param {string} user_id
367369
*
368370
* @return {Promise<void>}
369371
*/
370-
HttpRepository.prototype.click = function (item, user_id) {
372+
HttpRepository.prototype.click = function (app_id, index_id, item_id, user_id) {
371373
return tslib_1.__awaiter(this, void 0, void 0, function () {
372374
var parameters, response_11;
373375
return tslib_1.__generator(this, function (_a) {
@@ -380,7 +382,9 @@ var HttpRepository = /** @class */ (function (_super) {
380382
_a.label = 1;
381383
case 1:
382384
_a.trys.push([1, 3, , 4]);
383-
return [4 /*yield*/, this.httpClient.get("/" + item.getAppUUID().composedUUID() + "/indices/" + item.getIndexUUID().composedUUID() + "/items/" + item.getUUID().composedUUID() + '/click', "post", this.getCredentials(), parameters, {})];
385+
return [4 /*yield*/, this.httpClient.get("/" + app_id + "/indices/" + index_id + "/items/" + item_id + '/click', "post", {
386+
token: this.token
387+
}, parameters, {})];
384388
case 2:
385389
_a.sent();
386390
return [3 /*break*/, 4];

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apisearch",
3-
"version": "0.2.27",
3+
"version": "0.2.28",
44
"description": "Javascript client for Apisearch.",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)