@atlaskit/teams-app-internal-analytics 1.5.0 → 1.7.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,27 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`86f959878c6d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86f959878c6d4) -
8
+ Migrated team and agent profile card analytics to teams-app-internal-analytics
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 1.6.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`a5484f724ef0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a5484f724ef0b) -
19
+ Migrated user profile card analytics to @atlaskit/teams-app-internal-analytics
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 1.5.0
4
26
 
5
27
  ### Minor Changes
@@ -62,6 +62,57 @@ shared:
62
62
  abortReason:
63
63
  type: string
64
64
  description: reason for aborting the task
65
+ ProfileCardAttributes: &ProfileCardAttributes
66
+ firedAt:
67
+ type: number
68
+ description: the time the event was fired
69
+ packageName:
70
+ type: string
71
+ description: name of the package the event was fired from
72
+ packageVersion:
73
+ type: string
74
+ description: version of the package the event was fired from
75
+ AgentProfileCardActionsAttributes: &AgentProfileCardActionsAttributes
76
+ agentId:
77
+ type: string
78
+ description: the id of the agent
79
+ source:
80
+ type: string
81
+ description: the source
82
+ ProfileCardRequestErrorAttributes: &ProfileCardRequestErrorAttributes
83
+ duration:
84
+ type: number
85
+ description: Duration of the request in milliseconds
86
+ errorMessage:
87
+ type: string
88
+ description: Error message returned from the request
89
+ errorStatusCode:
90
+ type: number
91
+ required: false
92
+ description: HTTP status code or error status
93
+ traceId:
94
+ type: string
95
+ required: false
96
+ description: Trace identifier for the request
97
+ errorCategory:
98
+ type: string
99
+ required: false
100
+ description: Category of the error (e.g., network, server, client)
101
+ errorType:
102
+ type: string
103
+ required: false
104
+ description: Specific type of error encountered
105
+ errorPath:
106
+ type: string
107
+ required: false
108
+ description: API path or endpoint where the error occurred
109
+ errorNumber:
110
+ type: number
111
+ required: false
112
+ description: Numeric error code, if applicable
113
+ isSLOFailure:
114
+ type: boolean
115
+ description: Indicates if the error resulted in an SLO (Service Level Objective) failure
65
116
 
66
117
  events:
67
118
  - button clicked (analyticsExample):
@@ -1596,3 +1647,431 @@ events:
1596
1647
  tabId:
1597
1648
  type: string
1598
1649
  description: id of the selected tab
