coveo.analytics 2.23.6 → 2.23.8
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/dist/coveoua.browser.js +1 -1
- package/dist/coveoua.browser.js.map +1 -1
- package/dist/coveoua.debug.js +869 -209
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/client/analytics.d.ts +18 -5
- package/dist/definitions/client/noopAnalytics.d.ts +7 -2
- package/dist/definitions/events.d.ts +8 -0
- package/dist/definitions/insight/insightClient.d.ts +2 -0
- package/dist/definitions/searchPage/searchPageClient.d.ts +75 -77
- package/dist/definitions/searchPage/searchPageEvents.d.ts +3 -1
- package/dist/library.es.js +374 -142
- package/dist/library.js +869 -209
- package/dist/react-native.es.js +374 -142
- package/package.json +1 -1
- package/src/client/analytics.ts +75 -16
- package/src/client/noopAnalytics.ts +27 -1
- package/src/events.ts +8 -0
- package/src/insight/insightClient.spec.ts +44 -0
- package/src/insight/insightClient.ts +26 -0
- package/src/searchPage/searchPageClient.spec.ts +176 -143
- package/src/searchPage/searchPageClient.ts +227 -205
- package/src/searchPage/searchPageEvents.ts +9 -0
package/dist/coveoua.debug.js
CHANGED
|
@@ -1319,13 +1319,14 @@
|
|
|
1319
1319
|
});
|
|
1320
1320
|
});
|
|
1321
1321
|
};
|
|
1322
|
-
CoveoAnalyticsClient.prototype.
|
|
1322
|
+
CoveoAnalyticsClient.prototype.makeEvent = function (eventType) {
|
|
1323
1323
|
var payload = [];
|
|
1324
1324
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1325
1325
|
payload[_i - 1] = arguments[_i];
|
|
1326
1326
|
}
|
|
1327
1327
|
return __awaiter(this, void 0, void 0, function () {
|
|
1328
1328
|
var _a, eventTypeToSend, parametersToSend, payloadToSend;
|
|
1329
|
+
var _this = this;
|
|
1329
1330
|
return __generator(this, function (_b) {
|
|
1330
1331
|
switch (_b.label) {
|
|
1331
1332
|
case 0:
|
|
@@ -1336,18 +1337,43 @@
|
|
|
1336
1337
|
return [4, this.resolvePayloadForParameters(eventType, parametersToSend)];
|
|
1337
1338
|
case 2:
|
|
1338
1339
|
payloadToSend = _b.sent();
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1340
|
+
return [2, {
|
|
1341
|
+
eventType: eventTypeToSend,
|
|
1342
|
+
payload: payloadToSend,
|
|
1343
|
+
log: function (remainingPayload) { return __awaiter(_this, void 0, void 0, function () {
|
|
1344
|
+
return __generator(this, function (_a) {
|
|
1345
|
+
switch (_a.label) {
|
|
1346
|
+
case 0:
|
|
1347
|
+
this.bufferedRequests.push({
|
|
1348
|
+
eventType: eventTypeToSend,
|
|
1349
|
+
payload: __assign(__assign({}, payloadToSend), remainingPayload),
|
|
1350
|
+
});
|
|
1351
|
+
return [4, Promise.all(this.afterSendHooks.map(function (hook) { return hook(eventType, __assign(__assign({}, parametersToSend), remainingPayload)); }))];
|
|
1352
|
+
case 1:
|
|
1353
|
+
_a.sent();
|
|
1354
|
+
return [4, this.deferExecution()];
|
|
1355
|
+
case 2:
|
|
1356
|
+
_a.sent();
|
|
1357
|
+
return [4, this.sendFromBufferWithFetch()];
|
|
1358
|
+
case 3: return [2, (_a.sent())];
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
}); },
|
|
1362
|
+
}];
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
});
|
|
1366
|
+
};
|
|
1367
|
+
CoveoAnalyticsClient.prototype.sendEvent = function (eventType) {
|
|
1368
|
+
var payload = [];
|
|
1369
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1370
|
+
payload[_i - 1] = arguments[_i];
|
|
1371
|
+
}
|
|
1372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1373
|
+
return __generator(this, function (_a) {
|
|
1374
|
+
switch (_a.label) {
|
|
1375
|
+
case 0: return [4, this.makeEvent.apply(this, __spreadArrays([eventType], payload))];
|
|
1376
|
+
case 1: return [2, (_a.sent()).log({})];
|
|
1351
1377
|
}
|
|
1352
1378
|
});
|
|
1353
1379
|
});
|
|
@@ -1376,31 +1402,74 @@
|
|
|
1376
1402
|
CoveoAnalyticsClient.prototype.deleteHttpOnlyVisitorId = function () {
|
|
1377
1403
|
this.runtime.client.deleteHttpCookieVisitorId();
|
|
1378
1404
|
};
|
|
1379
|
-
CoveoAnalyticsClient.prototype.
|
|
1405
|
+
CoveoAnalyticsClient.prototype.makeSearchEvent = function (request) {
|
|
1380
1406
|
return __awaiter(this, void 0, void 0, function () {
|
|
1381
1407
|
return __generator(this, function (_a) {
|
|
1382
|
-
return [2, this.
|
|
1408
|
+
return [2, this.makeEvent(EventType.search, request)];
|
|
1409
|
+
});
|
|
1410
|
+
});
|
|
1411
|
+
};
|
|
1412
|
+
CoveoAnalyticsClient.prototype.sendSearchEvent = function (_a) {
|
|
1413
|
+
var searchQueryUid = _a.searchQueryUid, preparedRequest = __rest(_a, ["searchQueryUid"]);
|
|
1414
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1415
|
+
return __generator(this, function (_b) {
|
|
1416
|
+
switch (_b.label) {
|
|
1417
|
+
case 0: return [4, this.makeSearchEvent(preparedRequest)];
|
|
1418
|
+
case 1: return [2, (_b.sent()).log({ searchQueryUid: searchQueryUid })];
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1423
|
+
CoveoAnalyticsClient.prototype.makeClickEvent = function (request) {
|
|
1424
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1425
|
+
return __generator(this, function (_a) {
|
|
1426
|
+
return [2, this.makeEvent(EventType.click, request)];
|
|
1427
|
+
});
|
|
1428
|
+
});
|
|
1429
|
+
};
|
|
1430
|
+
CoveoAnalyticsClient.prototype.sendClickEvent = function (_a) {
|
|
1431
|
+
var searchQueryUid = _a.searchQueryUid, preparedRequest = __rest(_a, ["searchQueryUid"]);
|
|
1432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1433
|
+
return __generator(this, function (_b) {
|
|
1434
|
+
switch (_b.label) {
|
|
1435
|
+
case 0: return [4, this.makeClickEvent(preparedRequest)];
|
|
1436
|
+
case 1: return [2, (_b.sent()).log({ searchQueryUid: searchQueryUid })];
|
|
1437
|
+
}
|
|
1383
1438
|
});
|
|
1384
1439
|
});
|
|
1385
1440
|
};
|
|
1386
|
-
CoveoAnalyticsClient.prototype.
|
|
1441
|
+
CoveoAnalyticsClient.prototype.makeCustomEvent = function (request) {
|
|
1387
1442
|
return __awaiter(this, void 0, void 0, function () {
|
|
1388
1443
|
return __generator(this, function (_a) {
|
|
1389
|
-
return [2, this.
|
|
1444
|
+
return [2, this.makeEvent(EventType.custom, request)];
|
|
1445
|
+
});
|
|
1446
|
+
});
|
|
1447
|
+
};
|
|
1448
|
+
CoveoAnalyticsClient.prototype.sendCustomEvent = function (_a) {
|
|
1449
|
+
var lastSearchQueryUid = _a.lastSearchQueryUid, preparedRequest = __rest(_a, ["lastSearchQueryUid"]);
|
|
1450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1451
|
+
return __generator(this, function (_b) {
|
|
1452
|
+
switch (_b.label) {
|
|
1453
|
+
case 0: return [4, this.makeCustomEvent(preparedRequest)];
|
|
1454
|
+
case 1: return [2, (_b.sent()).log({ lastSearchQueryUid: lastSearchQueryUid })];
|
|
1455
|
+
}
|
|
1390
1456
|
});
|
|
1391
1457
|
});
|
|
1392
1458
|
};
|
|
1393
|
-
CoveoAnalyticsClient.prototype.
|
|
1459
|
+
CoveoAnalyticsClient.prototype.makeViewEvent = function (request) {
|
|
1394
1460
|
return __awaiter(this, void 0, void 0, function () {
|
|
1395
1461
|
return __generator(this, function (_a) {
|
|
1396
|
-
return [2, this.
|
|
1462
|
+
return [2, this.makeEvent(EventType.view, request)];
|
|
1397
1463
|
});
|
|
1398
1464
|
});
|
|
1399
1465
|
};
|
|
1400
1466
|
CoveoAnalyticsClient.prototype.sendViewEvent = function (request) {
|
|
1401
1467
|
return __awaiter(this, void 0, void 0, function () {
|
|
1402
1468
|
return __generator(this, function (_a) {
|
|
1403
|
-
|
|
1469
|
+
switch (_a.label) {
|
|
1470
|
+
case 0: return [4, this.makeViewEvent(request)];
|
|
1471
|
+
case 1: return [2, (_a.sent()).log({})];
|
|
1472
|
+
}
|
|
1404
1473
|
});
|
|
1405
1474
|
});
|
|
1406
1475
|
};
|
|
@@ -2109,6 +2178,8 @@
|
|
|
2109
2178
|
SearchPageEvents["showMoreFoldedResults"] = "showMoreFoldedResults";
|
|
2110
2179
|
SearchPageEvents["showLessFoldedResults"] = "showLessFoldedResults";
|
|
2111
2180
|
SearchPageEvents["copyToClipboard"] = "copyToClipboard";
|
|
2181
|
+
SearchPageEvents["caseAttach"] = "caseAttach";
|
|
2182
|
+
SearchPageEvents["caseDetach"] = "caseDetach";
|
|
2112
2183
|
})(SearchPageEvents || (SearchPageEvents = {}));
|
|
2113
2184
|
var CustomEventsTypes = (_a = {},
|
|
2114
2185
|
_a[SearchPageEvents.triggerNotify] = 'queryPipelineTriggers',
|
|
@@ -2144,6 +2215,7 @@
|
|
|
2144
2215
|
_a[SearchPageEvents.clearRecentResults] = 'recentlyClickedDocuments',
|
|
2145
2216
|
_a[SearchPageEvents.showLessFoldedResults] = 'folding',
|
|
2146
2217
|
_a[InsightEvents.expandToFullUI] = 'interface',
|
|
2218
|
+
_a[SearchPageEvents.caseDetach] = 'case',
|
|
2147
2219
|
_a);
|
|
2148
2220
|
|
|
2149
2221
|
var NoopAnalytics = (function () {
|
|
@@ -2157,18 +2229,33 @@
|
|
|
2157
2229
|
NoopAnalytics.prototype.getParameters = function () {
|
|
2158
2230
|
return Promise.resolve();
|
|
2159
2231
|
};
|
|
2232
|
+
NoopAnalytics.prototype.makeEvent = function (eventType) {
|
|
2233
|
+
return Promise.resolve({ eventType: eventType, payload: null, log: function () { return Promise.resolve(); } });
|
|
2234
|
+
};
|
|
2160
2235
|
NoopAnalytics.prototype.sendEvent = function () {
|
|
2161
2236
|
return Promise.resolve();
|
|
2162
2237
|
};
|
|
2238
|
+
NoopAnalytics.prototype.makeSearchEvent = function () {
|
|
2239
|
+
return this.makeEvent(EventType.search);
|
|
2240
|
+
};
|
|
2163
2241
|
NoopAnalytics.prototype.sendSearchEvent = function () {
|
|
2164
2242
|
return Promise.resolve();
|
|
2165
2243
|
};
|
|
2244
|
+
NoopAnalytics.prototype.makeClickEvent = function () {
|
|
2245
|
+
return this.makeEvent(EventType.click);
|
|
2246
|
+
};
|
|
2166
2247
|
NoopAnalytics.prototype.sendClickEvent = function () {
|
|
2167
2248
|
return Promise.resolve();
|
|
2168
2249
|
};
|
|
2250
|
+
NoopAnalytics.prototype.makeCustomEvent = function () {
|
|
2251
|
+
return this.makeEvent(EventType.custom);
|
|
2252
|
+
};
|
|
2169
2253
|
NoopAnalytics.prototype.sendCustomEvent = function () {
|
|
2170
2254
|
return Promise.resolve();
|
|
2171
2255
|
};
|
|
2256
|
+
NoopAnalytics.prototype.makeViewEvent = function () {
|
|
2257
|
+
return this.makeEvent(EventType.view);
|
|
2258
|
+
};
|
|
2172
2259
|
NoopAnalytics.prototype.sendViewEvent = function () {
|
|
2173
2260
|
return Promise.resolve();
|
|
2174
2261
|
};
|
|
@@ -2240,388 +2327,826 @@
|
|
|
2240
2327
|
return this.makeSearchEvent(SearchPageEvents.interfaceLoad);
|
|
2241
2328
|
};
|
|
2242
2329
|
CoveoSearchPageClient.prototype.logInterfaceLoad = function () {
|
|
2243
|
-
return this
|
|
2330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2331
|
+
return __generator(this, function (_a) {
|
|
2332
|
+
switch (_a.label) {
|
|
2333
|
+
case 0: return [4, this.makeInterfaceLoad()];
|
|
2334
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2335
|
+
}
|
|
2336
|
+
});
|
|
2337
|
+
});
|
|
2244
2338
|
};
|
|
2245
2339
|
CoveoSearchPageClient.prototype.makeRecommendationInterfaceLoad = function () {
|
|
2246
2340
|
return this.makeSearchEvent(SearchPageEvents.recommendationInterfaceLoad);
|
|
2247
2341
|
};
|
|
2248
2342
|
CoveoSearchPageClient.prototype.logRecommendationInterfaceLoad = function () {
|
|
2249
|
-
return this
|
|
2343
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2344
|
+
return __generator(this, function (_a) {
|
|
2345
|
+
switch (_a.label) {
|
|
2346
|
+
case 0: return [4, this.makeRecommendationInterfaceLoad()];
|
|
2347
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2348
|
+
}
|
|
2349
|
+
});
|
|
2350
|
+
});
|
|
2250
2351
|
};
|
|
2251
2352
|
CoveoSearchPageClient.prototype.makeRecommendation = function () {
|
|
2252
2353
|
return this.makeCustomEvent(SearchPageEvents.recommendation);
|
|
2253
2354
|
};
|
|
2254
2355
|
CoveoSearchPageClient.prototype.logRecommendation = function () {
|
|
2255
|
-
return this
|
|
2356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2357
|
+
return __generator(this, function (_a) {
|
|
2358
|
+
switch (_a.label) {
|
|
2359
|
+
case 0: return [4, this.makeRecommendation()];
|
|
2360
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2361
|
+
}
|
|
2362
|
+
});
|
|
2363
|
+
});
|
|
2256
2364
|
};
|
|
2257
2365
|
CoveoSearchPageClient.prototype.makeRecommendationOpen = function (info, identifier) {
|
|
2258
2366
|
return this.makeClickEvent(SearchPageEvents.recommendationOpen, info, identifier);
|
|
2259
2367
|
};
|
|
2260
2368
|
CoveoSearchPageClient.prototype.logRecommendationOpen = function (info, identifier) {
|
|
2261
|
-
return this
|
|
2369
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2370
|
+
return __generator(this, function (_a) {
|
|
2371
|
+
switch (_a.label) {
|
|
2372
|
+
case 0: return [4, this.makeRecommendationOpen(info, identifier)];
|
|
2373
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
});
|
|
2262
2377
|
};
|
|
2263
2378
|
CoveoSearchPageClient.prototype.makeStaticFilterClearAll = function (meta) {
|
|
2264
2379
|
return this.makeSearchEvent(SearchPageEvents.staticFilterClearAll, meta);
|
|
2265
2380
|
};
|
|
2266
2381
|
CoveoSearchPageClient.prototype.logStaticFilterClearAll = function (meta) {
|
|
2267
|
-
return this
|
|
2382
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2383
|
+
return __generator(this, function (_a) {
|
|
2384
|
+
switch (_a.label) {
|
|
2385
|
+
case 0: return [4, this.makeStaticFilterClearAll(meta)];
|
|
2386
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
});
|
|
2268
2390
|
};
|
|
2269
2391
|
CoveoSearchPageClient.prototype.makeStaticFilterSelect = function (meta) {
|
|
2270
2392
|
return this.makeSearchEvent(SearchPageEvents.staticFilterSelect, meta);
|
|
2271
2393
|
};
|
|
2272
2394
|
CoveoSearchPageClient.prototype.logStaticFilterSelect = function (meta) {
|
|
2273
|
-
return this
|
|
2395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2396
|
+
return __generator(this, function (_a) {
|
|
2397
|
+
switch (_a.label) {
|
|
2398
|
+
case 0: return [4, this.makeStaticFilterSelect(meta)];
|
|
2399
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2400
|
+
}
|
|
2401
|
+
});
|
|
2402
|
+
});
|
|
2274
2403
|
};
|
|
2275
2404
|
CoveoSearchPageClient.prototype.makeStaticFilterDeselect = function (meta) {
|
|
2276
2405
|
return this.makeSearchEvent(SearchPageEvents.staticFilterDeselect, meta);
|
|
2277
2406
|
};
|
|
2278
2407
|
CoveoSearchPageClient.prototype.logStaticFilterDeselect = function (meta) {
|
|
2279
|
-
return this
|
|
2408
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2409
|
+
return __generator(this, function (_a) {
|
|
2410
|
+
switch (_a.label) {
|
|
2411
|
+
case 0: return [4, this.makeStaticFilterDeselect(meta)];
|
|
2412
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2413
|
+
}
|
|
2414
|
+
});
|
|
2415
|
+
});
|
|
2280
2416
|
};
|
|
2281
2417
|
CoveoSearchPageClient.prototype.makeFetchMoreResults = function () {
|
|
2282
2418
|
return this.makeCustomEvent(SearchPageEvents.pagerScrolling, { type: 'getMoreResults' });
|
|
2283
2419
|
};
|
|
2284
2420
|
CoveoSearchPageClient.prototype.logFetchMoreResults = function () {
|
|
2285
|
-
return this
|
|
2421
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2422
|
+
return __generator(this, function (_a) {
|
|
2423
|
+
switch (_a.label) {
|
|
2424
|
+
case 0: return [4, this.makeFetchMoreResults()];
|
|
2425
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2426
|
+
}
|
|
2427
|
+
});
|
|
2428
|
+
});
|
|
2286
2429
|
};
|
|
2287
2430
|
CoveoSearchPageClient.prototype.makeInterfaceChange = function (metadata) {
|
|
2288
2431
|
return this.makeSearchEvent(SearchPageEvents.interfaceChange, metadata);
|
|
2289
2432
|
};
|
|
2290
2433
|
CoveoSearchPageClient.prototype.logInterfaceChange = function (metadata) {
|
|
2291
|
-
return this
|
|
2434
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2435
|
+
return __generator(this, function (_a) {
|
|
2436
|
+
switch (_a.label) {
|
|
2437
|
+
case 0: return [4, this.makeInterfaceChange(metadata)];
|
|
2438
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2439
|
+
}
|
|
2440
|
+
});
|
|
2441
|
+
});
|
|
2292
2442
|
};
|
|
2293
2443
|
CoveoSearchPageClient.prototype.makeDidYouMeanAutomatic = function () {
|
|
2294
2444
|
return this.makeSearchEvent(SearchPageEvents.didyoumeanAutomatic);
|
|
2295
2445
|
};
|
|
2296
2446
|
CoveoSearchPageClient.prototype.logDidYouMeanAutomatic = function () {
|
|
2297
|
-
return this
|
|
2447
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2448
|
+
return __generator(this, function (_a) {
|
|
2449
|
+
switch (_a.label) {
|
|
2450
|
+
case 0: return [4, this.makeDidYouMeanAutomatic()];
|
|
2451
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2452
|
+
}
|
|
2453
|
+
});
|
|
2454
|
+
});
|
|
2298
2455
|
};
|
|
2299
2456
|
CoveoSearchPageClient.prototype.makeDidYouMeanClick = function () {
|
|
2300
2457
|
return this.makeSearchEvent(SearchPageEvents.didyoumeanClick);
|
|
2301
2458
|
};
|
|
2302
2459
|
CoveoSearchPageClient.prototype.logDidYouMeanClick = function () {
|
|
2303
|
-
return this
|
|
2460
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2461
|
+
return __generator(this, function (_a) {
|
|
2462
|
+
switch (_a.label) {
|
|
2463
|
+
case 0: return [4, this.makeDidYouMeanClick()];
|
|
2464
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2465
|
+
}
|
|
2466
|
+
});
|
|
2467
|
+
});
|
|
2304
2468
|
};
|
|
2305
2469
|
CoveoSearchPageClient.prototype.makeResultsSort = function (metadata) {
|
|
2306
2470
|
return this.makeSearchEvent(SearchPageEvents.resultsSort, metadata);
|
|
2307
2471
|
};
|
|
2308
2472
|
CoveoSearchPageClient.prototype.logResultsSort = function (metadata) {
|
|
2309
|
-
return this
|
|
2473
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2474
|
+
return __generator(this, function (_a) {
|
|
2475
|
+
switch (_a.label) {
|
|
2476
|
+
case 0: return [4, this.makeResultsSort(metadata)];
|
|
2477
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2478
|
+
}
|
|
2479
|
+
});
|
|
2480
|
+
});
|
|
2310
2481
|
};
|
|
2311
2482
|
CoveoSearchPageClient.prototype.makeSearchboxSubmit = function () {
|
|
2312
2483
|
return this.makeSearchEvent(SearchPageEvents.searchboxSubmit);
|
|
2313
2484
|
};
|
|
2314
2485
|
CoveoSearchPageClient.prototype.logSearchboxSubmit = function () {
|
|
2315
|
-
return this
|
|
2486
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2487
|
+
return __generator(this, function (_a) {
|
|
2488
|
+
switch (_a.label) {
|
|
2489
|
+
case 0: return [4, this.makeSearchboxSubmit()];
|
|
2490
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2491
|
+
}
|
|
2492
|
+
});
|
|
2493
|
+
});
|
|
2316
2494
|
};
|
|
2317
2495
|
CoveoSearchPageClient.prototype.makeSearchboxClear = function () {
|
|
2318
2496
|
return this.makeSearchEvent(SearchPageEvents.searchboxClear);
|
|
2319
2497
|
};
|
|
2320
2498
|
CoveoSearchPageClient.prototype.logSearchboxClear = function () {
|
|
2321
|
-
return this
|
|
2499
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2500
|
+
return __generator(this, function (_a) {
|
|
2501
|
+
switch (_a.label) {
|
|
2502
|
+
case 0: return [4, this.makeSearchboxClear()];
|
|
2503
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2504
|
+
}
|
|
2505
|
+
});
|
|
2506
|
+
});
|
|
2322
2507
|
};
|
|
2323
2508
|
CoveoSearchPageClient.prototype.makeSearchboxAsYouType = function () {
|
|
2324
2509
|
return this.makeSearchEvent(SearchPageEvents.searchboxAsYouType);
|
|
2325
2510
|
};
|
|
2326
2511
|
CoveoSearchPageClient.prototype.logSearchboxAsYouType = function () {
|
|
2327
|
-
return this
|
|
2512
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2513
|
+
return __generator(this, function (_a) {
|
|
2514
|
+
switch (_a.label) {
|
|
2515
|
+
case 0: return [4, this.makeSearchboxAsYouType()];
|
|
2516
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2517
|
+
}
|
|
2518
|
+
});
|
|
2519
|
+
});
|
|
2328
2520
|
};
|
|
2329
2521
|
CoveoSearchPageClient.prototype.makeBreadcrumbFacet = function (metadata) {
|
|
2330
2522
|
return this.makeSearchEvent(SearchPageEvents.breadcrumbFacet, metadata);
|
|
2331
2523
|
};
|
|
2332
2524
|
CoveoSearchPageClient.prototype.logBreadcrumbFacet = function (metadata) {
|
|
2333
|
-
return this
|
|
2525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2526
|
+
return __generator(this, function (_a) {
|
|
2527
|
+
switch (_a.label) {
|
|
2528
|
+
case 0: return [4, this.makeBreadcrumbFacet(metadata)];
|
|
2529
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2530
|
+
}
|
|
2531
|
+
});
|
|
2532
|
+
});
|
|
2334
2533
|
};
|
|
2335
2534
|
CoveoSearchPageClient.prototype.makeBreadcrumbResetAll = function () {
|
|
2336
2535
|
return this.makeSearchEvent(SearchPageEvents.breadcrumbResetAll);
|
|
2337
2536
|
};
|
|
2338
2537
|
CoveoSearchPageClient.prototype.logBreadcrumbResetAll = function () {
|
|
2339
|
-
return this
|
|
2538
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2539
|
+
return __generator(this, function (_a) {
|
|
2540
|
+
switch (_a.label) {
|
|
2541
|
+
case 0: return [4, this.makeBreadcrumbResetAll()];
|
|
2542
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2543
|
+
}
|
|
2544
|
+
});
|
|
2545
|
+
});
|
|
2340
2546
|
};
|
|
2341
2547
|
CoveoSearchPageClient.prototype.makeDocumentQuickview = function (info, identifier) {
|
|
2342
2548
|
return this.makeClickEvent(SearchPageEvents.documentQuickview, info, identifier);
|
|
2343
2549
|
};
|
|
2344
2550
|
CoveoSearchPageClient.prototype.logDocumentQuickview = function (info, identifier) {
|
|
2345
|
-
return this
|
|
2551
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2552
|
+
return __generator(this, function (_a) {
|
|
2553
|
+
switch (_a.label) {
|
|
2554
|
+
case 0: return [4, this.makeDocumentQuickview(info, identifier)];
|
|
2555
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2556
|
+
}
|
|
2557
|
+
});
|
|
2558
|
+
});
|
|
2346
2559
|
};
|
|
2347
2560
|
CoveoSearchPageClient.prototype.makeDocumentOpen = function (info, identifier) {
|
|
2348
2561
|
return this.makeClickEvent(SearchPageEvents.documentOpen, info, identifier);
|
|
2349
2562
|
};
|
|
2350
2563
|
CoveoSearchPageClient.prototype.logDocumentOpen = function (info, identifier) {
|
|
2351
|
-
return this
|
|
2564
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2565
|
+
return __generator(this, function (_a) {
|
|
2566
|
+
switch (_a.label) {
|
|
2567
|
+
case 0: return [4, this.makeDocumentOpen(info, identifier)];
|
|
2568
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2569
|
+
}
|
|
2570
|
+
});
|
|
2571
|
+
});
|
|
2352
2572
|
};
|
|
2353
2573
|
CoveoSearchPageClient.prototype.makeOmniboxAnalytics = function (meta) {
|
|
2354
2574
|
return this.makeSearchEvent(SearchPageEvents.omniboxAnalytics, formatOmniboxMetadata(meta));
|
|
2355
2575
|
};
|
|
2356
2576
|
CoveoSearchPageClient.prototype.logOmniboxAnalytics = function (meta) {
|
|
2357
|
-
return this
|
|
2577
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2578
|
+
return __generator(this, function (_a) {
|
|
2579
|
+
switch (_a.label) {
|
|
2580
|
+
case 0: return [4, this.makeOmniboxAnalytics(meta)];
|
|
2581
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2582
|
+
}
|
|
2583
|
+
});
|
|
2584
|
+
});
|
|
2358
2585
|
};
|
|
2359
2586
|
CoveoSearchPageClient.prototype.makeOmniboxFromLink = function (meta) {
|
|
2360
2587
|
return this.makeSearchEvent(SearchPageEvents.omniboxFromLink, formatOmniboxMetadata(meta));
|
|
2361
2588
|
};
|
|
2362
2589
|
CoveoSearchPageClient.prototype.logOmniboxFromLink = function (meta) {
|
|
2363
|
-
return this
|
|
2590
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2591
|
+
return __generator(this, function (_a) {
|
|
2592
|
+
switch (_a.label) {
|
|
2593
|
+
case 0: return [4, this.makeOmniboxFromLink(meta)];
|
|
2594
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2595
|
+
}
|
|
2596
|
+
});
|
|
2597
|
+
});
|
|
2364
2598
|
};
|
|
2365
2599
|
CoveoSearchPageClient.prototype.makeSearchFromLink = function () {
|
|
2366
2600
|
return this.makeSearchEvent(SearchPageEvents.searchFromLink);
|
|
2367
2601
|
};
|
|
2368
2602
|
CoveoSearchPageClient.prototype.logSearchFromLink = function () {
|
|
2369
|
-
return this
|
|
2603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2604
|
+
return __generator(this, function (_a) {
|
|
2605
|
+
switch (_a.label) {
|
|
2606
|
+
case 0: return [4, this.makeSearchFromLink()];
|
|
2607
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
});
|
|
2370
2611
|
};
|
|
2371
2612
|
CoveoSearchPageClient.prototype.makeTriggerNotify = function (meta) {
|
|
2372
2613
|
return this.makeCustomEvent(SearchPageEvents.triggerNotify, meta);
|
|
2373
2614
|
};
|
|
2374
2615
|
CoveoSearchPageClient.prototype.logTriggerNotify = function (meta) {
|
|
2375
|
-
return this
|
|
2616
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2617
|
+
return __generator(this, function (_a) {
|
|
2618
|
+
switch (_a.label) {
|
|
2619
|
+
case 0: return [4, this.makeTriggerNotify(meta)];
|
|
2620
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
});
|
|
2376
2624
|
};
|
|
2377
2625
|
CoveoSearchPageClient.prototype.makeTriggerExecute = function (meta) {
|
|
2378
2626
|
return this.makeCustomEvent(SearchPageEvents.triggerExecute, meta);
|
|
2379
2627
|
};
|
|
2380
2628
|
CoveoSearchPageClient.prototype.logTriggerExecute = function (meta) {
|
|
2381
|
-
return this
|
|
2629
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2630
|
+
return __generator(this, function (_a) {
|
|
2631
|
+
switch (_a.label) {
|
|
2632
|
+
case 0: return [4, this.makeTriggerExecute(meta)];
|
|
2633
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2634
|
+
}
|
|
2635
|
+
});
|
|
2636
|
+
});
|
|
2382
2637
|
};
|
|
2383
2638
|
CoveoSearchPageClient.prototype.makeTriggerQuery = function () {
|
|
2384
2639
|
return this.makeCustomEvent(SearchPageEvents.triggerQuery, { query: this.provider.getSearchEventRequestPayload().queryText }, 'queryPipelineTriggers');
|
|
2385
2640
|
};
|
|
2386
2641
|
CoveoSearchPageClient.prototype.logTriggerQuery = function () {
|
|
2387
|
-
return this
|
|
2642
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2643
|
+
return __generator(this, function (_a) {
|
|
2644
|
+
switch (_a.label) {
|
|
2645
|
+
case 0: return [4, this.makeTriggerQuery()];
|
|
2646
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2647
|
+
}
|
|
2648
|
+
});
|
|
2649
|
+
});
|
|
2388
2650
|
};
|
|
2389
2651
|
CoveoSearchPageClient.prototype.makeUndoTriggerQuery = function (meta) {
|
|
2390
2652
|
return this.makeSearchEvent(SearchPageEvents.undoTriggerQuery, meta);
|
|
2391
2653
|
};
|
|
2392
2654
|
CoveoSearchPageClient.prototype.logUndoTriggerQuery = function (meta) {
|
|
2393
|
-
return this
|
|
2655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2656
|
+
return __generator(this, function (_a) {
|
|
2657
|
+
switch (_a.label) {
|
|
2658
|
+
case 0: return [4, this.makeUndoTriggerQuery(meta)];
|
|
2659
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2660
|
+
}
|
|
2661
|
+
});
|
|
2662
|
+
});
|
|
2394
2663
|
};
|
|
2395
2664
|
CoveoSearchPageClient.prototype.makeTriggerRedirect = function (meta) {
|
|
2396
2665
|
return this.makeCustomEvent(SearchPageEvents.triggerRedirect, __assign(__assign({}, meta), { query: this.provider.getSearchEventRequestPayload().queryText }));
|
|
2397
2666
|
};
|
|
2398
2667
|
CoveoSearchPageClient.prototype.logTriggerRedirect = function (meta) {
|
|
2399
|
-
return this
|
|
2668
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2669
|
+
return __generator(this, function (_a) {
|
|
2670
|
+
switch (_a.label) {
|
|
2671
|
+
case 0: return [4, this.makeTriggerRedirect(meta)];
|
|
2672
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2673
|
+
}
|
|
2674
|
+
});
|
|
2675
|
+
});
|
|
2400
2676
|
};
|
|
2401
2677
|
CoveoSearchPageClient.prototype.makePagerResize = function (meta) {
|
|
2402
2678
|
return this.makeCustomEvent(SearchPageEvents.pagerResize, meta);
|
|
2403
2679
|
};
|
|
2404
2680
|
CoveoSearchPageClient.prototype.logPagerResize = function (meta) {
|
|
2405
|
-
return this
|
|
2681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2682
|
+
return __generator(this, function (_a) {
|
|
2683
|
+
switch (_a.label) {
|
|
2684
|
+
case 0: return [4, this.makePagerResize(meta)];
|
|
2685
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2686
|
+
}
|
|
2687
|
+
});
|
|
2688
|
+
});
|
|
2406
2689
|
};
|
|
2407
2690
|
CoveoSearchPageClient.prototype.makePagerNumber = function (meta) {
|
|
2408
2691
|
return this.makeCustomEvent(SearchPageEvents.pagerNumber, meta);
|
|
2409
2692
|
};
|
|
2410
2693
|
CoveoSearchPageClient.prototype.logPagerNumber = function (meta) {
|
|
2411
|
-
return this
|
|
2694
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2695
|
+
return __generator(this, function (_a) {
|
|
2696
|
+
switch (_a.label) {
|
|
2697
|
+
case 0: return [4, this.makePagerNumber(meta)];
|
|
2698
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2699
|
+
}
|
|
2700
|
+
});
|
|
2701
|
+
});
|
|
2412
2702
|
};
|
|
2413
2703
|
CoveoSearchPageClient.prototype.makePagerNext = function (meta) {
|
|
2414
2704
|
return this.makeCustomEvent(SearchPageEvents.pagerNext, meta);
|
|
2415
2705
|
};
|
|
2416
2706
|
CoveoSearchPageClient.prototype.logPagerNext = function (meta) {
|
|
2417
|
-
return this
|
|
2707
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2708
|
+
return __generator(this, function (_a) {
|
|
2709
|
+
switch (_a.label) {
|
|
2710
|
+
case 0: return [4, this.makePagerNext(meta)];
|
|
2711
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2712
|
+
}
|
|
2713
|
+
});
|
|
2714
|
+
});
|
|
2418
2715
|
};
|
|
2419
2716
|
CoveoSearchPageClient.prototype.makePagerPrevious = function (meta) {
|
|
2420
2717
|
return this.makeCustomEvent(SearchPageEvents.pagerPrevious, meta);
|
|
2421
2718
|
};
|
|
2422
2719
|
CoveoSearchPageClient.prototype.logPagerPrevious = function (meta) {
|
|
2423
|
-
return this
|
|
2720
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2721
|
+
return __generator(this, function (_a) {
|
|
2722
|
+
switch (_a.label) {
|
|
2723
|
+
case 0: return [4, this.makePagerPrevious(meta)];
|
|
2724
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2725
|
+
}
|
|
2726
|
+
});
|
|
2727
|
+
});
|
|
2424
2728
|
};
|
|
2425
2729
|
CoveoSearchPageClient.prototype.makePagerScrolling = function () {
|
|
2426
2730
|
return this.makeCustomEvent(SearchPageEvents.pagerScrolling);
|
|
2427
2731
|
};
|
|
2428
2732
|
CoveoSearchPageClient.prototype.logPagerScrolling = function () {
|
|
2429
|
-
return this
|
|
2733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2734
|
+
return __generator(this, function (_a) {
|
|
2735
|
+
switch (_a.label) {
|
|
2736
|
+
case 0: return [4, this.makePagerScrolling()];
|
|
2737
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2738
|
+
}
|
|
2739
|
+
});
|
|
2740
|
+
});
|
|
2430
2741
|
};
|
|
2431
2742
|
CoveoSearchPageClient.prototype.makeFacetClearAll = function (meta) {
|
|
2432
2743
|
return this.makeSearchEvent(SearchPageEvents.facetClearAll, meta);
|
|
2433
2744
|
};
|
|
2434
2745
|
CoveoSearchPageClient.prototype.logFacetClearAll = function (meta) {
|
|
2435
|
-
return this
|
|
2746
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2747
|
+
return __generator(this, function (_a) {
|
|
2748
|
+
switch (_a.label) {
|
|
2749
|
+
case 0: return [4, this.makeFacetClearAll(meta)];
|
|
2750
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2751
|
+
}
|
|
2752
|
+
});
|
|
2753
|
+
});
|
|
2436
2754
|
};
|
|
2437
2755
|
CoveoSearchPageClient.prototype.makeFacetSearch = function (meta) {
|
|
2438
2756
|
return this.makeSearchEvent(SearchPageEvents.facetSearch, meta);
|
|
2439
2757
|
};
|
|
2440
2758
|
CoveoSearchPageClient.prototype.logFacetSearch = function (meta) {
|
|
2441
|
-
return this
|
|
2759
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2760
|
+
return __generator(this, function (_a) {
|
|
2761
|
+
switch (_a.label) {
|
|
2762
|
+
case 0: return [4, this.makeFacetSearch(meta)];
|
|
2763
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2764
|
+
}
|
|
2765
|
+
});
|
|
2766
|
+
});
|
|
2442
2767
|
};
|
|
2443
2768
|
CoveoSearchPageClient.prototype.makeFacetSelect = function (meta) {
|
|
2444
2769
|
return this.makeSearchEvent(SearchPageEvents.facetSelect, meta);
|
|
2445
2770
|
};
|
|
2446
2771
|
CoveoSearchPageClient.prototype.logFacetSelect = function (meta) {
|
|
2447
|
-
return this
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2772
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2773
|
+
return __generator(this, function (_a) {
|
|
2774
|
+
switch (_a.label) {
|
|
2775
|
+
case 0: return [4, this.makeFacetSelect(meta)];
|
|
2776
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2777
|
+
}
|
|
2778
|
+
});
|
|
2779
|
+
});
|
|
2780
|
+
};
|
|
2781
|
+
CoveoSearchPageClient.prototype.makeFacetDeselect = function (meta) {
|
|
2782
|
+
return this.makeSearchEvent(SearchPageEvents.facetDeselect, meta);
|
|
2451
2783
|
};
|
|
2452
2784
|
CoveoSearchPageClient.prototype.logFacetDeselect = function (meta) {
|
|
2453
|
-
return this
|
|
2785
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2786
|
+
return __generator(this, function (_a) {
|
|
2787
|
+
switch (_a.label) {
|
|
2788
|
+
case 0: return [4, this.makeFacetDeselect(meta)];
|
|
2789
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2790
|
+
}
|
|
2791
|
+
});
|
|
2792
|
+
});
|
|
2454
2793
|
};
|
|
2455
2794
|
CoveoSearchPageClient.prototype.makeFacetExclude = function (meta) {
|
|
2456
2795
|
return this.makeSearchEvent(SearchPageEvents.facetExclude, meta);
|
|
2457
2796
|
};
|
|
2458
2797
|
CoveoSearchPageClient.prototype.logFacetExclude = function (meta) {
|
|
2459
|
-
return this
|
|
2798
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2799
|
+
return __generator(this, function (_a) {
|
|
2800
|
+
switch (_a.label) {
|
|
2801
|
+
case 0: return [4, this.makeFacetExclude(meta)];
|
|
2802
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2803
|
+
}
|
|
2804
|
+
});
|
|
2805
|
+
});
|
|
2460
2806
|
};
|
|
2461
2807
|
CoveoSearchPageClient.prototype.makeFacetUnexclude = function (meta) {
|
|
2462
2808
|
return this.makeSearchEvent(SearchPageEvents.facetUnexclude, meta);
|
|
2463
2809
|
};
|
|
2464
2810
|
CoveoSearchPageClient.prototype.logFacetUnexclude = function (meta) {
|
|
2465
|
-
return this
|
|
2811
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2812
|
+
return __generator(this, function (_a) {
|
|
2813
|
+
switch (_a.label) {
|
|
2814
|
+
case 0: return [4, this.makeFacetUnexclude(meta)];
|
|
2815
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2816
|
+
}
|
|
2817
|
+
});
|
|
2818
|
+
});
|
|
2466
2819
|
};
|
|
2467
2820
|
CoveoSearchPageClient.prototype.makeFacetSelectAll = function (meta) {
|
|
2468
2821
|
return this.makeSearchEvent(SearchPageEvents.facetSelectAll, meta);
|
|
2469
2822
|
};
|
|
2470
2823
|
CoveoSearchPageClient.prototype.logFacetSelectAll = function (meta) {
|
|
2471
|
-
return this
|
|
2824
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2825
|
+
return __generator(this, function (_a) {
|
|
2826
|
+
switch (_a.label) {
|
|
2827
|
+
case 0: return [4, this.makeFacetSelectAll(meta)];
|
|
2828
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2829
|
+
}
|
|
2830
|
+
});
|
|
2831
|
+
});
|
|
2472
2832
|
};
|
|
2473
2833
|
CoveoSearchPageClient.prototype.makeFacetUpdateSort = function (meta) {
|
|
2474
2834
|
return this.makeSearchEvent(SearchPageEvents.facetUpdateSort, meta);
|
|
2475
2835
|
};
|
|
2476
2836
|
CoveoSearchPageClient.prototype.logFacetUpdateSort = function (meta) {
|
|
2477
|
-
return this
|
|
2837
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2838
|
+
return __generator(this, function (_a) {
|
|
2839
|
+
switch (_a.label) {
|
|
2840
|
+
case 0: return [4, this.makeFacetUpdateSort(meta)];
|
|
2841
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2842
|
+
}
|
|
2843
|
+
});
|
|
2844
|
+
});
|
|
2478
2845
|
};
|
|
2479
2846
|
CoveoSearchPageClient.prototype.makeFacetShowMore = function (meta) {
|
|
2480
2847
|
return this.makeCustomEvent(SearchPageEvents.facetShowMore, meta);
|
|
2481
2848
|
};
|
|
2482
2849
|
CoveoSearchPageClient.prototype.logFacetShowMore = function (meta) {
|
|
2483
|
-
return this
|
|
2850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2851
|
+
return __generator(this, function (_a) {
|
|
2852
|
+
switch (_a.label) {
|
|
2853
|
+
case 0: return [4, this.makeFacetShowMore(meta)];
|
|
2854
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2855
|
+
}
|
|
2856
|
+
});
|
|
2857
|
+
});
|
|
2484
2858
|
};
|
|
2485
2859
|
CoveoSearchPageClient.prototype.makeFacetShowLess = function (meta) {
|
|
2486
2860
|
return this.makeCustomEvent(SearchPageEvents.facetShowLess, meta);
|
|
2487
2861
|
};
|
|
2488
2862
|
CoveoSearchPageClient.prototype.logFacetShowLess = function (meta) {
|
|
2489
|
-
return this
|
|
2863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2864
|
+
return __generator(this, function (_a) {
|
|
2865
|
+
switch (_a.label) {
|
|
2866
|
+
case 0: return [4, this.makeFacetShowLess(meta)];
|
|
2867
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2868
|
+
}
|
|
2869
|
+
});
|
|
2870
|
+
});
|
|
2490
2871
|
};
|
|
2491
2872
|
CoveoSearchPageClient.prototype.makeQueryError = function (meta) {
|
|
2492
2873
|
return this.makeCustomEvent(SearchPageEvents.queryError, meta);
|
|
2493
2874
|
};
|
|
2494
2875
|
CoveoSearchPageClient.prototype.logQueryError = function (meta) {
|
|
2495
|
-
return this
|
|
2876
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2877
|
+
return __generator(this, function (_a) {
|
|
2878
|
+
switch (_a.label) {
|
|
2879
|
+
case 0: return [4, this.makeQueryError(meta)];
|
|
2880
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2881
|
+
}
|
|
2882
|
+
});
|
|
2883
|
+
});
|
|
2496
2884
|
};
|
|
2497
2885
|
CoveoSearchPageClient.prototype.makeQueryErrorBack = function () {
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2886
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2887
|
+
var customEventBuilder;
|
|
2888
|
+
var _this = this;
|
|
2889
|
+
return __generator(this, function (_a) {
|
|
2890
|
+
switch (_a.label) {
|
|
2891
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorBack)];
|
|
2892
|
+
case 1:
|
|
2893
|
+
customEventBuilder = _a.sent();
|
|
2894
|
+
return [2, {
|
|
2895
|
+
description: customEventBuilder.description,
|
|
2896
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2897
|
+
return __generator(this, function (_a) {
|
|
2898
|
+
switch (_a.label) {
|
|
2899
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
2900
|
+
case 1:
|
|
2901
|
+
_a.sent();
|
|
2902
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorBack)];
|
|
2903
|
+
}
|
|
2904
|
+
});
|
|
2905
|
+
}); },
|
|
2906
|
+
}];
|
|
2907
|
+
}
|
|
2908
|
+
});
|
|
2909
|
+
});
|
|
2512
2910
|
};
|
|
2513
2911
|
CoveoSearchPageClient.prototype.logQueryErrorBack = function () {
|
|
2514
|
-
return this
|
|
2912
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2913
|
+
return __generator(this, function (_a) {
|
|
2914
|
+
switch (_a.label) {
|
|
2915
|
+
case 0: return [4, this.makeQueryErrorBack()];
|
|
2916
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2917
|
+
}
|
|
2918
|
+
});
|
|
2919
|
+
});
|
|
2515
2920
|
};
|
|
2516
2921
|
CoveoSearchPageClient.prototype.makeQueryErrorRetry = function () {
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2922
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2923
|
+
var customEventBuilder;
|
|
2924
|
+
var _this = this;
|
|
2925
|
+
return __generator(this, function (_a) {
|
|
2926
|
+
switch (_a.label) {
|
|
2927
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorRetry)];
|
|
2928
|
+
case 1:
|
|
2929
|
+
customEventBuilder = _a.sent();
|
|
2930
|
+
return [2, {
|
|
2931
|
+
description: customEventBuilder.description,
|
|
2932
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2933
|
+
return __generator(this, function (_a) {
|
|
2934
|
+
switch (_a.label) {
|
|
2935
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
2936
|
+
case 1:
|
|
2937
|
+
_a.sent();
|
|
2938
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorRetry)];
|
|
2939
|
+
}
|
|
2940
|
+
});
|
|
2941
|
+
}); },
|
|
2942
|
+
}];
|
|
2943
|
+
}
|
|
2944
|
+
});
|
|
2945
|
+
});
|
|
2531
2946
|
};
|
|
2532
2947
|
CoveoSearchPageClient.prototype.logQueryErrorRetry = function () {
|
|
2533
|
-
return this
|
|
2948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2949
|
+
return __generator(this, function (_a) {
|
|
2950
|
+
switch (_a.label) {
|
|
2951
|
+
case 0: return [4, this.makeQueryErrorRetry()];
|
|
2952
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2953
|
+
}
|
|
2954
|
+
});
|
|
2955
|
+
});
|
|
2534
2956
|
};
|
|
2535
2957
|
CoveoSearchPageClient.prototype.makeQueryErrorClear = function () {
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2958
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2959
|
+
var customEventBuilder;
|
|
2960
|
+
var _this = this;
|
|
2961
|
+
return __generator(this, function (_a) {
|
|
2962
|
+
switch (_a.label) {
|
|
2963
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorClear)];
|
|
2964
|
+
case 1:
|
|
2965
|
+
customEventBuilder = _a.sent();
|
|
2966
|
+
return [2, {
|
|
2967
|
+
description: customEventBuilder.description,
|
|
2968
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2969
|
+
return __generator(this, function (_a) {
|
|
2970
|
+
switch (_a.label) {
|
|
2971
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
2972
|
+
case 1:
|
|
2973
|
+
_a.sent();
|
|
2974
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorClear)];
|
|
2975
|
+
}
|
|
2976
|
+
});
|
|
2977
|
+
}); },
|
|
2978
|
+
}];
|
|
2979
|
+
}
|
|
2980
|
+
});
|
|
2981
|
+
});
|
|
2550
2982
|
};
|
|
2551
2983
|
CoveoSearchPageClient.prototype.logQueryErrorClear = function () {
|
|
2552
|
-
return this
|
|
2984
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2985
|
+
return __generator(this, function (_a) {
|
|
2986
|
+
switch (_a.label) {
|
|
2987
|
+
case 0: return [4, this.makeQueryErrorClear()];
|
|
2988
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2989
|
+
}
|
|
2990
|
+
});
|
|
2991
|
+
});
|
|
2553
2992
|
};
|
|
2554
2993
|
CoveoSearchPageClient.prototype.makeLikeSmartSnippet = function () {
|
|
2555
2994
|
return this.makeCustomEvent(SearchPageEvents.likeSmartSnippet);
|
|
2556
2995
|
};
|
|
2557
2996
|
CoveoSearchPageClient.prototype.logLikeSmartSnippet = function () {
|
|
2558
|
-
return this
|
|
2997
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2998
|
+
return __generator(this, function (_a) {
|
|
2999
|
+
switch (_a.label) {
|
|
3000
|
+
case 0: return [4, this.makeLikeSmartSnippet()];
|
|
3001
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
3004
|
+
});
|
|
2559
3005
|
};
|
|
2560
3006
|
CoveoSearchPageClient.prototype.makeDislikeSmartSnippet = function () {
|
|
2561
3007
|
return this.makeCustomEvent(SearchPageEvents.dislikeSmartSnippet);
|
|
2562
3008
|
};
|
|
2563
3009
|
CoveoSearchPageClient.prototype.logDislikeSmartSnippet = function () {
|
|
2564
|
-
return this
|
|
3010
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3011
|
+
return __generator(this, function (_a) {
|
|
3012
|
+
switch (_a.label) {
|
|
3013
|
+
case 0: return [4, this.makeDislikeSmartSnippet()];
|
|
3014
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3015
|
+
}
|
|
3016
|
+
});
|
|
3017
|
+
});
|
|
2565
3018
|
};
|
|
2566
3019
|
CoveoSearchPageClient.prototype.makeExpandSmartSnippet = function () {
|
|
2567
3020
|
return this.makeCustomEvent(SearchPageEvents.expandSmartSnippet);
|
|
2568
3021
|
};
|
|
2569
3022
|
CoveoSearchPageClient.prototype.logExpandSmartSnippet = function () {
|
|
2570
|
-
return this
|
|
3023
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3024
|
+
return __generator(this, function (_a) {
|
|
3025
|
+
switch (_a.label) {
|
|
3026
|
+
case 0: return [4, this.makeExpandSmartSnippet()];
|
|
3027
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
3030
|
+
});
|
|
2571
3031
|
};
|
|
2572
3032
|
CoveoSearchPageClient.prototype.makeCollapseSmartSnippet = function () {
|
|
2573
3033
|
return this.makeCustomEvent(SearchPageEvents.collapseSmartSnippet);
|
|
2574
3034
|
};
|
|
2575
3035
|
CoveoSearchPageClient.prototype.logCollapseSmartSnippet = function () {
|
|
2576
|
-
return this
|
|
3036
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3037
|
+
return __generator(this, function (_a) {
|
|
3038
|
+
switch (_a.label) {
|
|
3039
|
+
case 0: return [4, this.makeCollapseSmartSnippet()];
|
|
3040
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
});
|
|
2577
3044
|
};
|
|
2578
3045
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetFeedbackModal = function () {
|
|
2579
3046
|
return this.makeCustomEvent(SearchPageEvents.openSmartSnippetFeedbackModal);
|
|
2580
3047
|
};
|
|
2581
3048
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetFeedbackModal = function () {
|
|
2582
|
-
return this
|
|
3049
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3050
|
+
return __generator(this, function (_a) {
|
|
3051
|
+
switch (_a.label) {
|
|
3052
|
+
case 0: return [4, this.makeOpenSmartSnippetFeedbackModal()];
|
|
3053
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3054
|
+
}
|
|
3055
|
+
});
|
|
3056
|
+
});
|
|
2583
3057
|
};
|
|
2584
3058
|
CoveoSearchPageClient.prototype.makeCloseSmartSnippetFeedbackModal = function () {
|
|
2585
3059
|
return this.makeCustomEvent(SearchPageEvents.closeSmartSnippetFeedbackModal);
|
|
2586
3060
|
};
|
|
2587
3061
|
CoveoSearchPageClient.prototype.logCloseSmartSnippetFeedbackModal = function () {
|
|
2588
|
-
return this
|
|
3062
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3063
|
+
return __generator(this, function (_a) {
|
|
3064
|
+
switch (_a.label) {
|
|
3065
|
+
case 0: return [4, this.makeCloseSmartSnippetFeedbackModal()];
|
|
3066
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3067
|
+
}
|
|
3068
|
+
});
|
|
3069
|
+
});
|
|
2589
3070
|
};
|
|
2590
3071
|
CoveoSearchPageClient.prototype.makeSmartSnippetFeedbackReason = function (reason, details) {
|
|
2591
3072
|
return this.makeCustomEvent(SearchPageEvents.sendSmartSnippetReason, { reason: reason, details: details });
|
|
2592
3073
|
};
|
|
2593
3074
|
CoveoSearchPageClient.prototype.logSmartSnippetFeedbackReason = function (reason, details) {
|
|
2594
|
-
return this
|
|
3075
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3076
|
+
return __generator(this, function (_a) {
|
|
3077
|
+
switch (_a.label) {
|
|
3078
|
+
case 0: return [4, this.makeSmartSnippetFeedbackReason(reason, details)];
|
|
3079
|
+
case 1: return [2, (_a.sent()).log({
|
|
3080
|
+
searchUID: this.provider.getSearchUID(),
|
|
3081
|
+
})];
|
|
3082
|
+
}
|
|
3083
|
+
});
|
|
3084
|
+
});
|
|
2595
3085
|
};
|
|
2596
3086
|
CoveoSearchPageClient.prototype.makeExpandSmartSnippetSuggestion = function (snippet) {
|
|
2597
3087
|
return this.makeCustomEvent(SearchPageEvents.expandSmartSnippetSuggestion, 'documentId' in snippet ? snippet : { documentId: snippet });
|
|
2598
3088
|
};
|
|
2599
3089
|
CoveoSearchPageClient.prototype.logExpandSmartSnippetSuggestion = function (snippet) {
|
|
2600
|
-
return this
|
|
3090
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3091
|
+
return __generator(this, function (_a) {
|
|
3092
|
+
switch (_a.label) {
|
|
3093
|
+
case 0: return [4, this.makeExpandSmartSnippetSuggestion(snippet)];
|
|
3094
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3095
|
+
}
|
|
3096
|
+
});
|
|
3097
|
+
});
|
|
2601
3098
|
};
|
|
2602
3099
|
CoveoSearchPageClient.prototype.makeCollapseSmartSnippetSuggestion = function (snippet) {
|
|
2603
3100
|
return this.makeCustomEvent(SearchPageEvents.collapseSmartSnippetSuggestion, 'documentId' in snippet ? snippet : { documentId: snippet });
|
|
2604
3101
|
};
|
|
2605
3102
|
CoveoSearchPageClient.prototype.logCollapseSmartSnippetSuggestion = function (snippet) {
|
|
2606
|
-
return this
|
|
3103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3104
|
+
return __generator(this, function (_a) {
|
|
3105
|
+
switch (_a.label) {
|
|
3106
|
+
case 0: return [4, this.makeCollapseSmartSnippetSuggestion(snippet)];
|
|
3107
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3108
|
+
}
|
|
3109
|
+
});
|
|
3110
|
+
});
|
|
2607
3111
|
};
|
|
2608
3112
|
CoveoSearchPageClient.prototype.makeShowMoreSmartSnippetSuggestion = function (snippet) {
|
|
2609
3113
|
return this.makeCustomEvent(SearchPageEvents.showMoreSmartSnippetSuggestion, snippet);
|
|
2610
3114
|
};
|
|
2611
3115
|
CoveoSearchPageClient.prototype.logShowMoreSmartSnippetSuggestion = function (snippet) {
|
|
2612
|
-
return this
|
|
3116
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3117
|
+
return __generator(this, function (_a) {
|
|
3118
|
+
switch (_a.label) {
|
|
3119
|
+
case 0: return [4, this.makeShowMoreSmartSnippetSuggestion(snippet)];
|
|
3120
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3121
|
+
}
|
|
3122
|
+
});
|
|
3123
|
+
});
|
|
2613
3124
|
};
|
|
2614
3125
|
CoveoSearchPageClient.prototype.makeShowLessSmartSnippetSuggestion = function (snippet) {
|
|
2615
3126
|
return this.makeCustomEvent(SearchPageEvents.showLessSmartSnippetSuggestion, snippet);
|
|
2616
3127
|
};
|
|
2617
3128
|
CoveoSearchPageClient.prototype.logShowLessSmartSnippetSuggestion = function (snippet) {
|
|
2618
|
-
return this
|
|
3129
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3130
|
+
return __generator(this, function (_a) {
|
|
3131
|
+
switch (_a.label) {
|
|
3132
|
+
case 0: return [4, this.makeShowLessSmartSnippetSuggestion(snippet)];
|
|
3133
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3134
|
+
}
|
|
3135
|
+
});
|
|
3136
|
+
});
|
|
2619
3137
|
};
|
|
2620
3138
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSource = function (info, identifier) {
|
|
2621
3139
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSource, info, identifier);
|
|
2622
3140
|
};
|
|
2623
3141
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSource = function (info, identifier) {
|
|
2624
|
-
return this
|
|
3142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3143
|
+
return __generator(this, function (_a) {
|
|
3144
|
+
switch (_a.label) {
|
|
3145
|
+
case 0: return [4, this.makeOpenSmartSnippetSource(info, identifier)];
|
|
3146
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3147
|
+
}
|
|
3148
|
+
});
|
|
3149
|
+
});
|
|
2625
3150
|
};
|
|
2626
3151
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSuggestionSource = function (info, snippet) {
|
|
2627
3152
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSuggestionSource, info, { contentIDKey: snippet.documentId.contentIdKey, contentIDValue: snippet.documentId.contentIdValue }, snippet);
|
|
@@ -2630,16 +3155,41 @@
|
|
|
2630
3155
|
return this.makeClickEvent(SearchPageEvents.copyToClipboard, info, identifier);
|
|
2631
3156
|
};
|
|
2632
3157
|
CoveoSearchPageClient.prototype.logCopyToClipboard = function (info, identifier) {
|
|
2633
|
-
return this
|
|
3158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3159
|
+
return __generator(this, function (_a) {
|
|
3160
|
+
switch (_a.label) {
|
|
3161
|
+
case 0: return [4, this.makeCopyToClipboard(info, identifier)];
|
|
3162
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3163
|
+
}
|
|
3164
|
+
});
|
|
3165
|
+
});
|
|
2634
3166
|
};
|
|
2635
3167
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSuggestionSource = function (info, snippet) {
|
|
2636
|
-
return this
|
|
3168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3169
|
+
return __generator(this, function (_a) {
|
|
3170
|
+
switch (_a.label) {
|
|
3171
|
+
case 0: return [4, this.makeOpenSmartSnippetSuggestionSource(info, snippet)];
|
|
3172
|
+
case 1: return [2, (_a.sent()).log({
|
|
3173
|
+
searchUID: this.provider.getSearchUID(),
|
|
3174
|
+
})];
|
|
3175
|
+
}
|
|
3176
|
+
});
|
|
3177
|
+
});
|
|
2637
3178
|
};
|
|
2638
3179
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetInlineLink = function (info, identifierAndLink) {
|
|
2639
3180
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetInlineLink, info, { contentIDKey: identifierAndLink.contentIDKey, contentIDValue: identifierAndLink.contentIDValue }, identifierAndLink);
|
|
2640
3181
|
};
|
|
2641
3182
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetInlineLink = function (info, identifierAndLink) {
|
|
2642
|
-
return this
|
|
3183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3184
|
+
return __generator(this, function (_a) {
|
|
3185
|
+
switch (_a.label) {
|
|
3186
|
+
case 0: return [4, this.makeOpenSmartSnippetInlineLink(info, identifierAndLink)];
|
|
3187
|
+
case 1: return [2, (_a.sent()).log({
|
|
3188
|
+
searchUID: this.provider.getSearchUID(),
|
|
3189
|
+
})];
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
});
|
|
2643
3193
|
};
|
|
2644
3194
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSuggestionInlineLink = function (info, snippetAndLink) {
|
|
2645
3195
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSuggestionInlineLink, info, {
|
|
@@ -2648,158 +3198,257 @@
|
|
|
2648
3198
|
}, snippetAndLink);
|
|
2649
3199
|
};
|
|
2650
3200
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSuggestionInlineLink = function (info, snippetAndLink) {
|
|
2651
|
-
return this
|
|
3201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3202
|
+
return __generator(this, function (_a) {
|
|
3203
|
+
switch (_a.label) {
|
|
3204
|
+
case 0: return [4, this.makeOpenSmartSnippetSuggestionInlineLink(info, snippetAndLink)];
|
|
3205
|
+
case 1: return [2, (_a.sent()).log({
|
|
3206
|
+
searchUID: this.provider.getSearchUID(),
|
|
3207
|
+
})];
|
|
3208
|
+
}
|
|
3209
|
+
});
|
|
3210
|
+
});
|
|
2652
3211
|
};
|
|
2653
3212
|
CoveoSearchPageClient.prototype.makeRecentQueryClick = function () {
|
|
2654
3213
|
return this.makeSearchEvent(SearchPageEvents.recentQueryClick);
|
|
2655
3214
|
};
|
|
2656
3215
|
CoveoSearchPageClient.prototype.logRecentQueryClick = function () {
|
|
2657
|
-
return this
|
|
3216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3217
|
+
return __generator(this, function (_a) {
|
|
3218
|
+
switch (_a.label) {
|
|
3219
|
+
case 0: return [4, this.makeRecentQueryClick()];
|
|
3220
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3221
|
+
}
|
|
3222
|
+
});
|
|
3223
|
+
});
|
|
2658
3224
|
};
|
|
2659
3225
|
CoveoSearchPageClient.prototype.makeClearRecentQueries = function () {
|
|
2660
3226
|
return this.makeCustomEvent(SearchPageEvents.clearRecentQueries);
|
|
2661
3227
|
};
|
|
2662
3228
|
CoveoSearchPageClient.prototype.logClearRecentQueries = function () {
|
|
2663
|
-
return this
|
|
3229
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3230
|
+
return __generator(this, function (_a) {
|
|
3231
|
+
switch (_a.label) {
|
|
3232
|
+
case 0: return [4, this.makeClearRecentQueries()];
|
|
3233
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3234
|
+
}
|
|
3235
|
+
});
|
|
3236
|
+
});
|
|
2664
3237
|
};
|
|
2665
3238
|
CoveoSearchPageClient.prototype.makeRecentResultClick = function (info, identifier) {
|
|
2666
3239
|
return this.makeCustomEvent(SearchPageEvents.recentResultClick, { info: info, identifier: identifier });
|
|
2667
3240
|
};
|
|
2668
3241
|
CoveoSearchPageClient.prototype.logRecentResultClick = function (info, identifier) {
|
|
2669
|
-
return this
|
|
3242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3243
|
+
return __generator(this, function (_a) {
|
|
3244
|
+
switch (_a.label) {
|
|
3245
|
+
case 0: return [4, this.makeRecentResultClick(info, identifier)];
|
|
3246
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3247
|
+
}
|
|
3248
|
+
});
|
|
3249
|
+
});
|
|
2670
3250
|
};
|
|
2671
3251
|
CoveoSearchPageClient.prototype.makeClearRecentResults = function () {
|
|
2672
3252
|
return this.makeCustomEvent(SearchPageEvents.clearRecentResults);
|
|
2673
3253
|
};
|
|
2674
3254
|
CoveoSearchPageClient.prototype.logClearRecentResults = function () {
|
|
2675
|
-
return this
|
|
3255
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3256
|
+
return __generator(this, function (_a) {
|
|
3257
|
+
switch (_a.label) {
|
|
3258
|
+
case 0: return [4, this.makeClearRecentResults()];
|
|
3259
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3260
|
+
}
|
|
3261
|
+
});
|
|
3262
|
+
});
|
|
2676
3263
|
};
|
|
2677
3264
|
CoveoSearchPageClient.prototype.makeNoResultsBack = function () {
|
|
2678
3265
|
return this.makeSearchEvent(SearchPageEvents.noResultsBack);
|
|
2679
3266
|
};
|
|
2680
3267
|
CoveoSearchPageClient.prototype.logNoResultsBack = function () {
|
|
2681
|
-
return this
|
|
3268
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3269
|
+
return __generator(this, function (_a) {
|
|
3270
|
+
switch (_a.label) {
|
|
3271
|
+
case 0: return [4, this.makeNoResultsBack()];
|
|
3272
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3273
|
+
}
|
|
3274
|
+
});
|
|
3275
|
+
});
|
|
2682
3276
|
};
|
|
2683
3277
|
CoveoSearchPageClient.prototype.makeShowMoreFoldedResults = function (info, identifier) {
|
|
2684
3278
|
return this.makeClickEvent(SearchPageEvents.showMoreFoldedResults, info, identifier);
|
|
2685
3279
|
};
|
|
2686
3280
|
CoveoSearchPageClient.prototype.logShowMoreFoldedResults = function (info, identifier) {
|
|
2687
|
-
return this
|
|
3281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3282
|
+
return __generator(this, function (_a) {
|
|
3283
|
+
switch (_a.label) {
|
|
3284
|
+
case 0: return [4, this.makeShowMoreFoldedResults(info, identifier)];
|
|
3285
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3286
|
+
}
|
|
3287
|
+
});
|
|
3288
|
+
});
|
|
2688
3289
|
};
|
|
2689
3290
|
CoveoSearchPageClient.prototype.makeShowLessFoldedResults = function () {
|
|
2690
3291
|
return this.makeCustomEvent(SearchPageEvents.showLessFoldedResults);
|
|
2691
3292
|
};
|
|
2692
3293
|
CoveoSearchPageClient.prototype.logShowLessFoldedResults = function () {
|
|
2693
|
-
return this
|
|
3294
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3295
|
+
return __generator(this, function (_a) {
|
|
3296
|
+
switch (_a.label) {
|
|
3297
|
+
case 0: return [4, this.makeShowLessFoldedResults()];
|
|
3298
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3299
|
+
}
|
|
3300
|
+
});
|
|
3301
|
+
});
|
|
3302
|
+
};
|
|
3303
|
+
CoveoSearchPageClient.prototype.makeEventDescription = function (preparedEvent, actionCause) {
|
|
3304
|
+
var _a;
|
|
3305
|
+
return { actionCause: actionCause, customData: (_a = preparedEvent.payload) === null || _a === void 0 ? void 0 : _a.customData };
|
|
2694
3306
|
};
|
|
2695
3307
|
CoveoSearchPageClient.prototype.makeCustomEvent = function (event, metadata, eventType) {
|
|
2696
|
-
var _this = this;
|
|
2697
3308
|
if (eventType === void 0) { eventType = CustomEventsTypes[event]; }
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
3309
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3310
|
+
var customData, request, _a, preparedEvent;
|
|
3311
|
+
return __generator(this, function (_b) {
|
|
3312
|
+
switch (_b.label) {
|
|
3313
|
+
case 0:
|
|
3314
|
+
this.coveoAnalyticsClient.getParameters;
|
|
3315
|
+
customData = __assign(__assign({}, this.provider.getBaseMetadata()), metadata);
|
|
3316
|
+
_a = [{}];
|
|
3317
|
+
return [4, this.getBaseEventRequest(customData)];
|
|
3318
|
+
case 1:
|
|
3319
|
+
request = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { eventType: eventType, eventValue: event }]);
|
|
3320
|
+
return [4, this.coveoAnalyticsClient.makeCustomEvent(request)];
|
|
3321
|
+
case 2:
|
|
3322
|
+
preparedEvent = _b.sent();
|
|
3323
|
+
return [2, {
|
|
3324
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
3325
|
+
log: function (_a) {
|
|
3326
|
+
var searchUID = _a.searchUID;
|
|
3327
|
+
return preparedEvent.log({ lastSearchQueryUid: searchUID });
|
|
3328
|
+
},
|
|
3329
|
+
}];
|
|
3330
|
+
}
|
|
3331
|
+
});
|
|
3332
|
+
});
|
|
2715
3333
|
};
|
|
2716
3334
|
CoveoSearchPageClient.prototype.logCustomEvent = function (event, metadata, eventType) {
|
|
2717
3335
|
if (eventType === void 0) { eventType = CustomEventsTypes[event]; }
|
|
2718
|
-
return this
|
|
3336
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3337
|
+
return __generator(this, function (_a) {
|
|
3338
|
+
switch (_a.label) {
|
|
3339
|
+
case 0: return [4, this.makeCustomEvent(event, metadata, eventType)];
|
|
3340
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
3341
|
+
}
|
|
3342
|
+
});
|
|
3343
|
+
});
|
|
2719
3344
|
};
|
|
2720
3345
|
CoveoSearchPageClient.prototype.makeCustomEventWithType = function (eventValue, eventType, metadata) {
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
3346
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3347
|
+
var customData, payload, _a, preparedEvent;
|
|
3348
|
+
return __generator(this, function (_b) {
|
|
3349
|
+
switch (_b.label) {
|
|
3350
|
+
case 0:
|
|
3351
|
+
customData = __assign(__assign({}, this.provider.getBaseMetadata()), metadata);
|
|
3352
|
+
_a = [{}];
|
|
3353
|
+
return [4, this.getBaseEventRequest(customData)];
|
|
3354
|
+
case 1:
|
|
3355
|
+
payload = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { eventType: eventType,
|
|
3356
|
+
eventValue: eventValue }]);
|
|
3357
|
+
return [4, this.coveoAnalyticsClient.makeCustomEvent(payload)];
|
|
3358
|
+
case 2:
|
|
3359
|
+
preparedEvent = _b.sent();
|
|
3360
|
+
return [2, {
|
|
3361
|
+
description: this.makeEventDescription(preparedEvent, eventValue),
|
|
3362
|
+
log: function (_a) {
|
|
3363
|
+
var searchUID = _a.searchUID;
|
|
3364
|
+
return preparedEvent.log({ lastSearchQueryUid: searchUID });
|
|
3365
|
+
},
|
|
3366
|
+
}];
|
|
3367
|
+
}
|
|
3368
|
+
});
|
|
3369
|
+
});
|
|
2740
3370
|
};
|
|
2741
3371
|
CoveoSearchPageClient.prototype.logCustomEventWithType = function (eventValue, eventType, metadata) {
|
|
2742
|
-
return this
|
|
3372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3373
|
+
return __generator(this, function (_a) {
|
|
3374
|
+
switch (_a.label) {
|
|
3375
|
+
case 0: return [4, this.makeCustomEventWithType(eventValue, eventType, metadata)];
|
|
3376
|
+
case 1: return [2, (_a.sent()).log({
|
|
3377
|
+
searchUID: this.provider.getSearchUID(),
|
|
3378
|
+
})];
|
|
3379
|
+
}
|
|
3380
|
+
});
|
|
3381
|
+
});
|
|
2743
3382
|
};
|
|
2744
3383
|
CoveoSearchPageClient.prototype.logSearchEvent = function (event, metadata) {
|
|
2745
3384
|
return __awaiter(this, void 0, void 0, function () {
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
case
|
|
2750
|
-
_b = (_a = this.coveoAnalyticsClient).sendSearchEvent;
|
|
2751
|
-
return [4, this.getBaseSearchEventRequest(event, metadata)];
|
|
2752
|
-
case 1: return [2, _b.apply(_a, [_c.sent()])];
|
|
3385
|
+
return __generator(this, function (_a) {
|
|
3386
|
+
switch (_a.label) {
|
|
3387
|
+
case 0: return [4, this.makeSearchEvent(event, metadata)];
|
|
3388
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
2753
3389
|
}
|
|
2754
3390
|
});
|
|
2755
3391
|
});
|
|
2756
3392
|
};
|
|
2757
|
-
CoveoSearchPageClient.prototype.makeDescription = function (actionCause, metadata) {
|
|
2758
|
-
return { actionCause: actionCause, customData: __assign(__assign({}, this.provider.getBaseMetadata()), metadata) };
|
|
2759
|
-
};
|
|
2760
3393
|
CoveoSearchPageClient.prototype.makeSearchEvent = function (event, metadata) {
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
3394
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3395
|
+
var request, preparedEvent;
|
|
3396
|
+
return __generator(this, function (_a) {
|
|
3397
|
+
switch (_a.label) {
|
|
3398
|
+
case 0: return [4, this.getBaseSearchEventRequest(event, metadata)];
|
|
3399
|
+
case 1:
|
|
3400
|
+
request = _a.sent();
|
|
3401
|
+
return [4, this.coveoAnalyticsClient.makeSearchEvent(request)];
|
|
3402
|
+
case 2:
|
|
3403
|
+
preparedEvent = _a.sent();
|
|
3404
|
+
return [2, {
|
|
3405
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
3406
|
+
log: function (_a) {
|
|
3407
|
+
var searchUID = _a.searchUID;
|
|
3408
|
+
return preparedEvent.log({ searchQueryUid: searchUID });
|
|
3409
|
+
},
|
|
3410
|
+
}];
|
|
3411
|
+
}
|
|
3412
|
+
});
|
|
3413
|
+
});
|
|
2766
3414
|
};
|
|
2767
|
-
CoveoSearchPageClient.prototype.
|
|
3415
|
+
CoveoSearchPageClient.prototype.makeClickEvent = function (event, info, identifier, metadata) {
|
|
2768
3416
|
return __awaiter(this, void 0, void 0, function () {
|
|
2769
|
-
var
|
|
3417
|
+
var request, _a, preparedEvent;
|
|
2770
3418
|
return __generator(this, function (_b) {
|
|
2771
3419
|
switch (_b.label) {
|
|
2772
3420
|
case 0:
|
|
2773
3421
|
_a = [__assign({}, info)];
|
|
2774
3422
|
return [4, this.getBaseEventRequest(__assign(__assign({}, identifier), metadata))];
|
|
2775
3423
|
case 1:
|
|
2776
|
-
|
|
2777
|
-
return [
|
|
3424
|
+
request = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { queryPipeline: this.provider.getPipeline(), actionCause: event }]);
|
|
3425
|
+
return [4, this.coveoAnalyticsClient.makeClickEvent(request)];
|
|
3426
|
+
case 2:
|
|
3427
|
+
preparedEvent = _b.sent();
|
|
3428
|
+
return [2, {
|
|
3429
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
3430
|
+
log: function (_a) {
|
|
3431
|
+
var searchUID = _a.searchUID;
|
|
3432
|
+
return preparedEvent.log({ searchQueryUid: searchUID });
|
|
3433
|
+
},
|
|
3434
|
+
}];
|
|
2778
3435
|
}
|
|
2779
3436
|
});
|
|
2780
3437
|
});
|
|
2781
3438
|
};
|
|
2782
|
-
CoveoSearchPageClient.prototype.
|
|
2783
|
-
var _this = this;
|
|
2784
|
-
return {
|
|
2785
|
-
description: this.makeDescription(event, __assign(__assign({}, identifier), metadata)),
|
|
2786
|
-
log: function () { return _this.logClickEvent(event, info, identifier, metadata); },
|
|
2787
|
-
};
|
|
2788
|
-
};
|
|
2789
|
-
CoveoSearchPageClient.prototype.getBaseSearchEventRequest = function (event, metadata) {
|
|
3439
|
+
CoveoSearchPageClient.prototype.logClickEvent = function (event, info, identifier, metadata) {
|
|
2790
3440
|
return __awaiter(this, void 0, void 0, function () {
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
case
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), this.provider.getSearchEventRequestPayload()]), { searchQueryUid: this.provider.getSearchUID(), queryPipeline: this.provider.getPipeline(), actionCause: event }])];
|
|
3441
|
+
return __generator(this, function (_a) {
|
|
3442
|
+
switch (_a.label) {
|
|
3443
|
+
case 0: return [4, this.makeClickEvent(event, info, identifier, metadata)];
|
|
3444
|
+
case 1: return [2, (_a.sent()).log({
|
|
3445
|
+
searchUID: this.provider.getSearchUID(),
|
|
3446
|
+
})];
|
|
2798
3447
|
}
|
|
2799
3448
|
});
|
|
2800
3449
|
});
|
|
2801
3450
|
};
|
|
2802
|
-
CoveoSearchPageClient.prototype.
|
|
3451
|
+
CoveoSearchPageClient.prototype.getBaseSearchEventRequest = function (event, metadata) {
|
|
2803
3452
|
return __awaiter(this, void 0, void 0, function () {
|
|
2804
3453
|
var _a;
|
|
2805
3454
|
return __generator(this, function (_b) {
|
|
@@ -2807,7 +3456,7 @@
|
|
|
2807
3456
|
case 0:
|
|
2808
3457
|
_a = [{}];
|
|
2809
3458
|
return [4, this.getBaseEventRequest(metadata)];
|
|
2810
|
-
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), {
|
|
3459
|
+
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), this.provider.getSearchEventRequestPayload()]), { queryPipeline: this.provider.getPipeline(), actionCause: event }])];
|
|
2811
3460
|
}
|
|
2812
3461
|
});
|
|
2813
3462
|
});
|
|
@@ -3117,6 +3766,17 @@
|
|
|
3117
3766
|
};
|
|
3118
3767
|
return this.logClickEvent(SearchPageEvents.documentQuickview, info, identifier, caseMetadata ? __assign(__assign({}, generateMetadataToSend(caseMetadata, false)), metadata) : metadata);
|
|
3119
3768
|
};
|
|
3769
|
+
CoveoInsightClient.prototype.logCaseAttach = function (info, identifier, caseMetadata) {
|
|
3770
|
+
var metadata = {
|
|
3771
|
+
documentTitle: info.documentTitle,
|
|
3772
|
+
documentURL: info.documentUrl,
|
|
3773
|
+
resultUriHash: info.documentUriHash,
|
|
3774
|
+
};
|
|
3775
|
+
return this.logClickEvent(SearchPageEvents.caseAttach, info, identifier, caseMetadata ? __assign(__assign({}, generateMetadataToSend(caseMetadata, false)), metadata) : metadata);
|
|
3776
|
+
};
|
|
3777
|
+
CoveoInsightClient.prototype.logCaseDetach = function (resultUriHash, metadata) {
|
|
3778
|
+
return this.logCustomEvent(SearchPageEvents.caseDetach, metadata ? __assign(__assign({}, generateMetadataToSend(metadata, false)), { resultUriHash: resultUriHash }) : { resultUriHash: resultUriHash });
|
|
3779
|
+
};
|
|
3120
3780
|
CoveoInsightClient.prototype.logCustomEvent = function (event, metadata) {
|
|
3121
3781
|
return __awaiter(this, void 0, void 0, function () {
|
|
3122
3782
|
var customData, payload, _a;
|