From 3074e5529dc150109353560b4a06edc8789647d3 Mon Sep 17 00:00:00 2001 From: Simon Milord Date: Tue, 19 Dec 2023 16:35:55 -0500 Subject: [PATCH] feat(headless): removed the triggeredBy from the insight analytics actions for logCreateArticle (#3484) * updated coveo analytics to 2.28.24 and removed triggeredBy from insight analytics action payload for create article * try something --- package-lock.json | 8 ++++---- packages/headless/package.json | 4 ++-- .../features/analytics/insight-analytics-actions.test.ts | 1 - .../src/features/analytics/insight-analytics-actions.ts | 2 -- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e1e9f88ef5..cf61bff18b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53196,7 +53196,7 @@ "@reduxjs/toolkit": "1.9.7", "@types/redux-mock-store": "1.0.6", "abab": "2.0.6", - "coveo.analytics": "2.28.23", + "coveo.analytics": "2.28.24", "dayjs": "1.11.10", "exponential-backoff": "3.1.0", "fast-equals": "5.0.1", @@ -54628,9 +54628,9 @@ } }, "packages/headless/node_modules/coveo.analytics": { - "version": "2.28.23", - "resolved": "https://registry.npmjs.org/coveo.analytics/-/coveo.analytics-2.28.23.tgz", - "integrity": "sha512-+DBUQlde++a5cpoGXLyfaZp7RpKya/41nKbfK58al7M0eAaiymMhBAC1dk1/0ajxj3fjp4pr3m0Dh0M34CSF0Q==", + "version": "2.28.24", + "resolved": "https://registry.npmjs.org/coveo.analytics/-/coveo.analytics-2.28.24.tgz", + "integrity": "sha512-XTzlA9QY69jkNLyO/JBAv68IL/ss3AqZcGEjKDojOlBp0srWMtWe0wJf69W4/6pD8VZmw8JedQYBQ3/DRX6EWw==", "dependencies": { "@types/uuid": "^9.0.0", "cross-fetch": "^3.1.5", diff --git a/packages/headless/package.json b/packages/headless/package.json index c46b71aa987..57b471a05eb 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -56,7 +56,7 @@ "@reduxjs/toolkit": "1.9.7", "@types/redux-mock-store": "1.0.6", "abab": "2.0.6", - "coveo.analytics": "2.28.23", + "coveo.analytics": "2.28.24", "dayjs": "1.11.10", "exponential-backoff": "3.1.0", "fast-equals": "5.0.1", @@ -68,8 +68,8 @@ "undici": "5.28.2" }, "devDependencies": { - "@coveo/release": "1.0.0", "@coveo/relay-event-types": "6.28.2", + "@coveo/release": "1.0.0", "@microsoft/api-extractor": "7.38.5", "@microsoft/api-extractor-model": "7.28.3", "@microsoft/tsdoc": "0.14.2", diff --git a/packages/headless/src/features/analytics/insight-analytics-actions.test.ts b/packages/headless/src/features/analytics/insight-analytics-actions.test.ts index bf40b5254cd..1aa2e3d4ffb 100644 --- a/packages/headless/src/features/analytics/insight-analytics-actions.test.ts +++ b/packages/headless/src/features/analytics/insight-analytics-actions.test.ts @@ -22,7 +22,6 @@ const exampleCaseNumber = '5678'; const exampleOriginLevel2 = 'exampleOriginLevel2'; const exampleCreateArticleMetadata = { articleType: 'Knowledge__kav', - triggeredBy: 'CreateArticleButton', }; jest.mock('coveo.analytics', () => { diff --git a/packages/headless/src/features/analytics/insight-analytics-actions.ts b/packages/headless/src/features/analytics/insight-analytics-actions.ts index fe042093e55..975b250e5a5 100644 --- a/packages/headless/src/features/analytics/insight-analytics-actions.ts +++ b/packages/headless/src/features/analytics/insight-analytics-actions.ts @@ -7,7 +7,6 @@ import {InsightAction, makeInsightAnalyticsAction} from './analytics-utils'; export interface CreateArticleMetadata { articleType: string; - triggeredBy: string; } export const logInsightInterfaceLoad = (): InsightAction => @@ -33,7 +32,6 @@ export const logInsightCreateArticle = ( (client, state) => { validatePayload(createArticleMetadata, { articleType: requiredNonEmptyString, - triggeredBy: requiredNonEmptyString, }); return client.logCreateArticle( createArticleMetadata,