@atlaskit/profilecard 24.14.0 → 24.15.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.
Files changed (159) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state--default.png +0 -0
  3. package/__tests__/vr-tests/agent-profilecard.vr.tsx +7 -1
  4. package/__tests__/vr-tests/user-profilecard.vr.tsx +42 -6
  5. package/dist/cjs/client/ProfileCardClient.js +10 -10
  6. package/dist/cjs/client/RovoAgentCardClient.js +172 -56
  7. package/dist/cjs/client/TeamProfileCardClient.js +44 -14
  8. package/dist/cjs/client/UserProfileCardClient.js +2 -9
  9. package/dist/cjs/client/errorUtils.js +83 -5
  10. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  11. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  12. package/dist/cjs/components/Agent/Actions.js +25 -11
  13. package/dist/cjs/components/Agent/ActionsCompiled.compiled.css +19 -0
  14. package/dist/cjs/components/Agent/ActionsCompiled.js +150 -0
  15. package/dist/cjs/components/Agent/AgentDeleteConfirmationModal.js +2 -4
  16. package/dist/cjs/components/Agent/AgentProfileCard.js +28 -14
  17. package/dist/cjs/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  18. package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +257 -0
  19. package/dist/cjs/components/Agent/AgentProfileCardResourced.js +8 -5
  20. package/dist/cjs/components/Agent/AgentProfileCardTrigger.js +6 -2
  21. package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  22. package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +9 -8
  23. package/dist/cjs/components/Agent/ConversationStarters.js +2 -4
  24. package/dist/cjs/components/Agent/hooks/useAgentActions.js +61 -30
  25. package/dist/cjs/components/Error/ErrorMessage.js +3 -3
  26. package/dist/cjs/components/Team/TeamForbiddenErrorState.js +21 -6
  27. package/dist/cjs/components/Team/TeamLoadingState.js +21 -6
  28. package/dist/cjs/components/Team/TeamProfileCard.js +155 -60
  29. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +107 -36
  30. package/dist/cjs/components/User/ProfileCardDetails.compiled.css +0 -1
  31. package/dist/cjs/components/User/ProfileCardDetails.js +2 -4
  32. package/dist/cjs/components/User/ReportingLinesDetails.js +4 -1
  33. package/dist/cjs/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  34. package/dist/cjs/components/User/ReportingLinesDetailsCompiled.js +109 -0
  35. package/dist/cjs/components/common/ProfileCardWrapper.compiled.css +1 -0
  36. package/dist/cjs/components/common/ProfileCardWrapper.js +9 -8
  37. package/dist/cjs/components/team-profile-card/main.js +18 -9
  38. package/dist/cjs/components/team-profile-card/team-actions/more-actions/index.js +2 -4
  39. package/dist/cjs/components/team-profile-card/team-connections/main.js +36 -17
  40. package/dist/cjs/styled/CoverImage.compiled.css +2 -0
  41. package/dist/cjs/styled/CoverImage.js +4 -2
  42. package/dist/cjs/styled/Error.compiled.css +0 -2
  43. package/dist/cjs/styled/Error.js +5 -3
  44. package/dist/cjs/util/analytics.js +57 -2
  45. package/dist/es2019/client/ProfileCardClient.js +10 -10
  46. package/dist/es2019/client/RovoAgentCardClient.js +186 -58
  47. package/dist/es2019/client/TeamProfileCardClient.js +49 -16
  48. package/dist/es2019/client/UserProfileCardClient.js +3 -10
  49. package/dist/es2019/client/errorUtils.js +84 -3
  50. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  51. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  52. package/dist/es2019/components/Agent/Actions.js +26 -11
  53. package/dist/es2019/components/Agent/ActionsCompiled.compiled.css +19 -0
  54. package/dist/es2019/components/Agent/ActionsCompiled.js +127 -0
  55. package/dist/es2019/components/Agent/AgentDeleteConfirmationModal.js +1 -2
  56. package/dist/es2019/components/Agent/AgentProfileCard.js +28 -13
  57. package/dist/es2019/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  58. package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +200 -0
  59. package/dist/es2019/components/Agent/AgentProfileCardResourced.js +9 -5
  60. package/dist/es2019/components/Agent/AgentProfileCardTrigger.js +7 -2
  61. package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  62. package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +8 -7
  63. package/dist/es2019/components/Agent/ConversationStarters.js +1 -3
  64. package/dist/es2019/components/Agent/hooks/useAgentActions.js +62 -30
  65. package/dist/es2019/components/Error/ErrorMessage.js +1 -2
  66. package/dist/es2019/components/Team/TeamForbiddenErrorState.js +17 -6
  67. package/dist/es2019/components/Team/TeamLoadingState.js +17 -6
  68. package/dist/es2019/components/Team/TeamProfileCard.js +144 -54
  69. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +75 -12
  70. package/dist/es2019/components/User/ProfileCardDetails.compiled.css +0 -1
  71. package/dist/es2019/components/User/ProfileCardDetails.js +1 -4
  72. package/dist/es2019/components/User/ReportingLinesDetails.js +4 -1
  73. package/dist/es2019/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  74. package/dist/es2019/components/User/ReportingLinesDetailsCompiled.js +96 -0
  75. package/dist/es2019/components/common/ProfileCardWrapper.compiled.css +1 -0
  76. package/dist/es2019/components/common/ProfileCardWrapper.js +8 -7
  77. package/dist/es2019/components/team-profile-card/main.js +19 -9
  78. package/dist/es2019/components/team-profile-card/team-actions/more-actions/index.js +1 -2
  79. package/dist/es2019/components/team-profile-card/team-connections/main.js +38 -17
  80. package/dist/es2019/styled/CoverImage.compiled.css +2 -0
  81. package/dist/es2019/styled/CoverImage.js +4 -2
  82. package/dist/es2019/styled/Error.compiled.css +0 -2
  83. package/dist/es2019/styled/Error.js +6 -4
  84. package/dist/es2019/util/analytics.js +57 -2
  85. package/dist/esm/client/ProfileCardClient.js +10 -10
  86. package/dist/esm/client/RovoAgentCardClient.js +174 -58
  87. package/dist/esm/client/TeamProfileCardClient.js +46 -16
  88. package/dist/esm/client/UserProfileCardClient.js +3 -10
  89. package/dist/esm/client/errorUtils.js +82 -4
  90. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  91. package/dist/esm/client/getTeamFromAGG.js +1 -1
  92. package/dist/esm/components/Agent/Actions.js +25 -11
  93. package/dist/esm/components/Agent/ActionsCompiled.compiled.css +19 -0
  94. package/dist/esm/components/Agent/ActionsCompiled.js +141 -0
  95. package/dist/esm/components/Agent/AgentDeleteConfirmationModal.js +1 -2
  96. package/dist/esm/components/Agent/AgentProfileCard.js +29 -13
  97. package/dist/esm/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  98. package/dist/esm/components/Agent/AgentProfileCardCompiled.js +248 -0
  99. package/dist/esm/components/Agent/AgentProfileCardResourced.js +8 -5
  100. package/dist/esm/components/Agent/AgentProfileCardTrigger.js +6 -2
  101. package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  102. package/dist/esm/components/Agent/AgentProfileCardWrapper.js +8 -7
  103. package/dist/esm/components/Agent/ConversationStarters.js +1 -3
  104. package/dist/esm/components/Agent/hooks/useAgentActions.js +61 -30
  105. package/dist/esm/components/Error/ErrorMessage.js +1 -2
  106. package/dist/esm/components/Team/TeamForbiddenErrorState.js +22 -7
  107. package/dist/esm/components/Team/TeamLoadingState.js +22 -7
  108. package/dist/esm/components/Team/TeamProfileCard.js +156 -61
  109. package/dist/esm/components/Team/TeamProfileCardTrigger.js +106 -36
  110. package/dist/esm/components/User/ProfileCardDetails.compiled.css +0 -1
  111. package/dist/esm/components/User/ProfileCardDetails.js +1 -4
  112. package/dist/esm/components/User/ReportingLinesDetails.js +4 -1
  113. package/dist/esm/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  114. package/dist/esm/components/User/ReportingLinesDetailsCompiled.js +102 -0
  115. package/dist/esm/components/common/ProfileCardWrapper.compiled.css +1 -0
  116. package/dist/esm/components/common/ProfileCardWrapper.js +8 -7
  117. package/dist/esm/components/team-profile-card/main.js +18 -9
  118. package/dist/esm/components/team-profile-card/team-actions/more-actions/index.js +1 -2
  119. package/dist/esm/components/team-profile-card/team-connections/main.js +36 -17
  120. package/dist/esm/styled/CoverImage.compiled.css +2 -0
  121. package/dist/esm/styled/CoverImage.js +4 -2
  122. package/dist/esm/styled/Error.compiled.css +0 -2
  123. package/dist/esm/styled/Error.js +6 -4
  124. package/dist/esm/util/analytics.js +57 -2
  125. package/dist/types/client/ProfileCardClient.d.ts +5 -5
  126. package/dist/types/client/RovoAgentCardClient.d.ts +5 -4
  127. package/dist/types/client/TeamProfileCardClient.d.ts +2 -1
  128. package/dist/types/client/errorUtils.d.ts +2 -1
  129. package/dist/types/client/types.d.ts +14 -2
  130. package/dist/types/components/Agent/Actions.d.ts +10 -1
  131. package/dist/types/components/Agent/ActionsCompiled.d.ts +14 -0
  132. package/dist/types/components/Agent/AgentProfileCard.d.ts +13 -3
  133. package/dist/types/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
  134. package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +12 -1
  135. package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +2 -1
  136. package/dist/types/components/Team/TeamLoadingState.d.ts +2 -1
  137. package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +7 -2
  138. package/dist/types/components/User/ReportingLinesDetails.d.ts +2 -2
  139. package/dist/types/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
  140. package/dist/types/types.d.ts +2 -0
  141. package/dist/types/util/analytics.d.ts +46 -2
  142. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +5 -5
  143. package/dist/types-ts4.5/client/RovoAgentCardClient.d.ts +5 -4
  144. package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +2 -1
  145. package/dist/types-ts4.5/client/errorUtils.d.ts +2 -1
  146. package/dist/types-ts4.5/client/types.d.ts +14 -2
  147. package/dist/types-ts4.5/components/Agent/Actions.d.ts +10 -1
  148. package/dist/types-ts4.5/components/Agent/ActionsCompiled.d.ts +14 -0
  149. package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +13 -3
  150. package/dist/types-ts4.5/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
  151. package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +12 -1
  152. package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +2 -1
  153. package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +2 -1
  154. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +7 -2
  155. package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +2 -2
  156. package/dist/types-ts4.5/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
  157. package/dist/types-ts4.5/types.d.ts +2 -0
  158. package/dist/types-ts4.5/util/analytics.d.ts +46 -2
  159. package/package.json +15 -9
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
3
+ type AgentActionsProps = {
4
+ agent: RovoAgentProfileCardInfo;
5
+ onEditAgent: () => void;
6
+ onCopyAgent: () => void;
7
+ onDuplicateAgent: () => void;
8
+ onDeleteAgent: () => void;
9
+ onChatClick: (event: React.MouseEvent) => void;
10
+ onViewFullProfileClick: () => void;
11
+ resourceClient: ProfileClient;
12
+ };
13
+ export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
14
+ export {};
@@ -1,4 +1,14 @@
1
1
  import React from 'react';
