@atlaskit/teams-app-internal-analytics 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`be81523ba6f9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be81523ba6f9f) -
8
+ Migrated @atlaskit/teams-public analytics to @atlaskit/teams-app-internal-analytics package
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 1.3.0
4
15
 
5
16
  ### Minor Changes
@@ -76,6 +76,45 @@ events:
76
76
  testAttribute:
77
77
  type: string
78
78
  description: test attribute
79
+ - assignTeamToASiteMessage viewed:
80
+ type: screen
81
+ description:
82
+ fired when the assign team to a site section message is viewed on the team profile page
83
+ attributes:
84
+ <<: *PackageMetaDataContext
85
+ - assignThisTeamToASite clicked:
86
+ type: ui
87
+ description:
88
+ fired when the assign this team to a site action in the assign team to a site section
89
+ message is clicked
90
+ attributes:
91
+ <<: *PackageMetaDataContext
92
+ - assignTeamToASiteModal viewed:
93
+ type: screen
94
+ description: fired when the assign team to a site modal is viewed
95
+ attributes:
96
+ <<: *PackageMetaDataContext
97
+ - assignTeamToASiteSiteSelected selected:
98
+ type: track
99
+ description: fired when the site is selected in the assign team to a site modal
100
+ attributes:
101
+ <<: *PackageMetaDataContext
102
+ isSuggestedSite:
103
+ type: boolean
104
+ description: whether the site is the suggested site
105
+ - assignTeamToASiteConfirmButton clicked:
106
+ type: ui
107
+ description: fired when the confirm button is clicked in the assign team to a site modal
108
+ attributes:
109
+ <<: *PackageMetaDataContext
110
+ success:
111
+ type: boolean
112
+ description: whether the assign team to a site action was successful
113
+ - assignTeamToASiteCancelButton clicked:
114
+ type: ui
115
+ description: fired when the cancel button is clicked in the assign team to a site modal
116
+ attributes:
117
+ <<: *PackageMetaDataContext
79
118
  - memberPicker error:
80
119
  type: track
81
120
  description: fired when the member picker error is triggered
@@ -487,3 +526,227 @@ events:
487
526
  error:
488
527
  type: string
489
528
  description: the error
529
+ - parentTeamLinker opened:
530
+ type: ui
531
+ description: fired when the parent team field is clicked
532
+ attributes:
533
+ <<: *PackageMetaDataContext
534
+ - parentTeamLinker closed:
535
+ type: ui
536
+ description: fired when the parent team linker is closed
537
+ attributes:
538
+ <<: *PackageMetaDataContext
539
+ isCanceled:
540
+ type: boolean
541
+ description: whether the parent team linker is canceled
542
+ newParentTeamId:
543
+ type: string
544
+ description:
545
+ the new parent team id, empty string if unset, or same as the old parent team id if
546
+ canceled
547
+ - addParentTeam failed:
548
+ type: operational
549
+ description: fired when the add parent team operation fails
550
+ attributes:
551
+ <<: *PackageMetaDataContext
552
+ parentTeamId:
553
+ type: string
554
+ description: the parent team id
555
+ error:
556
+ type: string
557
+ description: the error message
558
+ - removeParentTeam failed:
559
+ type: operational
560
+ description: fired when the remove parent team operation fails
561
+ attributes:
562
+ <<: *PackageMetaDataContext
563
+ error:
564
+ type: string
565
+ description: the error message
566
+ - subTeamLinker opened:
567
+ type: ui
568
+ description: fired when the sub team linker is viewed
569
+ attributes:
570
+ <<: *PackageMetaDataContext
571
+ - subTeamList updated:
572
+ type: ui
573
+ description: fired when the sub team linker is closed
574
+ attributes:
575
+ <<: *PackageMetaDataContext
576
+ subTeamId:
577
+ type: string
578
+ description: the sub team id, should always have value
579
+ action:
580
+ type: ['add', 'remove']
581
+ description: the action performed on the sub team list
582
+ - addSubTeam failed:
583
+ type: operational
584
+ description: fired when the add sub team operation fails
585
+ attributes:
586
+ <<: *PackageMetaDataContext
587
+ subTeamId:
588
+ type: string
589
+ description: the sub team id
590
+ error:
591
+ type: string
592
+ description: the error message
593
+ - removeSubTeam failed:
594
+ type: operational
595
+ description: fired when the remove sub team operation fails
596
+ attributes:
597
+ <<: *PackageMetaDataContext
598
+ subTeamId:
599
+ type: string
600
+ description: the sub team id
601
+ error:
602
+ type: string
603
+ description: the error message
604
+ - fetchTeamContainers succeeded:
605
+ type: operational
606
+ description: fired when the fetchTeamContainers succeeded
607
+ attributes:
608
+ <<: *PackageMetaDataContext
609
+ teamId:
610
+ type: string
611
+ description: the id of the team
612
+ - fetchTeamContainers failed:
613
+ type: operational
614
+ description: fired when the fetchTeamContainers failed
615
+ attributes:
616
+ <<: *PackageMetaDataContext
617
+ teamId:
618
+ type: string
619
+ description: the team id
620
+ error:
621
+ type: object
622
+ description: the error
623
+ - refetchTeamContainers succeeded:
624
+ type: operational
625
+ description: fired when the fetchTeamContainers succeeded
626
+ attributes:
627
+ <<: *PackageMetaDataContext
628
+ teamId:
629
+ type: string
630
+ description: the team id
631
+ - refetchTeamContainers failed:
632
+ type: operational
633
+ description: fired when the fetchTeamContainers failed
634
+ attributes:
635
+ <<: *PackageMetaDataContext
636
+ teamId:
637
+ type: string
638
+ description: the team id
639
+ error:
640
+ type: object
641
+ description: the error
642
+ - fetchNumberOfConnectedTeams succeeded:
643
+ type: operational
644
+ description: fired when the fetchNumberOfConnectedTeams succeeded
645
+ attributes:
646
+ <<: *PackageMetaDataContext
647
+ containerId:
648
+ type: string
649
+ description: the container id
650
+ numberOfTeams:
651
+ type: number
652
+ required: false
653
+ description: the number of teams
654
+ - fetchNumberOfConnectedTeams failed:
655
+ type: operational
656
+ description: fired when the fetchNumberOfConnectedTeams failed
657
+ attributes:
658
+ <<: *PackageMetaDataContext
659
+ containerId:
660
+ type: string
661
+ description: the container id
662
+ numberOfTeams:
663
+ type: number
664
+ required: false
665
+ description: the number of teams
666
+ error:
667
+ type: object
668
+ description: the error
669
+ - fetchConnectedTeams succeeded:
670
+ type: operational
671
+ description: fired when the fetchConnectedTeams succeeded
672
+ attributes:
673
+ <<: *PackageMetaDataContext
674
+ containerId:
675
+ type: string
676
+ description: the container id
677
+ numberOfTeams:
678
+ type: number
679
+ required: false
680
+ description: the number of teams
681
+ - fetchConnectedTeams failed:
682
+ type: operational
683
+ description: fired when the fetchConnectedTeams failed
684
+ attributes:
685
+ <<: *PackageMetaDataContext
686
+ containerId:
687
+ type: string
688
+ description: the container id
689
+ numberOfTeams:
690
+ type: number
691
+ required: false
692
+ description: the number of teams
693
+ error:
694
+ type: object
695
+ description: the error
696
+ - container clicked (teamContainer):
697
+ type: ui
698
+ description: fired when the team container is clicked
699
+ attributes:
700
+ <<: *PackageMetaDataContext
701
+ containerSelected:
702
+ type: object
703
+ description: the container that was selected
704
+ - unlinkContainerDialog opened:
705
+ type: track
706
+ description: fired when the unlink container dialog is opened
707
+ attributes:
708
+ <<: *PackageMetaDataContext
709
+ teamId:
710
+ type: string
711
+ description: the team id
712
+ - teamContainerUnlinked failed:
713
+ type: track
714
+ description: fired when the team container unlink failed
715
+ attributes:
716
+ <<: *PackageMetaDataContext
717
+ - teamContainerUnlinked succeeded:
718
+ type: track
719
+ description: fired when the team container unlink succeeded
720
+ attributes:
721
+ <<: *PackageMetaDataContext
722
+ teamId:
723
+ type: string
724
+ description: the team id
725
+ containerRemoved:
726
+ type: object
727
+ description: the container that was removed
728
+ - button clicked (containerUnlinkButton):
729
+ type: ui
730
+ description: fired when the container unlink button is clicked
731
+ attributes:
732
+ <<: *PackageMetaDataContext
733
+ containerSelected:
734
+ type: object
735
+ required: false
736
+ description: the container that was selected
737
+ - button clicked (containerEditLinkButton):
738
+ type: ui
739
+ description: fired when the container edit link button is clicked
740
+ attributes:
741
+ <<: *PackageMetaDataContext
742
+ containerSelected:
743
+ type: object
744
+ description: the container that was selected
745
+ - button clicked (containerRemoveLinkButton):
746
+ type: ui
747
+ description: fired when the container remove link button is clicked
748
+ attributes:
749
+ <<: *PackageMetaDataContext
750
+ containerSelected:
751
+ type: object
752
+ description: the container that was selected
@@ -16,7 +16,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var defaultAnalyticsContextData = exports.defaultAnalyticsContextData = {
18
18
  packageName: "@atlaskit/teams-app-internal-analytics",
19
- packageVersion: "1.2.0"
19
+ packageVersion: "0.0.0-development"
20
20
  };
21
21
  function TeamsAppAnalyticsContext(_ref) {
22
22
  var data = _ref.data,
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
2
2
  import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
3
3
  export const defaultAnalyticsContextData = {
4
4
  packageName: "@atlaskit/teams-app-internal-analytics",
5
- packageVersion: "1.2.0"
5
+ packageVersion: "0.0.0-development"
6
6
  };
7
7
  export function TeamsAppAnalyticsContext({
8
8
  data,
@@ -6,7 +6,7 @@ import React, { useMemo } from 'react';
6
6
  import { PeopleTeamsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
7
7
  export var defaultAnalyticsContextData = {
8
8
  packageName: "@atlaskit/teams-app-internal-analytics",
9
- packageVersion: "1.2.0"
9
+ packageVersion: "0.0.0-development"
10
10
  };
11
11
  export function TeamsAppAnalyticsContext(_ref) {
12
12
  var data = _ref.data,
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::c0f9013174bb49adfdc520d0de409cc9>>
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,16 @@ 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 = {};
25
35
  export type MemberPickerErrorAttributesType = {};
26
36
  export type RequestedContainersRequestedAttributesType = {
27
37
  containers: Record<string, unknown>;
@@ -155,6 +165,83 @@ export type TeamMenuLinkFailedAttributesType = {
155
165
  status: number | null;
156
166
  error: string;
157
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
+ };
158
245
  export type AnalyticsEventAttributes = {
159
246
  /**
160
247
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -168,6 +255,24 @@ export type AnalyticsEventAttributes = {
168
255
  /**
169
256
  * fired when the teams-app-internal-analytics example is viewed */
170
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;
171
276
  /**
172
277
  * fired when the member picker error is triggered */
173
278
  'track.memberPicker.error': MemberPickerErrorAttributesType;
@@ -279,5 +384,74 @@ export type AnalyticsEventAttributes = {
279
384
  /**
280
385
  * fired when the people menu link is failed */
281
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;
282
456
  };
283
457
  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::c0f9013174bb49adfdc520d0de409cc9>>
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,16 @@ 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 = {};
25
35
  export type MemberPickerErrorAttributesType = {};
26
36
  export type RequestedContainersRequestedAttributesType = {
27
37
  containers: Record<string, unknown>;
@@ -155,6 +165,83 @@ export type TeamMenuLinkFailedAttributesType = {
155
165
  status: number | null;
156
166
  error: string;
157
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
+ };
158
245
  export type AnalyticsEventAttributes = {
159
246
  /**
160
247
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -168,6 +255,24 @@ export type AnalyticsEventAttributes = {
168
255
  /**
169
256
  * fired when the teams-app-internal-analytics example is viewed */
170
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;
171
276
  /**
172
277
  * fired when the member picker error is triggered */
173
278
  'track.memberPicker.error': MemberPickerErrorAttributesType;
@@ -279,5 +384,74 @@ export type AnalyticsEventAttributes = {
279
384
  /**
280
385
  * fired when the people menu link is failed */
281
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;
282
456
  };
283
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.3.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",