@atlaskit/teams-app-internal-analytics 1.2.0 → 1.3.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,12 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c5c355893ce53`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c5c355893ce53) -
8
+ Added teams common analytics to spec
9
+
3
10
  ## 1.2.0
4
11
 
5
12
  ### Minor Changes
@@ -7,6 +7,42 @@ context:
7
7
  type: string
8
8
  description: version of the package the event was fired from
9
9
 
10
+ shared:
11
+ TeamCreateDialogSuccessAttributes: &TeamCreateDialogSuccessAttributes
12
+ teamId:
13
+ type: string
14
+ description: The id of the team
15
+ numberOfMembers:
16
+ type: number
17
+ description: The number of members
18
+ defaultTeamType:
19
+ type: ['OPEN', 'MEMBER_INVITE', 'EXTERNAL']
20
+ description: The default team type
21
+ chosenTeamType:
22
+ type: ['OPEN', 'MEMBER_INVITE', 'EXTERNAL']
23
+ description: The chosen team type
24
+ teamTypeChoiceEnabled:
25
+ type: boolean
26
+ description: Whether the team type choice is enabled
27
+ ErrorAttributes: &ErrorAttributes
28
+ numberOfMembers:
29
+ type: number
30
+ description: The number of members
31
+ errorMessage:
32
+ type: string
33
+ description: The error message
34
+ errorStack:
35
+ type: string
36
+ required: false
37
+ description: The error stack
38
+ errorStatus:
39
+ type: number
40
+ description: The error status
41
+ traceId:
42
+ type: string
43
+ required: false
44
+ description: The trace id
45
+
10
46
  events:
11
47
  - button clicked (analyticsExample):
12
48
  type: ui
@@ -40,3 +76,414 @@ events:
40
76
  testAttribute:
41
77
  type: string
42
78
  description: test attribute
79
+ - memberPicker error:
80
+ type: track
81
+ description: fired when the member picker error is triggered
82
+ attributes:
83
+ <<: *PackageMetaDataContext
84
+ - requestedContainers requested:
85
+ type: track
86
+ description: fired when the teams containers are requested
87
+ attributes:
88
+ <<: *PackageMetaDataContext
89
+ containers:
90
+ type: object
91
+ description: the containers that are requested
92
+ - teamCreateDialog viewed:
93
+ type: screen
94
+ description: fired when the team create dialog is viewed
95
+ attributes:
96
+ <<: *PackageMetaDataContext
97
+ proposedMembersLength:
98
+ type: number
99
+ description: the number of proposed members
100
+ - member suggested:
101
+ type: ui
102
+ description: fired when the member is suggested
103
+ attributes:
104
+ <<: *PackageMetaDataContext
105
+ - teamCreateDialog submitted:
106
+ type: ui
107
+ description: fired when the team create dialog is submitted
108
+ attributes:
109
+ <<: *PackageMetaDataContext
110
+ canCreateTeam:
111
+ type: boolean
112
+ description: whether the team can be created
113
+ numberOfMembers:
114
+ type: number
115
+ description: the number of members
116
+ numberOfSuggestedMembers:
117
+ type: number
118
+ description: the number of suggested members
119
+ - teamCreateDialog clicked (teamLinkSuccessFlag):
120
+ type: ui
121
+ description: fired when the team create dialog clicked team link success flag
122
+ attributes:
123
+ <<: *PackageMetaDataContext
124
+ teamId:
125
+ type: string
126
+ description: the id of the team
127
+ numberOfMembers:
128
+ type: number
129
+ description: the number of members
130
+ - teamCreateDialog succeeded:
131
+ type: track
132
+ description: fired when the team create dialog succeeded
133
+ attributes:
134
+ <<: *PackageMetaDataContext
135
+ teamId:
136
+ type: string
137
+ description: The id of the team
138
+ numberOfMembers:
139
+ type: number
140
+ description: The number of members
141
+ defaultTeamType:
142
+ type: ['OPEN', 'MEMBER_INVITE', 'EXTERNAL']
143
+ required: false
144
+ description: The default team type
145
+ chosenTeamType:
146
+ type: ['OPEN', 'MEMBER_INVITE', 'EXTERNAL']
147
+ description: The chosen team type
148
+ teamTypeChoiceEnabled:
149
+ type: boolean
150
+ required: false
151
+ description: Whether the team type choice is enabled
152
+ - teamCreateDialog failed:
153
+ type: track
154
+ description: fired when the team create dialog failed
155
+ attributes:
156
+ <<: *PackageMetaDataContext
157
+ numberOfMembers:
158
+ type: number
159
+ description: the number of members
160
+ errorMessage:
161
+ type: string
162
+ description: the error message
163
+ errorStack:
164
+ type: string
165
+ required: false
166
+ description: the error stack
167
+ errorStatus:
168
+ type: number
169
+ description: the error status
170
+ traceId:
171
+ type: string
172
+ required: false
173
+ description: the trace id
174
+ - teamTypePicker clicked:
175
+ type: ui
176
+ description: fired when the team type picker is clicked
177
+ attributes:
178
+ <<: *PackageMetaDataContext
179
+ defaultType:
180
+ type: ['OPEN', 'MEMBER_INVITE', 'EXTERNAL']
181
+ required: false
182
+ description: the default type
183
+ chosenType:
184
+ type: ['OPEN', 'MEMBER_INVITE']
185
+ description: the chosen type
186
+ - teamCreateDialog closed:
187
+ type: ui
188
+ description: fired when the team create dialog is closed
189
+ attributes:
190
+ <<: *PackageMetaDataContext
191
+ - inviteCapabilitiesService failed:
192
+ type: operational
193
+ description: fired when the invite capabilities service failed
194
+ attributes:
195
+ <<: *PackageMetaDataContext
196
+ integration:
197
+ type: string
198
+ description: the integration source
199
+ products:
200
+ type: []
201
+ description: the products
202
+ - addToTeamService failed:
203
+ type: track
204
+ description: fired when the add to team service failed
205
+ attributes:
206
+ <<: *PackageMetaDataContext
207
+ integration:
208
+ type: string
209
+ description: the integration source
210
+ message:
211
+ type: string
212
+ required: false
213
+ description: the error message
214
+ errorsCount:
215
+ type: number
216
+ required: false
217
+ description: the number of errors
218
+ errors:
219
+ type: []
220
+ required: false
221
+ description: the errors
222
+ - invitedTeamMembers added:
223
+ type: track
224
+ description: fired when the invited team members are added
225
+ attributes:
226
+ <<: *PackageMetaDataContext
227
+ numberOfMembers:
228
+ type: number
229
+ description: the number of members
230
+ members:
231
+ type: []
232
+ description: the members
233
+ integration:
234
+ type: string
235
+ description: the integration source
236
+ - inviteToProductService failed:
237
+ type: track
238
+ description: fired when the invite to product service failed
239
+ attributes:
240
+ <<: *PackageMetaDataContext
241
+ integration:
242
+ type: string
243
+ description: the integration source
244
+ message:
245
+ type: string
246
+ required: false
247
+ description: the error message
248
+ errorsCount:
249
+ type: number
250
+ required: false
251
+ description: the number of errors
252
+ errors:
253
+ type: []
254
+ required: false
255
+ description: the errors
256
+ result:
257
+ type: []
258
+ required: false
259
+ description: the result
260
+ - containerPermissions succeeded:
261
+ type: track
262
+ description: fired when the container permissions are succeeded
263
+ attributes:
264
+ <<: *PackageMetaDataContext
265
+ canCreateConfluenceContainer:
266
+ type: boolean
267
+ description: whether the confluence container can be created
268
+ canCreateJiraContainer:
269
+ type: boolean
270
+ description: whether the jira container can be created
271
+ canCreateLoomContainer:
272
+ type: boolean
273
+ description: whether the loom container can be created
274
+ - teamWorkedOn rendered:
275
+ type: ui
276
+ description: fired when the team worked on is rendered
277
+ attributes:
278
+ <<: *PackageMetaDataContext
279
+ state:
280
+ type: ['error', 'empty', 'data', 'unknown']
281
+ description: the state of the team worked on
282
+ - teamWorkedOn failed:
283
+ type: operational
284
+ description: fired when the team worked on failed
285
+ attributes:
286
+ <<: *PackageMetaDataContext
287
+ error:
288
+ type: string
289
+ required: false
290
+ description: the error
291
+ traceId:
292
+ type: string
293
+ required: false
294
+ description: the trace id
295
+ status:
296
+ type: number
297
+ required: false
298
+ description: the status
299
+ statusText:
300
+ type: string
301
+ required: false
302
+ description: the status text
303
+ - teamWorkedOn succeeded:
304
+ type: operational
305
+ description: fired when the team worked on failed
306
+ attributes:
307
+ <<: *PackageMetaDataContext
308
+ error:
309
+ type: string
310
+ required: false
311
+ description: the error
312
+ traceId:
313
+ type: string
314
+ required: false
315
+ description: the trace id
316
+ status:
317
+ type: number
318
+ required: false
319
+ description: the status
320
+ statusText:
321
+ type: string
322
+ required: false
323
+ description: the status text
324
+ - viewAllIssues clicked:
325
+ type: ui
326
+ description: fired when the view all issues is clicked
327
+ attributes:
328
+ <<: *PackageMetaDataContext
329
+ isOpenNewTab:
330
+ type: boolean
331
+ description: whether the view all issues is opened in a new tab
332
+ teamId:
333
+ type: string
334
+ description: the id of the team
335
+ - teamWorkedOnLink clicked:
336
+ type: ui
337
+ description: fired when the team worked on link is clicked
338
+ attributes:
339
+ <<: *PackageMetaDataContext
340
+ isOpenNewTab:
341
+ type: boolean
342
+ description: whether the team worked on link is opened in a new tab
343
+ - navigationMenuItem clicked (addPeopleNavigationMenuItem):
344
+ type: ui
345
+ description: fired when the additional menu link is clicked
346
+ attributes:
347
+ <<: *PackageMetaDataContext
348
+ product:
349
+ type: string
350
+ description: the product
351
+ integration:
352
+ type: string
353
+ description: the integration
354
+ - createNewTeamLink clicked:
355
+ type: ui
356
+ description: fired when the create new team link is clicked
357
+ attributes:
358
+ <<: *PackageMetaDataContext
359
+ - viewAllPeopleDirectory clicked:
360
+ type: ui
361
+ description: fired when the view all people directory is clicked
362
+ attributes:
363
+ <<: *PackageMetaDataContext
364
+ isLeftClick:
365
+ type: boolean
366
+ description: the product
367
+ - peopleMenuLink clicked:
368
+ type: ui
369
+ description: fired when the people menu link is clicked
370
+ attributes:
371
+ <<: *PackageMetaDataContext
372
+ isLeftClick:
373
+ type: boolean
374
+ description: the product
375
+ - peopleMenu viewed (loadingIndicator):
376
+ type: ui
377
+ description: fired when the people menu is viewed and loading indicator is shown
378
+ attributes:
379
+ <<: *PackageMetaDataContext
380
+ duration:
381
+ type: number
382
+ description: the duration
383
+ startTime:
384
+ type: number
385
+ description: the start time
386
+ - teamMenuLink clicked:
387
+ type: ui
388
+ description: fired when the team menu link is clicked
389
+ attributes:
390
+ <<: *PackageMetaDataContext
391
+ isLeftClick:
392
+ type: boolean
393
+ description: the product
394
+ - peopleMenu viewed:
395
+ type: screen
396
+ description: fired when the people menu is viewed and no browse permission is shown
397
+ attributes:
398
+ <<: *PackageMetaDataContext
399
+ isCacheEmpty:
400
+ type: boolean
401
+ description: whether the cache is empty
402
+ - addPeopleNavigationItem rendered:
403
+ type: ui
404
+ description: fired when the people menu is succeeded
405
+ attributes:
406
+ <<: *PackageMetaDataContext
407
+ - peopleMenu viewed (noBrowsePermission):
408
+ type: ui
409
+ description: fired when the people menu is viewed and no browse permission is shown
410
+ attributes:
411
+ <<: *PackageMetaDataContext
412
+ - peopleMenu succeeded:
413
+ type: track
414
+ description: fired when the people menu is succeeded
415
+ attributes:
416
+ <<: *PackageMetaDataContext
417
+ usersCount:
418
+ type: number
419
+ description: the number of users
420
+ teamsCount:
421
+ type: number
422
+ description: the number of teams
423
+ duration:
424
+ type: number
425
+ description: the duration
426
+ startTime:
427
+ type: number
428
+ description: the start time
429
+ - hoverAndClickPeopleButton measured:
430
+ type: track
431
+ description: fired when the hover and click people button is measured
432
+ attributes:
433
+ <<: *PackageMetaDataContext
434
+ duration:
435
+ type: number
436
+ description: the duration
437
+ startTime:
438
+ type: number
439
+ description: the start time
440
+ - preFetchData triggered:
441
+ type: track
442
+ description: fired when the pre fetch data is triggered
443
+ attributes:
444
+ <<: *PackageMetaDataContext
445
+ - fetchingUsersTeamsData measured:
446
+ type: track
447
+ description: fired when the fetching users and teams data is measured
448
+ attributes:
449
+ <<: *PackageMetaDataContext
450
+ duration:
451
+ type: number
452
+ description: the duration
453
+ startTime:
454
+ type: number
455
+ description: the start time
456
+ - peopleMenuLink succeeded:
457
+ type: operational
458
+ description: fired when the people menu link is succeeded
459
+ attributes:
460
+ <<: *PackageMetaDataContext
461
+ - peopleMenuLink failed:
462
+ type: operational
463
+ description: fired when the people menu link is failed
464
+ attributes:
465
+ <<: *PackageMetaDataContext
466
+ status:
467
+ type: number
468
+ required: false
469
+ description: the status
470
+ error:
471
+ type: string
472
+ description: the error
473
+ - teamMenuLink succeeded:
474
+ type: operational
475
+ description: fired when the people menu link is succeeded
476
+ attributes:
477
+ <<: *PackageMetaDataContext
478
+ - teamMenuLink failed:
479
+ type: operational
480
+ description: fired when the people menu link is failed
481
+ attributes:
482
+ <<: *PackageMetaDataContext
483
+ status:
484
+ type: number
485
+ required: false
486
+ description: the status
487
+ error:
488
+ type: string
489
+ description: the error
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::d5728d78d59f2a7bb511dc13bc1e6953>>
6
+ * @codegen <<SignedSource::c0f9013174bb49adfdc520d0de409cc9>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -22,6 +22,139 @@ export type AutomationFiredAnalyticsExampleAttributesType = {
22
22
  export type AnalyticsExampleScreenViewedAttributesType = {
23
23
  testAttribute: string;
24
24
  };
25
+ export type MemberPickerErrorAttributesType = {};
26
+ export type RequestedContainersRequestedAttributesType = {
27
+ containers: Record<string, unknown>;
28
+ };
29
+ export type TeamCreateDialogViewedAttributesType = {
30
+ proposedMembersLength: number;
31
+ };
32
+ export type MemberSuggestedAttributesType = {};
33
+ export type TeamCreateDialogSubmittedAttributesType = {
34
+ canCreateTeam: boolean;
35
+ numberOfMembers: number;
36
+ numberOfSuggestedMembers: number;
37
+ };
38
+ export type TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType = {
39
+ teamId: string;
40
+ numberOfMembers: number;
41
+ };
42
+ export type TeamCreateDialogSucceededAttributesType = {
43
+ teamId: string;
44
+ numberOfMembers: number;
45
+ defaultTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
46
+ chosenTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL';
47
+ teamTypeChoiceEnabled: boolean | null;
48
+ };
49
+ export type TeamCreateDialogFailedAttributesType = {
50
+ numberOfMembers: number;
51
+ errorMessage: string;
52
+ errorStack: string | null;
53
+ errorStatus: number;
54
+ traceId: string | null;
55
+ };
56
+ export type TeamTypePickerClickedAttributesType = {
57
+ defaultType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
58
+ chosenType: 'OPEN' | 'MEMBER_INVITE';
59
+ };
60
+ export type TeamCreateDialogClosedAttributesType = {};
61
+ export type InviteCapabilitiesServiceFailedAttributesType = {
62
+ integration: string;
63
+ products: unknown[];
64
+ };
65
+ export type AddToTeamServiceFailedAttributesType = {
66
+ integration: string;
67
+ message: string | null;
68
+ errorsCount: number | null;
69
+ errors: unknown[] | null;
70
+ };
71
+ export type InvitedTeamMembersAddedAttributesType = {
72
+ numberOfMembers: number;
73
+ members: unknown[];
74
+ integration: string;
75
+ };
76
+ export type InviteToProductServiceFailedAttributesType = {
77
+ integration: string;
78
+ message: string | null;
79
+ errorsCount: number | null;
80
+ errors: unknown[] | null;
81
+ result: unknown[] | null;
82
+ };
83
+ export type ContainerPermissionsSucceededAttributesType = {
84
+ canCreateConfluenceContainer: boolean;
85
+ canCreateJiraContainer: boolean;
86
+ canCreateLoomContainer: boolean;
87
+ };
88
+ export type TeamWorkedOnRenderedAttributesType = {
89
+ state: 'error' | 'empty' | 'data' | 'unknown';
90
+ };
91
+ export type TeamWorkedOnFailedAttributesType = {
92
+ error: string | null;
93
+ traceId: string | null;
94
+ status: number | null;
95
+ statusText: string | null;
96
+ };
97
+ export type TeamWorkedOnSucceededAttributesType = {
98
+ error: string | null;
99
+ traceId: string | null;
100
+ status: number | null;
101
+ statusText: string | null;
102
+ };
103
+ export type ViewAllIssuesClickedAttributesType = {
104
+ isOpenNewTab: boolean;
105
+ teamId: string;
106
+ };
107
+ export type TeamWorkedOnLinkClickedAttributesType = {
108
+ isOpenNewTab: boolean;
109
+ };
110
+ export type NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType = {
111
+ product: string;
112
+ integration: string;
113
+ };
114
+ export type CreateNewTeamLinkClickedAttributesType = {};
115
+ export type ViewAllPeopleDirectoryClickedAttributesType = {
116
+ isLeftClick: boolean;
117
+ };
118
+ export type PeopleMenuLinkClickedAttributesType = {
119
+ isLeftClick: boolean;
120
+ };
121
+ export type PeopleMenuViewedLoadingIndicatorAttributesType = {
122
+ duration: number;
123
+ startTime: number;
124
+ };
125
+ export type TeamMenuLinkClickedAttributesType = {
126
+ isLeftClick: boolean;
127
+ };
128
+ export type PeopleMenuViewedAttributesType = {
129
+ isCacheEmpty: boolean;
130
+ };
131
+ export type AddPeopleNavigationItemRenderedAttributesType = {};
132
+ export type PeopleMenuViewedNoBrowsePermissionAttributesType = {};
133
+ export type PeopleMenuSucceededAttributesType = {
134
+ usersCount: number;
135
+ teamsCount: number;
136
+ duration: number;
137
+ startTime: number;
138
+ };
139
+ export type HoverAndClickPeopleButtonMeasuredAttributesType = {
140
+ duration: number;
141
+ startTime: number;
142
+ };
143
+ export type PreFetchDataTriggeredAttributesType = {};
144
+ export type FetchingUsersTeamsDataMeasuredAttributesType = {
145
+ duration: number;
146
+ startTime: number;
147
+ };
148
+ export type PeopleMenuLinkSucceededAttributesType = {};
149
+ export type PeopleMenuLinkFailedAttributesType = {
150
+ status: number | null;
151
+ error: string;
152
+ };
153
+ export type TeamMenuLinkSucceededAttributesType = {};
154
+ export type TeamMenuLinkFailedAttributesType = {
155
+ status: number | null;
156
+ error: string;
157
+ };
25
158
  export type AnalyticsEventAttributes = {
26
159
  /**
27
160
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -35,5 +168,116 @@ export type AnalyticsEventAttributes = {
35
168
  /**
36
169
  * fired when the teams-app-internal-analytics example is viewed */
37
170
  'screen.analyticsExampleScreen.viewed': AnalyticsExampleScreenViewedAttributesType;
171
+ /**
172
+ * fired when the member picker error is triggered */
173
+ 'track.memberPicker.error': MemberPickerErrorAttributesType;
174
+ /**
175
+ * fired when the teams containers are requested */
176
+ 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
177
+ /**
178
+ * fired when the team create dialog is viewed */
179
+ 'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
180
+ /**
181
+ * fired when the member is suggested */
182
+ 'ui.member.suggested': MemberSuggestedAttributesType;
183
+ /**
184
+ * fired when the team create dialog is submitted */
185
+ 'ui.teamCreateDialog.submitted': TeamCreateDialogSubmittedAttributesType;
186
+ /**
187
+ * fired when the team create dialog clicked team link success flag */
188
+ 'ui.teamCreateDialog.clicked.teamLinkSuccessFlag': TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType;
189
+ /**
190
+ * fired when the team create dialog succeeded */
191
+ 'track.teamCreateDialog.succeeded': TeamCreateDialogSucceededAttributesType;
192
+ /**
193
+ * fired when the team create dialog failed */
194
+ 'track.teamCreateDialog.failed': TeamCreateDialogFailedAttributesType;
195
+ /**
196
+ * fired when the team type picker is clicked */
197
+ 'ui.teamTypePicker.clicked': TeamTypePickerClickedAttributesType;
198
+ /**
199
+ * fired when the team create dialog is closed */
200
+ 'ui.teamCreateDialog.closed': TeamCreateDialogClosedAttributesType;
201
+ /**
202
+ * fired when the invite capabilities service failed */
203
+ 'operational.inviteCapabilitiesService.failed': InviteCapabilitiesServiceFailedAttributesType;
204
+ /**
205
+ * fired when the add to team service failed */
206
+ 'track.addToTeamService.failed': AddToTeamServiceFailedAttributesType;
207
+ /**
208
+ * fired when the invited team members are added */
209
+ 'track.invitedTeamMembers.added': InvitedTeamMembersAddedAttributesType;
210
+ /**
211
+ * fired when the invite to product service failed */
212
+ 'track.inviteToProductService.failed': InviteToProductServiceFailedAttributesType;
213
+ /**
214
+ * fired when the container permissions are succeeded */
215
+ 'track.containerPermissions.succeeded': ContainerPermissionsSucceededAttributesType;
216
+ /**
217
+ * fired when the team worked on is rendered */
218
+ 'ui.teamWorkedOn.rendered': TeamWorkedOnRenderedAttributesType;
219
+ /**
220
+ * fired when the team worked on failed */
221
+ 'operational.teamWorkedOn.failed': TeamWorkedOnFailedAttributesType;
222
+ /**
223
+ * fired when the team worked on failed */
224
+ 'operational.teamWorkedOn.succeeded': TeamWorkedOnSucceededAttributesType;
225
+ /**
226
+ * fired when the view all issues is clicked */
227
+ 'ui.viewAllIssues.clicked': ViewAllIssuesClickedAttributesType;
228
+ /**
229
+ * fired when the team worked on link is clicked */
230
+ 'ui.teamWorkedOnLink.clicked': TeamWorkedOnLinkClickedAttributesType;
231
+ /**
232
+ * fired when the additional menu link is clicked */
233
+ 'ui.navigationMenuItem.clicked.addPeopleNavigationMenuItem': NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType;
234
+ /**
235
+ * fired when the create new team link is clicked */
236
+ 'ui.createNewTeamLink.clicked': CreateNewTeamLinkClickedAttributesType;
237
+ /**
238
+ * fired when the view all people directory is clicked */
239
+ 'ui.viewAllPeopleDirectory.clicked': ViewAllPeopleDirectoryClickedAttributesType;
240
+ /**
241
+ * fired when the people menu link is clicked */
242
+ 'ui.peopleMenuLink.clicked': PeopleMenuLinkClickedAttributesType;
243
+ /**
244
+ * fired when the people menu is viewed and loading indicator is shown */
245
+ 'ui.peopleMenu.viewed.loadingIndicator': PeopleMenuViewedLoadingIndicatorAttributesType;
246
+ /**
247
+ * fired when the team menu link is clicked */
248
+ 'ui.teamMenuLink.clicked': TeamMenuLinkClickedAttributesType;
249
+ /**
250
+ * fired when the people menu is viewed and no browse permission is shown */
251
+ 'screen.peopleMenu.viewed': PeopleMenuViewedAttributesType;
252
+ /**
253
+ * fired when the people menu is succeeded */
254
+ 'ui.addPeopleNavigationItem.rendered': AddPeopleNavigationItemRenderedAttributesType;
255
+ /**
256
+ * fired when the people menu is viewed and no browse permission is shown */
257
+ 'ui.peopleMenu.viewed.noBrowsePermission': PeopleMenuViewedNoBrowsePermissionAttributesType;
258
+ /**
259
+ * fired when the people menu is succeeded */
260
+ 'track.peopleMenu.succeeded': PeopleMenuSucceededAttributesType;
261
+ /**
262
+ * fired when the hover and click people button is measured */
263
+ 'track.hoverAndClickPeopleButton.measured': HoverAndClickPeopleButtonMeasuredAttributesType;
264
+ /**
265
+ * fired when the pre fetch data is triggered */
266
+ 'track.preFetchData.triggered': PreFetchDataTriggeredAttributesType;
267
+ /**
268
+ * fired when the fetching users and teams data is measured */
269
+ 'track.fetchingUsersTeamsData.measured': FetchingUsersTeamsDataMeasuredAttributesType;
270
+ /**
271
+ * fired when the people menu link is succeeded */
272
+ 'operational.peopleMenuLink.succeeded': PeopleMenuLinkSucceededAttributesType;
273
+ /**
274
+ * fired when the people menu link is failed */
275
+ 'operational.peopleMenuLink.failed': PeopleMenuLinkFailedAttributesType;
276
+ /**
277
+ * fired when the people menu link is succeeded */
278
+ 'operational.teamMenuLink.succeeded': TeamMenuLinkSucceededAttributesType;
279
+ /**
280
+ * fired when the people menu link is failed */
281
+ 'operational.teamMenuLink.failed': TeamMenuLinkFailedAttributesType;
38
282
  };
39
283
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::d5728d78d59f2a7bb511dc13bc1e6953>>
6
+ * @codegen <<SignedSource::c0f9013174bb49adfdc520d0de409cc9>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -22,6 +22,139 @@ export type AutomationFiredAnalyticsExampleAttributesType = {
22
22
  export type AnalyticsExampleScreenViewedAttributesType = {
23
23
  testAttribute: string;
24
24
  };
25
+ export type MemberPickerErrorAttributesType = {};
26
+ export type RequestedContainersRequestedAttributesType = {
27
+ containers: Record<string, unknown>;
28
+ };
29
+ export type TeamCreateDialogViewedAttributesType = {
30
+ proposedMembersLength: number;
31
+ };
32
+ export type MemberSuggestedAttributesType = {};
33
+ export type TeamCreateDialogSubmittedAttributesType = {
34
+ canCreateTeam: boolean;
35
+ numberOfMembers: number;
36
+ numberOfSuggestedMembers: number;
37
+ };
38
+ export type TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType = {
39
+ teamId: string;
40
+ numberOfMembers: number;
41
+ };
42
+ export type TeamCreateDialogSucceededAttributesType = {
43
+ teamId: string;
44
+ numberOfMembers: number;
45
+ defaultTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
46
+ chosenTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL';
47
+ teamTypeChoiceEnabled: boolean | null;
48
+ };
49
+ export type TeamCreateDialogFailedAttributesType = {
50
+ numberOfMembers: number;
51
+ errorMessage: string;
52
+ errorStack: string | null;
53
+ errorStatus: number;
54
+ traceId: string | null;
55
+ };
56
+ export type TeamTypePickerClickedAttributesType = {
57
+ defaultType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
58
+ chosenType: 'OPEN' | 'MEMBER_INVITE';
59
+ };
60
+ export type TeamCreateDialogClosedAttributesType = {};
61
+ export type InviteCapabilitiesServiceFailedAttributesType = {
62
+ integration: string;
63
+ products: unknown[];
64
+ };
65
+ export type AddToTeamServiceFailedAttributesType = {
66
+ integration: string;
67
+ message: string | null;
68
+ errorsCount: number | null;
69
+ errors: unknown[] | null;
70
+ };
71
+ export type InvitedTeamMembersAddedAttributesType = {
72
+ numberOfMembers: number;
73
+ members: unknown[];
74
+ integration: string;
75
+ };
76
+ export type InviteToProductServiceFailedAttributesType = {
77
+ integration: string;
78
+ message: string | null;
79
+ errorsCount: number | null;
80
+ errors: unknown[] | null;
81
+ result: unknown[] | null;
82
+ };
83
+ export type ContainerPermissionsSucceededAttributesType = {
84
+ canCreateConfluenceContainer: boolean;
85
+ canCreateJiraContainer: boolean;
86
+ canCreateLoomContainer: boolean;
87
+ };
88
+ export type TeamWorkedOnRenderedAttributesType = {
89
+ state: 'error' | 'empty' | 'data' | 'unknown';
90
+ };
91
+ export type TeamWorkedOnFailedAttributesType = {
92
+ error: string | null;
93
+ traceId: string | null;
94
+ status: number | null;
95
+ statusText: string | null;
96
+ };
97
+ export type TeamWorkedOnSucceededAttributesType = {
98
+ error: string | null;
99
+ traceId: string | null;
100
+ status: number | null;
101
+ statusText: string | null;
102
+ };
103
+ export type ViewAllIssuesClickedAttributesType = {
104
+ isOpenNewTab: boolean;
105
+ teamId: string;
106
+ };
107
+ export type TeamWorkedOnLinkClickedAttributesType = {
108
+ isOpenNewTab: boolean;
109
+ };
110
+ export type NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType = {
111
+ product: string;
112
+ integration: string;
113
+ };
114
+ export type CreateNewTeamLinkClickedAttributesType = {};
115
+ export type ViewAllPeopleDirectoryClickedAttributesType = {
116
+ isLeftClick: boolean;
117
+ };
118
+ export type PeopleMenuLinkClickedAttributesType = {
119
+ isLeftClick: boolean;
120
+ };
121
+ export type PeopleMenuViewedLoadingIndicatorAttributesType = {
122
+ duration: number;
123
+ startTime: number;
124
+ };
125
+ export type TeamMenuLinkClickedAttributesType = {
126
+ isLeftClick: boolean;
127
+ };
128
+ export type PeopleMenuViewedAttributesType = {
129
+ isCacheEmpty: boolean;
130
+ };
131
+ export type AddPeopleNavigationItemRenderedAttributesType = {};
132
+ export type PeopleMenuViewedNoBrowsePermissionAttributesType = {};
133
+ export type PeopleMenuSucceededAttributesType = {
134
+ usersCount: number;
135
+ teamsCount: number;
136
+ duration: number;
137
+ startTime: number;
138
+ };
139
+ export type HoverAndClickPeopleButtonMeasuredAttributesType = {
140
+ duration: number;
141
+ startTime: number;
142
+ };
143
+ export type PreFetchDataTriggeredAttributesType = {};
144
+ export type FetchingUsersTeamsDataMeasuredAttributesType = {
145
+ duration: number;
146
+ startTime: number;
147
+ };
148
+ export type PeopleMenuLinkSucceededAttributesType = {};
149
+ export type PeopleMenuLinkFailedAttributesType = {
150
+ status: number | null;
151
+ error: string;
152
+ };
153
+ export type TeamMenuLinkSucceededAttributesType = {};
154
+ export type TeamMenuLinkFailedAttributesType = {
155
+ status: number | null;
156
+ error: string;
157
+ };
25
158
  export type AnalyticsEventAttributes = {
26
159
  /**
27
160
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -35,5 +168,116 @@ export type AnalyticsEventAttributes = {
35
168
  /**
36
169
  * fired when the teams-app-internal-analytics example is viewed */
37
170
  'screen.analyticsExampleScreen.viewed': AnalyticsExampleScreenViewedAttributesType;
171
+ /**
172
+ * fired when the member picker error is triggered */
173
+ 'track.memberPicker.error': MemberPickerErrorAttributesType;
174
+ /**
175
+ * fired when the teams containers are requested */
176
+ 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
177
+ /**
178
+ * fired when the team create dialog is viewed */
179
+ 'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
180
+ /**
181
+ * fired when the member is suggested */
182
+ 'ui.member.suggested': MemberSuggestedAttributesType;
183
+ /**
184
+ * fired when the team create dialog is submitted */
185
+ 'ui.teamCreateDialog.submitted': TeamCreateDialogSubmittedAttributesType;
186
+ /**
187
+ * fired when the team create dialog clicked team link success flag */
188
+ 'ui.teamCreateDialog.clicked.teamLinkSuccessFlag': TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType;
189
+ /**
190
+ * fired when the team create dialog succeeded */
191
+ 'track.teamCreateDialog.succeeded': TeamCreateDialogSucceededAttributesType;
192
+ /**
193
+ * fired when the team create dialog failed */
194
+ 'track.teamCreateDialog.failed': TeamCreateDialogFailedAttributesType;
195
+ /**
196
+ * fired when the team type picker is clicked */
197
+ 'ui.teamTypePicker.clicked': TeamTypePickerClickedAttributesType;
198
+ /**
199
+ * fired when the team create dialog is closed */
200
+ 'ui.teamCreateDialog.closed': TeamCreateDialogClosedAttributesType;
201
+ /**
202
+ * fired when the invite capabilities service failed */
203
+ 'operational.inviteCapabilitiesService.failed': InviteCapabilitiesServiceFailedAttributesType;
204
+ /**
205
+ * fired when the add to team service failed */
206
+ 'track.addToTeamService.failed': AddToTeamServiceFailedAttributesType;
207
+ /**
208
+ * fired when the invited team members are added */
209
+ 'track.invitedTeamMembers.added': InvitedTeamMembersAddedAttributesType;
210
+ /**
211
+ * fired when the invite to product service failed */
212
+ 'track.inviteToProductService.failed': InviteToProductServiceFailedAttributesType;
213
+ /**
214
+ * fired when the container permissions are succeeded */
215
+ 'track.containerPermissions.succeeded': ContainerPermissionsSucceededAttributesType;
216
+ /**
217
+ * fired when the team worked on is rendered */
218
+ 'ui.teamWorkedOn.rendered': TeamWorkedOnRenderedAttributesType;
219
+ /**
220
+ * fired when the team worked on failed */
221
+ 'operational.teamWorkedOn.failed': TeamWorkedOnFailedAttributesType;
222
+ /**
223
+ * fired when the team worked on failed */
224
+ 'operational.teamWorkedOn.succeeded': TeamWorkedOnSucceededAttributesType;
225
+ /**
226
+ * fired when the view all issues is clicked */
227
+ 'ui.viewAllIssues.clicked': ViewAllIssuesClickedAttributesType;
228
+ /**
229
+ * fired when the team worked on link is clicked */
230
+ 'ui.teamWorkedOnLink.clicked': TeamWorkedOnLinkClickedAttributesType;
231
+ /**
232
+ * fired when the additional menu link is clicked */
233
+ 'ui.navigationMenuItem.clicked.addPeopleNavigationMenuItem': NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType;
234
+ /**
235
+ * fired when the create new team link is clicked */
236
+ 'ui.createNewTeamLink.clicked': CreateNewTeamLinkClickedAttributesType;
237
+ /**
238
+ * fired when the view all people directory is clicked */
239
+ 'ui.viewAllPeopleDirectory.clicked': ViewAllPeopleDirectoryClickedAttributesType;
240
+ /**
241
+ * fired when the people menu link is clicked */
242
+ 'ui.peopleMenuLink.clicked': PeopleMenuLinkClickedAttributesType;
243
+ /**
244
+ * fired when the people menu is viewed and loading indicator is shown */
245
+ 'ui.peopleMenu.viewed.loadingIndicator': PeopleMenuViewedLoadingIndicatorAttributesType;
246
+ /**
247
+ * fired when the team menu link is clicked */
248
+ 'ui.teamMenuLink.clicked': TeamMenuLinkClickedAttributesType;
249
+ /**
250
+ * fired when the people menu is viewed and no browse permission is shown */
251
+ 'screen.peopleMenu.viewed': PeopleMenuViewedAttributesType;
252
+ /**
253
+ * fired when the people menu is succeeded */
254
+ 'ui.addPeopleNavigationItem.rendered': AddPeopleNavigationItemRenderedAttributesType;
255
+ /**
256
+ * fired when the people menu is viewed and no browse permission is shown */
257
+ 'ui.peopleMenu.viewed.noBrowsePermission': PeopleMenuViewedNoBrowsePermissionAttributesType;
258
+ /**
259
+ * fired when the people menu is succeeded */
260
+ 'track.peopleMenu.succeeded': PeopleMenuSucceededAttributesType;
261
+ /**
262
+ * fired when the hover and click people button is measured */
263
+ 'track.hoverAndClickPeopleButton.measured': HoverAndClickPeopleButtonMeasuredAttributesType;
264
+ /**
265
+ * fired when the pre fetch data is triggered */
266
+ 'track.preFetchData.triggered': PreFetchDataTriggeredAttributesType;
267
+ /**
268
+ * fired when the fetching users and teams data is measured */
269
+ 'track.fetchingUsersTeamsData.measured': FetchingUsersTeamsDataMeasuredAttributesType;
270
+ /**
271
+ * fired when the people menu link is succeeded */
272
+ 'operational.peopleMenuLink.succeeded': PeopleMenuLinkSucceededAttributesType;
273
+ /**
274
+ * fired when the people menu link is failed */
275
+ 'operational.peopleMenuLink.failed': PeopleMenuLinkFailedAttributesType;
276
+ /**
277
+ * fired when the people menu link is succeeded */
278
+ 'operational.teamMenuLink.succeeded': TeamMenuLinkSucceededAttributesType;
279
+ /**
280
+ * fired when the people menu link is failed */
281
+ 'operational.teamMenuLink.failed': TeamMenuLinkFailedAttributesType;
38
282
  };
39
283
  export type EventKey = keyof AnalyticsEventAttributes;
package/package.json CHANGED
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  "name": "@atlaskit/teams-app-internal-analytics",
91
- "version": "1.2.0",
91
+ "version": "1.3.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",