2
- import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
- export default AgentProfileCard;
2
+ declare const AgentProfileCardExport: React.FC<{
3
+ resourceClient: import("../../types").ProfileClient;
4
+ agent?: import("../../types").RovoAgentProfileCardInfo;
5
+ isLoading?: boolean;
6
+ hasError?: boolean;
7
+ cloudId?: string;
8
+ errorType?: import("../../types").ProfileCardErrorType;
9
+ addFlag?: (flag: import("../../types").Flag) => void;
10
+ onDeleteAgent?: (agentId: string) => {
11
+ restore: () => void;
12
+ };
13
+ } & import("../../types").AgentActionsType>;
14
+ export default AgentProfileCardExport;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type AgentProfileCardProps } from '../../types';
3
+ declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
+ export default AgentProfileCard;
@@ -1 +1,12 @@
1
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
1
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
2
+ resourceClient: import("../../types").ProfileClient;
3
+ agent?: import("../../types").RovoAgentProfileCardInfo;
4
+ isLoading?: boolean;
5
+ hasError?: boolean;
6
+ cloudId?: string;
7
+ errorType?: import("../..").ProfileCardErrorType;
8
+ addFlag?: (flag: import("../../types").Flag) => void;
9
+ onDeleteAgent?: (agentId: string) => {
10
+ restore: () => void;
11
+ };
12
+ } & import("../../types").AgentActionsType>>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction, type AnalyticsFunctionNext } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
+ analyticsNext: AnalyticsFunctionNext;
5
6
  }) => React.JSX.Element;
