@atlaskit/profilecard 26.19.9 → 26.20.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 +66 -0
- package/build-agg-user-query/package.json +10 -0
- package/dist/cjs/client/AGGQuery.js +37 -0
- package/dist/cjs/client/AgentForbiddenError.js +28 -0
- package/dist/cjs/client/HeaderProcessor.js +1 -0
- package/dist/cjs/client/ProfileCardClient.js +11 -20
- package/dist/cjs/client/Query.js +1 -0
- package/dist/cjs/client/RovoAgentCardClient.js +38 -50
- package/dist/cjs/client/TeamCentralCardClient.js +5 -12
- package/dist/cjs/client/TeamProfileCardClient.js +2 -2
- package/dist/cjs/client/UserProfileCardClient.js +30 -54
- package/dist/cjs/client/addHeaders.js +16 -0
- package/dist/cjs/client/aggUserQuery.js +11 -0
- package/dist/cjs/client/aggUserQueryString.js +7 -0
- package/dist/cjs/client/ariPrefix.js +7 -0
- package/dist/cjs/client/buildAggUserQuery.js +18 -0
- package/dist/cjs/client/buildGatewayQuery.js +22 -0
- package/dist/cjs/client/buildHeaders.js +11 -0
- package/dist/cjs/client/buildReportingLinesQuery.js +14 -0
- package/dist/cjs/client/convertTeam.js +27 -0
- package/dist/cjs/client/defaultConfig.js +9 -0
- package/dist/cjs/client/directoryGraphqlQuery.js +37 -0
- package/dist/cjs/client/extractIdFromAri.js +14 -0
- package/dist/cjs/client/gatewayQueryV2.js +11 -0
- package/dist/cjs/client/{errorUtils.js → getErrorAttributes.js} +12 -15
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +3 -3
- package/dist/cjs/client/getTeamFromAGG.js +8 -64
- package/dist/cjs/client/graphQLQuery.js +66 -0
- package/dist/cjs/client/graphqlUtils.js +1 -125
- package/dist/cjs/client/handleAGGErrors.js +10 -0
- package/dist/cjs/client/handleDirectoryGraphQLErrors.js +10 -0
- package/dist/cjs/client/id.js +9 -0
- package/dist/cjs/client/idToAri.js +15 -0
- package/dist/cjs/client/idToAriSafe.js +14 -0
- package/dist/cjs/client/index.js +17 -4
- package/dist/cjs/client/maybeCreateTeamCentralClient.js +22 -0
- package/dist/cjs/client/modifyResponse.js +40 -0
- package/dist/cjs/components/Agent/AgentProfileCard.js +4 -4
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -2
- package/dist/cjs/components/Agent/hooks/duplicateFetch.js +2 -169
- package/dist/cjs/components/Agent/hooks/fetchActivationId.js +57 -0
- package/dist/cjs/components/Agent/hooks/fetchDuplicateAgentMutation.js +74 -0
- package/dist/cjs/components/Agent/hooks/fetchHasVersionCapability.js +60 -0
- package/dist/cjs/components/Agent/hooks/firstCharUpper.js +9 -0
- package/dist/cjs/components/Agent/hooks/useAgentActions.js +2 -212
- package/dist/cjs/components/Agent/hooks/useAgentUrlActions.js +219 -0
- package/dist/cjs/components/Agent/utils/getAtlassianStudioAgentDuplicateUrl.js +10 -0
- package/dist/cjs/components/Agent/utils/getAtlassianStudioAgentEditUrl.js +10 -0
- package/dist/cjs/components/Agent/utils/getStudioHost.js +14 -0
- package/dist/cjs/components/Agent/utils/getStudioPath.js +19 -0
- package/dist/cjs/components/Agent/utils/index.js +3 -28
- package/dist/cjs/components/Team/TeamProfileCard.js +2 -2
- package/dist/cjs/components/Team/index.js +5 -0
- package/dist/cjs/components/User/LoadingView.js +31 -0
- package/dist/cjs/components/User/ProfileCard.js +21 -242
- package/dist/cjs/components/User/ProfileCardDetails.js +6 -6
- package/dist/cjs/components/User/ProfileCardResourced.js +2 -2
- package/dist/cjs/components/User/ProfilecardInternal.js +234 -0
- package/dist/cjs/components/User/index.js +7 -0
- package/dist/cjs/components/common/LoadingState.js +2 -1
- package/dist/cjs/components/common/ProfileCardTrigger.js +2 -1
- package/dist/cjs/components/team-profile-card/main.js +9 -3
- package/dist/cjs/components/team-profile-card/team-actions/index.js +2 -2
- package/dist/cjs/index.js +5 -6
- package/dist/cjs/internal/isValidDate.js +12 -0
- package/dist/cjs/internal/relative-date.js +2 -7
- package/dist/cjs/mocks/get-time-string.js +16 -0
- package/dist/cjs/mocks/get-weekday.js +15 -0
- package/dist/cjs/mocks/mock-profile-client.js +7 -5
- package/dist/cjs/mocks/mock-team-client.js +2 -2
- package/dist/cjs/mocks/profile-data.js +32 -31
- package/dist/cjs/mocks/random.js +9 -0
- package/dist/cjs/mocks/simple-mock-clients.js +4 -3
- package/dist/cjs/mocks/static-team-data.js +33 -0
- package/dist/cjs/mocks/team-data.js +8 -33
- package/dist/cjs/styled/Card.js +1 -0
- package/dist/cjs/styled/Error.js +1 -0
- package/dist/cjs/styled/ReportingLines.js +1 -0
- package/dist/cjs/styled/TeamCard.js +1 -0
- package/dist/cjs/styled/TeamTrigger.js +1 -0
- package/dist/cjs/styled/UserTrigger.js +1 -0
- package/dist/cjs/util/AGGError.js +37 -0
- package/dist/cjs/util/AGGErrors.js +34 -0
- package/dist/cjs/util/AnalyticsEventPayload.js +1 -0
- package/dist/cjs/util/DirectoryGraphQLError.js +36 -0
- package/dist/cjs/util/DirectoryGraphQLErrors.js +34 -0
- package/dist/cjs/util/GenericAttributes.js +1 -0
- package/dist/cjs/util/HttpError.js +27 -0
- package/dist/cjs/util/actionClicked.js +15 -0
- package/dist/cjs/util/agentRequestAnalytics.js +15 -0
- package/dist/cjs/util/analytics.js +5 -134
- package/dist/cjs/util/cardTriggered.js +23 -0
- package/dist/cjs/util/createEvent.js +30 -0
- package/dist/cjs/util/errorRetryClicked.js +15 -0
- package/dist/cjs/util/getActionSubject.js +19 -0
- package/dist/cjs/util/moreActionsClicked.js +15 -0
- package/dist/cjs/util/moreMembersClicked.js +15 -0
- package/dist/cjs/util/profileCardRendered.js +15 -0
- package/dist/cjs/util/reportingLinesClicked.js +15 -0
- package/dist/cjs/util/teamAvatarClicked.js +15 -0
- package/dist/cjs/util/teamRequestAnalytics.js +15 -0
- package/dist/cjs/util/userRequestAnalytics.js +15 -0
- package/dist/es2019/client/AGGQuery.js +12 -0
- package/dist/es2019/client/AgentForbiddenError.js +8 -0
- package/dist/es2019/client/HeaderProcessor.js +0 -0
- package/dist/es2019/client/ProfileCardClient.js +10 -19
- package/dist/es2019/client/Query.js +0 -0
- package/dist/es2019/client/RovoAgentCardClient.js +3 -10
- package/dist/es2019/client/TeamCentralCardClient.js +2 -31
- package/dist/es2019/client/TeamProfileCardClient.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +15 -102
- package/dist/es2019/client/addHeaders.js +10 -0
- package/dist/es2019/client/aggUserQuery.js +31 -0
- package/dist/es2019/client/aggUserQueryString.js +28 -0
- package/dist/es2019/client/ariPrefix.js +1 -0
- package/dist/es2019/client/buildAggUserQuery.js +10 -0
- package/dist/es2019/client/buildGatewayQuery.js +15 -0
- package/dist/es2019/client/buildHeaders.js +5 -0
- package/dist/es2019/client/buildReportingLinesQuery.js +30 -0
- package/dist/es2019/client/convertTeam.js +21 -0
- package/dist/es2019/client/defaultConfig.js +3 -0
- package/dist/es2019/client/directoryGraphqlQuery.js +12 -0
- package/dist/es2019/client/extractIdFromAri.js +8 -0
- package/dist/es2019/client/gatewayQueryV2.js +30 -0
- package/dist/es2019/client/{errorUtils.js → getErrorAttributes.js} +4 -7
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +2 -2
- package/dist/es2019/client/getTeamFromAGG.js +4 -80
- package/dist/es2019/client/graphQLQuery.js +24 -0
- package/dist/es2019/client/graphqlUtils.js +0 -47
- package/dist/es2019/client/handleAGGErrors.js +4 -0
- package/dist/es2019/client/handleDirectoryGraphQLErrors.js +4 -0
- package/dist/es2019/client/id.js +1 -0
- package/dist/es2019/client/idToAri.js +9 -0
- package/dist/es2019/client/idToAriSafe.js +6 -0
- package/dist/es2019/client/index.js +22 -2
- package/dist/es2019/client/maybeCreateTeamCentralClient.js +14 -0
- package/dist/es2019/client/modifyResponse.js +32 -0
- package/dist/es2019/components/Agent/AgentProfileCard.js +2 -2
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/es2019/components/Agent/hooks/duplicateFetch.js +1 -121
- package/dist/es2019/components/Agent/hooks/fetchActivationId.js +35 -0
- package/dist/es2019/components/Agent/hooks/fetchDuplicateAgentMutation.js +49 -0
- package/dist/es2019/components/Agent/hooks/fetchHasVersionCapability.js +39 -0
- package/dist/es2019/components/Agent/hooks/firstCharUpper.js +1 -0
- package/dist/es2019/components/Agent/hooks/useAgentActions.js +1 -182
- package/dist/es2019/components/Agent/hooks/useAgentUrlActions.js +186 -0
- package/dist/es2019/components/Agent/utils/getAtlassianStudioAgentDuplicateUrl.js +2 -0
- package/dist/es2019/components/Agent/utils/getAtlassianStudioAgentEditUrl.js +2 -0
- package/dist/es2019/components/Agent/utils/getStudioHost.js +8 -0
- package/dist/es2019/components/Agent/utils/getStudioPath.js +13 -0
- package/dist/es2019/components/Agent/utils/index.js +2 -23
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -1
- package/dist/es2019/components/Team/index.js +6 -0
- package/dist/es2019/components/User/LoadingView.js +19 -0
- package/dist/es2019/components/User/ProfileCard.js +12 -221
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfilecardInternal.js +207 -0
- package/dist/es2019/components/User/index.js +8 -0
- package/dist/es2019/components/common/LoadingState.js +2 -1
- package/dist/es2019/components/common/ProfileCardTrigger.js +2 -1
- package/dist/es2019/components/team-profile-card/main.js +8 -1
- package/dist/es2019/components/team-profile-card/team-actions/index.js +1 -1
- package/dist/es2019/i18n/index.js +91 -0
- package/dist/es2019/index.js +4 -2
- package/dist/es2019/internal/isValidDate.js +4 -0
- package/dist/es2019/internal/relative-date.js +1 -4
- package/dist/es2019/mocks/{util.js → get-time-string.js} +1 -9
- package/dist/es2019/mocks/get-weekday.js +9 -0
- package/dist/es2019/mocks/index.js +13 -0
- package/dist/es2019/mocks/mock-profile-client.js +4 -2
- package/dist/es2019/mocks/mock-team-client.js +1 -1
- package/dist/es2019/mocks/profile-data.js +2 -1
- package/dist/es2019/mocks/random.js +1 -0
- package/dist/es2019/mocks/simple-mock-clients.js +3 -2
- package/dist/es2019/mocks/static-team-data.js +21 -0
- package/dist/es2019/mocks/team-data.js +6 -26
- package/dist/es2019/styled/Card.js +1 -0
- package/dist/es2019/styled/Error.js +1 -0
- package/dist/es2019/styled/ReportingLines.js +1 -0
- package/dist/es2019/styled/TeamCard.js +1 -0
- package/dist/es2019/styled/TeamTrigger.js +1 -0
- package/dist/es2019/styled/UserTrigger.js +1 -0
- package/dist/es2019/util/AGGError.js +16 -0
- package/dist/es2019/util/AGGErrors.js +12 -0
- package/dist/es2019/util/AnalyticsEventPayload.js +0 -0
- package/dist/es2019/util/DirectoryGraphQLError.js +14 -0
- package/dist/es2019/util/DirectoryGraphQLErrors.js +12 -0
- package/dist/es2019/util/GenericAttributes.js +0 -0
- package/dist/es2019/util/HttpError.js +7 -0
- package/dist/es2019/util/actionClicked.js +8 -0
- package/dist/es2019/util/agentRequestAnalytics.js +7 -0
- package/dist/es2019/util/analytics.js +4 -107
- package/dist/es2019/util/cardTriggered.js +15 -0
- package/dist/es2019/util/createEvent.js +18 -0
- package/dist/es2019/util/errorRetryClicked.js +8 -0
- package/dist/es2019/util/getActionSubject.js +13 -0
- package/dist/es2019/util/moreActionsClicked.js +8 -0
- package/dist/es2019/util/moreMembersClicked.js +8 -0
- package/dist/es2019/util/profileCardRendered.js +8 -0
- package/dist/es2019/util/reportingLinesClicked.js +8 -0
- package/dist/es2019/util/teamAvatarClicked.js +8 -0
- package/dist/es2019/util/teamRequestAnalytics.js +7 -0
- package/dist/es2019/util/userRequestAnalytics.js +7 -0
- package/dist/esm/client/AGGQuery.js +31 -0
- package/dist/esm/client/AgentForbiddenError.js +21 -0
- package/dist/esm/client/HeaderProcessor.js +0 -0
- package/dist/esm/client/ProfileCardClient.js +10 -17
- package/dist/esm/client/Query.js +0 -0
- package/dist/esm/client/RovoAgentCardClient.js +27 -39
- package/dist/esm/client/TeamCentralCardClient.js +2 -9
- package/dist/esm/client/TeamProfileCardClient.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +17 -51
- package/dist/esm/client/addHeaders.js +10 -0
- package/dist/esm/client/aggUserQuery.js +4 -0
- package/dist/esm/client/aggUserQueryString.js +1 -0
- package/dist/esm/client/ariPrefix.js +1 -0
- package/dist/esm/client/buildAggUserQuery.js +12 -0
- package/dist/esm/client/buildGatewayQuery.js +16 -0
- package/dist/esm/client/buildHeaders.js +5 -0
- package/dist/esm/client/buildReportingLinesQuery.js +8 -0
- package/dist/esm/client/convertTeam.js +22 -0
- package/dist/esm/client/defaultConfig.js +3 -0
- package/dist/esm/client/directoryGraphqlQuery.js +31 -0
- package/dist/esm/client/extractIdFromAri.js +8 -0
- package/dist/esm/client/gatewayQueryV2.js +5 -0
- package/dist/esm/client/{errorUtils.js → getErrorAttributes.js} +5 -8
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +2 -2
- package/dist/esm/client/getTeamFromAGG.js +4 -59
- package/dist/esm/client/graphQLQuery.js +59 -0
- package/dist/esm/client/graphqlUtils.js +0 -118
- package/dist/esm/client/handleAGGErrors.js +4 -0
- package/dist/esm/client/handleDirectoryGraphQLErrors.js +4 -0
- package/dist/esm/client/id.js +3 -0
- package/dist/esm/client/idToAri.js +9 -0
- package/dist/esm/client/idToAriSafe.js +8 -0
- package/dist/esm/client/index.js +22 -2
- package/dist/esm/client/maybeCreateTeamCentralClient.js +15 -0
- package/dist/esm/client/modifyResponse.js +33 -0
- package/dist/esm/components/Agent/AgentProfileCard.js +2 -2
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/esm/components/Agent/hooks/duplicateFetch.js +1 -167
- package/dist/esm/components/Agent/hooks/fetchActivationId.js +51 -0
- package/dist/esm/components/Agent/hooks/fetchDuplicateAgentMutation.js +68 -0
- package/dist/esm/components/Agent/hooks/fetchHasVersionCapability.js +54 -0
- package/dist/esm/components/Agent/hooks/firstCharUpper.js +3 -0
- package/dist/esm/components/Agent/hooks/useAgentActions.js +1 -210
- package/dist/esm/components/Agent/hooks/useAgentUrlActions.js +212 -0
- package/dist/esm/components/Agent/utils/getAtlassianStudioAgentDuplicateUrl.js +4 -0
- package/dist/esm/components/Agent/utils/getAtlassianStudioAgentEditUrl.js +4 -0
- package/dist/esm/components/Agent/utils/getStudioHost.js +8 -0
- package/dist/esm/components/Agent/utils/getStudioPath.js +13 -0
- package/dist/esm/components/Agent/utils/index.js +2 -27
- package/dist/esm/components/Team/TeamProfileCard.js +1 -1
- package/dist/esm/components/Team/index.js +6 -0
- package/dist/esm/components/User/LoadingView.js +22 -0
- package/dist/esm/components/User/ProfileCard.js +12 -239
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfilecardInternal.js +225 -0
- package/dist/esm/components/User/index.js +8 -0
- package/dist/esm/components/common/LoadingState.js +2 -1
- package/dist/esm/components/common/ProfileCardTrigger.js +2 -1
- package/dist/esm/components/team-profile-card/main.js +8 -1
- package/dist/esm/components/team-profile-card/team-actions/index.js +1 -1
- package/dist/esm/i18n/index.js +91 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/internal/isValidDate.js +5 -0
- package/dist/esm/internal/relative-date.js +1 -5
- package/dist/esm/mocks/{util.js → get-time-string.js} +1 -11
- package/dist/esm/mocks/get-weekday.js +9 -0
- package/dist/esm/mocks/index.js +13 -0
- package/dist/esm/mocks/mock-profile-client.js +4 -2
- package/dist/esm/mocks/mock-team-client.js +1 -1
- package/dist/esm/mocks/profile-data.js +2 -1
- package/dist/esm/mocks/random.js +3 -0
- package/dist/esm/mocks/simple-mock-clients.js +3 -2
- package/dist/esm/mocks/static-team-data.js +27 -0
- package/dist/esm/mocks/team-data.js +6 -32
- package/dist/esm/styled/Card.js +1 -0
- package/dist/esm/styled/Error.js +1 -0
- package/dist/esm/styled/ReportingLines.js +1 -0
- package/dist/esm/styled/TeamCard.js +1 -0
- package/dist/esm/styled/TeamTrigger.js +1 -0
- package/dist/esm/styled/UserTrigger.js +1 -0
- package/dist/esm/util/AGGError.js +30 -0
- package/dist/esm/util/AGGErrors.js +27 -0
- package/dist/esm/util/AnalyticsEventPayload.js +0 -0
- package/dist/esm/util/DirectoryGraphQLError.js +29 -0
- package/dist/esm/util/DirectoryGraphQLErrors.js +27 -0
- package/dist/esm/util/GenericAttributes.js +0 -0
- package/dist/esm/util/HttpError.js +20 -0
- package/dist/esm/util/actionClicked.js +10 -0
- package/dist/esm/util/agentRequestAnalytics.js +9 -0
- package/dist/esm/util/analytics.js +4 -132
- package/dist/esm/util/cardTriggered.js +17 -0
- package/dist/esm/util/createEvent.js +24 -0
- package/dist/esm/util/errorRetryClicked.js +10 -0
- package/dist/esm/util/getActionSubject.js +13 -0
- package/dist/esm/util/moreActionsClicked.js +10 -0
- package/dist/esm/util/moreMembersClicked.js +10 -0
- package/dist/esm/util/profileCardRendered.js +10 -0
- package/dist/esm/util/reportingLinesClicked.js +10 -0
- package/dist/esm/util/teamAvatarClicked.js +10 -0
- package/dist/esm/util/teamRequestAnalytics.js +9 -0
- package/dist/esm/util/userRequestAnalytics.js +9 -0
- package/dist/types/client/AGGQuery.d.ts +8 -0
- package/dist/types/client/AgentForbiddenError.d.ts +4 -0
- package/dist/types/client/HeaderProcessor.d.ts +1 -0
- package/dist/types/client/ProfileCardClient.d.ts +8 -3
- package/dist/types/client/Query.d.ts +4 -0
- package/dist/types/client/RovoAgentCardClient.d.ts +0 -4
- package/dist/types/client/TeamCentralCardClient.d.ts +0 -6
- package/dist/types/client/UserProfileCardClient.d.ts +9 -16
- package/dist/types/client/addHeaders.d.ts +1 -0
- package/dist/types/client/aggUserQuery.d.ts +2 -0
- package/dist/types/client/aggUserQueryString.d.ts +1 -0
- package/dist/types/client/ariPrefix.d.ts +1 -0
- package/dist/types/client/buildAggUserQuery.d.ts +6 -0
- package/dist/types/client/buildGatewayQuery.d.ts +12 -0
- package/dist/types/client/buildHeaders.d.ts +1 -0
- package/dist/types/client/buildReportingLinesQuery.d.ts +6 -0
- package/dist/types/client/convertTeam.d.ts +3 -0
- package/dist/types/client/defaultConfig.d.ts +3 -0
- package/dist/types/client/directoryGraphqlQuery.d.ts +8 -0
- package/dist/types/client/extractIdFromAri.d.ts +1 -0
- package/dist/types/client/gatewayQueryV2.d.ts +1 -0
- package/dist/types/client/getErrorAttributes.d.ts +6 -0
- package/dist/types/client/getTeamFromAGG.d.ts +1 -21
- package/dist/types/client/graphQLQuery.d.ts +3 -0
- package/dist/types/client/graphqlUtils.d.ts +0 -18
- package/dist/types/client/handleAGGErrors.d.ts +1 -0
- package/dist/types/client/handleDirectoryGraphQLErrors.d.ts +1 -0
- package/dist/types/client/id.d.ts +2 -0
- package/dist/types/client/idToAri.d.ts +4 -0
- package/dist/types/client/idToAriSafe.d.ts +1 -0
- package/dist/types/client/index.d.ts +18 -2
- package/dist/types/client/maybeCreateTeamCentralClient.d.ts +3 -0
- package/dist/types/client/modifyResponse.d.ts +10 -0
- package/dist/types/components/Agent/hooks/duplicateFetch.d.ts +1 -24
- package/dist/types/components/Agent/hooks/fetchActivationId.d.ts +5 -0
- package/dist/types/components/Agent/hooks/fetchDuplicateAgentMutation.d.ts +11 -0
- package/dist/types/components/Agent/hooks/fetchHasVersionCapability.d.ts +8 -0
- package/dist/types/components/Agent/hooks/firstCharUpper.d.ts +1 -0
- package/dist/types/components/Agent/hooks/useAgentActions.d.ts +1 -16
- package/dist/types/components/Agent/hooks/useAgentUrlActions.d.ts +15 -0
- package/dist/types/components/Agent/utils/getAtlassianStudioAgentDuplicateUrl.d.ts +1 -0
- package/dist/types/components/Agent/utils/getAtlassianStudioAgentEditUrl.d.ts +1 -0
- package/dist/types/components/Agent/utils/getStudioHost.d.ts +1 -0
- package/dist/types/components/Agent/utils/getStudioPath.d.ts +1 -0
- package/dist/types/components/Agent/utils/index.d.ts +2 -4
- package/dist/types/components/Team/index.d.ts +3 -0
- package/dist/types/components/User/LoadingView.d.ts +3 -0
- package/dist/types/components/User/ProfileCard.d.ts +9 -4
- package/dist/types/components/User/ProfilecardInternal.d.ts +3 -0
- package/dist/types/components/User/index.d.ts +6 -0
- package/dist/types/components/team-profile-card/main.d.ts +5 -0
- package/dist/types/i18n/index.d.ts +90 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/internal/isValidDate.d.ts +1 -0
- package/dist/types/internal/relative-date.d.ts +0 -1
- package/dist/types/mocks/get-time-string.d.ts +1 -0
- package/dist/types/mocks/get-weekday.d.ts +4 -0
- package/dist/types/mocks/index.d.ts +12 -0
- package/dist/types/mocks/random.d.ts +1 -0
- package/dist/types/mocks/simple-mock-clients.d.ts +1 -1
- package/dist/types/mocks/static-team-data.d.ts +8 -0
- package/dist/types/mocks/team-data.d.ts +10 -7
- package/dist/types/types.d.ts +1 -1
- package/dist/types/util/AGGError.d.ts +15 -0
- package/dist/types/util/AGGErrors.d.ts +6 -0
- package/dist/types/util/AnalyticsEventPayload.d.ts +1 -0
- package/dist/types/util/DirectoryGraphQLError.d.ts +14 -0
- package/dist/types/util/DirectoryGraphQLErrors.d.ts +6 -0
- package/dist/types/util/GenericAttributes.d.ts +1 -0
- package/dist/types/util/HttpError.d.ts +5 -0
- package/dist/types/util/actionClicked.d.ts +13 -0
- package/dist/types/util/agentRequestAnalytics.d.ts +9 -0
- package/dist/types/util/analytics.d.ts +3 -97
- package/dist/types/util/cardTriggered.d.ts +7 -0
- package/dist/types/util/createEvent.d.ts +7 -0
- package/dist/types/util/errorRetryClicked.d.ts +8 -0
- package/dist/types/util/getActionSubject.d.ts +1 -0
- package/dist/types/util/moreActionsClicked.d.ts +10 -0
- package/dist/types/util/moreMembersClicked.d.ts +9 -0
- package/dist/types/util/profileCardRendered.d.ts +16 -0
- package/dist/types/util/reportingLinesClicked.d.ts +9 -0
- package/dist/types/util/teamAvatarClicked.d.ts +11 -0
- package/dist/types/util/teamRequestAnalytics.d.ts +9 -0
- package/dist/types/util/userRequestAnalytics.d.ts +9 -0
- package/loading-view/package.json +10 -0
- package/main/package.json +4 -4
- package/modify-response/package.json +10 -0
- package/package.json +2 -2
- package/profile-card-client/package.json +4 -4
- package/profile-card-resourced/package.json +10 -0
- package/profilecard-internal/package.json +10 -0
- package/dist/cjs/components/Error/index.js +0 -27
- package/dist/cjs/components/Icon/index.js +0 -13
- package/dist/cjs/components/team-profile-card/index.js +0 -12
- package/dist/cjs/entry-points/ProfileCardClient.js +0 -13
- package/dist/cjs/entry-points/main.js +0 -12
- package/dist/cjs/mocks/util.js +0 -26
- package/dist/cjs/util/errors.js +0 -105
- package/dist/es2019/components/Error/index.js +0 -3
- package/dist/es2019/components/Icon/index.js +0 -1
- package/dist/es2019/components/team-profile-card/index.js +0 -1
- package/dist/es2019/entry-points/ProfileCardClient.js +0 -1
- package/dist/es2019/entry-points/main.js +0 -1
- package/dist/es2019/util/errors.js +0 -59
- package/dist/esm/components/Error/index.js +0 -3
- package/dist/esm/components/Icon/index.js +0 -1
- package/dist/esm/components/team-profile-card/index.js +0 -1
- package/dist/esm/entry-points/ProfileCardClient.js +0 -1
- package/dist/esm/entry-points/main.js +0 -1
- package/dist/esm/util/errors.js +0 -98
- package/dist/types/client/errorUtils.d.ts +0 -5
- package/dist/types/components/Error/index.d.ts +0 -3
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/team-profile-card/index.d.ts +0 -1
- package/dist/types/entry-points/ProfileCardClient.d.ts +0 -1
- package/dist/types/entry-points/main.d.ts +0 -1
- package/dist/types/mocks/util.d.ts +0 -6
- package/dist/types/util/errors.d.ts +0 -43
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ProfileType } from '../types';
|
|
2
|
+
import type { AnalyticsEventPayload } from './AnalyticsEventPayload';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
6
|
+
*/
|
|
7
|
+
export declare const profileCardRendered: (type: ProfileType, actionSubjectId: 'spinner' | 'content' | 'error' | 'errorBoundary', attributes?: {
|
|
8
|
+
duration?: number;
|
|
9
|
+
errorType?: 'default' | 'NotFound';
|
|
10
|
+
hasRetry?: boolean;
|
|
11
|
+
numActions?: number;
|
|
12
|
+
memberCount?: number;
|
|
13
|
+
includingYou?: boolean;
|
|
14
|
+
descriptionLength?: number;
|
|
15
|
+
titleLength?: number;
|
|
16
|
+
}) => AnalyticsEventPayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from './AnalyticsEventPayload';
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
5
|
+
*/
|
|
6
|
+
export declare const reportingLinesClicked: (attributes: {
|
|
7
|
+
userType: 'manager' | 'direct-report';
|
|
8
|
+
duration: number;
|
|
9
|
+
}) => AnalyticsEventPayload;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from './AnalyticsEventPayload';
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
5
|
+
*/
|
|
6
|
+
export declare const teamAvatarClicked: (attributes: {
|
|
7
|
+
duration: number;
|
|
8
|
+
hasHref: boolean;
|
|
9
|
+
hasOnClick: boolean;
|
|
10
|
+
index: number;
|
|
11
|
+
}) => AnalyticsEventPayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from './AnalyticsEventPayload';
|
|
2
|
+
import type { GenericAttributes } from './GenericAttributes';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
6
|
+
*/
|
|
7
|
+
export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
|
|
8
|
+
duration: number;
|
|
9
|
+
} & GenericAttributes) => AnalyticsEventPayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from './AnalyticsEventPayload';
|
|
2
|
+
import type { GenericAttributes } from './GenericAttributes';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
|
|
6
|
+
*/
|
|
7
|
+
export declare const userRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
|
|
8
|
+
duration: number;
|
|
9
|
+
} & GenericAttributes) => AnalyticsEventPayload;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/profilecard/loading-view",
|
|
3
|
+
"main": "../dist/cjs/components/User/LoadingView.js",
|
|
4
|
+
"module": "../dist/esm/components/User/LoadingView.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/User/LoadingView.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/components/User/LoadingView.d.ts"
|
|
10
|
+
}
|
package/main/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard/main",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/components/team-profile-card/main.js",
|
|
4
|
+
"module": "../dist/esm/components/team-profile-card/main.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/team-profile-card/main.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/components/team-profile-card/main.d.ts"
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/profilecard/modify-response",
|
|
3
|
+
"main": "../dist/cjs/client/modifyResponse.js",
|
|
4
|
+
"module": "../dist/esm/client/modifyResponse.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/client/modifyResponse.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/client/modifyResponse.d.ts"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.20.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.9.0",
|
|
70
70
|
"@atlaskit/theme": "^28.1.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^164.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^164.1.0",
|
|
72
72
|
"@atlaskit/tokens": "^16.8.0",
|
|
73
73
|
"@atlaskit/tooltip": "^24.2.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard/profile-card-client",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/client/ProfileCardClient.js",
|
|
4
|
+
"module": "../dist/esm/client/ProfileCardClient.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/client/ProfileCardClient.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/client/ProfileCardClient.d.ts"
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/profilecard/profile-card-resourced",
|
|
3
|
+
"main": "../dist/cjs/components/User/ProfileCardResourced.js",
|
|
4
|
+
"module": "../dist/esm/components/User/ProfileCardResourced.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/User/ProfileCardResourced.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/components/User/ProfileCardResourced.d.ts"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/profilecard/profilecard-internal",
|
|
3
|
+
"main": "../dist/cjs/components/User/ProfilecardInternal.js",
|
|
4
|
+
"module": "../dist/esm/components/User/ProfilecardInternal.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/User/ProfilecardInternal.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/components/User/ProfilecardInternal.d.ts"
|
|
10
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "ErrorBoundary", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _ErrorBoundary.ErrorBoundary;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ErrorIllustration", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _ErrorIllustration.ErrorIllustration;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "ErrorMessage", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _ErrorMessage.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
var _ErrorBoundary = require("./ErrorBoundary");
|
|
26
|
-
var _ErrorIllustration = require("./ErrorIllustration");
|
|
27
|
-
var _ErrorMessage = _interopRequireDefault(require("./ErrorMessage"));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "IconLabel", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _IconLabel.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _IconLabel = _interopRequireDefault(require("./IconLabel"));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "TeamProfileCard", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _main.TeamProfileCard;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _main = require("./main");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "ProfileClient", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _ProfileCardClient.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _ProfileCardClient = _interopRequireDefault(require("../client/ProfileCardClient"));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "TeamProfileCardWithContainer", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _main.TeamProfileCard;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _main = require("../components/team-profile-card/main");
|
package/dist/cjs/mocks/util.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.random = exports.getWeekday = exports.getTimeString = void 0;
|
|
7
|
-
function padMinutes(minutes) {
|
|
8
|
-
return minutes < 10 ? "0".concat(minutes) : String(minutes);
|
|
9
|
-
}
|
|
10
|
-
var random = exports.random = function random(int) {
|
|
11
|
-
return Math.floor(Math.random() * (int + 1));
|
|
12
|
-
};
|
|
13
|
-
var getWeekday = exports.getWeekday = function getWeekday() {
|
|
14
|
-
var array = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
|
15
|
-
var index = random(6);
|
|
16
|
-
return {
|
|
17
|
-
index: index,
|
|
18
|
-
string: array[index]
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
var getTimeString = exports.getTimeString = function getTimeString() {
|
|
22
|
-
var hours = random(23);
|
|
23
|
-
var minutes = random(59);
|
|
24
|
-
var meridiem = ['am', 'pm'][Math.floor(hours / 12)];
|
|
25
|
-
return "".concat(hours === 0 ? 12 : hours % 12, ":").concat(padMinutes(minutes)).concat(meridiem);
|
|
26
|
-
};
|
package/dist/cjs/util/errors.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.HttpError = exports.DirectoryGraphQLErrors = exports.DirectoryGraphQLError = exports.AGGErrors = exports.AGGError = void 0;
|
|
8
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
-
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
15
|
-
var _excluded = ["errorNumber"],
|
|
16
|
-
_excluded2 = ["statusCode", "errorType", "classification"];
|
|
17
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
-
var HttpError = exports.HttpError = /*#__PURE__*/function (_Error) {
|
|
20
|
-
function HttpError(code, reason, traceId) {
|
|
21
|
-
var _this;
|
|
22
|
-
(0, _classCallCheck2.default)(this, HttpError);
|
|
23
|
-
_this = _callSuper(this, HttpError, [reason]);
|
|
24
|
-
_this.code = code;
|
|
25
|
-
_this.traceId = traceId;
|
|
26
|
-
return _this;
|
|
27
|
-
}
|
|
28
|
-
(0, _inherits2.default)(HttpError, _Error);
|
|
29
|
-
return (0, _createClass2.default)(HttpError);
|
|
30
|
-
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
31
|
-
var DirectoryGraphQLError = exports.DirectoryGraphQLError = /*#__PURE__*/function (_Error2) {
|
|
32
|
-
function DirectoryGraphQLError(message, category, type) {
|
|
33
|
-
var _this2;
|
|
34
|
-
var extensions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
35
|
-
var path = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
36
|
-
(0, _classCallCheck2.default)(this, DirectoryGraphQLError);
|
|
37
|
-
_this2 = _callSuper(this, DirectoryGraphQLError, [message]);
|
|
38
|
-
_this2.category = category;
|
|
39
|
-
_this2.type = type;
|
|
40
|
-
_this2.path = path.join('.');
|
|
41
|
-
var errorNumber = extensions.errorNumber,
|
|
42
|
-
unknownExtension = (0, _objectWithoutProperties2.default)(extensions, _excluded);
|
|
43
|
-
_this2.errorNumber = extensions.errorNumber;
|
|
44
|
-
_this2.extensions = unknownExtension;
|
|
45
|
-
return _this2;
|
|
46
|
-
}
|
|
47
|
-
(0, _inherits2.default)(DirectoryGraphQLError, _Error2);
|
|
48
|
-
return (0, _createClass2.default)(DirectoryGraphQLError);
|
|
49
|
-
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
50
|
-
var DirectoryGraphQLErrors = exports.DirectoryGraphQLErrors = /*#__PURE__*/function (_Error3) {
|
|
51
|
-
function DirectoryGraphQLErrors(errors, traceId) {
|
|
52
|
-
var _this3;
|
|
53
|
-
(0, _classCallCheck2.default)(this, DirectoryGraphQLErrors);
|
|
54
|
-
_this3 = _callSuper(this, DirectoryGraphQLErrors, ['DirectoryGraphQLErrors']);
|
|
55
|
-
_this3.traceId = traceId;
|
|
56
|
-
if (Array.isArray(errors)) {
|
|
57
|
-
_this3.errors = errors.map(function (error) {
|
|
58
|
-
return new DirectoryGraphQLError(error.message, error.category, error.type, error.extensions, error.path);
|
|
59
|
-
});
|
|
60
|
-
} else {
|
|
61
|
-
_this3.errors = [];
|
|
62
|
-
}
|
|
63
|
-
return _this3;
|
|
64
|
-
}
|
|
65
|
-
(0, _inherits2.default)(DirectoryGraphQLErrors, _Error3);
|
|
66
|
-
return (0, _createClass2.default)(DirectoryGraphQLErrors);
|
|
67
|
-
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
68
|
-
var AGGError = exports.AGGError = /*#__PURE__*/function (_Error4) {
|
|
69
|
-
function AGGError(message, extensions) {
|
|
70
|
-
var _this4;
|
|
71
|
-
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
72
|
-
(0, _classCallCheck2.default)(this, AGGError);
|
|
73
|
-
_this4 = _callSuper(this, AGGError, [message]);
|
|
74
|
-
_this4.path = path === null || path === void 0 ? void 0 : path.join('.');
|
|
75
|
-
var statusCode = extensions.statusCode,
|
|
76
|
-
errorType = extensions.errorType,
|
|
77
|
-
classification = extensions.classification,
|
|
78
|
-
unknownExtension = (0, _objectWithoutProperties2.default)(extensions, _excluded2);
|
|
79
|
-
_this4.statusCode = statusCode;
|
|
80
|
-
_this4.errorType = errorType;
|
|
81
|
-
_this4.classification = classification;
|
|
82
|
-
_this4.extensions = unknownExtension;
|
|
83
|
-
return _this4;
|
|
84
|
-
}
|
|
85
|
-
(0, _inherits2.default)(AGGError, _Error4);
|
|
86
|
-
return (0, _createClass2.default)(AGGError);
|
|
87
|
-
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
88
|
-
var AGGErrors = exports.AGGErrors = /*#__PURE__*/function (_Error5) {
|
|
89
|
-
function AGGErrors(errors, traceId) {
|
|
90
|
-
var _this5;
|
|
91
|
-
(0, _classCallCheck2.default)(this, AGGErrors);
|
|
92
|
-
_this5 = _callSuper(this, AGGErrors, ['AGGErrors']);
|
|
93
|
-
_this5.traceId = traceId;
|
|
94
|
-
if (Array.isArray(errors)) {
|
|
95
|
-
_this5.errors = errors.map(function (error) {
|
|
96
|
-
return new AGGError(error.message, error.extensions, error.path);
|
|
97
|
-
});
|
|
98
|
-
} else {
|
|
99
|
-
_this5.errors = [];
|
|
100
|
-
}
|
|
101
|
-
return _this5;
|
|
102
|
-
}
|
|
103
|
-
(0, _inherits2.default)(AGGErrors, _Error5);
|
|
104
|
-
return (0, _createClass2.default)(AGGErrors);
|
|
105
|
-
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconLabel } from './IconLabel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard } from './main';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProfileClient } from '../client/ProfileCardClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard as TeamProfileCardWithContainer } from '../components/team-profile-card/main';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export class HttpError extends Error {
|
|
2
|
-
constructor(code, reason, traceId) {
|
|
3
|
-
super(reason);
|
|
4
|
-
this.code = code;
|
|
5
|
-
this.traceId = traceId;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export class DirectoryGraphQLError extends Error {
|
|
9
|
-
constructor(message, category, type, extensions = {}, path = []) {
|
|
10
|
-
super(message);
|
|
11
|
-
this.category = category;
|
|
12
|
-
this.type = type;
|
|
13
|
-
this.path = path.join('.');
|
|
14
|
-
const {
|
|
15
|
-
errorNumber,
|
|
16
|
-
...unknownExtension
|
|
17
|
-
} = extensions;
|
|
18
|
-
this.errorNumber = extensions.errorNumber;
|
|
19
|
-
this.extensions = unknownExtension;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export class DirectoryGraphQLErrors extends Error {
|
|
23
|
-
constructor(errors, traceId) {
|
|
24
|
-
super('DirectoryGraphQLErrors');
|
|
25
|
-
this.traceId = traceId;
|
|
26
|
-
if (Array.isArray(errors)) {
|
|
27
|
-
this.errors = errors.map(error => new DirectoryGraphQLError(error.message, error.category, error.type, error.extensions, error.path));
|
|
28
|
-
} else {
|
|
29
|
-
this.errors = [];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export class AGGError extends Error {
|
|
34
|
-
constructor(message, extensions, path = []) {
|
|
35
|
-
super(message);
|
|
36
|
-
this.path = path === null || path === void 0 ? void 0 : path.join('.');
|
|
37
|
-
const {
|
|
38
|
-
statusCode,
|
|
39
|
-
errorType,
|
|
40
|
-
classification,
|
|
41
|
-
...unknownExtension
|
|
42
|
-
} = extensions;
|
|
43
|
-
this.statusCode = statusCode;
|
|
44
|
-
this.errorType = errorType;
|
|
45
|
-
this.classification = classification;
|
|
46
|
-
this.extensions = unknownExtension;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export class AGGErrors extends Error {
|
|
50
|
-
constructor(errors, traceId) {
|
|
51
|
-
super('AGGErrors');
|
|
52
|
-
this.traceId = traceId;
|
|
53
|
-
if (Array.isArray(errors)) {
|
|
54
|
-
this.errors = errors.map(error => new AGGError(error.message, error.extensions, error.path));
|
|
55
|
-
} else {
|
|
56
|
-
this.errors = [];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconLabel } from './IconLabel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard } from './main';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProfileClient } from '../client/ProfileCardClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard as TeamProfileCardWithContainer } from '../components/team-profile-card/main';
|
package/dist/esm/util/errors.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
|
|
8
|
-
var _excluded = ["errorNumber"],
|
|
9
|
-
_excluded2 = ["statusCode", "errorType", "classification"];
|
|
10
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
export var HttpError = /*#__PURE__*/function (_Error) {
|
|
13
|
-
function HttpError(code, reason, traceId) {
|
|
14
|
-
var _this;
|
|
15
|
-
_classCallCheck(this, HttpError);
|
|
16
|
-
_this = _callSuper(this, HttpError, [reason]);
|
|
17
|
-
_this.code = code;
|
|
18
|
-
_this.traceId = traceId;
|
|
19
|
-
return _this;
|
|
20
|
-
}
|
|
21
|
-
_inherits(HttpError, _Error);
|
|
22
|
-
return _createClass(HttpError);
|
|
23
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
24
|
-
export var DirectoryGraphQLError = /*#__PURE__*/function (_Error2) {
|
|
25
|
-
function DirectoryGraphQLError(message, category, type) {
|
|
26
|
-
var _this2;
|
|
27
|
-
var extensions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
28
|
-
var path = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
29
|
-
_classCallCheck(this, DirectoryGraphQLError);
|
|
30
|
-
_this2 = _callSuper(this, DirectoryGraphQLError, [message]);
|
|
31
|
-
_this2.category = category;
|
|
32
|
-
_this2.type = type;
|
|
33
|
-
_this2.path = path.join('.');
|
|
34
|
-
var errorNumber = extensions.errorNumber,
|
|
35
|
-
unknownExtension = _objectWithoutProperties(extensions, _excluded);
|
|
36
|
-
_this2.errorNumber = extensions.errorNumber;
|
|
37
|
-
_this2.extensions = unknownExtension;
|
|
38
|
-
return _this2;
|
|
39
|
-
}
|
|
40
|
-
_inherits(DirectoryGraphQLError, _Error2);
|
|
41
|
-
return _createClass(DirectoryGraphQLError);
|
|
42
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
43
|
-
export var DirectoryGraphQLErrors = /*#__PURE__*/function (_Error3) {
|
|
44
|
-
function DirectoryGraphQLErrors(errors, traceId) {
|
|
45
|
-
var _this3;
|
|
46
|
-
_classCallCheck(this, DirectoryGraphQLErrors);
|
|
47
|
-
_this3 = _callSuper(this, DirectoryGraphQLErrors, ['DirectoryGraphQLErrors']);
|
|
48
|
-
_this3.traceId = traceId;
|
|
49
|
-
if (Array.isArray(errors)) {
|
|
50
|
-
_this3.errors = errors.map(function (error) {
|
|
51
|
-
return new DirectoryGraphQLError(error.message, error.category, error.type, error.extensions, error.path);
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
_this3.errors = [];
|
|
55
|
-
}
|
|
56
|
-
return _this3;
|
|
57
|
-
}
|
|
58
|
-
_inherits(DirectoryGraphQLErrors, _Error3);
|
|
59
|
-
return _createClass(DirectoryGraphQLErrors);
|
|
60
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
61
|
-
export var AGGError = /*#__PURE__*/function (_Error4) {
|
|
62
|
-
function AGGError(message, extensions) {
|
|
63
|
-
var _this4;
|
|
64
|
-
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
65
|
-
_classCallCheck(this, AGGError);
|
|
66
|
-
_this4 = _callSuper(this, AGGError, [message]);
|
|
67
|
-
_this4.path = path === null || path === void 0 ? void 0 : path.join('.');
|
|
68
|
-
var statusCode = extensions.statusCode,
|
|
69
|
-
errorType = extensions.errorType,
|
|
70
|
-
classification = extensions.classification,
|
|
71
|
-
unknownExtension = _objectWithoutProperties(extensions, _excluded2);
|
|
72
|
-
_this4.statusCode = statusCode;
|
|
73
|
-
_this4.errorType = errorType;
|
|
74
|
-
_this4.classification = classification;
|
|
75
|
-
_this4.extensions = unknownExtension;
|
|
76
|
-
return _this4;
|
|
77
|
-
}
|
|
78
|
-
_inherits(AGGError, _Error4);
|
|
79
|
-
return _createClass(AGGError);
|
|
80
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
81
|
-
export var AGGErrors = /*#__PURE__*/function (_Error5) {
|
|
82
|
-
function AGGErrors(errors, traceId) {
|
|
83
|
-
var _this5;
|
|
84
|
-
_classCallCheck(this, AGGErrors);
|
|
85
|
-
_this5 = _callSuper(this, AGGErrors, ['AGGErrors']);
|
|
86
|
-
_this5.traceId = traceId;
|
|
87
|
-
if (Array.isArray(errors)) {
|
|
88
|
-
_this5.errors = errors.map(function (error) {
|
|
89
|
-
return new AGGError(error.message, error.extensions, error.path);
|
|
90
|
-
});
|
|
91
|
-
} else {
|
|
92
|
-
_this5.errors = [];
|
|
93
|
-
}
|
|
94
|
-
return _this5;
|
|
95
|
-
}
|
|
96
|
-
_inherits(AGGErrors, _Error5);
|
|
97
|
-
return _createClass(AGGErrors);
|
|
98
|
-
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AGGError, AGGErrors, DirectoryGraphQLError, DirectoryGraphQLErrors } from '../util/errors';
|
|
2
|
-
import { type ErrorAttributes } from './types';
|
|
3
|
-
export declare const getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => ErrorAttributes;
|
|
4
|
-
export declare const handleDirectoryGraphQLErrors: (errors: unknown, traceId: string | null) => void;
|
|
5
|
-
export declare const handleAGGErrors: (errors: unknown, traceId: string | null) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconLabel } from './IconLabel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard } from './main';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProfileClient } from '../client/ProfileCardClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TeamProfileCard as TeamProfileCardWithContainer } from '../components/team-profile-card/main';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare class HttpError extends Error {
|
|
2
|
-
code: number;
|
|
3
|
-
traceId?: string | null;
|
|
4
|
-
constructor(code: number, reason: string, traceId?: string | null);
|
|
5
|
-
}
|
|
6
|
-
type KnownErrorExtensions = {
|
|
7
|
-
errorNumber?: number;
|
|
8
|
-
};
|
|
9
|
-
type ErrorExtensions = KnownErrorExtensions & Record<string, any>;
|
|
10
|
-
type ErrorCategory = 'NotFound' | 'NotPermitted' | 'MalformedInput' | 'Internal' | 'Gone';
|
|
11
|
-
export declare class DirectoryGraphQLError extends Error {
|
|
12
|
-
category: ErrorCategory;
|
|
13
|
-
type: string;
|
|
14
|
-
path: string;
|
|
15
|
-
errorNumber?: number;
|
|
16
|
-
extensions: Record<string, any>;
|
|
17
|
-
constructor(message: string, category: ErrorCategory, type: string, extensions?: ErrorExtensions, path?: (string | number)[]);
|
|
18
|
-
}
|
|
19
|
-
export declare class DirectoryGraphQLErrors extends Error {
|
|
20
|
-
errors: DirectoryGraphQLError[];
|
|
21
|
-
traceId?: string | null;
|
|
22
|
-
constructor(errors: unknown, traceId: string | null);
|
|
23
|
-
}
|
|
24
|
-
type KnownAggErrorExtensions = {
|
|
25
|
-
statusCode?: number;
|
|
26
|
-
errorType?: string;
|
|
27
|
-
classification?: string;
|
|
28
|
-
};
|
|
29
|
-
type AggErrorExtensions = KnownAggErrorExtensions & Record<string, any>;
|
|
30
|
-
export declare class AGGError extends Error {
|
|
31
|
-
path: string;
|
|
32
|
-
extensions: Record<string, any>;
|
|
33
|
-
statusCode?: number;
|
|
34
|
-
errorType?: string;
|
|
35
|
-
classification?: string;
|
|
36
|
-
constructor(message: string, extensions: AggErrorExtensions, path?: (string | number)[]);
|
|
37
|
-
}
|
|
38
|
-
export declare class AGGErrors extends Error {
|
|
39
|
-
errors: AGGError[];
|
|
40
|
-
traceId?: string | null;
|
|
41
|
-
constructor(errors: unknown, traceId: string | null);
|
|
42
|
-
}
|
|
43
|
-
export {};
|