1650
+ - teamConnectionItem clicked (teamProfileCard):
1651
+ type: ui
1652
+ description: fired when the team connection item is clicked
1653
+ attributes:
1654
+ <<: *PackageMetaDataContext
1655
+ container:
1656
+ type: ['ConfluenceSpace', 'JiraProject', 'LoomSpace', 'WebLink']
1657
+ description: the container
1658
+ - button clicked (viewTeamProfileButton):
1659
+ type: ui
1660
+ description: fired when the view team profile button is clicked
1661
+ attributes:
1662
+ <<: *PackageMetaDataContext
1663
+ - profilecard triggered:
1664
+ type: ui
1665
+ description: fired when the profilecard is triggered
1666
+ attributes:
1667
+ <<: [*PackageMetaDataContext, *ProfileCardAttributes]
1668
+ method:
1669
+ type: ['hover', 'click']
1670
+ description: the method of the profilecard
1671
+ - rovoAgentProfilecard triggered:
1672
+ type: ui
1673
+ description: fired when the rovo agent profilecard is triggered
1674
+ attributes:
1675
+ <<: [*PackageMetaDataContext, *ProfileCardAttributes]
1676
+ method:
1677
+ type: ['hover', 'click']
1678
+ description: the method of the profilecard
1679
+ - teamProfileCard triggered:
1680
+ type: ui
1681
+ description: fired when the team profilecard is triggered
1682
+ attributes:
1683
+ <<: [*PackageMetaDataContext, *ProfileCardAttributes]
1684
+ method:
1685
+ type: ['hover', 'click']
1686
+ description: the method of the profilecard
1687
+ teamId:
1688
+ type: string
1689
+ description: the id of the team
1690
+ - user triggered:
1691
+ type: ui
1692
+ description: fired when an unknown profilecard is triggered
1693
+ attributes:
1694
+ <<: [*PackageMetaDataContext, *ProfileCardAttributes]
1695
+ method:
1696
+ type: ['hover', 'click']
1697
+ description: the method of the profilecard
1698
+ - profilecard rendered (spinner):
1699
+ type: ui
1700
+ description: fired when the profilecard is rendered and is loading
1701
+ attributes:
1702
+ <<: *ProfileCardAttributes
1703
+ - teamProfileCard rendered (spinner):
1704
+ type: ui
1705
+ description: fired when the team profilecard is rendered and is loading
1706
+ attributes:
1707
+ <<: *ProfileCardAttributes
1708
+ - rovoAgentProfilecard rendered (spinner):
1709
+ type: ui
1710
+ description: fired when the rovo agent profilecard is rendered and is loading
1711
+ attributes:
1712
+ <<: *ProfileCardAttributes
1713
+ - user rendered (spinner):
1714
+ type: ui
1715
+ description: fired when an unknown profilecard is rendered and is loading
1716
+ attributes:
1717
+ <<: *ProfileCardAttributes
1718
+ - profilecard rendered (error):
1719
+ type: ui
1720
+ description: fired when the profilecard is rendered and is error
1721
+ attributes:
1722
+ <<: *ProfileCardAttributes
1723
+ hasRetry:
1724
+ type: boolean
1725
+ description: whether the profilecard has retry
1726
+ errorType:
1727
+ type: ['default', 'NotFound']
1728
+ description: the error type
1729
+ - teamProfileCard rendered (error):
1730
+ type: ui
1731
+ description: fired when the team profilecard is rendered and is error
1732
+ attributes:
1733
+ <<: *ProfileCardAttributes
1734
+ duration:
1735
+ type: number
1736
+ description: the duration
1737
+ - profilecard clicked (action):
1738
+ type: ui
1739
+ description: fired when the profilecard is clicked
1740
+ attributes:
1741
+ <<: *ProfileCardAttributes
1742
+ duration:
1743
+ type: number
1744
+ description: the duration
1745
+ hasHref:
1746
+ type: boolean
1747
+ description: whether the profilecard has href
1748
+ hasOnClick:
1749
+ type: boolean
1750
+ description: whether the profilecard has onClick
1751
+ index:
1752
+ type: number
1753
+ description: the index
1754
+ actionId:
1755
+ type: string
1756
+ description: the action id
1757
+ - profilecard clicked (reportingLines):
1758
+ type: ui
1759
+ description: fired when the profilecard is clicked
1760
+ attributes:
1761
+ <<: *ProfileCardAttributes
1762
+ duration:
1763
+ type: number
1764
+ description: the duration
1765
+ userType:
1766
+ type: ['manager', 'direct-report']
1767
+ description: the user type
1768
+ - profilecard rendered (content):
1769
+ type: ui
1770
+ description: fired when the profilecard is rendered and has content
1771
+ attributes:
1772
+ <<: *ProfileCardAttributes
1773
+ duration:
1774
+ type: number
1775
+ description: the duration
1776
+ numActions:
1777
+ type: number
1778
+ description: the number of actions
1779
+ - rovoAgentProfilecard rendered (content):
1780
+ type: ui
1781
+ description: fired when the profilecard is rendered and has content
1782
+ attributes:
1783
+ <<: *ProfileCardAttributes
1784
+ - teamProfileCard rendered (content):
1785
+ type: ui
1786
+ description: fired when the team profilecard is rendered and has content
1787
+ attributes:
1788
+ <<: *ProfileCardAttributes
1789
+ duration:
1790
+ type: number
1791
+ description: the duration
1792
+ numActions:
1793
+ type: number
1794
+ description: the number of actions
1795
+ memberCount:
1796
+ type: number
1797
+ required: false
1798
+ description: the number of members
1799
+ includingYou:
1800
+ type: boolean
1801
+ required: false
1802
+ description: whether the team includes the current user
1803
+ descriptionLength:
1804
+ type: number
1805
+ description: the length of the team description
1806
+ titleLength:
1807
+ type: number
1808
+ description: the length of the team title
1809
+ - button clicked (deleteAgentButton):
1810
+ type: ui
1811
+ description: fired when the delete agent button is clicked
1812
+ attributes:
1813
+ <<: *PackageMetaDataContext
1814
+ agentId:
1815
+ type: string
1816
+ description: the id of the agent
1817
+ source:
1818
+ type: string
1819
+ description: the source
1820
+ - button clicked (editAgentButton):
1821
+ type: ui
1822
+ description: fired when the edit agent button is clicked
1823
+ attributes:
1824
+ <<: [*PackageMetaDataContext, *AgentProfileCardActionsAttributes]
1825
+ - button clicked (copyAgentLinkButton):
1826
+ type: ui
1827
+ description: fired when the copy agent link button is clicked
1828
+ attributes:
1829
+ <<: [*PackageMetaDataContext, *AgentProfileCardActionsAttributes]
1830
+ - button clicked (duplicateAgentButton):
1831
+ type: ui
1832
+ description: fired when the duplicate agent button is clicked
1833
+ attributes:
1834
+ <<: [*PackageMetaDataContext, *AgentProfileCardActionsAttributes]
1835
+ - button clicked (viewAgentFullProfileButton):
1836
+ type: ui
1837
+ description: fired when the edit agent button is clicked
1838
+ attributes:
1839
+ <<: [*PackageMetaDataContext, *AgentProfileCardActionsAttributes]
1840
+ - teamProfileCard rendered (errorBoundary):
1841
+ type: ui
1842
+ description: fired when the team profilecard is rendered and is error boundary
1843
+ attributes:
1844
+ <<: *ProfileCardAttributes
1845
+ duration:
1846
+ type: number
1847
+ description: the duration
1848
+ - teamProfileCard clicked (errorRetry):
1849
+ type: ui
1850
+ description: fired when the team profilecard is rendered and is error boundary
1851
+ attributes:
1852
+ <<: *ProfileCardAttributes
1853
+ duration:
1854
+ type: number
1855
+ description: the duration
1856
+ - profilecard succeeded (request):
1857
+ type: operational
1858
+ description: fired when the profilecard request is succeeded
1859
+ attributes:
1860
+ <<: *ProfileCardAttributes
1861
+ duration:
1862
+ type: number
1863
+ description: the duration
1864
+ - profilecard triggered (request):
1865
+ type: operational
1866
+ description: fired when the profilecard request is triggered
1867
+ attributes:
1868
+ <<: *ProfileCardAttributes
1869
+ - profilecard failed (request):
1870
+ type: operational
1871
+ description: fired when the profilecard request is failed
1872
+ attributes:
1873
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1874
+ - teamProfileCard succeeded (request):
1875
+ type: operational
1876
+ description: fired when the team profilecard request is succeeded
1877
+ attributes:
1878
+ <<: *ProfileCardAttributes
1879
+ duration:
1880
+ type: number
1881
+ description: the duration
1882
+ gateway:
1883
+ type: boolean
1884
+ description: whether the request is a gateway request
1885
+ - teamProfileCard triggered (request):
1886
+ type: operational
1887
+ description: fired when the team profilecard request is triggered
1888
+ attributes:
1889
+ <<: *ProfileCardAttributes
1890
+ - teamProfileCard failed (request):
1891
+ type: operational
1892
+ description: fired when the team profilecard request is failed
1893
+ attributes:
1894
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1895
+ gateway:
1896
+ type: boolean
1897
+ description: whether the request is a gateway request
1898
+ - rovoAgentProfilecard succeeded (request):
1899
+ type: operational
1900
+ description: fired when the rovo agent profilecard request is succeeded
1901
+ attributes:
1902
+ <<: *ProfileCardAttributes
1903
+ duration:
1904
+ type: number
1905
+ description: the duration
1906
+ gateway:
1907
+ type: boolean
1908
+ description: whether the request is a gateway request
1909
+ - rovoAgentProfilecard triggered (request):
1910
+ type: operational
1911
+ description: fired when the rovo agent profilecard request is triggered
1912
+ attributes:
1913
+ <<: *ProfileCardAttributes
1914
+ - rovoAgentProfilecard failed (request):
1915
+ type: operational
1916
+ description: fired when the rovo agent profilecard request is failed
1917
+ attributes:
1918
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1919
+ gateway:
1920
+ type: boolean
1921
+ description: whether the request is a gateway request
1922
+ - rovoAgentProfilecard succeeded (deleteAgent):
1923
+ type: operational
1924
+ description: fired when the rovo agent profilecard deleteAgent is succeeded
1925
+ attributes:
1926
+ <<: *ProfileCardAttributes
1927
+ duration:
1928
+ type: number
1929
+ description: the duration
1930
+ gateway:
1931
+ type: boolean
1932
+ description: whether the request is a gateway request
1933
+ - rovoAgentProfilecard failed (deleteAgent):
1934
+ type: operational
1935
+ description: fired when the rovo agent profilecard deleteAgent is failed
1936
+ attributes:
1937
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1938
+ gateway:
1939
+ type: boolean
1940
+ description: whether the request is a gateway request
1941
+ - rovoAgentProfilecard succeeded (favourite):
1942
+ type: operational
1943
+ description: fired when the rovo agent profilecard favourite is succeeded
1944
+ attributes:
1945
+ <<: *ProfileCardAttributes
1946
+ duration:
1947
+ type: number
1948
+ description: the duration
1949
+ gateway:
1950
+ type: boolean
1951
+ description: whether the request is a gateway request
1952
+ - rovoAgentProfilecard triggered (favourite):
1953
+ type: operational
1954
+ description: fired when the rovo agent profilecard favourite is triggered
1955
+ attributes:
1956
+ <<: *ProfileCardAttributes
1957
+ - rovoAgentProfilecard failed (favourite):
1958
+ type: operational
1959
+ description: fired when the rovo agent profilecard favourite is failed
1960
+ attributes:
1961
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1962
+ gateway:
1963
+ type: boolean
1964
+ description: whether the request is a gateway request
1965
+ - rovoAgentProfilecard succeeded (unfavourite):
1966
+ type: operational
1967
+ description: fired when the rovo agent profilecard unfavourite is succeeded
1968
+ attributes:
1969
+ <<: *ProfileCardAttributes
1970
+ duration:
1971
+ type: number
1972
+ description: the duration
1973
+ gateway:
1974
+ type: boolean
1975
+ description: whether the request is a gateway request
1976
+ - rovoAgentProfilecard triggered (unfavourite):
1977
+ type: operational
1978
+ description: fired when the rovo agent profilecard unfavourite is triggered
1979
+ attributes:
1980
+ <<: *ProfileCardAttributes
1981
+ - rovoAgentProfilecard failed (unfavourite):
1982
+ type: operational
1983
+ description: fired when the rovo agent profilecard unfavourite is failed
1984
+ attributes:
1985
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
1986
+ gateway:
1987
+ type: boolean
1988
+ description: whether the request is a gateway request
1989
+ - rovoAgentProfilecard succeeded (getAgentPermissions):
1990
+ type: operational
1991
+ description: fired when the rovo agent profilecard getAgentPermissions is succeeded
1992
+ attributes:
1993
+ <<: *ProfileCardAttributes
1994
+ duration:
1995
+ type: number
1996
+ description: the duration
1997
+ gateway:
1998
+ type: boolean
1999
+ description: whether the request is a gateway request
2000
+ - rovoAgentProfilecard failed (getAgentPermissions):
2001
+ type: operational
2002
+ description: fired when the rovo agent profilecard getAgentPermissions is failed
2003
+ attributes:
2004
+ <<: [*ProfileCardAttributes, *ProfileCardRequestErrorAttributes]
2005
+ gateway:
2006
+ type: boolean
2007
+ description: whether the request is a gateway request
2008
+ - profilecard clicked (moreActions):
2009
+ type: ui
2010
+ description: fired when the more actions is clicked
2011
+ attributes:
2012
+ <<: *ProfileCardAttributes
2013
+ duration:
2014
+ type: number
2015
+ description: the duration
2016
+ numActions:
2017
+ type: number
2018
+ description: the number of actions
2019
+ - teamProfileCard clicked (moreActions):
2020
+ type: ui
2021
+ description: fired when the more actions is clicked
2022
+ attributes:
2023
+ <<: *ProfileCardAttributes
2024
+ duration:
2025
+ type: number
2026
+ description: the duration
2027
+ numActions:
2028
+ type: number
2029
+ description: the number of actions
2030
+ - teamProfileCard clicked (avatar):
2031
+ type: ui
2032
+ description: fired when the avatar is clicked
2033
+ attributes:
2034
+ <<: *ProfileCardAttributes
2035
+ duration:
2036
+ type: number
2037
+ description: the duration
2038
+ hasHref:
2039
+ type: boolean
2040
+ description: whether the avatar has href
2041
+ hasOnClick:
2042
+ type: boolean
2043
+ description: whether the avatar has onClick
2044
+ index:
2045
+ type: number
2046
+ description: the index
2047
+ - teamProfileCard clicked (action):
2048
+ type: ui
2049
+ description: fired when the action is clicked
2050
+ attributes:
2051
+ <<: *ProfileCardAttributes
2052
+ duration:
2053
+ type: number
2054
+ description: the duration
2055
+ hasHref:
2056
+ type: boolean
2057
+ description: whether the action has href
2058
+ hasOnClick:
2059
+ type: boolean
2060
+ description: whether the action has onClick
2061
+ index:
2062
+ type: number
2063
+ description: the index
2064
+ actionId:
2065
+ type: string
2066
+ description: the action id
2067
+ - teamProfileCard clicked (moreMembers):
2068
+ type: ui
2069
+ description: fired when the more members is clicked
2070
+ attributes:
2071
+ <<: *ProfileCardAttributes
2072
+ duration:
2073
+ type: number
2074
+ description: the duration
2075
+ memberCount:
2076
+ type: number
2077
+ description: the number of members
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/dist/cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -9,6 +10,12 @@ Object.defineProperty(exports, "TeamsAppAnalyticsContext", {
9
10
  return _analyticsContext.TeamsAppAnalyticsContext;
10
11
  }
11
12
  });
13
+ Object.defineProperty(exports, "createEventPayload", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _createEventPayload.default;
17
+ }
18
+ });
12
19
  Object.defineProperty(exports, "useAnalyticsEvents", {
13
20
  enumerable: true,
14
21
  get: function get() {
@@ -16,4 +23,5 @@ Object.defineProperty(exports, "useAnalyticsEvents", {
16
23
  }
17
24
  });
18
25
  var _analyticsContext = require("./ui/analytics-context");
19
- var _useAnalyticsEvents = require("./common/utils/generated/use-analytics-events");
26
+ var _useAnalyticsEvents = require("./common/utils/generated/use-analytics-events");
27
+ var _createEventPayload = _interopRequireDefault(require("./common/utils/generated/create-event-payload"));
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
- export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
2
+ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { TeamsAppAnalyticsContext } from './ui/analytics-context';
2
- export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
2
+ export { useAnalyticsEvents } from './common/utils/generated/use-analytics-events';
3
+ export { default as createEventPayload } from './common/utils/generated/create-event-payload';