6
7
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction, type AnalyticsFunctionNext } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
+ analyticsNext: AnalyticsFunctionNext;
5
6
  }) => React.JSX.Element;
6
7
  export default _default;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
4
  import { type TriggerProps } from '@atlaskit/popup/types';
5
+ import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics';
5
6
  import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
6
7
  export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, TeamProfileCardTriggerState> {
7
8
  static defaultProps: Partial<TeamProfileCardTriggerProps>;
@@ -11,7 +12,9 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
11
12
  openedByHover: boolean;
12
13
  openTime: number;
13
14
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
15
+ fireAnalyticsNext: FireEventType;
14
16
  fireAnalyticsWithDuration: (generator: AnalyticsFromDuration) => void;
17
+ fireAnalyticsWithDurationNext: <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void;
15
18
  hideProfilecard: (delay?: number) => void;
16
19
  showProfilecard: (delay?: number) => void;
17
20
  onClick: (event: React.MouseEvent<HTMLElement>) => void;
@@ -48,7 +51,9 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
48
51
  renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
49
52
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
50
53
  }
51
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
54
+ declare const _default: React.FC<Omit<TeamProfileCardTriggerProps & WrappedComponentProps, "intl"> & {
52
55
  forwardedRef?: React.Ref<any>;
53
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
56
+ } & Omit<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
57
+ forwardedRef?: React.Ref<any>;
58
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
54
59
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
- declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
- export default ReportingLinesDetails;
4
+ declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
5
+ export default ReportingLinesDetailsExport;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
+ export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
+ declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
+ export default ReportingLinesDetails;
@@ -455,6 +455,8 @@ export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
455
455
  clientFetchProfile?: () => void;
