@rh-support/troubleshoot 2.6.358 → 2.6.363
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 +16 -91
- 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 +4 -15
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +55 -82
- 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 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +6 -8
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +47 -79
- 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 +47 -51
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +44 -49
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +45 -51
- 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 +1 -1
- 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 +2 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +55 -130
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +5 -10
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +65 -110
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +9 -16
- 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 -40
- 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 -122
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +2 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +145 -76
- 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 +267 -217
- 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 +1 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +3 -35
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +224 -63
- 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 +5 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +2 -7
- 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 +61 -168
- 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 +17 -31
- 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 +9 -11
- 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/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.js +1 -1
- 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 +91 -139
- 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 +209 -60
- 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 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts.map +1 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.js +11 -21
- 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 -11
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +70 -63
- 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 -9
- 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 -4
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +0 -23
- 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 -60
- 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 -106
- 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 -31
- 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 -52
- package/lib/esm/hooks/useCaseComments/index.d.ts +0 -7
- 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 -85
- 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 -17
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +0 -38
- 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 -98
- 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 -80
- 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 -66
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +0 -1
- package/lib/esm/utils/caseHistoryUtils.js +0 -165
- 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
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { IVersionsDetails } from '@cee-eng/hydrajs/@types/api/pcm/products';
|
|
2
|
-
import {
|
|
2
|
+
import { ICaseDetails, ICasePayload, ICepDetails, INotifiedUser } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
3
3
|
import { ICaseGroup, IGroupUser } from '@cee-eng/hydrajs/@types/api/public/caseGroups';
|
|
4
4
|
import { IEntitlement } from '@cee-eng/hydrajs/@types/api/public/entitlements';
|
|
5
5
|
import { IAccount } from '@cee-eng/hydrajs/@types/models/account';
|
|
6
6
|
import { ICaseNotificationAddresses } from '@cee-eng/hydrajs/@types/models/case';
|
|
7
7
|
import { IContact } from '@cee-eng/hydrajs/@types/models/contact';
|
|
8
8
|
import { IAction, IAPIError, IApiResponseDetails } from '@rh-support/types/shared';
|
|
9
|
-
import { IServiceLevelInfo } from '@rh-support/utils';
|
|
10
9
|
import { Dispatch } from 'react';
|
|
11
10
|
import { ICVEWorkflowRecommendation } from '../models/caseCreationWorkflows';
|
|
12
11
|
export declare const TITLE_SUMMARY_LENGTH_LIMIT = 255;
|
|
@@ -21,7 +20,6 @@ export declare const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 32000;
|
|
|
21
20
|
export declare const HOSTNAME_LENGTH_LIMIT = 255;
|
|
22
21
|
export declare const CONTACT_INFO_24X7_LIMIT = 32768;
|
|
23
22
|
export declare const CLUSTER_ID_LIMIT = 255;
|
|
24
|
-
export declare const CLUSTER_ID_ENABLED_PRODUCTS: string[];
|
|
25
23
|
export declare const CASE_REFERENCE_NUMBER_LIMIT = 100;
|
|
26
24
|
export declare const PHONE_LIMIT = 23;
|
|
27
25
|
export declare const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
@@ -61,7 +59,7 @@ export declare const enum SupportLevelsInternal {
|
|
|
61
59
|
export declare const enum SeverityLevelsInternal {
|
|
62
60
|
SEV_1 = "1 (Urgent)",
|
|
63
61
|
SEV_2 = "2 (High)",
|
|
64
|
-
SEV_3 = "3 (
|
|
62
|
+
SEV_3 = "3 (Normal)",
|
|
65
63
|
SEV_4 = "4 (Low)"
|
|
66
64
|
}
|
|
67
65
|
export declare const SupportLevelDisplay: {
|
|
@@ -83,7 +81,7 @@ export declare const ITRForSLASeverity: {
|
|
|
83
81
|
initial: string;
|
|
84
82
|
ongoing: string;
|
|
85
83
|
};
|
|
86
|
-
"3 (
|
|
84
|
+
"3 (Normal)": {
|
|
87
85
|
initial: string;
|
|
88
86
|
ongoing: string;
|
|
89
87
|
};
|
|
@@ -101,7 +99,7 @@ export declare const ITRForSLASeverity: {
|
|
|
101
99
|
initial: string;
|
|
102
100
|
ongoing: string;
|
|
103
101
|
};
|
|
104
|
-
"3 (
|
|
102
|
+
"3 (Normal)": {
|
|
105
103
|
initial: string;
|
|
106
104
|
ongoing: string;
|
|
107
105
|
};
|
|
@@ -119,7 +117,7 @@ export declare const ITRForSLASeverity: {
|
|
|
119
117
|
initial: string;
|
|
120
118
|
ongoing: string;
|
|
121
119
|
};
|
|
122
|
-
"3 (
|
|
120
|
+
"3 (Normal)": {
|
|
123
121
|
initial: string;
|
|
124
122
|
ongoing: string;
|
|
125
123
|
};
|
|
@@ -132,13 +130,13 @@ export declare const ITRForSLASeverity: {
|
|
|
132
130
|
export declare const SeverityDescription: {
|
|
133
131
|
"1 (Urgent)": string;
|
|
134
132
|
"2 (High)": string;
|
|
135
|
-
"3 (
|
|
133
|
+
"3 (Normal)": string;
|
|
136
134
|
"4 (Low)": string;
|
|
137
135
|
};
|
|
138
136
|
export declare const SeverityDescriptionDetails: {
|
|
139
137
|
"1 (Urgent)": string;
|
|
140
138
|
"2 (High)": string;
|
|
141
|
-
"3 (
|
|
139
|
+
"3 (Normal)": string;
|
|
142
140
|
"4 (Low)": string;
|
|
143
141
|
};
|
|
144
142
|
export declare const LargeDescriptionErrorMessage = "Cumulative case description cannot be more than {{limit}} characters";
|
|
@@ -178,77 +176,13 @@ export declare enum CaseReducerConstants {
|
|
|
178
176
|
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
179
177
|
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
180
178
|
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError",
|
|
179
|
+
updateComments = "updateComments",
|
|
181
180
|
setABTestVariation = "setABTestVariation"
|
|
182
181
|
}
|
|
183
182
|
export declare const initialCaseState: ICaseState;
|
|
184
|
-
export interface ICaseDetailsState {
|
|
185
|
-
actionPlan?: string;
|
|
186
|
-
alternateId?: string;
|
|
187
|
-
accountNumberRef?: string;
|
|
188
|
-
bugzillas?: ICaseBugzilla[];
|
|
189
|
-
caseLanguage?: string;
|
|
190
|
-
caseNumber?: string;
|
|
191
|
-
caseResourceLinks?: ICaseResourceLink[];
|
|
192
|
-
caseType?: string;
|
|
193
|
-
cep?: boolean;
|
|
194
|
-
chats?: ICaseChat[];
|
|
195
|
-
comments?: ICaseComment[];
|
|
196
|
-
contactCountry?: string | null;
|
|
197
|
-
contactEmail?: string;
|
|
198
|
-
contactInfo24x7?: string;
|
|
199
|
-
contactName?: string;
|
|
200
|
-
contactPhone?: string | null;
|
|
201
|
-
suppliedPhone?: string | null;
|
|
202
|
-
contactId?: string;
|
|
203
|
-
contactSSOName?: string;
|
|
204
|
-
createdById?: string;
|
|
205
|
-
createdByName?: string;
|
|
206
|
-
createdDate?: string;
|
|
207
|
-
description?: string;
|
|
208
|
-
entitlementSla?: string;
|
|
209
|
-
environment?: string;
|
|
210
|
-
externalTrackers?: unknown[];
|
|
211
|
-
firstCaseInactivityWarningSentAt?: string;
|
|
212
|
-
fts?: boolean;
|
|
213
|
-
groupName?: string;
|
|
214
|
-
groupNumber?: string | null;
|
|
215
|
-
hostname?: string;
|
|
216
|
-
id?: string;
|
|
217
|
-
internalStatus?: string;
|
|
218
|
-
isClosed?: boolean;
|
|
219
|
-
isPrivate?: boolean;
|
|
220
|
-
isStrategicAccount?: boolean;
|
|
221
|
-
issue?: string;
|
|
222
|
-
noClusterIdReason?: string;
|
|
223
|
-
noClusterIdReasonExplanation?: string;
|
|
224
|
-
additionalCaseInformation?: string | Record<string, unknown> | null;
|
|
225
|
-
notes?: string;
|
|
226
|
-
openshiftClusterID?: string | null;
|
|
227
|
-
openshiftClusterVersion?: string;
|
|
228
|
-
ownerId?: string;
|
|
229
|
-
ownerName?: string | null;
|
|
230
|
-
periodicityOfIssue?: string;
|
|
231
|
-
phone?: string;
|
|
232
|
-
phoneAreaCodePrefixLineNumber?: string;
|
|
233
|
-
phoneCountryCode?: string;
|
|
234
|
-
product?: string;
|
|
235
|
-
parentProductId?: string;
|
|
236
|
-
referrer?: string;
|
|
237
|
-
remoteSessionTermsAcked?: boolean;
|
|
238
|
-
sbrGroups?: string[];
|
|
239
|
-
screenSessionRequested?: boolean;
|
|
240
|
-
secondCaseInactivityWarningSentAt?: string;
|
|
241
|
-
severity?: string;
|
|
242
|
-
status?: string;
|
|
243
|
-
summary?: string | null;
|
|
244
|
-
suppliedPhoneNumberVerified?: 'True' | 'False' | 'Deferred';
|
|
245
|
-
timeFramesAndUrgency?: string;
|
|
246
|
-
version?: string;
|
|
247
|
-
waitingOnCallback?: boolean;
|
|
248
|
-
}
|
|
249
183
|
export interface ICaseState {
|
|
250
184
|
caseDetailsStrata: IApiResponseDetails<Partial<ICaseDetails>>;
|
|
251
|
-
caseDetails:
|
|
185
|
+
caseDetails: Partial<ICasePayload>;
|
|
252
186
|
customerEscalation: boolean;
|
|
253
187
|
isClosed: boolean;
|
|
254
188
|
isStrategicAccount: boolean;
|
|
@@ -277,7 +211,6 @@ export interface ICaseState {
|
|
|
277
211
|
customEmailsList: IApiResponseDetails<Partial<ICaseNotificationAddresses[]>>;
|
|
278
212
|
ownersEntitlements: IApiResponseDetails<IEntitlement[]>;
|
|
279
213
|
hasInvalidEntitlements: boolean;
|
|
280
|
-
isProductNotEntitled: boolean;
|
|
281
214
|
hasCaseUpdateError: boolean;
|
|
282
215
|
isCaseUpdating: boolean;
|
|
283
216
|
caseDetailsError: IAPIError;
|
|
@@ -295,8 +228,6 @@ export interface ICaseState {
|
|
|
295
228
|
isPostingRemoteRequestCommentCompleted?: boolean;
|
|
296
229
|
isPostingRemoteRequestCommentCompletedErrorMessage?: string | undefined;
|
|
297
230
|
isExistingPhoneNumber?: boolean;
|
|
298
|
-
/** True only when the user edits the case-owner phone input (not auto-prefill). */
|
|
299
|
-
hasUserUpdatedSuppliedPhone?: boolean;
|
|
300
231
|
hasLoggedInUserConfirmedPhoneNumber?: 'True' | 'False' | 'Deferred' | undefined;
|
|
301
232
|
shouldNotSetPhoneCountryCode?: boolean;
|
|
302
233
|
ftsContactSameAsOwner?: boolean;
|
|
@@ -305,50 +236,6 @@ export interface ICaseState {
|
|
|
305
236
|
isCveModalOpened?: boolean;
|
|
306
237
|
ABTestVariation?: string;
|
|
307
238
|
openShiftClusterSupportLevel?: string;
|
|
308
|
-
productServiceLevel?: IServiceLevelInfo;
|
|
309
|
-
otherServiceLevels?: IServiceLevelInfo[];
|
|
310
|
-
selectedEntitlementId?: string;
|
|
311
|
-
accountHasPremiumSla?: boolean;
|
|
312
|
-
selectedVersionId?: string;
|
|
313
|
-
/** Label Ids selected during case creation; linked via CaseLabelLink after create. */
|
|
314
|
-
selectedLabelIds?: string[];
|
|
315
|
-
/** Owner change applied locally; persisted when user selects a required case group. */
|
|
316
|
-
pendingCaseOwnerUpdate?: IPendingCaseOwnerUpdate | null;
|
|
317
|
-
/** Drives the case-edit validation banner when mandatory group selection is invalid. */
|
|
318
|
-
showMandatoryCaseGroupValidationError?: boolean;
|
|
319
|
-
}
|
|
320
|
-
export interface IPendingCaseOwnerUpdate {
|
|
321
|
-
contactId: string;
|
|
322
|
-
contactSSOName: string;
|
|
323
|
-
phoneCaseUpdate?: {
|
|
324
|
-
phone?: string;
|
|
325
|
-
phoneCountryCode?: string;
|
|
326
|
-
phoneAreaCodePrefixLineNumber?: string;
|
|
327
|
-
} | null;
|
|
328
|
-
}
|
|
329
|
-
export interface IGraphQLCasePayload {
|
|
330
|
-
ContactId?: string;
|
|
331
|
-
EntitlementId?: string;
|
|
332
|
-
Language?: string;
|
|
333
|
-
Type?: string;
|
|
334
|
-
Priority?: string;
|
|
335
|
-
Subject?: string;
|
|
336
|
-
Description?: string;
|
|
337
|
-
ImpactOnUserOrBusiness__c?: string;
|
|
338
|
-
EnvironmentInWhichItOccurs__c?: string;
|
|
339
|
-
FrequencyOfIssueOccurrence__c?: string;
|
|
340
|
-
SuppliedPhone?: string;
|
|
341
|
-
ProductId?: string;
|
|
342
|
-
Origin?: string;
|
|
343
|
-
RecordTypeId?: string;
|
|
344
|
-
AlternateCaseId__c?: string;
|
|
345
|
-
OpenshiftClusterID__c?: string;
|
|
346
|
-
OpenshiftClusterVersion__c?: string;
|
|
347
|
-
Group__c?: string;
|
|
348
|
-
X24x7__c?: boolean;
|
|
349
|
-
X24x7ContactInformation__c?: string;
|
|
350
|
-
AdditionalCaseInformation__c?: string;
|
|
351
|
-
AccessRestrictions__c?: string;
|
|
352
239
|
}
|
|
353
240
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
354
241
|
}
|
|
@@ -356,7 +243,6 @@ export type ICaseActionType = IAction<CaseReducerConstants, ICreateCasePayloadTy
|
|
|
356
243
|
export type CaseReducerDispatchType = Dispatch<ICaseActionType>;
|
|
357
244
|
export declare const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967811";
|
|
358
245
|
export declare const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967831";
|
|
359
|
-
export declare const LANGUAGE_MAP: Record<string, string>;
|
|
360
246
|
export declare const excludedCaseTypesforARH: string[];
|
|
361
247
|
export declare const appSourceId_ARH = "PCM-001";
|
|
362
248
|
//# sourceMappingURL=CaseConstNTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,gCAAgC,QAAQ,CAAC;AAEtD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,wB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,EAAE,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC;AAEtG,eAAO,MAAM,uBAAuB,UAAoC,CAAC;AACzE,eAAO,MAAM,eAAe,YAAY,CAAC"}
|
|
@@ -11,20 +11,6 @@ export const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 32000; //used to be 31000 to ac
|
|
|
11
11
|
export const HOSTNAME_LENGTH_LIMIT = 255;
|
|
12
12
|
export const CONTACT_INFO_24X7_LIMIT = 32768;
|
|
13
13
|
export const CLUSTER_ID_LIMIT = 255;
|
|
14
|
-
export const CLUSTER_ID_ENABLED_PRODUCTS = [
|
|
15
|
-
'Azure Red Hat OpenShift',
|
|
16
|
-
'OpenShift API for Data Protection',
|
|
17
|
-
'OpenShift Container Platform',
|
|
18
|
-
'OpenShift Dedicated',
|
|
19
|
-
'Red Hat Advanced Cluster Security for Kubernetes',
|
|
20
|
-
'Red Hat OpenShift API Management',
|
|
21
|
-
'Red Hat OpenShift Data Foundation',
|
|
22
|
-
'Red Hat OpenShift Dev Spaces',
|
|
23
|
-
'Red Hat OpenShift Serverless',
|
|
24
|
-
'Red Hat OpenShift Service Mesh',
|
|
25
|
-
'Red Hat OpenShift Service on AWS',
|
|
26
|
-
'Red Hat OpenShift Service on AWS Hosted Control Planes',
|
|
27
|
-
];
|
|
28
14
|
export const CASE_REFERENCE_NUMBER_LIMIT = 100;
|
|
29
15
|
export const PHONE_LIMIT = 23;
|
|
30
16
|
export const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
@@ -74,33 +60,33 @@ export const ITRForSLASeverity = {
|
|
|
74
60
|
["selfSupport" /* SupportLevelsInternal.SELF_SUPPORT */]: {
|
|
75
61
|
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: { initial: '', ongoing: '' },
|
|
76
62
|
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: { initial: '', ongoing: '' },
|
|
77
|
-
["3 (
|
|
63
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: { initial: '', ongoing: '' },
|
|
78
64
|
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: { initial: '', ongoing: '' },
|
|
79
65
|
},
|
|
80
66
|
["standard" /* SupportLevelsInternal.STANDARD */]: {
|
|
81
67
|
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: { initial: '1 business hour', ongoing: '1 business hour' },
|
|
82
68
|
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: { initial: '4 business hours', ongoing: '4 business hours' },
|
|
83
|
-
["3 (
|
|
69
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: { initial: '1 business day', ongoing: '1 business day' },
|
|
84
70
|
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: { initial: '2 business days', ongoing: '2 business days' },
|
|
85
71
|
},
|
|
86
72
|
["premium" /* SupportLevelsInternal.PREMIUM */]: {
|
|
87
73
|
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: { initial: '1 hour', ongoing: '1 hour or as agreed' },
|
|
88
74
|
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: { initial: '2 hours', ongoing: '4 hours or as agreed' },
|
|
89
|
-
["3 (
|
|
75
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: { initial: '4 business hours', ongoing: '8 business hours or as agreed' },
|
|
90
76
|
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: { initial: '8 business hours', ongoing: '2 business days or as agreed' },
|
|
91
77
|
},
|
|
92
78
|
};
|
|
93
79
|
export const SeverityDescription = {
|
|
94
80
|
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: 'Severe impact to critical systems',
|
|
95
81
|
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: 'Critical systems have been significantly degraded',
|
|
96
|
-
["3 (
|
|
82
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: 'Partial, non-critical loss of usage',
|
|
97
83
|
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: 'A non-urgent query regarding a Red Hat Product or service.',
|
|
98
84
|
};
|
|
99
85
|
//updated description details
|
|
100
86
|
export const SeverityDescriptionDetails = {
|
|
101
87
|
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: 'An issue with a Red Hat Product or Service that is<strong> actively causing serious interruptions to your business critical operations.</strong> This is an issue requiring immediate attention as there is a significant risk to your business.',
|
|
102
88
|
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: 'An issue with a Red Hat Product or Service that is <strong> partially functional </strong>(such as degradation of a service but the service is still available) and actively impacting your business operations. This is an issue on a business critical system requiring accelerated attention.',
|
|
103
|
-
["3 (
|
|
89
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: 'An issue with a Red Hat Product or Service that is <strong> currently functioning as expected </strong> but you either (1) recently experienced a degradation that you are monitoring or seeking a root cause for or (2) you are seeing indicators of a potential loss of functionality to a business critical system.',
|
|
104
90
|
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: 'Typically, a query that does not involve any interruption to your business critical operations. ',
|
|
105
91
|
};
|
|
106
92
|
export const LargeDescriptionErrorMessage = 'Cumulative case description cannot be more than {{limit}} characters';
|
|
@@ -141,6 +127,7 @@ export var CaseReducerConstants;
|
|
|
141
127
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
142
128
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
143
129
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
130
|
+
CaseReducerConstants["updateComments"] = "updateComments";
|
|
144
131
|
CaseReducerConstants["setABTestVariation"] = "setABTestVariation";
|
|
145
132
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
146
133
|
export const initialCaseState = {
|
|
@@ -164,7 +151,7 @@ export const initialCaseState = {
|
|
|
164
151
|
environment: '',
|
|
165
152
|
periodicityOfIssue: '',
|
|
166
153
|
timeFramesAndUrgency: '',
|
|
167
|
-
groupNumber:
|
|
154
|
+
groupNumber: '-1',
|
|
168
155
|
entitlementSla: '',
|
|
169
156
|
accountNumberRef: '',
|
|
170
157
|
fts: undefined,
|
|
@@ -220,7 +207,6 @@ export const initialCaseState = {
|
|
|
220
207
|
selectedCaseGroupUsers: getApiResourceObject([]),
|
|
221
208
|
customEmailsList: getApiResourceObject([]),
|
|
222
209
|
hasInvalidEntitlements: false,
|
|
223
|
-
isProductNotEntitled: false,
|
|
224
210
|
hasCaseUpdateError: false,
|
|
225
211
|
isCaseUpdating: false,
|
|
226
212
|
caseDetailsError: null,
|
|
@@ -238,7 +224,6 @@ export const initialCaseState = {
|
|
|
238
224
|
isPostingRemoteRequestCommentCompleted: false,
|
|
239
225
|
isPostingRemoteRequestCommentCompletedErrorMessage: '',
|
|
240
226
|
isExistingPhoneNumber: false,
|
|
241
|
-
hasUserUpdatedSuppliedPhone: false,
|
|
242
227
|
hasLoggedInUserConfirmedPhoneNumber: 'False',
|
|
243
228
|
shouldNotSetPhoneCountryCode: false,
|
|
244
229
|
ftsContactSameAsOwner: false,
|
|
@@ -246,17 +231,8 @@ export const initialCaseState = {
|
|
|
246
231
|
cveWorkflowRecommendation: [],
|
|
247
232
|
isCveModalOpened: true,
|
|
248
233
|
ABTestVariation: 'B',
|
|
249
|
-
productServiceLevel: undefined,
|
|
250
|
-
otherServiceLevels: [],
|
|
251
|
-
selectedEntitlementId: undefined,
|
|
252
|
-
accountHasPremiumSla: false,
|
|
253
|
-
selectedVersionId: undefined,
|
|
254
|
-
selectedLabelIds: [],
|
|
255
|
-
pendingCaseOwnerUpdate: null,
|
|
256
|
-
showMandatoryCaseGroupValidationError: false,
|
|
257
234
|
};
|
|
258
235
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
259
236
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
260
|
-
export const LANGUAGE_MAP = { en: 'en_US', zh: 'zh_CN', pt: 'pt_BR' };
|
|
261
237
|
export const excludedCaseTypesforARH = ['Feature / Enhancement Request'];
|
|
262
238
|
export const appSourceId_ARH = 'PCM-001';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { IExternalTrackerUpdate } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
1
2
|
import { ICommentFeedback } from '@cee-eng/hydrajs/@types/api/public/commentFeedback';
|
|
2
3
|
import { IAttachment } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
3
4
|
import { ICaseEscalation } from '@cee-eng/hydrajs/@types/models/escalation';
|
|
4
5
|
import { IAction, IApiResponseDetails } from '@rh-support/types/shared';
|
|
5
|
-
import { ApolloQueryClient } from '@rh-support/utils';
|
|
6
6
|
type IActionType = IAction<CaseDetailsConstants, ICaseViewState>;
|
|
7
7
|
export type CaseDetailsReducerDispatchType = (value: IActionType) => void;
|
|
8
8
|
export declare enum CaseDetailsConstants {
|
|
@@ -11,16 +11,14 @@ export declare enum CaseDetailsConstants {
|
|
|
11
11
|
export interface ICaseViewState {
|
|
12
12
|
caseFeedbacksHydra: IApiResponseDetails<Partial<ICommentFeedback[]>>;
|
|
13
13
|
caseAttachmentHydra: IApiResponseDetails<Partial<IAttachment[]>>;
|
|
14
|
-
caseExternalTrackersUpdate: IApiResponseDetails<Partial<
|
|
14
|
+
caseExternalTrackersUpdate: IApiResponseDetails<Partial<IExternalTrackerUpdate[]>>;
|
|
15
15
|
caseEscalations: IApiResponseDetails<ICaseEscalation[]>;
|
|
16
16
|
}
|
|
17
17
|
export declare const initialCaseDetailsPageState: ICaseViewState;
|
|
18
18
|
export declare const caseDetailsPageReducer: (state: ICaseViewState, action: IActionType) => any;
|
|
19
|
-
export declare const fetchAttachments: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string,
|
|
19
|
+
export declare const fetchAttachments: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string, isSecureSupport: boolean) => Promise<void>;
|
|
20
20
|
export declare const fetchFeedbacks: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => Promise<void>;
|
|
21
|
-
export declare const fetchExternalTrackers: (
|
|
22
|
-
export declare const fetchCaseEscalations: (dispatch: CaseDetailsReducerDispatchType,
|
|
23
|
-
query: (options: any) => Promise<any>;
|
|
24
|
-
}, setLoading?: boolean, includeSecureSupport?: boolean) => Promise<void>;
|
|
21
|
+
export declare const fetchExternalTrackers: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => Promise<void>;
|
|
22
|
+
export declare const fetchCaseEscalations: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string, accountNumber: string, setLoading?: boolean) => Promise<void>;
|
|
25
23
|
export {};
|
|
26
24
|
//# sourceMappingURL=CaseDetailsPageReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIxE,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE1E,oBAAY,oBAAoB;IAC5B,WAAW,gBAAgB;CAC9B;AAED,MAAM,WAAW,cAAc;IAC3B,kBAAkB,EAAE,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IACrE,mBAAmB,EAAE,mBAAmB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACjE,0BAA0B,EAAE,mBAAmB,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC;IACnF,eAAe,EAAE,mBAAmB,CAAC,eAAe,EAAE,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,2BAA2B,EAAE,cAKzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,cAAc,EAAE,QAAQ,WAAW,KAAG,GASnF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GACzB,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,iBAAiB,OAAO,kBAmB3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,UAAU,8BAA8B,EAAE,YAAY,MAAM,kBAoBhG,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,UAAU,8BAA8B,EAAE,YAAY,MAAM,kBAkBvG,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,eAAe,MAAM,EACrB,oBAAiB,kBAwBpB,CAAC"}
|
|
@@ -7,9 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
10
|
+
import { escalations, kase, publicApi } from '@cee-eng/hydrajs';
|
|
11
|
+
import { getApiResourceObject } from '@rh-support/utils';
|
|
12
|
+
import without from 'lodash/without';
|
|
13
13
|
export var CaseDetailsConstants;
|
|
14
14
|
(function (CaseDetailsConstants) {
|
|
15
15
|
CaseDetailsConstants["updateState"] = "updateState";
|
|
@@ -17,8 +17,6 @@ export var CaseDetailsConstants;
|
|
|
17
17
|
export const initialCaseDetailsPageState = {
|
|
18
18
|
caseFeedbacksHydra: getApiResourceObject([]),
|
|
19
19
|
caseAttachmentHydra: getApiResourceObject([]),
|
|
20
|
-
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
21
|
-
// caseExternalTrackersUpdate: getApiResourceObject([]),
|
|
22
20
|
caseExternalTrackersUpdate: getApiResourceObject([]),
|
|
23
21
|
caseEscalations: getApiResourceObject([]),
|
|
24
22
|
};
|
|
@@ -32,21 +30,13 @@ export const caseDetailsPageReducer = (state, action) => {
|
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
};
|
|
35
|
-
export const fetchAttachments = (
|
|
33
|
+
export const fetchAttachments = (dispatch, caseNumber, isSecureSupport) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
34
|
try {
|
|
37
35
|
dispatch({
|
|
38
36
|
type: CaseDetailsConstants.updateState,
|
|
39
37
|
payload: { caseAttachmentHydra: getApiResourceObject([], true) },
|
|
40
38
|
});
|
|
41
|
-
|
|
42
|
-
if (!resolvedCaseSalesforceId) {
|
|
43
|
-
const caseDetails = yield fetchCaseDetailsByCaseNumber(apolloClient, caseNumber, includeSecureSupport);
|
|
44
|
-
resolvedCaseSalesforceId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.id;
|
|
45
|
-
}
|
|
46
|
-
if (!resolvedCaseSalesforceId) {
|
|
47
|
-
throw new Error('Missing Salesforce case id');
|
|
48
|
-
}
|
|
49
|
-
const allAttachments = yield fetchCaseAttachmentsViaGraphQL(apolloClient, caseNumber, resolvedCaseSalesforceId);
|
|
39
|
+
const allAttachments = yield kase.getAttachments(caseNumber, false, isSecureSupport);
|
|
50
40
|
dispatch({
|
|
51
41
|
type: CaseDetailsConstants.updateState,
|
|
52
42
|
payload: { caseAttachmentHydra: getApiResourceObject(allAttachments) },
|
|
@@ -79,56 +69,34 @@ export const fetchFeedbacks = (dispatch, caseNumber) => __awaiter(void 0, void 0
|
|
|
79
69
|
});
|
|
80
70
|
}
|
|
81
71
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
// }
|
|
101
|
-
// };
|
|
102
|
-
export const fetchExternalTrackers = (_dispatch, _caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
|
-
// no-op stub until External Trackers has a functioning GraphQL endpoint
|
|
72
|
+
export const fetchExternalTrackers = (dispatch, caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
try {
|
|
74
|
+
dispatch({
|
|
75
|
+
type: CaseDetailsConstants.updateState,
|
|
76
|
+
payload: { caseExternalTrackersUpdate: getApiResourceObject([], true) },
|
|
77
|
+
});
|
|
78
|
+
const caseExtUpdates = yield publicApi.kase.getExternalUpdates(caseNumber);
|
|
79
|
+
dispatch({
|
|
80
|
+
type: CaseDetailsConstants.updateState,
|
|
81
|
+
payload: { caseExternalTrackersUpdate: getApiResourceObject(caseExtUpdates) },
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
dispatch({
|
|
86
|
+
type: CaseDetailsConstants.updateState,
|
|
87
|
+
payload: { caseExternalTrackersUpdate: getApiResourceObject([], false, true, e.message) },
|
|
88
|
+
});
|
|
89
|
+
}
|
|
104
90
|
});
|
|
105
|
-
export const fetchCaseEscalations = (dispatch_1,
|
|
106
|
-
var _a, _b, _c, _d;
|
|
91
|
+
export const fetchCaseEscalations = (dispatch_1, caseNumber_1, accountNumber_1, ...args_1) => __awaiter(void 0, [dispatch_1, caseNumber_1, accountNumber_1, ...args_1], void 0, function* (dispatch, caseNumber, accountNumber, setLoading = true) {
|
|
107
92
|
try {
|
|
108
93
|
setLoading &&
|
|
109
94
|
dispatch({
|
|
110
95
|
type: CaseDetailsConstants.updateState,
|
|
111
96
|
payload: { caseEscalations: getApiResourceObject([], setLoading) },
|
|
112
97
|
});
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
variables: {
|
|
116
|
-
where: {
|
|
117
|
-
and: [{ ParentId: { eq: parentId } }, buildAccessRestrictionExclusionFilter(includeSecureSupport)],
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
122
|
-
const caseEscalations = edges.map(({ node }) => {
|
|
123
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
124
|
-
return ({
|
|
125
|
-
name: (_b = (_a = node.CaseNumber__c) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '',
|
|
126
|
-
subject: (_d = (_c = node.Subject) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : '',
|
|
127
|
-
status: (_f = (_e = node.Status) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : '',
|
|
128
|
-
owner: (_j = (_h = (_g = node.Owner) === null || _g === void 0 ? void 0 : _g.Name) === null || _h === void 0 ? void 0 : _h.value) !== null && _j !== void 0 ? _j : '',
|
|
129
|
-
escalationSource: 'RME Escalation',
|
|
130
|
-
});
|
|
131
|
-
});
|
|
98
|
+
const res = yield escalations.getEscalations({ caseNumber, accountNumber });
|
|
99
|
+
const caseEscalations = without((res || []).filter((item) => item.escalationSource === 'RME Escalation'), null, undefined);
|
|
132
100
|
dispatch({
|
|
133
101
|
type: CaseDetailsConstants.updateState,
|
|
134
102
|
payload: { caseEscalations: getApiResourceObject(caseEscalations, false) },
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ICaseChat, ICaseComment } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
1
|
+
import { ICaseChat, ICaseComment, IExternalTrackerUpdate } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
2
2
|
import { ICommentFeedback } from '@cee-eng/hydrajs/@types/api/public/commentFeedback';
|
|
3
3
|
import { IAttachment } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
4
4
|
import { IAction } from '@rh-support/types/shared';
|
|
5
|
-
import {
|
|
5
|
+
import { CaseReducerDispatchType } from './CaseConstNTypes';
|
|
6
6
|
type IActionType = IAction<DiscussionsConstants, IDiscussionState>;
|
|
7
7
|
export type DiscussionsReducerDispatchType = (value: IActionType) => void;
|
|
8
8
|
export interface IDiscussion {
|
|
9
|
-
item: Partial<ICaseComment | IAttachment | ICaseChat>;
|
|
9
|
+
item: Partial<ICaseComment | IAttachment | ICaseChat | IExternalTrackerUpdate>;
|
|
10
10
|
last_modified_date: string;
|
|
11
11
|
discussionType: string;
|
|
12
12
|
feedback?: number;
|
|
13
|
+
feedbackReason?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare enum DiscussionType {
|
|
15
16
|
COMMENT = "comment",
|
|
@@ -34,10 +35,9 @@ export declare const initDiscussionFiltersListState: IFilter[];
|
|
|
34
35
|
export interface IDiscussionState {
|
|
35
36
|
sort: ISort;
|
|
36
37
|
allDiscussions: IDiscussion[];
|
|
38
|
+
replyCommentText: string;
|
|
39
|
+
replyCommentCreator: string;
|
|
37
40
|
discussionFiltersListState: IFilter[];
|
|
38
|
-
replyingToAuthor: string | null;
|
|
39
|
-
replyingToCommentId: string | null;
|
|
40
|
-
replyingToTimestamp: string | null;
|
|
41
41
|
}
|
|
42
42
|
export declare const initialDiscussionState: IDiscussionState;
|
|
43
43
|
export declare enum DiscussionsConstants {
|
|
@@ -45,13 +45,14 @@ export declare enum DiscussionsConstants {
|
|
|
45
45
|
}
|
|
46
46
|
export declare const discussionReducer: (state: IDiscussionState, action: IActionType) => IDiscussionState;
|
|
47
47
|
export declare const setSort: (dispatch: DiscussionsReducerDispatchType, sort: ISort, allDiscussions: IDiscussion[]) => void;
|
|
48
|
-
export declare const setReplyingTo: (dispatch: DiscussionsReducerDispatchType, author: string, commentId: string, timestamp: string) => void;
|
|
49
|
-
export declare const clearReplyingTo: (dispatch: DiscussionsReducerDispatchType) => void;
|
|
50
48
|
export declare const setFilter: (dispatch: DiscussionsReducerDispatchType, selected: string[], discussionFiltersListState: IFilter[]) => void;
|
|
51
|
-
export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType, comments: ICaseComment[], chats: ICaseChat[], attachments: IAttachment[], feedbacks: ICommentFeedback[], trackerUpdates: Partial<
|
|
49
|
+
export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType, comments: ICaseComment[], chats: ICaseChat[], attachments: IAttachment[], feedbacks: ICommentFeedback[], trackerUpdates: Partial<IExternalTrackerUpdate[]>, discussionFiltersListState: IFilter[], canSeeExternalTracker: boolean, canSeeChat: boolean, canSeeAttachments: boolean) => void;
|
|
52
50
|
export declare const updateAttacmentsAfterRemoval: (dispatch: DiscussionsReducerDispatchType, uuid_removed: string, allDiscussions: IDiscussion[], discussionFiltersListState: IFilter[]) => void;
|
|
53
|
-
export declare const updateCommentStateFeedback: (dispatch: DiscussionsReducerDispatchType, comment_id: string, newFeedback: any, allDiscussions: IDiscussion[]) => Promise<void>;
|
|
51
|
+
export declare const updateCommentStateFeedback: (dispatch: DiscussionsReducerDispatchType, comment_id: string, newFeedback: any, allDiscussions: IDiscussion[], feedbackReason?: string) => Promise<void>;
|
|
54
52
|
export declare const updateAttachment: (dispatch: DiscussionsReducerDispatchType, uuid: string, newAttachment: any, allDiscussions: IDiscussion[]) => void;
|
|
55
|
-
export declare const
|
|
53
|
+
export declare const updateDiscussionStateComments: (dispatch: DiscussionsReducerDispatchType, caseDispatch: CaseReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, feedbacks: ICommentFeedback[], discussionFiltersListState: IFilter[]) => Promise<void>;
|
|
54
|
+
export declare const updateDiscussionStateAttachments: (dispatch: DiscussionsReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, isSecureSupport: boolean, discussionFiltersListState: IFilter[], dispatchCaseDetailsHydraAttachments: any) => Promise<void>;
|
|
55
|
+
export declare const setCommentText: (dispatch: DiscussionsReducerDispatchType, replyCommentText: string, replyCommentCreator: string) => void;
|
|
56
|
+
export declare const clearReplyComment: (dispatch: DiscussionsReducerDispatchType) => void;
|
|
56
57
|
export {};
|
|
57
58
|
//# sourceMappingURL=CaseDiscussionTabReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAOnD,OAAO,EAAwB,uBAAuB,EAAE,MAAM,mB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