@atlaskit/rovo-agent-analytics 1.6.0 → 1.7.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 +9 -0
- package/dist/cjs/actions/groups/knowledge-filters.js +5 -0
- package/dist/es2019/actions/groups/knowledge-filters.js +1 -0
- package/dist/esm/actions/groups/knowledge-filters.js +1 -0
- package/dist/types/actions/groups/knowledge-filters.d.ts +33 -0
- package/dist/types/common/types.d.ts +2 -1
- package/dist/types-ts4.5/actions/groups/knowledge-filters.d.ts +33 -0
- package/dist/types-ts4.5/common/types.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-analytics
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b72d0152846b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b72d0152846b8) -
|
|
8
|
+
Fire knowledgeFilters analytics events: 'saved' on successful update and 'closed' on cancel from
|
|
9
|
+
ConnectorFilters; 'updated' from SelectFilter when the selection changes (filterOrControlId as
|
|
10
|
+
filter id, comma-joined option values).
|
|
11
|
+
|
|
3
12
|
## 1.6.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BaseAgentAnalyticsAttributes } from '../../common/types';
|
|
2
|
+
type FilterAttributes = {
|
|
3
|
+
id: string;
|
|
4
|
+
selectedOptionsCount: number;
|
|
5
|
+
};
|
|
6
|
+
type KnowledgeSourceAttributes = BaseAgentAnalyticsAttributes & {
|
|
7
|
+
productKey: string;
|
|
8
|
+
};
|
|
9
|
+
export type KnowledgeFiltersEventPayload = {
|
|
10
|
+
actionSubject: 'rovoAgent';
|
|
11
|
+
action: 'knowledgeFiltersOpened';
|
|
12
|
+
attributes: KnowledgeSourceAttributes;
|
|
13
|
+
} | {
|
|
14
|
+
actionSubject: 'rovoAgent';
|
|
15
|
+
action: 'knowledgeFiltersClosed';
|
|
16
|
+
attributes: KnowledgeSourceAttributes;
|
|
17
|
+
} | {
|
|
18
|
+
actionSubject: 'rovoAgent';
|
|
19
|
+
action: 'knowledgeFiltersSaved';
|
|
20
|
+
attributes: KnowledgeSourceAttributes & {
|
|
21
|
+
filterCount: number;
|
|
22
|
+
filters: {
|
|
23
|
+
[key: string]: Omit<FilterAttributes, 'id'>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
actionSubject: 'rovoAgent';
|
|
28
|
+
action: 'knowledgeFiltersUpdated';
|
|
29
|
+
attributes: KnowledgeSourceAttributes & {
|
|
30
|
+
filter: FilterAttributes;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { DebugEventPayload } from '../actions/groups/debug';
|
|
|
3
3
|
import type { EditingEventPayload } from '../actions/groups/editing';
|
|
4
4
|
import type { EvaluationEventPayload } from '../actions/groups/evaluation';
|
|
5
5
|
import type { InsightsEventPayload } from '../actions/groups/insights';
|
|
6
|
+
import type { KnowledgeFiltersEventPayload } from '../actions/groups/knowledge-filters';
|
|
6
7
|
import type { SubagentInteractionsEventPayload } from '../actions/groups/subagent-interactions';
|
|
7
8
|
import type { ToolsEventPayload } from '../actions/groups/tools';
|
|
8
9
|
export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
|
|
@@ -50,4 +51,4 @@ export type ErrorEventPayload = {
|
|
|
50
51
|
* Union of all event payload types.
|
|
51
52
|
* Use with `trackAgentEvent()` for typed event tracking.
|
|
52
53
|
*/
|
|
53
|
-
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
|
|
54
|
+
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload | KnowledgeFiltersEventPayload;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BaseAgentAnalyticsAttributes } from '../../common/types';
|
|
2
|
+
type FilterAttributes = {
|
|
3
|
+
id: string;
|
|
4
|
+
selectedOptionsCount: number;
|
|
5
|
+
};
|
|
6
|
+
type KnowledgeSourceAttributes = BaseAgentAnalyticsAttributes & {
|
|
7
|
+
productKey: string;
|
|
8
|
+
};
|
|
9
|
+
export type KnowledgeFiltersEventPayload = {
|
|
10
|
+
actionSubject: 'rovoAgent';
|
|
11
|
+
action: 'knowledgeFiltersOpened';
|
|
12
|
+
attributes: KnowledgeSourceAttributes;
|
|
13
|
+
} | {
|
|
14
|
+
actionSubject: 'rovoAgent';
|
|
15
|
+
action: 'knowledgeFiltersClosed';
|
|
16
|
+
attributes: KnowledgeSourceAttributes;
|
|
17
|
+
} | {
|
|
18
|
+
actionSubject: 'rovoAgent';
|
|
19
|
+
action: 'knowledgeFiltersSaved';
|
|
20
|
+
attributes: KnowledgeSourceAttributes & {
|
|
21
|
+
filterCount: number;
|
|
22
|
+
filters: {
|
|
23
|
+
[key: string]: Omit<FilterAttributes, 'id'>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
actionSubject: 'rovoAgent';
|
|
28
|
+
action: 'knowledgeFiltersUpdated';
|
|
29
|
+
attributes: KnowledgeSourceAttributes & {
|
|
30
|
+
filter: FilterAttributes;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { DebugEventPayload } from '../actions/groups/debug';
|
|
|
3
3
|
import type { EditingEventPayload } from '../actions/groups/editing';
|
|
4
4
|
import type { EvaluationEventPayload } from '../actions/groups/evaluation';
|
|
5
5
|
import type { InsightsEventPayload } from '../actions/groups/insights';
|
|
6
|
+
import type { KnowledgeFiltersEventPayload } from '../actions/groups/knowledge-filters';
|
|
6
7
|
import type { SubagentInteractionsEventPayload } from '../actions/groups/subagent-interactions';
|
|
7
8
|
import type { ToolsEventPayload } from '../actions/groups/tools';
|
|
8
9
|
export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
|
|
@@ -50,4 +51,4 @@ export type ErrorEventPayload = {
|
|
|
50
51
|
* Union of all event payload types.
|
|
51
52
|
* Use with `trackAgentEvent()` for typed event tracking.
|
|
52
53
|
*/
|
|
53
|
-
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
|
|
54
|
+
export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | SubagentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload | KnowledgeFiltersEventPayload;
|