456
456
  /** Details relevant to passing around analytics. */
457
457
  analytics: AnalyticsFunction;
458
+ /** Details relevant to passing around analytics with @atlaskit/teams-app-internal-analytics. */
459
+ analyticsNext: AnalyticsFunctionNext;
458
460
  /** Set auto focus for actionable items */
459
461
  isTriggeredByKeyboard?: boolean;
460
462
  }
@@ -1,12 +1,12 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
- import { type ErrorAttributes } from '../client/types';
3
+ import { type DEPRECATED_ErrorAttributes, type ErrorAttributes } from '../client/types';
4
4
  import { type ProfileType } from '../types';
5
5
  export declare const PACKAGE_META_DATA: {
6
6
  packageName: string;
7
7
  packageVersion: string;
8
8
  };
9
- type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes;
9
+ type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes | DEPRECATED_ErrorAttributes;
10
10
  interface AnalyticsEvent {
11
11
  action?: string;
12
12
  actionSubject?: string;
@@ -21,13 +21,29 @@ interface AnalyticsEvent {
21
21
  */
22
22
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
23
23
  export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
24
+ /**
25
+ * @private
26
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
27
+ */
24
28
  export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
29
+ /**
30
+ * @private
31
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
32
+ */
25
33
  export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
26
34
  duration: number;
27
35
  } & GenericAttributes) => AnalyticsEventPayload;
