@atlaskit/teams-app-internal-analytics 1.20.3 → 1.22.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 +14 -0
- package/analytics.spec.yaml +87 -1
- package/dist/types/common/utils/generated/analytics.types.d.ts +60 -2
- package/dist/types/common/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/generated/analytics.types.d.ts +60 -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,19 @@
|
|
|
1
1
|
# @atlaskit/teams-app-internal-analytics
|
|
2
2
|
|
|
3
|
+
## 1.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b1ec68ffd476e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1ec68ffd476e) -
|
|
8
|
+
Added new method attribute value to the team profile card triggered event
|
|
9
|
+
|
|
10
|
+
## 1.21.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`671ce2af0ccd5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/671ce2af0ccd5) -
|
|
15
|
+
Added analytics context support for team profilecard
|
|
16
|
+
|
|
3
17
|
## 1.20.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -1707,7 +1707,7 @@ events:
|
|
|
1707
1707
|
attributes:
|
|
1708
1708
|
<<: [*PackageMetaDataContext, *ProfileCardAttributes]
|
|
1709
1709
|
method:
|
|
1710
|
-
type: ['hover', 'click']
|
|
1710
|
+
type: ['hover', 'click', 'keyboard']
|
|
1711
1711
|
description: the method of the profilecard
|
|
1712
1712
|
teamId:
|
|
1713
1713
|
type: string
|
|
@@ -3126,3 +3126,89 @@ events:
|
|
|
3126
3126
|
consumer:
|
|
3127
3127
|
type: string
|
|
3128
3128
|
description: The consumer of the team
|
|
3129
|
+
- invitePrompt eligibilityChecked:
|
|
3130
|
+
type: operational
|
|
3131
|
+
description: Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links
|
|
3132
|
+
attributes:
|
|
3133
|
+
isEligible:
|
|
3134
|
+
type: boolean
|
|
3135
|
+
description: If the user turns out to be eligible or not
|
|
3136
|
+
ineligibilityReason:
|
|
3137
|
+
type: string
|
|
3138
|
+
description: Optional parameter in case the user is not eligible for the experiment
|
|
3139
|
+
- invitePrompt eligibilityCheckFailed:
|
|
3140
|
+
type: operational
|
|
3141
|
+
description: Fired when eligibility check is for twcg_640_invite_prompt_on_teams_page_links failes for whatever reason
|
|
3142
|
+
attributes:
|
|
3143
|
+
error:
|
|
3144
|
+
type: string
|
|
3145
|
+
description: The error that was thrown
|
|
3146
|
+
- invitePrompt shown (flag):
|
|
3147
|
+
type: ui
|
|
3148
|
+
description: Fired when the invite prompt flag is displayed to the user
|
|
3149
|
+
attributes:
|
|
3150
|
+
inviteesCount:
|
|
3151
|
+
type: number
|
|
3152
|
+
description: Number of possible members to be invited
|
|
3153
|
+
targetApp:
|
|
3154
|
+
type: string
|
|
3155
|
+
description: Target app we'll invite the invitees to
|
|
3156
|
+
- invitePrompt clicked (inviteButton):
|
|
3157
|
+
type: ui
|
|
3158
|
+
description: Fired when the user clicks on Invite X team members / Invite X
|
|
3159
|
+
attributes:
|
|
3160
|
+
inviteesCount:
|
|
3161
|
+
type: number
|
|
3162
|
+
description: Number of possible members being invited
|
|
3163
|
+
targetApp:
|
|
3164
|
+
type: string
|
|
3165
|
+
description: Target app we'll invite the invitees to
|
|
3166
|
+
- invitePrompt shown (successFlag):
|
|
3167
|
+
type: ui
|
|
3168
|
+
description: Fired when the invitation action is successfully completed and the success flag is shown to the user
|
|
3169
|
+
attributes:
|
|
3170
|
+
invitedCount:
|
|
3171
|
+
type: number
|
|
3172
|
+
description: Number of users invited to target app
|
|
3173
|
+
requestedAccessCount:
|
|
3174
|
+
type: number
|
|
3175
|
+
description: Number of users whose access have been requested for target app
|
|
3176
|
+
variant:
|
|
3177
|
+
type: string
|
|
3178
|
+
description: Which version of the flag was displayed
|
|
3179
|
+
targetApp:
|
|
3180
|
+
type: string
|
|
3181
|
+
description: Target app to which users have been RAd or invited
|
|
3182
|
+
- invitePrompt shown (failedFlag):
|
|
3183
|
+
type: ui
|
|
3184
|
+
description: Fired when the invite action fails and we shown an error flag to the user
|
|
3185
|
+
attributes:
|
|
3186
|
+
invitedCount:
|
|
3187
|
+
type: number
|
|
3188
|
+
description: Number of members we successfully invited or RAd
|
|
3189
|
+
failedCount:
|
|
3190
|
+
type: number
|
|
3191
|
+
description: Number of members we failed to invited
|
|
3192
|
+
totalCount:
|
|
3193
|
+
type: number
|
|
3194
|
+
description: Total number of members we tried to invite
|
|
3195
|
+
- invitePrompt clicked (dismissButton):
|
|
3196
|
+
type: ui
|
|
3197
|
+
description: Fired when the users dismisses the invite prompt flag
|
|
3198
|
+
attributes:
|
|
3199
|
+
inviteesCount:
|
|
3200
|
+
type: number
|
|
3201
|
+
description: Number of possible members being invited
|
|
3202
|
+
targetApp:
|
|
3203
|
+
type: string
|
|
3204
|
+
description: Target app to which users would have been invited to
|
|
3205
|
+
- feature exposed:
|
|
3206
|
+
type: track
|
|
3207
|
+
description: Fired when a flag is exposed to a user
|
|
3208
|
+
attributes:
|
|
3209
|
+
flagKey:
|
|
3210
|
+
type: string
|
|
3211
|
+
description: The feature flag/experiment key on Switcheroo
|
|
3212
|
+
cohort:
|
|
3213
|
+
type: string
|
|
3214
|
+
description: To which cohort was the user exposed to
|
|
@@ -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::beeb7e237687a19ef573366721734994>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -757,7 +757,7 @@ export type RovoAgentProfilecardTriggeredAttributesType = {
|
|
|
757
757
|
};
|
|
758
758
|
export type TeamProfileCardTriggeredAttributesType = {
|
|
759
759
|
firedAt: number;
|
|
760
|
-
method: 'hover' | 'click';
|
|
760
|
+
method: 'hover' | 'click' | 'keyboard';
|
|
761
761
|
teamId: string;
|
|
762
762
|
};
|
|
763
763
|
export type UserTriggeredAttributesType = {
|
|
@@ -1390,6 +1390,40 @@ export type TeamAssignedTypePickerClickedAttributesType = {
|
|
|
1390
1390
|
teamProfileTabIndex: number;
|
|
1391
1391
|
consumer: string;
|
|
1392
1392
|
};
|
|
1393
|
+
export type InvitePromptEligibilityCheckedAttributesType = {
|
|
1394
|
+
isEligible: boolean;
|
|
1395
|
+
ineligibilityReason: string;
|
|
1396
|
+
};
|
|
1397
|
+
export type InvitePromptEligibilityCheckFailedAttributesType = {
|
|
1398
|
+
error: string;
|
|
1399
|
+
};
|
|
1400
|
+
export type InvitePromptShownFlagAttributesType = {
|
|
1401
|
+
inviteesCount: number;
|
|
1402
|
+
targetApp: string;
|
|
1403
|
+
};
|
|
1404
|
+
export type InvitePromptClickedInviteButtonAttributesType = {
|
|
1405
|
+
inviteesCount: number;
|
|
1406
|
+
targetApp: string;
|
|
1407
|
+
};
|
|
1408
|
+
export type InvitePromptShownSuccessFlagAttributesType = {
|
|
1409
|
+
invitedCount: number;
|
|
1410
|
+
requestedAccessCount: number;
|
|
1411
|
+
variant: string;
|
|
1412
|
+
targetApp: string;
|
|
1413
|
+
};
|
|
1414
|
+
export type InvitePromptShownFailedFlagAttributesType = {
|
|
1415
|
+
invitedCount: number;
|
|
1416
|
+
failedCount: number;
|
|
1417
|
+
totalCount: number;
|
|
1418
|
+
};
|
|
1419
|
+
export type InvitePromptClickedDismissButtonAttributesType = {
|
|
1420
|
+
inviteesCount: number;
|
|
1421
|
+
targetApp: string;
|
|
1422
|
+
};
|
|
1423
|
+
export type FeatureExposedAttributesType = {
|
|
1424
|
+
flagKey: string;
|
|
1425
|
+
cohort: string;
|
|
1426
|
+
};
|
|
1393
1427
|
export type AnalyticsEventAttributes = {
|
|
1394
1428
|
/**
|
|
1395
1429
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -2374,5 +2408,29 @@ export type AnalyticsEventAttributes = {
|
|
|
2374
2408
|
/**
|
|
2375
2409
|
* fired when team assigned type picker is clicked */
|
|
2376
2410
|
'ui.teamAssignedTypePicker.clicked': TeamAssignedTypePickerClickedAttributesType;
|
|
2411
|
+
/**
|
|
2412
|
+
* Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
|
|
2413
|
+
'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
|
|
2414
|
+
/**
|
|
2415
|
+
* Fired when eligibility check is for twcg_640_invite_prompt_on_teams_page_links failes for whatever reason */
|
|
2416
|
+
'operational.invitePrompt.eligibilityCheckFailed': InvitePromptEligibilityCheckFailedAttributesType;
|
|
2417
|
+
/**
|
|
2418
|
+
* Fired when the invite prompt flag is displayed to the user */
|
|
2419
|
+
'ui.invitePrompt.shown.flag': InvitePromptShownFlagAttributesType;
|
|
2420
|
+
/**
|
|
2421
|
+
* Fired when the user clicks on Invite X team members / Invite X */
|
|
2422
|
+
'ui.invitePrompt.clicked.inviteButton': InvitePromptClickedInviteButtonAttributesType;
|
|
2423
|
+
/**
|
|
2424
|
+
* Fired when the invitation action is successfully completed and the success flag is shown to the user */
|
|
2425
|
+
'ui.invitePrompt.shown.successFlag': InvitePromptShownSuccessFlagAttributesType;
|
|
2426
|
+
/**
|
|
2427
|
+
* Fired when the invite action fails and we shown an error flag to the user */
|
|
2428
|
+
'ui.invitePrompt.shown.failedFlag': InvitePromptShownFailedFlagAttributesType;
|
|
2429
|
+
/**
|
|
2430
|
+
* Fired when the users dismisses the invite prompt flag */
|
|
2431
|
+
'ui.invitePrompt.clicked.dismissButton': InvitePromptClickedDismissButtonAttributesType;
|
|
2432
|
+
/**
|
|
2433
|
+
* Fired when a flag is exposed to a user */
|
|
2434
|
+
'track.feature.exposed': FeatureExposedAttributesType;
|
|
2377
2435
|
};
|
|
2378
2436
|
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' | 'teamsPage' | 'directoryScreen';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen' | 'teamProfileCard';
|
|
@@ -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::beeb7e237687a19ef573366721734994>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -757,7 +757,7 @@ export type RovoAgentProfilecardTriggeredAttributesType = {
|
|
|
757
757
|
};
|
|
758
758
|
export type TeamProfileCardTriggeredAttributesType = {
|
|
759
759
|
firedAt: number;
|
|
760
|
-
method: 'hover' | 'click';
|
|
760
|
+
method: 'hover' | 'click' | 'keyboard';
|
|
761
761
|
teamId: string;
|
|
762
762
|
};
|
|
763
763
|
export type UserTriggeredAttributesType = {
|
|
@@ -1390,6 +1390,40 @@ export type TeamAssignedTypePickerClickedAttributesType = {
|
|
|
1390
1390
|
teamProfileTabIndex: number;
|
|
1391
1391
|
consumer: string;
|
|
1392
1392
|
};
|
|
1393
|
+
export type InvitePromptEligibilityCheckedAttributesType = {
|
|
1394
|
+
isEligible: boolean;
|
|
1395
|
+
ineligibilityReason: string;
|
|
1396
|
+
};
|
|
1397
|
+
export type InvitePromptEligibilityCheckFailedAttributesType = {
|
|
1398
|
+
error: string;
|
|
1399
|
+
};
|
|
1400
|
+
export type InvitePromptShownFlagAttributesType = {
|
|
1401
|
+
inviteesCount: number;
|
|
1402
|
+
targetApp: string;
|
|
1403
|
+
};
|
|
1404
|
+
export type InvitePromptClickedInviteButtonAttributesType = {
|
|
1405
|
+
inviteesCount: number;
|
|
1406
|
+
targetApp: string;
|
|
1407
|
+
};
|
|
1408
|
+
export type InvitePromptShownSuccessFlagAttributesType = {
|
|
1409
|
+
invitedCount: number;
|
|
1410
|
+
requestedAccessCount: number;
|
|
1411
|
+
variant: string;
|
|
1412
|
+
targetApp: string;
|
|
1413
|
+
};
|
|
1414
|
+
export type InvitePromptShownFailedFlagAttributesType = {
|
|
1415
|
+
invitedCount: number;
|
|
1416
|
+
failedCount: number;
|
|
1417
|
+
totalCount: number;
|
|
1418
|
+
};
|
|
1419
|
+
export type InvitePromptClickedDismissButtonAttributesType = {
|
|
1420
|
+
inviteesCount: number;
|
|
1421
|
+
targetApp: string;
|
|
1422
|
+
};
|
|
1423
|
+
export type FeatureExposedAttributesType = {
|
|
1424
|
+
flagKey: string;
|
|
1425
|
+
cohort: string;
|
|
1426
|
+
};
|
|
1393
1427
|
export type AnalyticsEventAttributes = {
|
|
1394
1428
|
/**
|
|
1395
1429
|
* fired when the teams-app-internal-analytics example button is clicked */
|
|
@@ -2374,5 +2408,29 @@ export type AnalyticsEventAttributes = {
|
|
|
2374
2408
|
/**
|
|
2375
2409
|
* fired when team assigned type picker is clicked */
|
|
2376
2410
|
'ui.teamAssignedTypePicker.clicked': TeamAssignedTypePickerClickedAttributesType;
|
|
2411
|
+
/**
|
|
2412
|
+
* Fired when eligibility check is performed for twcg_640_invite_prompt_on_teams_page_links */
|
|
2413
|
+
'operational.invitePrompt.eligibilityChecked': InvitePromptEligibilityCheckedAttributesType;
|
|
2414
|
+
/**
|
|
2415
|
+
* Fired when eligibility check is for twcg_640_invite_prompt_on_teams_page_links failes for whatever reason */
|
|
2416
|
+
'operational.invitePrompt.eligibilityCheckFailed': InvitePromptEligibilityCheckFailedAttributesType;
|
|
2417
|
+
/**
|
|
2418
|
+
* Fired when the invite prompt flag is displayed to the user */
|
|
2419
|
+
'ui.invitePrompt.shown.flag': InvitePromptShownFlagAttributesType;
|
|
2420
|
+
/**
|
|
2421
|
+
* Fired when the user clicks on Invite X team members / Invite X */
|
|
2422
|
+
'ui.invitePrompt.clicked.inviteButton': InvitePromptClickedInviteButtonAttributesType;
|
|
2423
|
+
/**
|
|
2424
|
+
* Fired when the invitation action is successfully completed and the success flag is shown to the user */
|
|
2425
|
+
'ui.invitePrompt.shown.successFlag': InvitePromptShownSuccessFlagAttributesType;
|
|
2426
|
+
/**
|
|
2427
|
+
* Fired when the invite action fails and we shown an error flag to the user */
|
|
2428
|
+
'ui.invitePrompt.shown.failedFlag': InvitePromptShownFailedFlagAttributesType;
|
|
2429
|
+
/**
|
|
2430
|
+
* Fired when the users dismisses the invite prompt flag */
|
|
2431
|
+
'ui.invitePrompt.clicked.dismissButton': InvitePromptClickedDismissButtonAttributesType;
|
|
2432
|
+
/**
|
|
2433
|
+
* Fired when a flag is exposed to a user */
|
|
2434
|
+
'track.feature.exposed': FeatureExposedAttributesType;
|
|
2377
2435
|
};
|
|
2378
2436
|
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' | 'teamsPage' | 'directoryScreen';
|
|
4
|
+
export type AnalyticsEventSource = 'userProfileScreen' | 'teamProfileAbout' | 'teamProfileScreen' | 'userMenu' | 'peopleHome' | 'avatarInitialsPicker' | 'peopleDirectorySearchPage' | 'peopleDirectorySearchResultsPage' | 'createTeamModal' | 'agentProfileScreen' | 'teamRestoreScreen' | 'teamsPage' | 'directoryScreen' | 'teamProfileCard';
|
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"name": "@atlaskit/teams-app-internal-analytics",
|
|
88
|
-
"version": "1.
|
|
88
|
+
"version": "1.22.0",
|
|
89
89
|
"description": "A package used by the teams app and platform packages to handle people and teams analytics",
|
|
90
90
|
"author": "Atlassian Pty Ltd",
|
|
91
91
|
"license": "Apache-2.0",
|