@atlaskit/rovo-agent-analytics 0.6.0 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`613e539d201d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/613e539d201d3) -
8
+ Update rovo agents overview page analytics
9
+
10
+ ## 0.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`a37925a8ebe53`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a37925a8ebe53) -
15
+ Update rovo agents analytics & support NL create events
16
+
3
17
  ## 0.6.0
4
18
 
5
19
  ### Minor Changes
@@ -17,8 +17,6 @@ var AgentActions = exports.AgentActions = /*#__PURE__*/function (AgentActions) {
17
17
  AgentActions["VIEW"] = "view";
18
18
  /* Edit agent clicked */
19
19
  AgentActions["EDIT"] = "edit";
20
- /* Create agent clicked */
21
- AgentActions["CREATE"] = "create";
22
20
  /* Agent updated */
23
21
  AgentActions["UPDATED"] = "updated";
24
22
  /* Copy link clicked */
@@ -19,6 +19,7 @@ var getAttributesFromContexts = exports.getAttributesFromContexts = function get
19
19
  return {};
20
20
  }
21
21
  return context.reduce(function (acc, x) {
22
- return _objectSpread(_objectSpread({}, acc), x);
22
+ var _x$attributes;
23
+ return _objectSpread(_objectSpread({}, acc), (_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {});
23
24
  }, {});
24
25
  };
@@ -19,6 +19,7 @@ var AgentCreateActions = exports.AgentCreateActions = /*#__PURE__*/function (Age
19
19
  AgentCreateActions["SKIP_NL"] = "createFlowSkipNL";
20
20
  AgentCreateActions["REVIEW_NL"] = "createFlowReviewNL";
21
21
  AgentCreateActions["ACTIVATE"] = "createFlowActivate";
22
+ AgentCreateActions["RESTART"] = "createFlowRestart";
22
23
  AgentCreateActions["ERROR"] = "createFlowError";
23
24
  return AgentCreateActions;
24
25
  }({});
@@ -7,8 +7,6 @@ export let AgentActions = /*#__PURE__*/function (AgentActions) {
7
7
  AgentActions["VIEW"] = "view";
8
8
  /* Edit agent clicked */
9
9
  AgentActions["EDIT"] = "edit";
10
- /* Create agent clicked */
11
- AgentActions["CREATE"] = "create";
12
10
  /* Agent updated */
13
11
  AgentActions["UPDATED"] = "updated";
14
12
  /* Copy link clicked */
@@ -7,9 +7,10 @@ export const getAttributesFromContexts = context => {
7
7
  return {};
8
8
  }
9
9
  return context.reduce((acc, x) => {
10
+ var _x$attributes;
10
11
  return {
11
12
  ...acc,
12
- ...x
13
+ ...((_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {})
13
14
  };
14
15
  }, {});
15
16
  };
@@ -8,6 +8,7 @@ export let AgentCreateActions = /*#__PURE__*/function (AgentCreateActions) {
8
8
  AgentCreateActions["SKIP_NL"] = "createFlowSkipNL";
9
9
  AgentCreateActions["REVIEW_NL"] = "createFlowReviewNL";
10
10
  AgentCreateActions["ACTIVATE"] = "createFlowActivate";
11
+ AgentCreateActions["RESTART"] = "createFlowRestart";
11
12
  AgentCreateActions["ERROR"] = "createFlowError";
12
13
  return AgentCreateActions;
13
14
  }({});
@@ -10,8 +10,6 @@ export var AgentActions = /*#__PURE__*/function (AgentActions) {
10
10
  AgentActions["VIEW"] = "view";
11
11
  /* Edit agent clicked */
12
12
  AgentActions["EDIT"] = "edit";
13
- /* Create agent clicked */
14
- AgentActions["CREATE"] = "create";
15
13
  /* Agent updated */
16
14
  AgentActions["UPDATED"] = "updated";
17
15
  /* Copy link clicked */
@@ -12,6 +12,7 @@ export var getAttributesFromContexts = function getAttributesFromContexts(contex
12
12
  return {};
13
13
  }
14
14
  return context.reduce(function (acc, x) {
15
- return _objectSpread(_objectSpread({}, acc), x);
15
+ var _x$attributes;
16
+ return _objectSpread(_objectSpread({}, acc), (_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {});
16
17
  }, {});
17
18
  };
@@ -12,6 +12,7 @@ export var AgentCreateActions = /*#__PURE__*/function (AgentCreateActions) {
12
12
  AgentCreateActions["SKIP_NL"] = "createFlowSkipNL";
13
13
  AgentCreateActions["REVIEW_NL"] = "createFlowReviewNL";
14
14
  AgentCreateActions["ACTIVATE"] = "createFlowActivate";
15
+ AgentCreateActions["RESTART"] = "createFlowRestart";
15
16
  AgentCreateActions["ERROR"] = "createFlowError";
16
17
  return AgentCreateActions;
17
18
  }({});
@@ -3,7 +3,6 @@ import type { RemainingRequired } from '../common/types';
3
3
  export declare enum AgentActions {
4
4
  VIEW = "view",
5
5
  EDIT = "edit",
6
- CREATE = "create",
7
6
  UPDATED = "updated",
8
7
  COPY_LINK = "copyLink",
9
8
  DELETE = "delete",
@@ -6,6 +6,7 @@ export declare enum AgentCreateActions {
6
6
  SKIP_NL = "createFlowSkipNL",
7
7
  REVIEW_NL = "createFlowReviewNL",
8
8
  ACTIVATE = "createFlowActivate",
9
+ RESTART = "createFlowRestart",
9
10
  ERROR = "createFlowError"
10
11
  }
11
12
  export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [string | null, {
@@ -3,7 +3,6 @@ import type { RemainingRequired } from '../common/types';
3
3
  export declare enum AgentActions {
4
4
  VIEW = "view",
5
5
  EDIT = "edit",
6
- CREATE = "create",
7
6
  UPDATED = "updated",
8
7
  COPY_LINK = "copyLink",
9
8
  DELETE = "delete",
@@ -6,6 +6,7 @@ export declare enum AgentCreateActions {
6
6
  SKIP_NL = "createFlowSkipNL",
7
7
  REVIEW_NL = "createFlowReviewNL",
8
8
  ACTIVATE = "createFlowActivate",
9
+ RESTART = "createFlowRestart",
9
10
  ERROR = "createFlowError"
10
11
  }
11
12
  export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [
package/package.json CHANGED
@@ -83,7 +83,7 @@
83
83
  ]
84
84
  },
85
85
  "name": "@atlaskit/rovo-agent-analytics",
86
- "version": "0.6.0",
86
+ "version": "0.8.0",
87
87
  "description": "Rovo Agents analytics",
88
88
  "author": "Atlassian Pty Ltd",
89
89
  "license": "Apache-2.0",