36
+ /**
37
+ * @private
38
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
39
+ */
28
40
  export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
29
41
  duration: number;
30
42
  } & GenericAttributes) => AnalyticsEventPayload;
43
+ /**
44
+ * @private
45
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
46
+ */
31
47
  export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
32
48
  duration?: number;
33
49
  errorType?: "default" | "NotFound";
@@ -38,6 +54,10 @@ export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "
38
54
  descriptionLength?: number;
39
55
  titleLength?: number;
40
56
  }) => AnalyticsEventPayload;
57
+ /**
58
+ * @private
59
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
60
+ */
41
61
  export declare const actionClicked: (type: ProfileType, attributes: {
42
62
  duration: number;
43
63
  hasHref: boolean;
@@ -45,27 +65,51 @@ export declare const actionClicked: (type: ProfileType, attributes: {
45
65
  index: number;
46
66
  actionId: string;
47
67
  }) => AnalyticsEventPayload;
68
+ /**
69
+ * @private
70
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
71
+ */
48
72
  export declare const reportingLinesClicked: (attributes: {
49
73
  userType: "manager" | "direct-report";
50
74
  duration: number;
51
75
  }) => AnalyticsEventPayload;
76
+ /**
77
+ * @private
78
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
79
+ */
52
80
  export declare const moreActionsClicked: (type: ProfileType, attributes: {
53
81
  duration: number;
54
82
  numActions: number;
55
83
  }) => AnalyticsEventPayload;
84
+ /**
85
+ * @private
86
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
87
+ */
56
88
  export declare const teamAvatarClicked: (attributes: {
57
89
  duration: number;
58
90
  hasHref: boolean;
59
91
  hasOnClick: boolean;
60
92
  index: number;
61
93
  }) => AnalyticsEventPayload;
94
+ /**
95
+ * @private
96
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
97
+ */
62
98
  export declare const moreMembersClicked: (attributes: {
63
99
  duration: number;
64
100
  memberCount: number;
65
101
  }) => AnalyticsEventPayload;
102
+ /**
103
+ * @private
104
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
105
+ */
66
106
  export declare const errorRetryClicked: (attributes: {
67
107
  duration: number;
68
108
  }) => AnalyticsEventPayload;
109
+ /**
110
+ * @private
111
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
112
+ */
69
113
  export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
70
114
  duration: number;
71
115
  } & GenericAttributes) => AnalyticsEventPayload;
