coveo.analytics 2.29.3 → 2.29.4

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.
@@ -196,6 +196,7 @@ export interface GeneratedAnswerBaseMeta {
196
196
  }
197
197
  export interface GeneratedAnswerStreamEndMeta extends GeneratedAnswerBaseMeta {
198
198
  answerGenerated: boolean;
199
+ answerTextIsEmpty?: boolean;
199
200
  }
200
201
  export interface GeneratedAnswerCitationMeta {
201
202
  generativeQuestionAnsweringId: string;
@@ -1 +1 @@
1
- export declare const libVersion = "2.29.3";
1
+ export declare const libVersion = "2.29.4";
package/dist/library.cjs CHANGED
@@ -731,7 +731,7 @@ function sha1(bytes) {
731
731
  const v5 = v35('v5', 0x50, sha1);
732
732
  var uuidv5 = v5;
733
733
 
734
- var libVersion = "2.29.3" ;
734
+ var libVersion = "2.29.4" ;
735
735
 
736
736
  var getFormattedLocation = function (location) {
737
737
  return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
@@ -596,7 +596,7 @@ function sha1(bytes) {
596
596
  const v5 = v35('v5', 0x50, sha1);
597
597
  var uuidv5 = v5;
598
598
 
599
- const libVersion = "2.29.3" ;
599
+ const libVersion = "2.29.4" ;
600
600
 
601
601
  const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
602
602
 
package/dist/library.js CHANGED
@@ -731,7 +731,7 @@ function sha1(bytes) {
731
731
  const v5 = v35('v5', 0x50, sha1);
732
732
  var uuidv5 = v5;
733
733
 
734
- var libVersion = "2.29.3" ;
734
+ var libVersion = "2.29.4" ;
735
735
 
736
736
  var getFormattedLocation = function (location) {
737
737
  return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
package/dist/library.mjs CHANGED
@@ -729,7 +729,7 @@ function sha1(bytes) {
729
729
  const v5 = v35('v5', 0x50, sha1);
730
730
  var uuidv5 = v5;
731
731
 
732
- var libVersion = "2.29.3" ;
732
+ var libVersion = "2.29.4" ;
733
733
 
734
734
  var getFormattedLocation = function (location) {
735
735
  return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
@@ -658,7 +658,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
658
658
  yield store.addElementAsync(historyElement);
659
659
  });
660
660
 
661
- const libVersion = "2.29.3" ;
661
+ const libVersion = "2.29.4" ;
662
662
 
663
663
  const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
664
664
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.29.3",
3
+ "version": "2.29.4",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.cjs",
6
6
  "module": "dist/browser.mjs",
@@ -618,6 +618,7 @@ describe('InsightClient', () => {
618
618
  const exampleGeneratedAnswerMetadata = {
619
619
  generativeQuestionAnsweringId: '123',
620
620
  answerGenerated: true,
621
+ answerTextIsEmpty: false,
621
622
  };
622
623
 
623
624
  await client.logGeneratedAnswerStreamEnd(exampleGeneratedAnswerMetadata);
@@ -1381,6 +1382,7 @@ describe('InsightClient', () => {
1381
1382
  const exampleGeneratedAnswerMetadata = {
1382
1383
  generativeQuestionAnsweringId: '123',
1383
1384
  answerGenerated: true,
1385
+ answerTextIsEmpty: false,
1384
1386
  };
1385
1387
  const expectedMetadata = {
1386
1388
  ...exampleGeneratedAnswerMetadata,
@@ -1494,13 +1494,13 @@ describe('SearchPageClient', () => {
1494
1494
  });
1495
1495
 
1496
1496
  it('should send proper payload for #logGeneratedAnswerStreamEnd', async () => {
1497
- const meta = {generativeQuestionAnsweringId: fakeStreamId, answerGenerated: true};
1497
+ const meta = {generativeQuestionAnsweringId: fakeStreamId, answerGenerated: true, answerTextIsEmpty: false};
1498
1498
  await client.logGeneratedAnswerStreamEnd(meta);
1499
1499
  expectMatchCustomEventPayload(SearchPageEvents.generatedAnswerStreamEnd, meta);
1500
1500
  });
1501
1501
 
1502
1502
  it('should send proper payload for #makeGeneratedAnswerStreamEnd', async () => {
1503
- const meta = {generativeQuestionAnsweringId: fakeStreamId, answerGenerated: true};
1503
+ const meta = {generativeQuestionAnsweringId: fakeStreamId, answerGenerated: true, answerTextIsEmpty: false};
1504
1504
  const built = await client.makeGeneratedAnswerStreamEnd(meta);
1505
1505
  await built.log({searchUID: provider.getSearchUID()});
1506
1506
  expectMatchCustomEventPayload(SearchPageEvents.generatedAnswerStreamEnd, meta);
@@ -530,6 +530,7 @@ export interface GeneratedAnswerBaseMeta {
530
530
 
531
531
  export interface GeneratedAnswerStreamEndMeta extends GeneratedAnswerBaseMeta {
532
532
  answerGenerated: boolean;
533
+ answerTextIsEmpty?: boolean;
533
534
  }
534
535
 
535
536
  export interface GeneratedAnswerCitationMeta {