@rh-support/troubleshoot 2.6.361 → 2.6.364
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/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +29 -19
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +17 -92
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -6
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +32 -61
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +33 -60
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +9 -19
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +7 -28
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +57 -88
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +0 -2
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +3 -3
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +2 -3
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +11 -24
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +57 -92
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +109 -203
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +1 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +3 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +9 -5
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +17 -18
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +49 -55
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +46 -53
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +46 -52
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +17 -63
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +2 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +3 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +56 -131
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +6 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.js +1 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +71 -111
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +10 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +2 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts +25 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.js +102 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +26 -42
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +148 -152
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +2 -10
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +146 -252
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +9 -22
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +2 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.js +1 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.js +7 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +3 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +271 -215
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +2 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +3 -36
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +230 -62
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +5 -4
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +8 -24
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +2 -8
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +52 -38
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +62 -173
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +9 -10
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +31 -108
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +2 -2
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +5 -2
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +19 -33
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +24 -33
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +55 -36
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +8 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +10 -13
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +10 -12
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +1 -2
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -20
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +6 -6
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +1 -0
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +32 -19
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +2 -4
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +2 -4
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +40 -34
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +4 -8
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +2 -4
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +17 -23
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +2 -4
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +1 -0
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +15 -3
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +37 -13
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +50 -37
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +3 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +1 -9
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +3 -4
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +4 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +4 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +9 -3
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +8 -10
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +19 -25
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -3
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +93 -141
- package/lib/esm/components/shared/Constants.d.ts +0 -5
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Constants.js +0 -5
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +3 -3
- package/lib/esm/components/shared/fileUpload/FileUpload.js +3 -2
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.js +1 -3
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts +0 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +3 -4
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +5 -22
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +59 -307
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +1 -5
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.js +1 -36
- package/lib/esm/components/shared/fileUpload/types/index.d.ts +1 -5
- package/lib/esm/components/shared/fileUpload/types/index.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +47 -119
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +57 -22
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +28 -16
- package/lib/esm/components/shared/utils.d.ts +0 -1
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +3 -9
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +38 -178
- package/lib/esm/components/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +1 -2
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +4 -2
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +13 -12
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +0 -7
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +11 -14
- package/lib/esm/constants/caseDetailsConstants.d.ts +0 -5
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +0 -5
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/css/app.css +0 -28
- package/lib/esm/css/case.css +212 -209
- package/lib/esm/hooks/useAB.d.ts.map +1 -1
- package/lib/esm/hooks/useAB.js +23 -45
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts +1 -9
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts.map +1 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.js +11 -108
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +11 -18
- package/lib/esm/hooks/useS3Upload.d.ts +4 -5
- package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.js +30 -28
- package/lib/esm/i18n/template-de.d.ts +2 -2
- package/lib/esm/i18n/template-de.js +2 -2
- package/lib/esm/i18n/template-es.d.ts +2 -2
- package/lib/esm/i18n/template-es.js +2 -2
- package/lib/esm/i18n/template-fr.d.ts +2 -2
- package/lib/esm/i18n/template-fr.js +2 -2
- package/lib/esm/i18n/template-it.d.ts +2 -2
- package/lib/esm/i18n/template-it.js +2 -2
- package/lib/esm/i18n/template-jp.d.ts +2 -2
- package/lib/esm/i18n/template-jp.js +2 -2
- package/lib/esm/i18n/template-ko.d.ts +2 -2
- package/lib/esm/i18n/template-ko.js +2 -2
- package/lib/esm/i18n/template-pt.d.ts +2 -2
- package/lib/esm/i18n/template-pt.js +2 -2
- package/lib/esm/i18n/template-ru.d.ts +2 -2
- package/lib/esm/i18n/template-ru.js +2 -2
- package/lib/esm/i18n/template-zh.d.ts +2 -2
- package/lib/esm/i18n/template-zh.js +2 -2
- package/lib/esm/index.js +0 -1
- package/lib/esm/models/cache.d.ts +2 -0
- package/lib/esm/models/cache.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +9 -123
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +7 -31
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +5 -7
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +26 -58
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +12 -12
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +73 -88
- package/lib/esm/reducers/CaseHelpers.d.ts +1 -11
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +17 -119
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +1 -3
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +5 -7
- package/lib/esm/reducers/CaseReducer.d.ts +11 -56
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +100 -284
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +18 -15
- package/lib/esm/scss/_main.scss +0 -9
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +2 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
- package/package.json +8 -10
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts +0 -8
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +0 -18
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +0 -10
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +0 -31
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +0 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +0 -62
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts +0 -3
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +0 -1
- package/lib/esm/components/CaseInformation/CaseLabels.js +0 -108
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts +0 -4
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts.map +0 -1
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.js +0 -141
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts +0 -3
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts.map +0 -1
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.js +0 -9
- package/lib/esm/graphql/index.d.ts +0 -4
- package/lib/esm/graphql/index.d.ts.map +0 -1
- package/lib/esm/graphql/index.js +0 -3
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +0 -2
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +0 -1
- package/lib/esm/graphql/mutations/createRMECaseEscalation.js +0 -24
- package/lib/esm/graphql/mutations/index.d.ts +0 -2
- package/lib/esm/graphql/mutations/index.d.ts.map +0 -1
- package/lib/esm/graphql/mutations/index.js +0 -1
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts +0 -2
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +0 -1
- package/lib/esm/graphql/queries/getEscalationDetails.js +0 -36
- package/lib/esm/graphql/queries/index.d.ts +0 -2
- package/lib/esm/graphql/queries/index.d.ts.map +0 -1
- package/lib/esm/graphql/queries/index.js +0 -1
- package/lib/esm/graphql/schemas/escalation.d.ts +0 -66
- package/lib/esm/graphql/schemas/escalation.d.ts.map +0 -1
- package/lib/esm/graphql/schemas/escalation.js +0 -1
- package/lib/esm/graphql/schemas/index.d.ts +0 -2
- package/lib/esm/graphql/schemas/index.d.ts.map +0 -1
- package/lib/esm/graphql/schemas/index.js +0 -1
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +0 -4
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +0 -57
- package/lib/esm/hooks/useCaseComments/index.d.ts +0 -8
- package/lib/esm/hooks/useCaseComments/index.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/index.js +0 -5
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +0 -25
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/mapCaseComment.js +0 -75
- package/lib/esm/hooks/useCaseComments/types.d.ts +0 -93
- package/lib/esm/hooks/useCaseComments/types.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/types.js +0 -1
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +0 -26
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +0 -113
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +0 -19
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +0 -33
- package/lib/esm/hooks/useCaseGroupUiState.d.ts +0 -3
- package/lib/esm/hooks/useCaseGroupUiState.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseGroupUiState.js +0 -10
- package/lib/esm/hooks/useCaseHistory.d.ts +0 -26
- package/lib/esm/hooks/useCaseHistory.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseHistory.js +0 -107
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +0 -23
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseLabelLinkMutations.js +0 -84
- package/lib/esm/models/caseHistory.d.ts +0 -86
- package/lib/esm/models/caseHistory.d.ts.map +0 -1
- package/lib/esm/models/caseHistory.js +0 -1
- package/lib/esm/utils/TimelineUtils.d.ts +0 -41
- package/lib/esm/utils/TimelineUtils.d.ts.map +0 -1
- package/lib/esm/utils/TimelineUtils.js +0 -135
- package/lib/esm/utils/caseHistoryUtils.d.ts +0 -85
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +0 -1
- package/lib/esm/utils/caseHistoryUtils.js +0 -196
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts +0 -6
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts.map +0 -1
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.js +0 -26
- package/lib/esm/utils/linkifyHtmlTextNodes.d.ts +0 -8
- package/lib/esm/utils/linkifyHtmlTextNodes.d.ts.map +0 -1
- package/lib/esm/utils/linkifyHtmlTextNodes.js +0 -37
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"caseHistory.d.ts","sourceRoot":"","sources":["../../../src/models/caseHistory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAC;AAElG,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACzF,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE;QACP,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QACxB,QAAQ,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;QACnC,aAAa,EAAE;YAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,GAAG,IAAI,CAAC;KAClD,CAAC;IACF,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAChC,oBAAoB,EAAE;QAClB,KAAK,EAAE;YACH,wBAAwB,EAAE;gBACtB,KAAK,EAAE,gBAAgB,EAAE,CAAC;aAC7B,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,oBAAoB,CAAA;SAAE,CAAA;KAAE,CAAC;CAC9D;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,4GAA4G;IAC5G,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export interface IHistoryChangeItem {
|
|
2
|
-
fieldName: string;
|
|
3
|
-
displayName?: string;
|
|
4
|
-
oldValue?: string | null;
|
|
5
|
-
newValue?: string | boolean | null;
|
|
6
|
-
createdByUserName?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const MULTI_SELECT_FIELDS: string[];
|
|
9
|
-
export declare const LANGUAGE_CODE_MAPPING: Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* Maps `displayName` values (from `normalizeNodeToHistoryItem`, not raw SF API names)
|
|
12
|
-
* to camelCase property prefixes used for hydrated lookup properties on history items.
|
|
13
|
-
* E.g. key `"Product"` → prefix `"product"` → looks up `productNewName`, `productOldName`.
|
|
14
|
-
*/
|
|
15
|
-
export declare const KEY_MAP: Record<string, string>;
|
|
16
|
-
export declare const formatMultiSelectChange: (fieldName: string, oldValue: string, newValue: string) => string;
|
|
17
|
-
/**
|
|
18
|
-
* Generates human-readable text for a field change based on which values are present:
|
|
19
|
-
* - Both values present → "changed X from A to B" (multiselect fields get add/remove diffing)
|
|
20
|
-
* - Only newValue → "set X to B"
|
|
21
|
-
* - Only oldValue (newValue is undefined or empty) → "removed X, was A"
|
|
22
|
-
* - None of the above but `item.newValue` exists → fallback for cases where the resolved
|
|
23
|
-
* display string on the item differs from the `newValue` parameter passed in
|
|
24
|
-
*/
|
|
25
|
-
export declare const formatDefaultChange: (item: IHistoryChangeItem, fieldName: string, oldValue: string, newValue: string) => string;
|
|
26
|
-
/**
|
|
27
|
-
* Field-specific formatting for history change text. Each case handles a SF field
|
|
28
|
-
* whose raw values need special treatment before display.
|
|
29
|
-
*/
|
|
30
|
-
export declare const handleFieldChange: (item: IHistoryChangeItem, fieldName: string, oldValue: string, newValue: string) => string;
|
|
31
|
-
/**
|
|
32
|
-
* Post-processes formatted change text.
|
|
33
|
-
*
|
|
34
|
-
* - Boolean special case: SF boolean history entries can carry a raw `boolean` newValue
|
|
35
|
-
* even after `extractStringValue` stringifies it. When the item's `newValue` is still
|
|
36
|
-
* a boolean at this point, we generate dedicated text to avoid displaying "true"/"false".
|
|
37
|
-
* - String replacements remap legacy SF display names to current UI terminology
|
|
38
|
-
* ("Problem Statement" → "Title", "Case Type" → "Support Type").
|
|
39
|
-
*/
|
|
40
|
-
export declare const applyPostProcessing: (text: string, item: IHistoryChangeItem) => string;
|
|
41
|
-
//# sourceMappingURL=TimelineUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/TimelineUtils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAMD,eAAO,MAAM,mBAAmB,UAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAexD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAY1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,KAAG,MAgB/F,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC5B,MAAM,kBAAkB,EACxB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,UAAU,MAAM,KACjB,MAiBF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC1B,MAAM,kBAAkB,EACxB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,UAAU,MAAM,KACjB,MA+BF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,EAAE,MAAM,kBAAkB,KAAG,MAM5E,CAAC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { getFieldDisplayName } from './caseHistoryUtils';
|
|
2
|
-
// https://help.salesforce.com/s/articleView?id=000384484&type=1
|
|
3
|
-
// Adding in option for multiselect fields provided by salesforce.
|
|
4
|
-
// In future for more multiselect fields just add to below array.
|
|
5
|
-
// SF delimits multiselect picklist values with semicolons (`;`).
|
|
6
|
-
export const MULTI_SELECT_FIELDS = ['SBR_Group__c'];
|
|
7
|
-
export const LANGUAGE_CODE_MAPPING = {
|
|
8
|
-
de: 'German',
|
|
9
|
-
en: 'English',
|
|
10
|
-
es: 'Spanish',
|
|
11
|
-
fr: 'French',
|
|
12
|
-
it: 'Italian',
|
|
13
|
-
pt: 'Portuguese',
|
|
14
|
-
pt_BR: 'Portuguese',
|
|
15
|
-
ko: 'Korean',
|
|
16
|
-
ja: 'Japanese',
|
|
17
|
-
zh: 'Chinese',
|
|
18
|
-
zh_CN: 'Chinese',
|
|
19
|
-
zh_HK: 'Chinese (Hong Kong)',
|
|
20
|
-
zh_TW: 'Chinese (Taiwan)',
|
|
21
|
-
ru: 'Russian',
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Maps `displayName` values (from `normalizeNodeToHistoryItem`, not raw SF API names)
|
|
25
|
-
* to camelCase property prefixes used for hydrated lookup properties on history items.
|
|
26
|
-
* E.g. key `"Product"` → prefix `"product"` → looks up `productNewName`, `productOldName`.
|
|
27
|
-
*/
|
|
28
|
-
export const KEY_MAP = {
|
|
29
|
-
Product: 'product',
|
|
30
|
-
Version: 'version',
|
|
31
|
-
Account: 'account',
|
|
32
|
-
Contact: 'contact',
|
|
33
|
-
Entitlement: 'entitlement',
|
|
34
|
-
'Business Hours': 'businessHours',
|
|
35
|
-
Owner: 'queueNameOwner',
|
|
36
|
-
'Customer Escalation': 'customerEscalation',
|
|
37
|
-
'Case Group': 'caseGroup',
|
|
38
|
-
'SLA Start Date': 'slaStartDate',
|
|
39
|
-
'Case Language': 'caseLanguage',
|
|
40
|
-
};
|
|
41
|
-
export const formatMultiSelectChange = (fieldName, oldValue, newValue) => {
|
|
42
|
-
const oldValues = oldValue.split(';').map((s) => s.trim());
|
|
43
|
-
const newValues = newValue.split(';').map((s) => s.trim());
|
|
44
|
-
const added = newValues.filter((nv) => !oldValues.includes(nv));
|
|
45
|
-
const removed = oldValues.filter((ov) => !newValues.includes(ov));
|
|
46
|
-
if (added.length > 0 && removed.length === 0) {
|
|
47
|
-
return `added ${added.join(', ')} to ${fieldName}`;
|
|
48
|
-
}
|
|
49
|
-
if (removed.length > 0 && added.length === 0) {
|
|
50
|
-
return `removed ${removed.join(', ')} from ${fieldName}`;
|
|
51
|
-
}
|
|
52
|
-
if (added.length > 0 && removed.length > 0) {
|
|
53
|
-
return `changed ${fieldName}, added ${added.join(', ')} and removed ${removed.join(', ')}`;
|
|
54
|
-
}
|
|
55
|
-
return `changed ${fieldName} from ${oldValue} to ${newValue}`;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Generates human-readable text for a field change based on which values are present:
|
|
59
|
-
* - Both values present → "changed X from A to B" (multiselect fields get add/remove diffing)
|
|
60
|
-
* - Only newValue → "set X to B"
|
|
61
|
-
* - Only oldValue (newValue is undefined or empty) → "removed X, was A"
|
|
62
|
-
* - None of the above but `item.newValue` exists → fallback for cases where the resolved
|
|
63
|
-
* display string on the item differs from the `newValue` parameter passed in
|
|
64
|
-
*/
|
|
65
|
-
export const formatDefaultChange = (item, fieldName, oldValue, newValue) => {
|
|
66
|
-
if (oldValue && newValue) {
|
|
67
|
-
if (MULTI_SELECT_FIELDS.includes(item.fieldName)) {
|
|
68
|
-
return formatMultiSelectChange(fieldName, oldValue, newValue);
|
|
69
|
-
}
|
|
70
|
-
return `changed ${fieldName} from ${oldValue} to ${newValue}`;
|
|
71
|
-
}
|
|
72
|
-
if (newValue) {
|
|
73
|
-
return `set ${fieldName} to ${newValue}`;
|
|
74
|
-
}
|
|
75
|
-
if (oldValue && (newValue === undefined || newValue === '')) {
|
|
76
|
-
return `removed ${fieldName}, was ${oldValue}`;
|
|
77
|
-
}
|
|
78
|
-
if (item.newValue !== undefined) {
|
|
79
|
-
return `set ${fieldName} to ${item.newValue}`;
|
|
80
|
-
}
|
|
81
|
-
return '';
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Field-specific formatting for history change text. Each case handles a SF field
|
|
85
|
-
* whose raw values need special treatment before display.
|
|
86
|
-
*/
|
|
87
|
-
export const handleFieldChange = (item, fieldName, oldValue, newValue) => {
|
|
88
|
-
var _a, _b;
|
|
89
|
-
switch (item.fieldName) {
|
|
90
|
-
// Raw values are ISO 639-1 language codes; expand via LANGUAGE_CODE_MAPPING.
|
|
91
|
-
case 'Case_Language__c': {
|
|
92
|
-
const newVal = String((_a = item.newValue) !== null && _a !== void 0 ? _a : '');
|
|
93
|
-
const oldVal = String((_b = item.oldValue) !== null && _b !== void 0 ? _b : '');
|
|
94
|
-
const newLanguage = LANGUAGE_CODE_MAPPING[newVal] || newVal;
|
|
95
|
-
const oldLanguage = LANGUAGE_CODE_MAPPING[oldVal] || oldVal;
|
|
96
|
-
return oldVal && newVal
|
|
97
|
-
? `changed ${fieldName} from ${oldLanguage} to ${newLanguage}`
|
|
98
|
-
: `set ${fieldName} to ${newLanguage || 'empty'}`;
|
|
99
|
-
}
|
|
100
|
-
// Raw SFDC IDs were already filtered by filterSfdcIdEntries; this handles the
|
|
101
|
-
// resolved-name path and uses createdByUserName as the display value.
|
|
102
|
-
case 'OwnerId':
|
|
103
|
-
return item.createdByUserName ? `set ${fieldName} to ${item.createdByUserName}` : '';
|
|
104
|
-
case 'Status':
|
|
105
|
-
return item.oldValue && item.newValue
|
|
106
|
-
? `changed ${fieldName} from ${item.oldValue} to ${item.newValue}`
|
|
107
|
-
: `set ${fieldName} to ${item.newValue || 'empty'}`;
|
|
108
|
-
// Boolean toggle → human sentence; only reports when a user name is available.
|
|
109
|
-
case 'Customer_Escalation__c':
|
|
110
|
-
return item.createdByUserName ? 'started Escalation for this ticket' : '';
|
|
111
|
-
case 'SlaStartDate':
|
|
112
|
-
return item.newValue ? `set ${fieldName} to ${item.newValue}` : '';
|
|
113
|
-
// Field value is a user ID, not a label — hardcoded string avoids displaying a raw ID.
|
|
114
|
-
case 'RemoteSessionTermsAckedBy__c':
|
|
115
|
-
return 'Acked Remote Rider terms';
|
|
116
|
-
default:
|
|
117
|
-
return formatDefaultChange(item, fieldName, oldValue, newValue);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Post-processes formatted change text.
|
|
122
|
-
*
|
|
123
|
-
* - Boolean special case: SF boolean history entries can carry a raw `boolean` newValue
|
|
124
|
-
* even after `extractStringValue` stringifies it. When the item's `newValue` is still
|
|
125
|
-
* a boolean at this point, we generate dedicated text to avoid displaying "true"/"false".
|
|
126
|
-
* - String replacements remap legacy SF display names to current UI terminology
|
|
127
|
-
* ("Problem Statement" → "Title", "Case Type" → "Support Type").
|
|
128
|
-
*/
|
|
129
|
-
export const applyPostProcessing = (text, item) => {
|
|
130
|
-
if (typeof item.newValue === 'boolean') {
|
|
131
|
-
const fieldName = item.displayName || getFieldDisplayName(item.fieldName);
|
|
132
|
-
return `set ${fieldName} to ${item.newValue}`;
|
|
133
|
-
}
|
|
134
|
-
return text.replaceAll('Problem Statement', 'Title').replaceAll('Case Type', 'Support Type');
|
|
135
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { ICaseHistoryEdge, ICaseHistoryItem, ICaseHistoryNode, SFValue } from '../models/caseHistory';
|
|
2
|
-
/**
|
|
3
|
-
* Maps Salesforce field identifiers to human-readable display names.
|
|
4
|
-
*
|
|
5
|
-
* Contains two distinct key categories:
|
|
6
|
-
* - Real SF API field names (e.g. `ContactId`, `RH_Product__c`, `FolderId__c`)
|
|
7
|
-
* - Synthetic lifecycle pseudo-fields produced by the SF History API (e.g. `created`,
|
|
8
|
-
* `closed`, `ownerAssignment`). These are not custom Salesforce fields — they represent
|
|
9
|
-
* case lifecycle events that appear as history entries with no OldValue/NewValue.
|
|
10
|
-
*/
|
|
11
|
-
export declare const FIELD_NAME_DISPLAY_MAP: Record<string, string>;
|
|
12
|
-
export declare function getFieldDisplayName(fieldName: string): string | undefined;
|
|
13
|
-
export declare function isSfdcId(value: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Extracts a string representation from a polymorphic SF value union.
|
|
16
|
-
*
|
|
17
|
-
* Property names (`stringValue`, `booleanValue`, etc.) correspond to GraphQL
|
|
18
|
-
* inline-fragment aliases defined in the `GET_CASE_HISTORY` query. Changing those
|
|
19
|
-
* aliases without updating this function will silently break value extraction.
|
|
20
|
-
*
|
|
21
|
-
* The check order is safe because the union discriminants are mutually exclusive.
|
|
22
|
-
* Note: empty string `''` is a valid return value (distinct from `null`).
|
|
23
|
-
*/
|
|
24
|
-
export declare function extractStringValue(val: SFValue): string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Lifecycle pseudo-field names from the SF History API mapped to human-readable action
|
|
27
|
-
* sentences. Fields not listed here fall back to using the raw `fieldName` as output text
|
|
28
|
-
* in {@link normalizeNodeToHistoryItem}.
|
|
29
|
-
*/
|
|
30
|
-
export declare const SPECIAL_FIELD_ACTIONS: Record<string, string>;
|
|
31
|
-
export declare const DEFAULT_AVATAR_SRC = "https://www.patternfly.org/images/668560cd.svg";
|
|
32
|
-
/**
|
|
33
|
-
* Only SF `UserType === 'Standard'` is treated as an internal (Red Hat) user.
|
|
34
|
-
* All other types — including `null`, `undefined`, and unknown portal types — default
|
|
35
|
-
* to customer. This conservative default ensures external users are never accidentally
|
|
36
|
-
* styled as internal.
|
|
37
|
-
*/
|
|
38
|
-
export declare function deriveIsCustomer(userType: string | null | undefined): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Filters out history entries whose values are raw Salesforce IDs that cannot be
|
|
41
|
-
* decoded into human-readable display strings.
|
|
42
|
-
*
|
|
43
|
-
* Filtering rules:
|
|
44
|
-
* - Both values null → **keep** (lifecycle action events carry no values)
|
|
45
|
-
* - `newValue` is an SFDC ID and `oldValue` is null or also an ID → **drop**
|
|
46
|
-
* (unresolvable reference change with no readable side)
|
|
47
|
-
* - `oldValue` is an SFDC ID and `newValue` is null → **drop**
|
|
48
|
-
* (ID removal with no display name)
|
|
49
|
-
* - At least one side is a human-readable string → **keep**
|
|
50
|
-
*/
|
|
51
|
-
export declare function filterSfdcIdEntries(edges: ICaseHistoryEdge[]): ICaseHistoryNode[];
|
|
52
|
-
/**
|
|
53
|
-
* Field names whose history entries are internal-only and should be hidden
|
|
54
|
-
* from customer/external viewers in the History tab.
|
|
55
|
-
*
|
|
56
|
-
* Includes both real SF API field names and synthetic lifecycle pseudo-fields
|
|
57
|
-
* produced by the SF History API.
|
|
58
|
-
*/
|
|
59
|
-
export declare const INTERNAL_ONLY_FIELDS: ReadonlySet<string>;
|
|
60
|
-
/**
|
|
61
|
-
* Removes history items that represent internal-only case activity.
|
|
62
|
-
*
|
|
63
|
-
* Filters by field name rather than by author, because internal activity
|
|
64
|
-
* (ownership transfers, status changes, routing) can be triggered by system
|
|
65
|
-
* processes whose `CreatedBy.UserType` varies.
|
|
66
|
-
*
|
|
67
|
-
* Used when the viewer is an external/customer user to prevent internal case
|
|
68
|
-
* activities from leaking to customers.
|
|
69
|
-
*/
|
|
70
|
-
export declare function filterInternalOnlyEntries(items: ICaseHistoryItem[]): ICaseHistoryItem[];
|
|
71
|
-
/**
|
|
72
|
-
* Converts a raw SF history node into a normalized `ICaseHistoryItem`.
|
|
73
|
-
*
|
|
74
|
-
* Classifies each entry as either:
|
|
75
|
-
* - **Action** (`!oldValue && !newValue`): lifecycle events like "created", "closed".
|
|
76
|
-
* `outputText` is set here from {@link SPECIAL_FIELD_ACTIONS}, or falls back to the
|
|
77
|
-
* raw `fieldName` for unknown actions.
|
|
78
|
-
* - **Change**: field-value mutations. `outputText` is left empty because the Timeline
|
|
79
|
-
* layer formats change text via `applyReplacements` / `handleFieldChange`.
|
|
80
|
-
*
|
|
81
|
-
* Display name fallback chain: `FIELD_NAME_DISPLAY_MAP` → SF `label` → SF
|
|
82
|
-
* `displayValue` → raw `fieldName`.
|
|
83
|
-
*/
|
|
84
|
-
export declare function normalizeNodeToHistoryItem(node: ICaseHistoryNode): ICaseHistoryItem;
|
|
85
|
-
//# sourceMappingURL=caseHistoryUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"caseHistoryUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseHistoryUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3G;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqBzD,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzE;AAMD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAO9D;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,mDAAmD,CAAC;AAInF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAG7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAajF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CASnD,CAAC;AAEH;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAEvF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAuCnF"}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps Salesforce field identifiers to human-readable display names.
|
|
3
|
-
*
|
|
4
|
-
* Contains two distinct key categories:
|
|
5
|
-
* - Real SF API field names (e.g. `ContactId`, `RH_Product__c`, `FolderId__c`)
|
|
6
|
-
* - Synthetic lifecycle pseudo-fields produced by the SF History API (e.g. `created`,
|
|
7
|
-
* `closed`, `ownerAssignment`). These are not custom Salesforce fields — they represent
|
|
8
|
-
* case lifecycle events that appear as history entries with no OldValue/NewValue.
|
|
9
|
-
*/
|
|
10
|
-
export const FIELD_NAME_DISPLAY_MAP = {
|
|
11
|
-
created: 'Case Created',
|
|
12
|
-
closed: 'Case Closed',
|
|
13
|
-
ownerAssignment: 'Owner',
|
|
14
|
-
ownerAccepted: 'Owner',
|
|
15
|
-
ownerEscalated: 'Owner',
|
|
16
|
-
external: 'Visibility',
|
|
17
|
-
ContactId: 'Contact',
|
|
18
|
-
RH_Product__c: 'Product',
|
|
19
|
-
RH_Version__c: 'Version',
|
|
20
|
-
EntitlementId: 'Entitlement',
|
|
21
|
-
AccountId: 'Account',
|
|
22
|
-
OwnerId: 'Owner',
|
|
23
|
-
BusinessHoursId: 'Business Hours',
|
|
24
|
-
FolderId__c: 'Case Group',
|
|
25
|
-
Status: 'Status',
|
|
26
|
-
Customer_Escalation__c: 'Customer Escalation',
|
|
27
|
-
SlaStartDate: 'SLA Start Date',
|
|
28
|
-
Case_Language__c: 'Case Language',
|
|
29
|
-
SBR_Group__c: 'SBR Group',
|
|
30
|
-
Subject: 'Title',
|
|
31
|
-
};
|
|
32
|
-
export function getFieldDisplayName(fieldName) {
|
|
33
|
-
if (fieldName in FIELD_NAME_DISPLAY_MAP) {
|
|
34
|
-
return FIELD_NAME_DISPLAY_MAP[fieldName];
|
|
35
|
-
}
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
// Salesforce object IDs are strictly 15 (case-sensitive) or 18 (case-insensitive)
|
|
39
|
-
// alphanumeric characters. Strings of 16–17 chars are intentionally excluded.
|
|
40
|
-
const SFDC_ID_REGEX = /^[a-zA-Z0-9]{15}$|^[a-zA-Z0-9]{18}$/;
|
|
41
|
-
export function isSfdcId(value) {
|
|
42
|
-
return SFDC_ID_REGEX.test(value);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Extracts a string representation from a polymorphic SF value union.
|
|
46
|
-
*
|
|
47
|
-
* Property names (`stringValue`, `booleanValue`, etc.) correspond to GraphQL
|
|
48
|
-
* inline-fragment aliases defined in the `GET_CASE_HISTORY` query. Changing those
|
|
49
|
-
* aliases without updating this function will silently break value extraction.
|
|
50
|
-
*
|
|
51
|
-
* The check order is safe because the union discriminants are mutually exclusive.
|
|
52
|
-
* Note: empty string `''` is a valid return value (distinct from `null`).
|
|
53
|
-
*/
|
|
54
|
-
export function extractStringValue(val) {
|
|
55
|
-
if (!val)
|
|
56
|
-
return null;
|
|
57
|
-
if ('stringValue' in val)
|
|
58
|
-
return val.stringValue;
|
|
59
|
-
if ('booleanValue' in val)
|
|
60
|
-
return String(val.booleanValue);
|
|
61
|
-
if ('doubleValue' in val)
|
|
62
|
-
return String(val.doubleValue);
|
|
63
|
-
if ('dateTimeValue' in val)
|
|
64
|
-
return val.dateTimeValue;
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Lifecycle pseudo-field names from the SF History API mapped to human-readable action
|
|
69
|
-
* sentences. Fields not listed here fall back to using the raw `fieldName` as output text
|
|
70
|
-
* in {@link normalizeNodeToHistoryItem}.
|
|
71
|
-
*/
|
|
72
|
-
export const SPECIAL_FIELD_ACTIONS = {
|
|
73
|
-
created: 'created the case',
|
|
74
|
-
closed: 'closed the case',
|
|
75
|
-
ownerAssignment: 'changed the case owner',
|
|
76
|
-
ownerAccepted: 'accepted ownership of the case',
|
|
77
|
-
ownerEscalated: 'escalated the case owner',
|
|
78
|
-
external: 'made the case visible to customers',
|
|
79
|
-
};
|
|
80
|
-
export const DEFAULT_AVATAR_SRC = 'https://www.patternfly.org/images/668560cd.svg';
|
|
81
|
-
const INTERNAL_USER_TYPE = 'Standard';
|
|
82
|
-
/**
|
|
83
|
-
* Only SF `UserType === 'Standard'` is treated as an internal (Red Hat) user.
|
|
84
|
-
* All other types — including `null`, `undefined`, and unknown portal types — default
|
|
85
|
-
* to customer. This conservative default ensures external users are never accidentally
|
|
86
|
-
* styled as internal.
|
|
87
|
-
*/
|
|
88
|
-
export function deriveIsCustomer(userType) {
|
|
89
|
-
if (userType === INTERNAL_USER_TYPE)
|
|
90
|
-
return false;
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Filters out history entries whose values are raw Salesforce IDs that cannot be
|
|
95
|
-
* decoded into human-readable display strings.
|
|
96
|
-
*
|
|
97
|
-
* Filtering rules:
|
|
98
|
-
* - Both values null → **keep** (lifecycle action events carry no values)
|
|
99
|
-
* - `newValue` is an SFDC ID and `oldValue` is null or also an ID → **drop**
|
|
100
|
-
* (unresolvable reference change with no readable side)
|
|
101
|
-
* - `oldValue` is an SFDC ID and `newValue` is null → **drop**
|
|
102
|
-
* (ID removal with no display name)
|
|
103
|
-
* - At least one side is a human-readable string → **keep**
|
|
104
|
-
*/
|
|
105
|
-
export function filterSfdcIdEntries(edges) {
|
|
106
|
-
return edges
|
|
107
|
-
.map((edge) => edge.node)
|
|
108
|
-
.filter((node) => {
|
|
109
|
-
const newVal = extractStringValue(node.NewValue);
|
|
110
|
-
const oldVal = extractStringValue(node.OldValue);
|
|
111
|
-
if (!newVal && !oldVal)
|
|
112
|
-
return true;
|
|
113
|
-
const hasIdNewVal = newVal && isSfdcId(newVal);
|
|
114
|
-
const hasIdOldVal = oldVal && isSfdcId(oldVal);
|
|
115
|
-
if (hasIdNewVal && (!oldVal || hasIdOldVal))
|
|
116
|
-
return false;
|
|
117
|
-
if (hasIdOldVal && !newVal)
|
|
118
|
-
return false;
|
|
119
|
-
return true;
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Field names whose history entries are internal-only and should be hidden
|
|
124
|
-
* from customer/external viewers in the History tab.
|
|
125
|
-
*
|
|
126
|
-
* Includes both real SF API field names and synthetic lifecycle pseudo-fields
|
|
127
|
-
* produced by the SF History API.
|
|
128
|
-
*/
|
|
129
|
-
export const INTERNAL_ONLY_FIELDS = new Set([
|
|
130
|
-
'ownerAssignment',
|
|
131
|
-
'ownerAccepted',
|
|
132
|
-
'ownerEscalated',
|
|
133
|
-
'OwnerId',
|
|
134
|
-
'Status',
|
|
135
|
-
'SBR_Group__c',
|
|
136
|
-
'BusinessHoursId',
|
|
137
|
-
'EntitlementId',
|
|
138
|
-
]);
|
|
139
|
-
/**
|
|
140
|
-
* Removes history items that represent internal-only case activity.
|
|
141
|
-
*
|
|
142
|
-
* Filters by field name rather than by author, because internal activity
|
|
143
|
-
* (ownership transfers, status changes, routing) can be triggered by system
|
|
144
|
-
* processes whose `CreatedBy.UserType` varies.
|
|
145
|
-
*
|
|
146
|
-
* Used when the viewer is an external/customer user to prevent internal case
|
|
147
|
-
* activities from leaking to customers.
|
|
148
|
-
*/
|
|
149
|
-
export function filterInternalOnlyEntries(items) {
|
|
150
|
-
return items.filter((item) => !INTERNAL_ONLY_FIELDS.has(item.fieldName));
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Converts a raw SF history node into a normalized `ICaseHistoryItem`.
|
|
154
|
-
*
|
|
155
|
-
* Classifies each entry as either:
|
|
156
|
-
* - **Action** (`!oldValue && !newValue`): lifecycle events like "created", "closed".
|
|
157
|
-
* `outputText` is set here from {@link SPECIAL_FIELD_ACTIONS}, or falls back to the
|
|
158
|
-
* raw `fieldName` for unknown actions.
|
|
159
|
-
* - **Change**: field-value mutations. `outputText` is left empty because the Timeline
|
|
160
|
-
* layer formats change text via `applyReplacements` / `handleFieldChange`.
|
|
161
|
-
*
|
|
162
|
-
* Display name fallback chain: `FIELD_NAME_DISPLAY_MAP` → SF `label` → SF
|
|
163
|
-
* `displayValue` → raw `fieldName`.
|
|
164
|
-
*/
|
|
165
|
-
export function normalizeNodeToHistoryItem(node) {
|
|
166
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
167
|
-
const fieldName = node.RedHatSupportField.value;
|
|
168
|
-
const oldValue = extractStringValue(node.OldValue);
|
|
169
|
-
const newValue = extractStringValue(node.NewValue);
|
|
170
|
-
const isAction = !oldValue && !newValue;
|
|
171
|
-
let outputText = '';
|
|
172
|
-
if (isAction) {
|
|
173
|
-
if (fieldName in SPECIAL_FIELD_ACTIONS) {
|
|
174
|
-
outputText = SPECIAL_FIELD_ACTIONS[fieldName];
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
outputText = fieldName;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
return {
|
|
181
|
-
id: node.Id,
|
|
182
|
-
fieldName,
|
|
183
|
-
displayName: (_c = (_b = (_a = getFieldDisplayName(fieldName)) !== null && _a !== void 0 ? _a : node.RedHatSupportField.label) !== null && _b !== void 0 ? _b : node.RedHatSupportField.displayValue) !== null && _c !== void 0 ? _c : fieldName,
|
|
184
|
-
label: (_f = (_e = (_d = getFieldDisplayName(fieldName)) !== null && _d !== void 0 ? _d : node.RedHatSupportField.label) !== null && _e !== void 0 ? _e : node.RedHatSupportField.displayValue) !== null && _f !== void 0 ? _f : fieldName,
|
|
185
|
-
oldValue,
|
|
186
|
-
newValue,
|
|
187
|
-
createdDate: node.CreatedDate.value,
|
|
188
|
-
createdByUserName: (_j = (_h = (_g = node.CreatedBy) === null || _g === void 0 ? void 0 : _g.Name) === null || _h === void 0 ? void 0 : _h.value) !== null && _j !== void 0 ? _j : '',
|
|
189
|
-
createdByCustomer: deriveIsCustomer((_l = (_k = node.CreatedBy) === null || _k === void 0 ? void 0 : _k.UserType) === null || _l === void 0 ? void 0 : _l.value),
|
|
190
|
-
// TODO: SmallPhotoUrl points to an internal Salesforce domain that external portal
|
|
191
|
-
// users can't authenticate against. If images break, Hydra will need to proxy them.
|
|
192
|
-
photoUrl: (_p = (_o = (_m = node.CreatedBy) === null || _m === void 0 ? void 0 : _m.SmallPhotoUrl) === null || _o === void 0 ? void 0 : _o.value) !== null && _p !== void 0 ? _p : null,
|
|
193
|
-
type: isAction ? 'Action' : 'Change',
|
|
194
|
-
outputText,
|
|
195
|
-
};
|
|
196
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ICasePayload } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
2
|
-
import { IGraphQLCaseUpdateInput } from '@rh-support/utils';
|
|
3
|
-
export type CaseSeverityFtsGraphQLPayload = Partial<Pick<ICasePayload, 'severity' | 'status' | 'fts' | 'contactInfo24x7'>>;
|
|
4
|
-
/** Builds GraphQL case update input for severity/status and FTS (X24x7__c / X24x7ContactInformation__c). */
|
|
5
|
-
export declare function buildCaseSeverityFtsGraphQLUpdate(payload: CaseSeverityFtsGraphQLPayload, currentSeverity?: string | null): Partial<IGraphQLCaseUpdateInput>;
|
|
6
|
-
//# sourceMappingURL=caseSeverityFtsGraphQLUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"caseSeverityFtsGraphQLUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseSeverityFtsGraphQLUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAU,MAAM,mBAAmB,CAAC;AAEpE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAC/C,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,iBAAiB,CAAC,CACxE,CAAC;AAEF,4GAA4G;AAC5G,wBAAgB,iCAAiC,CAC7C,OAAO,EAAE,6BAA6B,EACtC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2BlC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { isSev1 } from '@rh-support/utils';
|
|
2
|
-
/** Builds GraphQL case update input for severity/status and FTS (X24x7__c / X24x7ContactInformation__c). */
|
|
3
|
-
export function buildCaseSeverityFtsGraphQLUpdate(payload, currentSeverity) {
|
|
4
|
-
var _a;
|
|
5
|
-
const { severity, status, fts: ftsUpdate, contactInfo24x7: contactUpdate } = payload;
|
|
6
|
-
const graphqlUpdate = {};
|
|
7
|
-
if (severity !== undefined) {
|
|
8
|
-
graphqlUpdate.severity = severity;
|
|
9
|
-
}
|
|
10
|
-
if (status !== undefined) {
|
|
11
|
-
graphqlUpdate.status = status;
|
|
12
|
-
}
|
|
13
|
-
if (ftsUpdate !== undefined) {
|
|
14
|
-
graphqlUpdate.fts = ftsUpdate;
|
|
15
|
-
}
|
|
16
|
-
if (contactUpdate !== undefined) {
|
|
17
|
-
graphqlUpdate.contactInfo24x7 = contactUpdate;
|
|
18
|
-
}
|
|
19
|
-
const severityForPatch = String((_a = severity !== null && severity !== void 0 ? severity : currentSeverity) !== null && _a !== void 0 ? _a : '').trim();
|
|
20
|
-
if ((ftsUpdate !== undefined || contactUpdate !== undefined) &&
|
|
21
|
-
graphqlUpdate.severity === undefined &&
|
|
22
|
-
isSev1(severityForPatch)) {
|
|
23
|
-
graphqlUpdate.severity = severityForPatch;
|
|
24
|
-
}
|
|
25
|
-
return graphqlUpdate;
|
|
26
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Walks an HTML string by splitting on tags, tracking depth inside
|
|
3
|
-
* `<a>`, `<code>`, and `<pre>` elements. Text nodes outside those
|
|
4
|
-
* elements are linkified in URL → case-ID → BZ order so that an
|
|
5
|
-
* 8-digit ID embedded in a URL is not wrapped separately.
|
|
6
|
-
*/
|
|
7
|
-
export declare function linkifyHtmlTextNodes(html: string): string;
|
|
8
|
-
//# sourceMappingURL=linkifyHtmlTextNodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkifyHtmlTextNodes.d.ts","sourceRoot":"","sources":["../../../src/utils/linkifyHtmlTextNodes.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2BzD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { linkifyBZIDs, linkifyWithCaseIDs } from '@cee-eng/ui-toolkit';
|
|
2
|
-
import { linkifyLinks } from '@rh-support/utils';
|
|
3
|
-
const SKIPPABLE_OPEN_TAGS = /^<(a|code|pre)\b/i;
|
|
4
|
-
const SKIPPABLE_CLOSE_TAGS = /^<\/(a|code|pre)>/i;
|
|
5
|
-
/**
|
|
6
|
-
* Walks an HTML string by splitting on tags, tracking depth inside
|
|
7
|
-
* `<a>`, `<code>`, and `<pre>` elements. Text nodes outside those
|
|
8
|
-
* elements are linkified in URL → case-ID → BZ order so that an
|
|
9
|
-
* 8-digit ID embedded in a URL is not wrapped separately.
|
|
10
|
-
*/
|
|
11
|
-
export function linkifyHtmlTextNodes(html) {
|
|
12
|
-
const parts = html.split(/(<a\s[^>]*>.*?<\/a>|<[^>]+>)/gi);
|
|
13
|
-
let skipDepth = 0;
|
|
14
|
-
return parts
|
|
15
|
-
.map((part) => {
|
|
16
|
-
const openMatch = part.match(SKIPPABLE_OPEN_TAGS);
|
|
17
|
-
if (openMatch) {
|
|
18
|
-
skipDepth++;
|
|
19
|
-
return part;
|
|
20
|
-
}
|
|
21
|
-
const closeMatch = part.match(SKIPPABLE_CLOSE_TAGS);
|
|
22
|
-
if (closeMatch) {
|
|
23
|
-
if (skipDepth > 0)
|
|
24
|
-
skipDepth--;
|
|
25
|
-
return part;
|
|
26
|
-
}
|
|
27
|
-
if (part.startsWith('<'))
|
|
28
|
-
return part;
|
|
29
|
-
if (skipDepth > 0)
|
|
30
|
-
return part;
|
|
31
|
-
let text = linkifyLinks(part);
|
|
32
|
-
text = linkifyWithCaseIDs(text);
|
|
33
|
-
text = linkifyBZIDs(text);
|
|
34
|
-
return text;
|
|
35
|
-
})
|
|
36
|
-
.join('');
|
|
37
|
-
}
|