@@ -17,13 +17,13 @@ declare class ProfileCardClient implements ProfileClient {
17
17
  constructor(config: ProfileClientOptions, clients?: ClientOverrides);
18
18
  flushCache(): void;
19
19
  getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<any>;
20
- getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").Team>;
20
+ getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<import("../types").Team>;
21
21
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
22
22
  getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
23
23
  shouldShowGiveKudos(): Promise<boolean>;
24
- getRovoAgentProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").RovoAgent>;
25
- getRovoAgentPermissions(id: string, fireAnalytics?: ((event: AnalyticsEventPayload) => void) | undefined): Promise<import("../types").AgentPermissions>;
26
- deleteAgent(id: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<void>;
27
- setFavouriteAgent(id: string, isFavourite: boolean, analytics?: (event: AnalyticsEventPayload) => void): Promise<void>;
24
+ getRovoAgentProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<import("../types").RovoAgent>;
25
+ getRovoAgentPermissions(id: string, fireAnalytics?: ((event: AnalyticsEventPayload) => void) | undefined, analyticsNext?: FireEventType): Promise<import("../types").AgentPermissions>;
26
+ deleteAgent(id: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<void>;
27
+ setFavouriteAgent(id: string, isFavourite: boolean, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<void>;
28
28
  }
29
29
  export default ProfileCardClient;
@@ -1,4 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import type { AgentIdType, AgentPermissions, ProfileClientOptions, RovoAgent } from '../types';
3
4
  import CachingClient from './CachingClient';
4
5
  export default class RovoAgentCardClient extends CachingClient<RovoAgent> {
@@ -6,8 +7,8 @@ export default class RovoAgentCardClient extends CachingClient<RovoAgent> {
6
7
  constructor(options: ProfileClientOptions);
7
8
  private basePath;
8
9
  makeRequest(id: AgentIdType, cloudId: string): Promise<RovoAgent>;
9
- getProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void): Promise<RovoAgent>;
10
- deleteAgent(agentId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<void>;
11
- setFavouriteAgent(agentId: string, isFavourite: boolean, analytics?: (event: AnalyticsEventPayload) => void): Promise<void>;
12
- getPermissions(id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void): Promise<AgentPermissions>;
10
+ getProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<RovoAgent>;
11
+ deleteAgent(agentId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<void>;
12
+ setFavouriteAgent(agentId: string, isFavourite: boolean, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<void>;
13
+ getPermissions(id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType): Promise<AgentPermissions>;
13
14
  }
@@ -1,9 +1,10 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import type { ProfileClientOptions, Team } from '../types';
3
4
  import CachingClient from './CachingClient';
4
5
  export default class TeamProfileCardClient extends CachingClient<Team> {
5
6
  options: ProfileClientOptions;
6
7
  constructor(options: ProfileClientOptions);
7
8
  makeRequest(teamId: string, _orgId: string | undefined): Promise<Team>;
8
- getProfile(teamId: string, orgId: string | undefined, analytics?: (event: AnalyticsEventPayload) => void): Promise<Team>;
9
+ getProfile(teamId: string, orgId: string | undefined, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<Team>;
9
10
  }
@@ -1,5 +1,6 @@
1
1
  import { AGGError, AGGErrors, DirectoryGraphQLError, DirectoryGraphQLErrors } from '../util/errors';
2
- import { type ErrorAttributes } from './types';
2
+ import { type DEPRECATED_ErrorAttributes, type ErrorAttributes } from './types';
3
+ export declare const DEPRECATED_getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => DEPRECATED_ErrorAttributes;
3
4
  export declare const getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => ErrorAttributes;
4
5
  export declare const handleDirectoryGraphQLErrors: (errors: unknown, traceId: string | null) => void;
5
6
  export declare const handleAGGErrors: (errors: unknown, traceId: string | null) => void;
@@ -1,6 +1,6 @@
1
- export type ErrorAttributes = {
1
+ export type DEPRECATED_ErrorAttributes = {
2
2
  errorCount?: number;
3
- errorDetails?: Omit<ErrorAttributes, 'errorDetails'>[];
3
+ errorDetails?: Omit<DEPRECATED_ErrorAttributes, 'errorDetails'>[];
4
4
  errorMessage: string;
5
5
  errorCategory?: string;
6
6
  errorType?: string;
@@ -10,3 +10,15 @@ export type ErrorAttributes = {
10
10
  traceId?: string | null;
11
11
  errorStatusCode?: number;
12
12
  };
13
+ export type ErrorAttributes = {
14
+ errorCount: number | null;
15
+ errorDetails: Omit<ErrorAttributes, 'errorDetails'>[] | null;
16
+ errorMessage: string;
17
+ errorCategory: string | null;
18
+ errorType: string | null;
19
+ errorPath: string | null;
20
+ errorNumber: number | null;
21
+ isSLOFailure: boolean;
22
+ traceId: string | null;
23
+ errorStatusCode: number | null;
24
+ };
@@ -10,5 +10,14 @@ type AgentActionsProps = {
10
10
  onViewFullProfileClick: () => void;
11
11
  resourceClient: ProfileClient;
12
12
  };
13
- export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
13
+ export declare const AgentActions: React.FC<{
14
+ agent: RovoAgentProfileCardInfo;
15
+ onEditAgent: () => void;
16
+ onCopyAgent: () => void;
17
+ onDuplicateAgent: () => void;
18
+ onDeleteAgent: () => void;
19
+ onChatClick: (event: React.MouseEvent) => void;
20
+ onViewFullProfileClick: () => void;
21
+ resourceClient: ProfileClient;
22
+ } & AgentActionsProps>;
14
23
  export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
3
+ type AgentActionsProps = {
4
+ agent: RovoAgentProfileCardInfo;
5
+ onEditAgent: () => void;
6
+ onCopyAgent: () => void;
7
+ onDuplicateAgent: () => void;
8
+ onDeleteAgent: () => void;
9
+ onChatClick: (event: React.MouseEvent) => void;
10
+ onViewFullProfileClick: () => void;
11
+ resourceClient: ProfileClient;
12
+ };
13
+ export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
14
+ export {};
@@ -1,4 +1,14 @@
1
1
  import React from 'react';
2
- import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
- export default AgentProfileCard;
2
+ declare const AgentProfileCardExport: React.FC<{
3
+ resourceClient: import("../../types").ProfileClient;
4
+ agent?: import("../../types").RovoAgentProfileCardInfo;
5
+ isLoading?: boolean;
6
+ hasError?: boolean;
7
+ cloudId?: string;
8
+ errorType?: import("../../types").ProfileCardErrorType;
9
+ addFlag?: (flag: import("../../types").Flag) => void;
10
+ onDeleteAgent?: (agentId: string) => {
11
+ restore: () => void;
12
+ };
13
+ } & import("../../types").AgentActionsType>;
14
+ export default AgentProfileCardExport;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type AgentProfileCardProps } from '../../types';
3
+ declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
+ export default AgentProfileCard;
@@ -1 +1,12 @@
1
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
1
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
2
+ resourceClient: import("../../types").ProfileClient;
3
+ agent?: import("../../types").RovoAgentProfileCardInfo;
4
+ isLoading?: boolean;
5
+ hasError?: boolean;
6
+ cloudId?: string;
7
+ errorType?: import("../..").ProfileCardErrorType;
8
+ addFlag?: (flag: import("../../types").Flag) => void;
9
+ onDeleteAgent?: (agentId: string) => {
10
+ restore: () => void;
11
+ };
12
+ } & import("../../types").AgentActionsType>>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction, type AnalyticsFunctionNext } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
+ analyticsNext: AnalyticsFunctionNext;
5
6
  }) => React.JSX.Element;
6
7
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction, type AnalyticsFunctionNext } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
+ analyticsNext: AnalyticsFunctionNext;
5
6
  }) => React.JSX.Element;
6
7
  export default _default;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
4
4
  import { type TriggerProps } from '@atlaskit/popup/types';
5
+ import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics';
5
6
  import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
6
7
  export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, TeamProfileCardTriggerState> {
7
8
  static defaultProps: Partial<TeamProfileCardTriggerProps>;
@@ -11,7 +12,9 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
11
12
  openedByHover: boolean;
12
13
  openTime: number;
13
14
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
15
+ fireAnalyticsNext: FireEventType;
14
16
  fireAnalyticsWithDuration: (generator: AnalyticsFromDuration) => void;
17
+ fireAnalyticsWithDurationNext: <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void;
15
18
  hideProfilecard: (delay?: number) => void;
16
19
  showProfilecard: (delay?: number) => void;
17
20
  onClick: (event: React.MouseEvent<HTMLElement>) => void;
@@ -48,7 +51,9 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
48
51
  renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
49
52
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
50
53
  }
51
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
54
+ declare const _default: React.FC<Omit<TeamProfileCardTriggerProps & WrappedComponentProps, "intl"> & {
52
55
  forwardedRef?: React.Ref<any>;
53
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
56
+ } & Omit<Omit<Omit<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, "intl"> & {
57
+ forwardedRef?: React.Ref<any>;
58
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
54
59
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
- declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
- export default ReportingLinesDetails;
4
+ declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
5
+ export default ReportingLinesDetailsExport;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
+ export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
+ declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
+ export default ReportingLinesDetails;
@@ -461,6 +461,8 @@ export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
461
461
  clientFetchProfile?: () => void;
462
462
  /** Details relevant to passing around analytics. */
463
463
  analytics: AnalyticsFunction;
464
+ /** Details relevant to passing around analytics with @atlaskit/teams-app-internal-analytics. */
465
+ analyticsNext: AnalyticsFunctionNext;
464
466
  /** Set auto focus for actionable items */
465
467
  isTriggeredByKeyboard?: boolean;
466
468
  }
@@ -1,12 +1,12 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
- import { type ErrorAttributes } from '../client/types';
3
+ import { type DEPRECATED_ErrorAttributes, type ErrorAttributes } from '../client/types';
4
4
  import { type ProfileType } from '../types';
5
5
  export declare const PACKAGE_META_DATA: {
6
6
  packageName: string;
7
7
  packageVersion: string;
8
8
  };
9
- type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes;
9
+ type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes | DEPRECATED_ErrorAttributes;
10
10
  interface AnalyticsEvent {
11
11
  action?: string;
12
12
  actionSubject?: string;
@@ -21,13 +21,29 @@ interface AnalyticsEvent {
21
21
  */
22
22
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
23
23
  export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
24
+ /**
25
+ * @private
26
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
27
+ */
24
28
  export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
29
+ /**
30
+ * @private
31
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
32
+ */
25
33
  export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
26
34
  duration: number;
27
35
  } & GenericAttributes) => AnalyticsEventPayload;
36
+ /**
37
+ * @private
38
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
39
+ */
28
40
  export declare const userRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
29
41
  duration: number;
30
42
  } & GenericAttributes) => AnalyticsEventPayload;
