@atlaskit/teams-app-internal-analytics 1.17.2 → 1.18.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 +7 -0
- package/analytics.spec.yaml +103 -0
- package/dist/types/common/utils/generated/analytics.types.d.ts +75 -2
- package/dist/types/common/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +75 -2
- package/dist/types-ts4.5/common/utils/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f2ea519415d68`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2ea519415d68) -
|
|
8
|
+
Migrated search page analytics from ptc-embeddable-directory to teams-app-internal-analytics
|
|
9
|
+
|
|
3
10
|
## 1.17.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -2459,6 +2459,15 @@ events:
|
|
|
2459
2459
|
- showMore clicked:
|
|
2460
2460
|
type: ui
|
|
2461
2461
|
description: fired when the show more button is clicked
|
|
2462
|
+
attributes:
|
|
2463
|
+
selectedUser:
|
|
2464
|
+
type: boolean
|
|
2465
|
+
required: false
|
|
2466
|
+
description: whether the selected user is the current user
|
|
2467
|
+
withSearchQuery:
|
|
2468
|
+
type: boolean
|
|
2469
|
+
required: false
|
|
2470
|
+
description: whether the search query is present
|
|
2462
2471
|
- teamCreateDialogTriggerButton clicked:
|
|
2463
2472
|
type: ui
|
|
2464
2473
|
description: fired when the team create dialog trigger button is clicked
|
|
@@ -2876,3 +2885,97 @@ events:
|
|
|
2876
2885
|
type: boolean
|
|
2877
2886
|
description: whether the user is verified
|
|
2878
2887
|
required: false
|
|
2888
|
+
- peopleHome viewed:
|
|
2889
|
+
type: screen
|
|
2890
|
+
description: fired when the people home is viewed
|
|
2891
|
+
- userFilter selected:
|
|
2892
|
+
type: ui
|
|
2893
|
+
description: fired when a user filter is selected
|
|
2894
|
+
attributes:
|
|
2895
|
+
isCurrentUser:
|
|
2896
|
+
type: boolean
|
|
2897
|
+
description: whether the selected user is the current user
|
|
2898
|
+
- teamElement clicked:
|
|
2899
|
+
type: ui
|
|
2900
|
+
description: fired when a team element is clicked
|
|
2901
|
+
attributes:
|
|
2902
|
+
entryIndex:
|
|
2903
|
+
type: number
|
|
2904
|
+
description: the index
|
|
2905
|
+
withSearchQuery:
|
|
2906
|
+
type: boolean
|
|
2907
|
+
description: whether the search query is present
|
|
2908
|
+
isCurrentUser:
|
|
2909
|
+
type: boolean
|
|
2910
|
+
description: whether the selected user is the current user
|
|
2911
|
+
- suggestedCollaborators clicked:
|
|
2912
|
+
type: ui
|
|
2913
|
+
description: fired when a suggested collaborator is clicked
|
|
2914
|
+
attributes:
|
|
2915
|
+
entryIndex:
|
|
2916
|
+
type: number
|
|
2917
|
+
description: the index
|
|
2918
|
+
- ViewDirectoryFiltersInAtlas clicked:
|
|
2919
|
+
type: ui
|
|
2920
|
+
description: fired when the view directory filters in atlas is clicked
|
|
2921
|
+
attributes:
|
|
2922
|
+
isAdmin:
|
|
2923
|
+
type: boolean
|
|
2924
|
+
description: whether the user is a site admin
|
|
2925
|
+
product:
|
|
2926
|
+
type: string
|
|
2927
|
+
description: the product
|
|
2928
|
+
workspaceUuid:
|
|
2929
|
+
type: string
|
|
2930
|
+
description: the workspace uuid
|
|
2931
|
+
required: false
|
|
2932
|
+
- yourTeams clicked:
|
|
2933
|
+
type: ui
|
|
2934
|
+
description: fired when the your teams is clicked
|
|
2935
|
+
attributes:
|
|
2936
|
+
entryIndex:
|
|
2937
|
+
type: number
|
|
2938
|
+
description: the index
|
|
2939
|
+
- browseAllTeams clicked:
|
|
2940
|
+
type: ui
|
|
2941
|
+
description: fired when the browse all teams is clicked
|
|
2942
|
+
- addPeopleButton clicked:
|
|
2943
|
+
type: ui
|
|
2944
|
+
description: fired when the add people button is clicked
|
|
2945
|
+
attributes:
|
|
2946
|
+
trigger:
|
|
2947
|
+
type: string
|
|
2948
|
+
description: the trigger
|
|
2949
|
+
- teamSearchResult clicked:
|
|
2950
|
+
type: ui
|
|
2951
|
+
description: fired when the team search result is clicked
|
|
2952
|
+
attributes:
|
|
2953
|
+
entryIndex:
|
|
2954
|
+
type: number
|
|
2955
|
+
description: the index
|
|
2956
|
+
withSearchQuery:
|
|
2957
|
+
type: boolean
|
|
2958
|
+
description: whether the search query is present
|
|
2959
|
+
- recentCollaborator clicked:
|
|
2960
|
+
type: ui
|
|
2961
|
+
description: fired when the recent collaborator is clicked
|
|
2962
|
+
attributes:
|
|
2963
|
+
entryIndex:
|
|
2964
|
+
type: number
|
|
2965
|
+
description: the index
|
|
2966
|
+
sessionId:
|
|
2967
|
+
type: string
|
|
2968
|
+
description: the session id
|
|
2969
|
+
dataSource:
|
|
2970
|
+
type: string
|
|
2971
|
+
description: the data source
|
|
2972
|
+
- peopleSearchResult clicked:
|
|
2973
|
+
type: ui
|
|
2974
|
+
description: fired when the people search result is clicked
|
|
2975
|
+
attributes:
|
|
2976
|
+
entryIndex:
|
|
2977
|
+
type: number
|
|
2978
|
+
description: the index
|
|
2979
|
+
withSearchQuery:
|
|
2980
|
+
type: boolean
|
|
2981
|
+
description: whether the search query is present
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::cca058e42b3290c5e6cd84091c7e9308>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1149,7 +1149,10 @@ export type PrivacyPolicyLinkClickedAttributesType = undefined;
|
|
|
1149
1149
|
export type TeamProfileItemClickedAttributesType = {
|
|
1150
1150
|
position: number;
|
|
1151
1151
|
};
|
|
1152
|
-
export type ShowMoreClickedAttributesType =
|
|
1152
|
+
export type ShowMoreClickedAttributesType = {
|
|
1153
|
+
selectedUser: boolean | null;
|
|
1154
|
+
withSearchQuery: boolean | null;
|
|
1155
|
+
};
|
|
1153
1156
|
export type TeamCreateDialogTriggerButtonClickedAttributesType = {
|
|
1154
1157
|
trigger: string;
|
|
1155
1158
|
};
|
|
@@ -1303,6 +1306,43 @@ export type TeamLinkEditedAttributesType = {
|
|
|
1303
1306
|
orgAdminTriggered: boolean;
|
|
1304
1307
|
isVerified: boolean | null;
|
|
1305
1308
|
};
|
|
1309
|
+
export type PeopleHomeViewedAttributesType = undefined;
|
|
1310
|
+
export type UserFilterSelectedAttributesType = {
|
|
1311
|
+
isCurrentUser: boolean;
|
|
1312
|
+
};
|
|
1313
|
+
export type TeamElementClickedAttributesType = {
|
|
1314
|
+
entryIndex: number;
|
|
1315
|
+
withSearchQuery: boolean;
|
|
1316
|
+
isCurrentUser: boolean;
|
|
1317
|
+
};
|
|
1318
|
+
export type SuggestedCollaboratorsClickedAttributesType = {
|
|
1319
|
+
entryIndex: number;
|
|
1320
|
+
};
|
|
1321
|
+
export type ViewDirectoryFiltersInAtlasClickedAttributesType = {
|
|
1322
|
+
isAdmin: boolean;
|
|
1323
|
+
product: string;
|
|
1324
|
+
workspaceUuid: string | null;
|
|
1325
|
+
};
|
|
1326
|
+
export type YourTeamsClickedAttributesType = {
|
|
1327
|
+
entryIndex: number;
|
|
1328
|
+
};
|
|
1329
|
+
export type BrowseAllTeamsClickedAttributesType = undefined;
|
|
1330
|
+
export type AddPeopleButtonClickedAttributesType = {
|
|
1331
|
+
trigger: string;
|
|
1332
|
+
};
|
|
1333
|
+
export type TeamSearchResultClickedAttributesType = {
|
|
1334
|
+
entryIndex: number;
|
|
1335
|
+
withSearchQuery: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
export type RecentCollaboratorClickedAttributesType = {
|
|
1338
|
+
entryIndex: number;
|
|
1339
|
+
sessionId: string;
|
|
1340
|
+
dataSource: string;
|
|
1341
|
+
};
|
|
1342
|
+
export type PeopleSearchResultClickedAttributesType = {
|
|
1343
|
+
entryIndex: number;
|
|
1344
|
+
withSearchQuery: boolean;
|
|
1345
|
+
};
|
|
1306
1346
|
export type AnalyticsEventAttributes = {
|
|
1307
1347
|
/**
|
|
1308
1348
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -2227,5 +2267,38 @@ export type AnalyticsEventAttributes = {
|
|
|
2227
2267
|
/**
|
|
2228
2268
|
* fired when a team link is successfully edited */
|
|
2229
2269
|
'track.teamLink.edited': TeamLinkEditedAttributesType;
|
|
2270
|
+
/**
|
|
2271
|
+
* fired when the people home is viewed */
|
|
2272
|
+
'screen.peopleHome.viewed': PeopleHomeViewedAttributesType;
|
|
2273
|
+
/**
|
|
2274
|
+
* fired when a user filter is selected */
|
|
2275
|
+
'ui.userFilter.selected': UserFilterSelectedAttributesType;
|
|
2276
|
+
/**
|
|
2277
|
+
* fired when a team element is clicked */
|
|
2278
|
+
'ui.teamElement.clicked': TeamElementClickedAttributesType;
|
|
2279
|
+
/**
|
|
2280
|
+
* fired when a suggested collaborator is clicked */
|
|
2281
|
+
'ui.suggestedCollaborators.clicked': SuggestedCollaboratorsClickedAttributesType;
|
|
2282
|
+
/**
|
|
2283
|
+
* fired when the view directory filters in atlas is clicked */
|
|
2284
|
+
'ui.ViewDirectoryFiltersInAtlas.clicked': ViewDirectoryFiltersInAtlasClickedAttributesType;
|
|
2285
|
+
/**
|
|
2286
|
+
* fired when the your teams is clicked */
|
|
2287
|
+
'ui.yourTeams.clicked': YourTeamsClickedAttributesType;
|
|
2288
|
+
/**
|
|
2289
|
+
* fired when the browse all teams is clicked */
|
|
2290
|
+
'ui.browseAllTeams.clicked': BrowseAllTeamsClickedAttributesType;
|
|
2291
|
+
/**
|
|
2292
|
+
* fired when the add people button is clicked */
|
|
2293
|
+
'ui.addPeopleButton.clicked': AddPeopleButtonClickedAttributesType;
|
|
2294
|
+
/**
|
|
2295
|
+
* fired when the team search result is clicked */
|
|
2296
|
+
'ui.teamSearchResult.clicked': TeamSearchResultClickedAttributesType;
|
|
2297
|
+
/**
|
|
2298
|
+
* fired when the recent collaborator is clicked */
|
|
2299
|
+
'ui.recentCollaborator.clicked': RecentCollaboratorClickedAttributesType;
|
|
2300
|
+
/**
|
|
2301
|
+
* fired when the people search result is clicked */
|
|
2302
|
+
'ui.peopleSearchResult.clicked': PeopleSearchResultClickedAttributesType;
|
|
2230
2303
|
};
|
|
2231
2304
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
-
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::cca058e42b3290c5e6cd84091c7e9308>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -1149,7 +1149,10 @@ export type PrivacyPolicyLinkClickedAttributesType = undefined;
|
|
|
1149
1149
|
export type TeamProfileItemClickedAttributesType = {
|
|
1150
1150
|
position: number;
|
|
1151
1151
|
};
|
|
1152
|
-
export type ShowMoreClickedAttributesType =
|
|
1152
|
+
export type ShowMoreClickedAttributesType = {
|
|
1153
|
+
selectedUser: boolean | null;
|
|
1154
|
+
withSearchQuery: boolean | null;
|
|
1155
|
+
};
|
|
1153
1156
|
export type TeamCreateDialogTriggerButtonClickedAttributesType = {
|
|
1154
1157
|
trigger: string;
|
|
1155
1158
|
};
|
|
@@ -1303,6 +1306,43 @@ export type TeamLinkEditedAttributesType = {
|
|
|
1303
1306
|
orgAdminTriggered: boolean;
|
|
1304
1307
|
isVerified: boolean | null;
|
|
1305
1308
|
};
|
|
1309
|
+
export type PeopleHomeViewedAttributesType = undefined;
|
|
1310
|
+
export type UserFilterSelectedAttributesType = {
|
|
1311
|
+
isCurrentUser: boolean;
|
|
1312
|
+
};
|
|
1313
|
+
export type TeamElementClickedAttributesType = {
|
|
1314
|
+
entryIndex: number;
|
|
1315
|
+
withSearchQuery: boolean;
|
|
1316
|
+
isCurrentUser: boolean;
|
|
1317
|
+
};
|
|
1318
|
+
export type SuggestedCollaboratorsClickedAttributesType = {
|
|
1319
|
+
entryIndex: number;
|
|
1320
|
+
};
|
|
1321
|
+
export type ViewDirectoryFiltersInAtlasClickedAttributesType = {
|
|
1322
|
+
isAdmin: boolean;
|
|
1323
|
+
product: string;
|
|
1324
|
+
workspaceUuid: string | null;
|
|
1325
|
+
};
|
|
1326
|
+
export type YourTeamsClickedAttributesType = {
|
|
1327
|
+
entryIndex: number;
|
|
1328
|
+
};
|
|
1329
|
+
export type BrowseAllTeamsClickedAttributesType = undefined;
|
|
1330
|
+
export type AddPeopleButtonClickedAttributesType = {
|
|
1331
|
+
trigger: string;
|
|
1332
|
+
};
|
|
1333
|
+
export type TeamSearchResultClickedAttributesType = {
|
|
1334
|
+
entryIndex: number;
|
|
1335
|
+
withSearchQuery: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
export type RecentCollaboratorClickedAttributesType = {
|
|
1338
|
+
entryIndex: number;
|
|
1339
|
+
sessionId: string;
|
|
1340
|
+
dataSource: string;
|
|
1341
|
+
};
|
|
1342
|
+
export type PeopleSearchResultClickedAttributesType = {
|
|
1343
|
+
entryIndex: number;
|
|
1344
|
+
withSearchQuery: boolean;
|
|
1345
|
+
};
|
|
1306
1346
|
export type AnalyticsEventAttributes = {
|
|
1307
1347
|
/**
|
|
1308
1348
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -2227,5 +2267,38 @@ export type AnalyticsEventAttributes = {
|
|
|
2227
2267
|
/**
|
|
2228
2268
|
* fired when a team link is successfully edited */
|
|
2229
2269
|
'track.teamLink.edited': TeamLinkEditedAttributesType;
|
|
2270
|
+
/**
|
|
2271
|
+
* fired when the people home is viewed */
|
|
2272
|
+
'screen.peopleHome.viewed': PeopleHomeViewedAttributesType;
|
|
2273
|
+
/**
|
|
2274
|
+
* fired when a user filter is selected */
|
|
2275
|
+
'ui.userFilter.selected': UserFilterSelectedAttributesType;
|
|
2276
|
+
/**
|
|
2277
|
+
* fired when a team element is clicked */
|
|
2278
|
+
'ui.teamElement.clicked': TeamElementClickedAttributesType;
|
|
2279
|
+
/**
|
|
2280
|
+
* fired when a suggested collaborator is clicked */
|
|
2281
|
+
'ui.suggestedCollaborators.clicked': SuggestedCollaboratorsClickedAttributesType;
|
|
2282
|
+
/**
|
|
2283
|
+
* fired when the view directory filters in atlas is clicked */
|
|
2284
|
+
'ui.ViewDirectoryFiltersInAtlas.clicked': ViewDirectoryFiltersInAtlasClickedAttributesType;
|
|
2285
|
+
/**
|
|
2286
|
+
* fired when the your teams is clicked */
|
|
2287
|
+
'ui.yourTeams.clicked': YourTeamsClickedAttributesType;
|
|
2288
|
+
/**
|
|
2289
|
+
* fired when the browse all teams is clicked */
|
|
2290
|
+
'ui.browseAllTeams.clicked': BrowseAllTeamsClickedAttributesType;
|
|
2291
|
+
/**
|
|
2292
|
+
* fired when the add people button is clicked */
|
|
2293
|
+
'ui.addPeopleButton.clicked': AddPeopleButtonClickedAttributesType;
|
|
2294
|
+
/**
|
|
2295
|
+
* fired when the team search result is clicked */
|
|
2296
|
+
'ui.teamSearchResult.clicked': TeamSearchResultClickedAttributesType;
|
|
2297
|
+
/**
|
|
2298
|
+
* fired when the recent collaborator is clicked */
|
|
2299
|
+
'ui.recentCollaborator.clicked': RecentCollaboratorClickedAttributesType;
|
|
2300
|
+
/**
|
|
2301
|
+
* fired when the people search result is clicked */
|
|
2302
|
+
'ui.peopleSearchResult.clicked': PeopleSearchResultClickedAttributesType;
|
|
2230
2303
|
};
|
|
2231
2304
|
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EventKey } from './generated/analytics.types';
|
|
2
2
|
import type createEventPayload from './generated/create-event-payload';
|
|
3
3
|
export type FireEventType = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
4
|
-
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen';
|
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
91
|
-
"version": "1.
|
|
91
|
+
"version": "1.18.0",
|
|
92
92
|
"description": "A package used by the teams app and platform packages to handle people and teams analytics",
|
|
93
93
|
"author": "Atlassian Pty Ltd",
|
|
94
94
|
"license": "Apache-2.0",
|