@atlaskit/teams-app-internal-analytics 1.2.0 → 1.4.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.
@@ -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::b808110a0432340d1e515e2c27098bad>>
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,226 @@ export type AutomationFiredAnalyticsExampleAttributesType = {
22
22
  export type AnalyticsExampleScreenViewedAttributesType = {
23
23
  testAttribute: string;
24
24
  };
25
+ export type AssignTeamToASiteMessageViewedAttributesType = {};
26
+ export type AssignThisTeamToASiteClickedAttributesType = {};
27
+ export type AssignTeamToASiteModalViewedAttributesType = {};
28
+ export type AssignTeamToASiteSiteSelectedSelectedAttributesType = {
29
+ isSuggestedSite: boolean;
30
+ };
31
+ export type AssignTeamToASiteConfirmButtonClickedAttributesType = {
32
+ success: boolean;
33
+ };
34
+ export type AssignTeamToASiteCancelButtonClickedAttributesType = {};
35
+ export type MemberPickerErrorAttributesType = {};
36
+ export type RequestedContainersRequestedAttributesType = {
37
+ containers: Record<string, unknown>;
38
+ };
39
+ export type TeamCreateDialogViewedAttributesType = {
40
+ proposedMembersLength: number;
41
+ };
42
+ export type MemberSuggestedAttributesType = {};
43
+ export type TeamCreateDialogSubmittedAttributesType = {
44
+ canCreateTeam: boolean;
45
+ numberOfMembers: number;
46
+ numberOfSuggestedMembers: number;
47
+ };
48
+ export type TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType = {
49
+ teamId: string;
50
+ numberOfMembers: number;
51
+ };
52
+ export type TeamCreateDialogSucceededAttributesType = {
53
+ teamId: string;
54
+ numberOfMembers: number;
55
+ defaultTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
56
+ chosenTeamType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL';
57
+ teamTypeChoiceEnabled: boolean | null;
58
+ };
59
+ export type TeamCreateDialogFailedAttributesType = {
60
+ numberOfMembers: number;
61
+ errorMessage: string;
62
+ errorStack: string | null;
63
+ errorStatus: number;
64
+ traceId: string | null;
65
+ };
66
+ export type TeamTypePickerClickedAttributesType = {
67
+ defaultType: 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | null;
68
+ chosenType: 'OPEN' | 'MEMBER_INVITE';
69
+ };
70
+ export type TeamCreateDialogClosedAttributesType = {};
71
+ export type InviteCapabilitiesServiceFailedAttributesType = {
72
+ integration: string;
73
+ products: unknown[];
74
+ };
75
+ export type AddToTeamServiceFailedAttributesType = {
76
+ integration: string;
77
+ message: string | null;
78
+ errorsCount: number | null;
79
+ errors: unknown[] | null;
80
+ };
81
+ export type InvitedTeamMembersAddedAttributesType = {
82
+ numberOfMembers: number;
83
+ members: unknown[];
84
+ integration: string;
85
+ };
86
+ export type InviteToProductServiceFailedAttributesType = {
87
+ integration: string;
88
+ message: string | null;
89
+ errorsCount: number | null;
90
+ errors: unknown[] | null;
91
+ result: unknown[] | null;
92
+ };
93
+ export type ContainerPermissionsSucceededAttributesType = {
94
+ canCreateConfluenceContainer: boolean;
95
+ canCreateJiraContainer: boolean;
96
+ canCreateLoomContainer: boolean;
97
+ };
98
+ export type TeamWorkedOnRenderedAttributesType = {
99
+ state: 'error' | 'empty' | 'data' | 'unknown';
100
+ };
101
+ export type TeamWorkedOnFailedAttributesType = {
102
+ error: string | null;
103
+ traceId: string | null;
104
+ status: number | null;
105
+ statusText: string | null;
106
+ };
107
+ export type TeamWorkedOnSucceededAttributesType = {
108
+ error: string | null;
109
+ traceId: string | null;
110
+ status: number | null;
111
+ statusText: string | null;
112
+ };
113
+ export type ViewAllIssuesClickedAttributesType = {
114
+ isOpenNewTab: boolean;
115
+ teamId: string;
116
+ };
117
+ export type TeamWorkedOnLinkClickedAttributesType = {
118
+ isOpenNewTab: boolean;
119
+ };
120
+ export type NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType = {
121
+ product: string;
122
+ integration: string;
123
+ };
124
+ export type CreateNewTeamLinkClickedAttributesType = {};
125
+ export type ViewAllPeopleDirectoryClickedAttributesType = {
126
+ isLeftClick: boolean;
127
+ };
128
+ export type PeopleMenuLinkClickedAttributesType = {
129
+ isLeftClick: boolean;
130
+ };
131
+ export type PeopleMenuViewedLoadingIndicatorAttributesType = {
132
+ duration: number;
133
+ startTime: number;
134
+ };
135
+ export type TeamMenuLinkClickedAttributesType = {
136
+ isLeftClick: boolean;
137
+ };
138
+ export type PeopleMenuViewedAttributesType = {
139
+ isCacheEmpty: boolean;
140
+ };
141
+ export type AddPeopleNavigationItemRenderedAttributesType = {};
142
+ export type PeopleMenuViewedNoBrowsePermissionAttributesType = {};
143
+ export type PeopleMenuSucceededAttributesType = {
144
+ usersCount: number;
145
+ teamsCount: number;
146
+ duration: number;
147
+ startTime: number;
148
+ };
149
+ export type HoverAndClickPeopleButtonMeasuredAttributesType = {
150
+ duration: number;
151
+ startTime: number;
152
+ };
153
+ export type PreFetchDataTriggeredAttributesType = {};
154
+ export type FetchingUsersTeamsDataMeasuredAttributesType = {
155
+ duration: number;
156
+ startTime: number;
157
+ };
158
+ export type PeopleMenuLinkSucceededAttributesType = {};
159
+ export type PeopleMenuLinkFailedAttributesType = {
160
+ status: number | null;
161
+ error: string;
162
+ };
163
+ export type TeamMenuLinkSucceededAttributesType = {};
164
+ export type TeamMenuLinkFailedAttributesType = {
165
+ status: number | null;
166
+ error: string;
167
+ };
168
+ export type ParentTeamLinkerOpenedAttributesType = {};
169
+ export type ParentTeamLinkerClosedAttributesType = {
170
+ isCanceled: boolean;
171
+ newParentTeamId: string;
172
+ };
173
+ export type AddParentTeamFailedAttributesType = {
174
+ parentTeamId: string;
175
+ error: string;
176
+ };
177
+ export type RemoveParentTeamFailedAttributesType = {
178
+ error: string;
179
+ };
180
+ export type SubTeamLinkerOpenedAttributesType = {};
181
+ export type SubTeamListUpdatedAttributesType = {
182
+ subTeamId: string;
183
+ action: 'add' | 'remove';
184
+ };
185
+ export type AddSubTeamFailedAttributesType = {
186
+ subTeamId: string;
187
+ error: string;
188
+ };
189
+ export type RemoveSubTeamFailedAttributesType = {
190
+ subTeamId: string;
191
+ error: string;
192
+ };
193
+ export type FetchTeamContainersSucceededAttributesType = {
194
+ teamId: string;
195
+ };
196
+ export type FetchTeamContainersFailedAttributesType = {
197
+ teamId: string;
198
+ error: Record<string, unknown>;
199
+ };
200
+ export type RefetchTeamContainersSucceededAttributesType = {
201
+ teamId: string;
202
+ };
203
+ export type RefetchTeamContainersFailedAttributesType = {
204
+ teamId: string;
205
+ error: Record<string, unknown>;
206
+ };
207
+ export type FetchNumberOfConnectedTeamsSucceededAttributesType = {
208
+ containerId: string;
209
+ numberOfTeams: number | null;
210
+ };
211
+ export type FetchNumberOfConnectedTeamsFailedAttributesType = {
212
+ containerId: string;
213
+ numberOfTeams: number | null;
214
+ error: Record<string, unknown>;
215
+ };
216
+ export type FetchConnectedTeamsSucceededAttributesType = {
217
+ containerId: string;
218
+ numberOfTeams: number | null;
219
+ };
220
+ export type FetchConnectedTeamsFailedAttributesType = {
221
+ containerId: string;
222
+ numberOfTeams: number | null;
223
+ error: Record<string, unknown>;
224
+ };
225
+ export type ContainerClickedTeamContainerAttributesType = {
226
+ containerSelected: Record<string, unknown>;
227
+ };
228
+ export type UnlinkContainerDialogOpenedAttributesType = {
229
+ teamId: string;
230
+ };
231
+ export type TeamContainerUnlinkedFailedAttributesType = {};
232
+ export type TeamContainerUnlinkedSucceededAttributesType = {
233
+ teamId: string;
234
+ containerRemoved: Record<string, unknown>;
235
+ };
236
+ export type ButtonClickedContainerUnlinkButtonAttributesType = {
237
+ containerSelected: Record<string, unknown> | null;
238
+ };
239
+ export type ButtonClickedContainerEditLinkButtonAttributesType = {
240
+ containerSelected: Record<string, unknown>;
241
+ };
242
+ export type ButtonClickedContainerRemoveLinkButtonAttributesType = {
243
+ containerSelected: Record<string, unknown>;
244
+ };
25
245
  export type AnalyticsEventAttributes = {
26
246
  /**
27
247
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -35,5 +255,203 @@ export type AnalyticsEventAttributes = {
35
255
  /**
36
256
  * fired when the teams-app-internal-analytics example is viewed */
37
257
  'screen.analyticsExampleScreen.viewed': AnalyticsExampleScreenViewedAttributesType;
258
+ /**
259
+ * fired when the assign team to a site section message is viewed on the team profile page */
260
+ 'screen.assignTeamToASiteMessage.viewed': AssignTeamToASiteMessageViewedAttributesType;
261
+ /**
262
+ * fired when the assign this team to a site action in the assign team to a site section message is clicked */
263
+ 'ui.assignThisTeamToASite.clicked': AssignThisTeamToASiteClickedAttributesType;
264
+ /**
265
+ * fired when the assign team to a site modal is viewed */
266
+ 'screen.assignTeamToASiteModal.viewed': AssignTeamToASiteModalViewedAttributesType;
267
+ /**
268
+ * fired when the site is selected in the assign team to a site modal */
269
+ 'track.assignTeamToASiteSiteSelected.selected': AssignTeamToASiteSiteSelectedSelectedAttributesType;
270
+ /**
271
+ * fired when the confirm button is clicked in the assign team to a site modal */
272
+ 'ui.assignTeamToASiteConfirmButton.clicked': AssignTeamToASiteConfirmButtonClickedAttributesType;
273
+ /**
274
+ * fired when the cancel button is clicked in the assign team to a site modal */
275
+ 'ui.assignTeamToASiteCancelButton.clicked': AssignTeamToASiteCancelButtonClickedAttributesType;
276
+ /**
277
+ * fired when the member picker error is triggered */
278
+ 'track.memberPicker.error': MemberPickerErrorAttributesType;
279
+ /**
280
+ * fired when the teams containers are requested */
281
+ 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
282
+ /**
283
+ * fired when the team create dialog is viewed */
284
+ 'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
285
+ /**
286
+ * fired when the member is suggested */
287
+ 'ui.member.suggested': MemberSuggestedAttributesType;
288
+ /**
289
+ * fired when the team create dialog is submitted */
290
+ 'ui.teamCreateDialog.submitted': TeamCreateDialogSubmittedAttributesType;
291
+ /**
292
+ * fired when the team create dialog clicked team link success flag */
293
+ 'ui.teamCreateDialog.clicked.teamLinkSuccessFlag': TeamCreateDialogClickedTeamLinkSuccessFlagAttributesType;
294
+ /**
295
+ * fired when the team create dialog succeeded */
296
+ 'track.teamCreateDialog.succeeded': TeamCreateDialogSucceededAttributesType;
297
+ /**
298
+ * fired when the team create dialog failed */
299
+ 'track.teamCreateDialog.failed': TeamCreateDialogFailedAttributesType;
300
+ /**
301
+ * fired when the team type picker is clicked */
302
+ 'ui.teamTypePicker.clicked': TeamTypePickerClickedAttributesType;
303
+ /**
304
+ * fired when the team create dialog is closed */
305
+ 'ui.teamCreateDialog.closed': TeamCreateDialogClosedAttributesType;
306
+ /**
307
+ * fired when the invite capabilities service failed */
308
+ 'operational.inviteCapabilitiesService.failed': InviteCapabilitiesServiceFailedAttributesType;
309
+ /**
310
+ * fired when the add to team service failed */
311
+ 'track.addToTeamService.failed': AddToTeamServiceFailedAttributesType;
312
+ /**
313
+ * fired when the invited team members are added */
314
+ 'track.invitedTeamMembers.added': InvitedTeamMembersAddedAttributesType;
315
+ /**
316
+ * fired when the invite to product service failed */
317
+ 'track.inviteToProductService.failed': InviteToProductServiceFailedAttributesType;
318
+ /**
319
+ * fired when the container permissions are succeeded */
320
+ 'track.containerPermissions.succeeded': ContainerPermissionsSucceededAttributesType;
321
+ /**
322
+ * fired when the team worked on is rendered */
323
+ 'ui.teamWorkedOn.rendered': TeamWorkedOnRenderedAttributesType;
324
+ /**
325
+ * fired when the team worked on failed */
326
+ 'operational.teamWorkedOn.failed': TeamWorkedOnFailedAttributesType;
327
+ /**
328
+ * fired when the team worked on failed */
329
+ 'operational.teamWorkedOn.succeeded': TeamWorkedOnSucceededAttributesType;
330
+ /**
331
+ * fired when the view all issues is clicked */
332
+ 'ui.viewAllIssues.clicked': ViewAllIssuesClickedAttributesType;
333
+ /**
334
+ * fired when the team worked on link is clicked */
335
+ 'ui.teamWorkedOnLink.clicked': TeamWorkedOnLinkClickedAttributesType;
336
+ /**
337
+ * fired when the additional menu link is clicked */
338
+ 'ui.navigationMenuItem.clicked.addPeopleNavigationMenuItem': NavigationMenuItemClickedAddPeopleNavigationMenuItemAttributesType;
339
+ /**
340
+ * fired when the create new team link is clicked */
341
+ 'ui.createNewTeamLink.clicked': CreateNewTeamLinkClickedAttributesType;
342
+ /**
343
+ * fired when the view all people directory is clicked */
344
+ 'ui.viewAllPeopleDirectory.clicked': ViewAllPeopleDirectoryClickedAttributesType;
345
+ /**
346
+ * fired when the people menu link is clicked */
347
+ 'ui.peopleMenuLink.clicked': PeopleMenuLinkClickedAttributesType;
348
+ /**
349
+ * fired when the people menu is viewed and loading indicator is shown */
350
+ 'ui.peopleMenu.viewed.loadingIndicator': PeopleMenuViewedLoadingIndicatorAttributesType;
351
+ /**
352
+ * fired when the team menu link is clicked */
353
+ 'ui.teamMenuLink.clicked': TeamMenuLinkClickedAttributesType;
354
+ /**
355
+ * fired when the people menu is viewed and no browse permission is shown */
356
+ 'screen.peopleMenu.viewed': PeopleMenuViewedAttributesType;
357
+ /**
358
+ * fired when the people menu is succeeded */
359
+ 'ui.addPeopleNavigationItem.rendered': AddPeopleNavigationItemRenderedAttributesType;
360
+ /**
361
+ * fired when the people menu is viewed and no browse permission is shown */
362
+ 'ui.peopleMenu.viewed.noBrowsePermission': PeopleMenuViewedNoBrowsePermissionAttributesType;
363
+ /**
364
+ * fired when the people menu is succeeded */
365
+ 'track.peopleMenu.succeeded': PeopleMenuSucceededAttributesType;
366
+ /**
367
+ * fired when the hover and click people button is measured */
368
+ 'track.hoverAndClickPeopleButton.measured': HoverAndClickPeopleButtonMeasuredAttributesType;
369
+ /**
370
+ * fired when the pre fetch data is triggered */
371
+ 'track.preFetchData.triggered': PreFetchDataTriggeredAttributesType;
372
+ /**
373
+ * fired when the fetching users and teams data is measured */
374
+ 'track.fetchingUsersTeamsData.measured': FetchingUsersTeamsDataMeasuredAttributesType;
375
+ /**
376
+ * fired when the people menu link is succeeded */
377
+ 'operational.peopleMenuLink.succeeded': PeopleMenuLinkSucceededAttributesType;
378
+ /**
379
+ * fired when the people menu link is failed */
380
+ 'operational.peopleMenuLink.failed': PeopleMenuLinkFailedAttributesType;
381
+ /**
382
+ * fired when the people menu link is succeeded */
383
+ 'operational.teamMenuLink.succeeded': TeamMenuLinkSucceededAttributesType;
384
+ /**
385
+ * fired when the people menu link is failed */
386
+ 'operational.teamMenuLink.failed': TeamMenuLinkFailedAttributesType;
387
+ /**
388
+ * fired when the parent team field is clicked */
389
+ 'ui.parentTeamLinker.opened': ParentTeamLinkerOpenedAttributesType;
390
+ /**
391
+ * fired when the parent team linker is closed */
392
+ 'ui.parentTeamLinker.closed': ParentTeamLinkerClosedAttributesType;
393
+ /**
394
+ * fired when the add parent team operation fails */
395
+ 'operational.addParentTeam.failed': AddParentTeamFailedAttributesType;
396
+ /**
397
+ * fired when the remove parent team operation fails */
398
+ 'operational.removeParentTeam.failed': RemoveParentTeamFailedAttributesType;
399
+ /**
400
+ * fired when the sub team linker is viewed */
401
+ 'ui.subTeamLinker.opened': SubTeamLinkerOpenedAttributesType;
402
+ /**
403
+ * fired when the sub team linker is closed */
404
+ 'ui.subTeamList.updated': SubTeamListUpdatedAttributesType;
405
+ /**
406
+ * fired when the add sub team operation fails */
407
+ 'operational.addSubTeam.failed': AddSubTeamFailedAttributesType;
408
+ /**
409
+ * fired when the remove sub team operation fails */
410
+ 'operational.removeSubTeam.failed': RemoveSubTeamFailedAttributesType;
411
+ /**
412
+ * fired when the fetchTeamContainers succeeded */
413
+ 'operational.fetchTeamContainers.succeeded': FetchTeamContainersSucceededAttributesType;
414
+ /**
415
+ * fired when the fetchTeamContainers failed */
416
+ 'operational.fetchTeamContainers.failed': FetchTeamContainersFailedAttributesType;
417
+ /**
418
+ * fired when the fetchTeamContainers succeeded */
419
+ 'operational.refetchTeamContainers.succeeded': RefetchTeamContainersSucceededAttributesType;
420
+ /**
421
+ * fired when the fetchTeamContainers failed */
422
+ 'operational.refetchTeamContainers.failed': RefetchTeamContainersFailedAttributesType;
423
+ /**
424
+ * fired when the fetchNumberOfConnectedTeams succeeded */
425
+ 'operational.fetchNumberOfConnectedTeams.succeeded': FetchNumberOfConnectedTeamsSucceededAttributesType;
426
+ /**
427
+ * fired when the fetchNumberOfConnectedTeams failed */
428
+ 'operational.fetchNumberOfConnectedTeams.failed': FetchNumberOfConnectedTeamsFailedAttributesType;
429
+ /**
430
+ * fired when the fetchConnectedTeams succeeded */
431
+ 'operational.fetchConnectedTeams.succeeded': FetchConnectedTeamsSucceededAttributesType;
432
+ /**
433
+ * fired when the fetchConnectedTeams failed */
434
+ 'operational.fetchConnectedTeams.failed': FetchConnectedTeamsFailedAttributesType;
435
+ /**
436
+ * fired when the team container is clicked */
437
+ 'ui.container.clicked.teamContainer': ContainerClickedTeamContainerAttributesType;
438
+ /**
439
+ * fired when the unlink container dialog is opened */
440
+ 'track.unlinkContainerDialog.opened': UnlinkContainerDialogOpenedAttributesType;
441
+ /**
442
+ * fired when the team container unlink failed */
443
+ 'track.teamContainerUnlinked.failed': TeamContainerUnlinkedFailedAttributesType;
444
+ /**
445
+ * fired when the team container unlink succeeded */
446
+ 'track.teamContainerUnlinked.succeeded': TeamContainerUnlinkedSucceededAttributesType;
447
+ /**
448
+ * fired when the container unlink button is clicked */
449
+ 'ui.button.clicked.containerUnlinkButton': ButtonClickedContainerUnlinkButtonAttributesType;
450
+ /**
451
+ * fired when the container edit link button is clicked */
452
+ 'ui.button.clicked.containerEditLinkButton': ButtonClickedContainerEditLinkButtonAttributesType;
453
+ /**
454
+ * fired when the container remove link button is clicked */
455
+ 'ui.button.clicked.containerRemoveLinkButton': ButtonClickedContainerRemoveLinkButtonAttributesType;
38
456
  };
39
457
  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.4.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",