43
+ /**
44
+ * @private
45
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
46
+ */
31
47
  export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "spinner" | "content" | "error" | "errorBoundary", attributes?: {
32
48
  duration?: number;
33
49
  errorType?: "default" | "NotFound";
@@ -38,6 +54,10 @@ export declare const profileCardRendered: (type: ProfileType, actionSubjectId: "
38
54
  descriptionLength?: number;
39
55
  titleLength?: number;
40
56
  }) => AnalyticsEventPayload;
57
+ /**
58
+ * @private
59
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
60
+ */
41
61
  export declare const actionClicked: (type: ProfileType, attributes: {
42
62
  duration: number;
43
63
  hasHref: boolean;
@@ -45,27 +65,51 @@ export declare const actionClicked: (type: ProfileType, attributes: {
45
65
  index: number;
46
66
  actionId: string;
47
67
  }) => AnalyticsEventPayload;
68
+ /**
69
+ * @private
70
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
71
+ */
48
72
  export declare const reportingLinesClicked: (attributes: {
49
73
  userType: "manager" | "direct-report";
50
74
  duration: number;
51
75
  }) => AnalyticsEventPayload;
76
+ /**
77
+ * @private
78
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
79
+ */
52
80
  export declare const moreActionsClicked: (type: ProfileType, attributes: {
53
81
  duration: number;
54
82
  numActions: number;
55
83
  }) => AnalyticsEventPayload;
84
+ /**
85
+ * @private
86
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
87
+ */
56
88
  export declare const teamAvatarClicked: (attributes: {
57
89
  duration: number;
58
90
  hasHref: boolean;
59
91
  hasOnClick: boolean;
60
92
  index: number;
61
93
  }) => AnalyticsEventPayload;
94
+ /**
95
+ * @private
96
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
97
+ */
62
98
  export declare const moreMembersClicked: (attributes: {
63
99
  duration: number;
64
100
  memberCount: number;
65
101
  }) => AnalyticsEventPayload;
102
+ /**
103
+ * @private
104
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
105
+ */
66
106
  export declare const errorRetryClicked: (attributes: {
67
107
  duration: number;
68
108
  }) => AnalyticsEventPayload;
109
+ /**
110
+ * @private
111
+ * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
112
+ */
69
113
  export declare const agentRequestAnalytics: (action: "triggered" | "succeeded" | "failed", actionSubjectId?: string, attributes?: {
70
114
  duration: number;
71
115
  } & GenericAttributes) => AnalyticsEventPayload;