@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
|
@@ -7,11 +7,13 @@ 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 {
|
|
10
|
+
import { kase, publicApi } from '@cee-eng/hydrajs';
|
|
11
|
+
import { getApiResourceObject } from '@rh-support/utils';
|
|
11
12
|
import filter from 'lodash/filter';
|
|
12
13
|
import findIndex from 'lodash/findIndex';
|
|
13
14
|
import isEqual from 'lodash/isEqual';
|
|
14
15
|
import orderBy from 'lodash/orderBy';
|
|
16
|
+
import { CaseReducerConstants } from './CaseConstNTypes';
|
|
15
17
|
import { CaseDetailsConstants } from './CaseDetailsPageReducer';
|
|
16
18
|
export var DiscussionType;
|
|
17
19
|
(function (DiscussionType) {
|
|
@@ -60,22 +62,20 @@ export const initDiscussionFiltersListState = [
|
|
|
60
62
|
isSelected: true,
|
|
61
63
|
canSee: false,
|
|
62
64
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// },
|
|
65
|
+
{
|
|
66
|
+
filterLabel: 'External Tracker',
|
|
67
|
+
value: DiscussionType.EXTERNAL_TRACKER,
|
|
68
|
+
isDisabled: false,
|
|
69
|
+
isSelected: true,
|
|
70
|
+
canSee: false,
|
|
71
|
+
},
|
|
71
72
|
];
|
|
72
73
|
export const initialDiscussionState = {
|
|
73
74
|
sort: discussionSortOrderConst[0],
|
|
74
75
|
allDiscussions: [],
|
|
76
|
+
replyCommentText: '',
|
|
77
|
+
replyCommentCreator: '',
|
|
75
78
|
discussionFiltersListState: initDiscussionFiltersListState,
|
|
76
|
-
replyingToAuthor: null,
|
|
77
|
-
replyingToCommentId: null,
|
|
78
|
-
replyingToTimestamp: null,
|
|
79
79
|
};
|
|
80
80
|
export var DiscussionsConstants;
|
|
81
81
|
(function (DiscussionsConstants) {
|
|
@@ -98,18 +98,6 @@ export const setSort = (dispatch, sort, allDiscussions) => {
|
|
|
98
98
|
payload: { sort, allDiscussions: sortedDiscussions },
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
-
export const setReplyingTo = (dispatch, author, commentId, timestamp) => {
|
|
102
|
-
dispatch({
|
|
103
|
-
type: DiscussionsConstants.updateDiscussionState,
|
|
104
|
-
payload: { replyingToAuthor: author, replyingToCommentId: commentId, replyingToTimestamp: timestamp },
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
export const clearReplyingTo = (dispatch) => {
|
|
108
|
-
dispatch({
|
|
109
|
-
type: DiscussionsConstants.updateDiscussionState,
|
|
110
|
-
payload: { replyingToAuthor: null, replyingToCommentId: null, replyingToTimestamp: null },
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
101
|
export const setFilter = (dispatch, selected, discussionFiltersListState) => {
|
|
114
102
|
const prevSelectedListLength = discussionFiltersListState.filter((filter) => filter.isSelected).length;
|
|
115
103
|
if (selected.length > prevSelectedListLength &&
|
|
@@ -129,13 +117,11 @@ const commputeFeedback = (commentId, feedbacks) => {
|
|
|
129
117
|
const feedback = feedbacks.filter((feedback) => feedback.commentId === commentId);
|
|
130
118
|
return feedback.length === 0 ? undefined : parseInt(feedback[0].feedback);
|
|
131
119
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
// canSeeExternalTracker: boolean,
|
|
138
|
-
canSeeExternalTracker, canSeeChat, canSeeAttachments) => {
|
|
120
|
+
const computeFeedbackReason = (commentId, feedbacks) => {
|
|
121
|
+
const feedback = (feedbacks || []).find((item) => item.commentId === commentId);
|
|
122
|
+
return feedback === null || feedback === void 0 ? void 0 : feedback.feedbackReason;
|
|
123
|
+
};
|
|
124
|
+
export const setDiscussions = (dispatch, comments, chats, attachments, feedbacks, trackerUpdates, discussionFiltersListState, canSeeExternalTracker, canSeeChat, canSeeAttachments) => {
|
|
139
125
|
// set all discussions state
|
|
140
126
|
// we need to transform discussions item because:
|
|
141
127
|
// - last_modified_date is needed for sort and field name is different in different discussion types
|
|
@@ -152,25 +138,19 @@ canSeeExternalTracker, canSeeChat, canSeeAttachments) => {
|
|
|
152
138
|
discussionType: DiscussionType.COMMENT,
|
|
153
139
|
last_modified_date: comment.lastModifiedDate || comment.createdDate,
|
|
154
140
|
feedback: commputeFeedback(comment.id, feedbacks),
|
|
141
|
+
feedbackReason: computeFeedbackReason(comment.id, feedbacks),
|
|
142
|
+
}));
|
|
143
|
+
const allExternalTrackers = (trackerUpdates || []).map((externalUpdate) => ({
|
|
144
|
+
item: Object.assign(Object.assign({}, externalUpdate), { originating_system_last_updated_at: externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate }),
|
|
145
|
+
last_modified_date: externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate,
|
|
146
|
+
discussionType: DiscussionType.EXTERNAL_TRACKER,
|
|
155
147
|
}));
|
|
156
|
-
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
157
|
-
// const allExternalTrackers: IDiscussion[] = (trackerUpdates || []).map((externalUpdate) => ({
|
|
158
|
-
// item: {
|
|
159
|
-
// ...externalUpdate,
|
|
160
|
-
// originating_system_last_updated_at:
|
|
161
|
-
// externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate,
|
|
162
|
-
// },
|
|
163
|
-
// last_modified_date: externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate,
|
|
164
|
-
// discussionType: DiscussionType.EXTERNAL_TRACKER,
|
|
165
|
-
// }));
|
|
166
148
|
const allAttachments = attachments.map((attachment) => ({
|
|
167
149
|
item: Object.assign(Object.assign({}, attachment), { lastModifiedDate: attachment.lastModifiedDate || attachment.createdDate }),
|
|
168
150
|
last_modified_date: attachment.lastModifiedDate || attachment.createdDate,
|
|
169
151
|
discussionType: DiscussionType.ATTACHMENT,
|
|
170
152
|
}));
|
|
171
|
-
|
|
172
|
-
// const allDiscussions: IDiscussion[] = [...allComments, ...allChats, ...allAttachments, ...allExternalTrackers];
|
|
173
|
-
const allDiscussions = [...allComments, ...allChats, ...allAttachments];
|
|
153
|
+
const allDiscussions = [...allComments, ...allChats, ...allAttachments, ...allExternalTrackers];
|
|
174
154
|
const sortedAllDiscussions = orderBy(allDiscussions, 'last_modified_date', 'desc');
|
|
175
155
|
//set filter dropdown state
|
|
176
156
|
// when we don't have any result for a discussion type, in filter options dropdown list, we make that type disable
|
|
@@ -182,10 +162,10 @@ canSeeExternalTracker, canSeeChat, canSeeAttachments) => {
|
|
|
182
162
|
else if (filter.value === DiscussionType.CHAT) {
|
|
183
163
|
filter.isDisabled = allChats.length === 0 ? true : false;
|
|
184
164
|
filter.canSee = canSeeChat;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
165
|
+
}
|
|
166
|
+
else if (filter.value === DiscussionType.EXTERNAL_TRACKER) {
|
|
167
|
+
filter.isDisabled = allExternalTrackers.length === 0 ? true : false;
|
|
168
|
+
filter.canSee = canSeeExternalTracker;
|
|
189
169
|
}
|
|
190
170
|
else if (filter.value === DiscussionType.COMMENT) {
|
|
191
171
|
filter.isDisabled = allComments.length === 0 ? true : false;
|
|
@@ -218,10 +198,13 @@ export const updateAttacmentsAfterRemoval = (dispatch, uuid_removed, allDiscussi
|
|
|
218
198
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { discussionFiltersListState } });
|
|
219
199
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions } });
|
|
220
200
|
};
|
|
221
|
-
export const updateCommentStateFeedback = (dispatch, comment_id, newFeedback, allDiscussions) => __awaiter(void 0, void 0, void 0, function* () {
|
|
201
|
+
export const updateCommentStateFeedback = (dispatch, comment_id, newFeedback, allDiscussions, feedbackReason) => __awaiter(void 0, void 0, void 0, function* () {
|
|
222
202
|
const updateDiscussions = allDiscussions.map((discussion) => {
|
|
223
203
|
if (discussion.discussionType === DiscussionType.COMMENT && discussion.item.id === comment_id) {
|
|
224
204
|
discussion.feedback = newFeedback;
|
|
205
|
+
if (feedbackReason !== undefined) {
|
|
206
|
+
discussion.feedbackReason = feedbackReason;
|
|
207
|
+
}
|
|
225
208
|
}
|
|
226
209
|
return discussion;
|
|
227
210
|
});
|
|
@@ -236,21 +219,36 @@ export const updateAttachment = (dispatch, uuid, newAttachment, allDiscussions)
|
|
|
236
219
|
});
|
|
237
220
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
238
221
|
};
|
|
239
|
-
export const
|
|
222
|
+
export const updateDiscussionStateComments = (dispatch, caseDispatch, caseNumber, allDiscussions, sort, feedbacks, discussionFiltersListState) => __awaiter(void 0, void 0, void 0, function* () {
|
|
240
223
|
try {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
224
|
+
const comments = yield publicApi.kase.getComments(caseNumber);
|
|
225
|
+
const allComments = (comments || [])
|
|
226
|
+
.filter((comment) => comment.isDraft === false)
|
|
227
|
+
.map((comment) => ({
|
|
228
|
+
item: Object.assign(Object.assign({}, comment), { isPublic: comment.isPublic === undefined ? true : comment.isPublic, last_modified_date: comment.lastModifiedDate || comment.createdDate }),
|
|
229
|
+
discussionType: DiscussionType.COMMENT,
|
|
230
|
+
last_modified_date: comment.lastModifiedDate || comment.createdDate,
|
|
231
|
+
feedback: commputeFeedback(comment.id, feedbacks),
|
|
232
|
+
feedbackReason: computeFeedbackReason(comment.id, feedbacks),
|
|
233
|
+
}));
|
|
234
|
+
const filteredDiscussion = filter([...allDiscussions], (o) => o.discussionType !== DiscussionType.COMMENT);
|
|
235
|
+
const updatedDiscussions = orderBy([...filteredDiscussion, ...allComments], 'last_modified_date', sort.sortOrder);
|
|
236
|
+
discussionFiltersListState.forEach((filter) => {
|
|
237
|
+
if (filter.value === DiscussionType.COMMENT) {
|
|
238
|
+
filter.isDisabled = false;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { discussionFiltersListState } });
|
|
242
|
+
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
243
|
+
caseDispatch({ type: CaseReducerConstants.updateComments, payload: { caseDetails: { comments } } });
|
|
244
|
+
}
|
|
245
|
+
catch (e) {
|
|
246
|
+
console.log(e);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
export const updateDiscussionStateAttachments = (dispatch, caseNumber, allDiscussions, sort, isSecureSupport, discussionFiltersListState, dispatchCaseDetailsHydraAttachments) => __awaiter(void 0, void 0, void 0, function* () {
|
|
250
|
+
try {
|
|
251
|
+
const attachments = yield kase.getAttachments(caseNumber, false, isSecureSupport);
|
|
254
252
|
const allAttachments = attachments.map((attachment) => ({
|
|
255
253
|
item: Object.assign(Object.assign({}, attachment), { lastModifiedDate: attachment.lastModifiedDate || attachment.createdDate }),
|
|
256
254
|
last_modified_date: attachment.lastModifiedDate || attachment.createdDate,
|
|
@@ -274,3 +272,12 @@ export const updateDiscussionStateAttachments = (dispatch_1, caseNumber_1, allDi
|
|
|
274
272
|
console.log(e);
|
|
275
273
|
}
|
|
276
274
|
});
|
|
275
|
+
export const setCommentText = (dispatch, replyCommentText, replyCommentCreator) => {
|
|
276
|
+
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { replyCommentText, replyCommentCreator } });
|
|
277
|
+
};
|
|
278
|
+
export const clearReplyComment = (dispatch) => {
|
|
279
|
+
dispatch({
|
|
280
|
+
type: DiscussionsConstants.updateDiscussionState,
|
|
281
|
+
payload: { replyCommentText: '', replyCommentCreator: '' },
|
|
282
|
+
});
|
|
283
|
+
};
|
|
@@ -6,7 +6,7 @@ import { ISolrRecommendation } from '@cee-eng/hydrajs/@types/models/solr/solr';
|
|
|
6
6
|
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
7
7
|
import { UserAuth } from '@rh-support/user-permissions';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { ICaseState
|
|
9
|
+
import { ICaseState } from './CaseConstNTypes';
|
|
10
10
|
export declare const getCaseRecommendations: (docs: ISolrRecommendation[], oldDocs: any) => any[];
|
|
11
11
|
export declare const getCepCommentFromCepDetails: (cepDetails: ICepDetails) => string;
|
|
12
12
|
export declare const getRecommendationObject: (doc: ISolrRecommendation, index: number) => ICaseResourceLink;
|
|
@@ -17,20 +17,10 @@ export declare const getNewSeverityStringDef: (severity: string) => string | Rea
|
|
|
17
17
|
export declare const getOrtForSLAAndSeverity: (slaProcessId: string, severity: string) => string;
|
|
18
18
|
export declare const getSeverityDescription: (severity: string) => string;
|
|
19
19
|
export declare const isClusterIDValid: (caseState: any, allProducts: any) => boolean;
|
|
20
|
-
export interface ICaseGroupUiState {
|
|
21
|
-
groupsLoaded: boolean;
|
|
22
|
-
hasGroups: boolean;
|
|
23
|
-
isGroupMandatory: boolean;
|
|
24
|
-
shouldHideSelector: boolean;
|
|
25
|
-
isNoGroupsBlockedState: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare const getCaseGroupUiState: (caseState: ICaseState) => ICaseGroupUiState;
|
|
28
|
-
export declare const isCaseGroupSelectionValid: (caseState: ICaseState) => boolean;
|
|
29
20
|
export declare const isCaseStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
30
21
|
export declare const isIdeaCaseStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
31
22
|
export declare const isCaseManagementStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
32
23
|
export declare const isCaseInformationSectionValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
33
|
-
export declare const createCasePayloadGraphQL: (caseState: ICaseState, sessionItem?: ISessionItem, isCaseCreate?: boolean, traditionalSupportAgreed?: boolean) => IGraphQLCasePayload;
|
|
34
24
|
export declare const createCasePayload: (caseState: ICaseState, sessionItem?: ISessionItem, isCaseCreate?: boolean) => Partial<ICasePayload>;
|
|
35
25
|
export declare const getProcessedEntitlements: (caseEntitlements: IEntitlement[]) => IEntitlement[];
|
|
36
26
|
export declare const getHasInvalidEntitlements: (caseEntitlements: IEntitlement[]) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAexD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAOH,UAAU,EAkBb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,GAAI,MAAM,mBAAmB,EAAE,EAAE,YAAO,UAM1E,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,YAAY,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,KAAK,mBAAmB,EAAE,OAAO,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAC9B,OAAO,MAAM,EACb,cAAc,MAAM,EACpB,qBAAqB,MAAM,EAC3B,uBAAuB,MAAM,EAC7B,gBAAgB,MAAM,EACtB,UAAU,MAAM,EAChB,UAAU,MAAM,KACjB,MAyBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,GAC7B,OAAO,MAAM,EACb,cAAc,MAAM,EACpB,qBAAqB,MAAM,EAC3B,uBAAuB,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAiB7E,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,UAAU,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,cAAS,EAAE,gBAAW,YAsCtD,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,WAAW,UAAU,EAAE,oBAAoB,mBAAmB,CAAC,QAAQ,CAAC,KAAG,OA6B3G,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,WAAW,UAAU,EACrB,oBAAoB,mBAAmB,CAAC,QAAQ,CAAC,KAClD,OA0BF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,WAAW,UAAU,EACrB,oBAAoB,mBAAmB,CAAC,QAAQ,CAAC,KAClD,OAYF,CAAC;AAIF,eAAO,MAAM,6BAA6B,GACtC,WAAW,UAAU,EACrB,oBAAoB,mBAAmB,CAAC,QAAQ,CAAC,KAClD,OAkBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC1B,WAAW,UAAU,EACrB,cAAc,YAAY,EAC1B,eAAc,OAAe,KAC9B,OAAO,CAAC,YAAY,CA6EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,kBAAkB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,GAAI,kBAAkB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,aAAa,YAAY,EACzB,2BAA2B,MAAM,EACjC,iBAAiB,MAAM,KACxB,OAAO,CAAC,YAAY,CAiCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,GAClC,aAAa,OAAO,CAAC,YAAY,CAAC,EAClC,8BAA8B,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAppVersion,
|
|
1
|
+
import { getAppVersion, getUserAgentForCaseMode, getVersion, isPremiumEntitlement, showFtsOnCreateCasePage, } from '@rh-support/utils';
|
|
2
2
|
import filter from 'lodash/filter';
|
|
3
3
|
import forEach from 'lodash/forEach';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -9,7 +9,7 @@ import uniqBy from 'lodash/uniqBy';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { isPhoneValid, trimAndReplacePlus } from '../components/shared/utils';
|
|
11
11
|
import { getIsClusterIdInvalid, isClusterIdEnabledForProduct } from '../utils/caseOpenshiftClusterIdUtils';
|
|
12
|
-
import { CASE_DETAILS_ISSUE_LIMIT, CASE_REFERENCE_NUMBER_LIMIT, CLUSTER_ID_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, IDEA_SECOND_KTQUESTION_MAX_LIMIT, ITRForSLASeverity, KTQUESTION_MAX_LIMIT, KtQuestionConstant,
|
|
12
|
+
import { CASE_DETAILS_ISSUE_LIMIT, CASE_REFERENCE_NUMBER_LIMIT, CLUSTER_ID_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, IDEA_SECOND_KTQUESTION_MAX_LIMIT, ITRForSLASeverity, KTQUESTION_MAX_LIMIT, KtQuestionConstant, SESSION_ENVIRONMENT_LIMIT, SESSION_ISSUE_LIMIT, SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT, SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT, SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT, SESSION_NOTIFIED_USERS_INTERNAL_LIMIT, SESSION_PERIODICITY_OF_ISSUE_LIMIT, SESSION_PHONE_LENGTH_LIMIT, SESSION_TIME_FRAMES_URGENCY_LIMIT, SeverityDescription, SeverityDescriptionDetails, TITLE_SUMMARY_LENGTH_LIMIT, } from './CaseConstNTypes';
|
|
13
13
|
export const getCaseRecommendations = (docs, oldDocs) => {
|
|
14
14
|
const recs = [];
|
|
15
15
|
docs.forEach((doc, i) => {
|
|
@@ -119,7 +119,8 @@ export const getSeverityDescription = (severity) => {
|
|
|
119
119
|
};
|
|
120
120
|
export const isClusterIDValid = (caseState, allProducts) => {
|
|
121
121
|
const case_details = caseState.caseDetails;
|
|
122
|
-
const productHasClusterID = isClusterIdEnabledForProduct(case_details.product);
|
|
122
|
+
const productHasClusterID = isClusterIdEnabledForProduct(case_details.product, allProducts);
|
|
123
|
+
//if product doesn't have clusterId we don't need to validate value
|
|
123
124
|
if (!productHasClusterID)
|
|
124
125
|
return true;
|
|
125
126
|
const majorVersion = (case_details.version && getVersion(case_details.version).major) || '';
|
|
@@ -145,33 +146,6 @@ export const isClusterIDValid = (caseState, allProducts) => {
|
|
|
145
146
|
(case_details.noClusterIdReasonExplanation === 'v3-cluster' || isOpenShiftV3);
|
|
146
147
|
return hasValidClusterId() || hasValidReason() || hasValidReasonExplanation() || hasValidV3ClusterName();
|
|
147
148
|
};
|
|
148
|
-
export const getCaseGroupUiState = (caseState) => {
|
|
149
|
-
var _a, _b;
|
|
150
|
-
const { ownersCaseGroups, selectedAccountDetails, caseDetails } = caseState;
|
|
151
|
-
const isGroupMandatory = !!selectedAccountDetails.data.requireCGroupOnCreate;
|
|
152
|
-
const groupsLoaded = ownersCaseGroups.data !== undefined && !ownersCaseGroups.isFetching && !ownersCaseGroups.isError;
|
|
153
|
-
const hasGroups = ((_b = (_a = ownersCaseGroups.data) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0;
|
|
154
|
-
const isExistingCaseWithGroup = !isEmpty(caseDetails.caseNumber) && !isEmpty(caseDetails.groupNumber);
|
|
155
|
-
const shouldHideSelector = groupsLoaded && !hasGroups && !isGroupMandatory && !isExistingCaseWithGroup;
|
|
156
|
-
const isNoGroupsBlockedState = groupsLoaded && !hasGroups && isGroupMandatory;
|
|
157
|
-
return {
|
|
158
|
-
groupsLoaded,
|
|
159
|
-
hasGroups,
|
|
160
|
-
isGroupMandatory,
|
|
161
|
-
shouldHideSelector,
|
|
162
|
-
isNoGroupsBlockedState,
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
export const isCaseGroupSelectionValid = (caseState) => {
|
|
166
|
-
const { isGroupMandatory, groupsLoaded, hasGroups } = getCaseGroupUiState(caseState);
|
|
167
|
-
if (!isGroupMandatory) {
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
if (!groupsLoaded || !hasGroups) {
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
return !!caseState.caseDetails.groupNumber;
|
|
174
|
-
};
|
|
175
149
|
// Add a !isEmpty to to make any KTQuestion Mandatory in isCaseStateValid
|
|
176
150
|
export const isCaseStateValid = (caseState, loggedInUserRights) => {
|
|
177
151
|
const case_details = caseState.caseDetails;
|
|
@@ -195,7 +169,9 @@ export const isCaseStateValid = (caseState, loggedInUserRights) => {
|
|
|
195
169
|
!isEmpty(case_details.accountNumberRef) &&
|
|
196
170
|
!isEmpty(case_details.contactSSOName) &&
|
|
197
171
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
198
|
-
|
|
172
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
173
|
+
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
174
|
+
: true) &&
|
|
199
175
|
loggedInUserRights.data.canManageCases());
|
|
200
176
|
};
|
|
201
177
|
export const isIdeaCaseStateValid = (caseState, loggedInUserRights) => {
|
|
@@ -217,14 +193,18 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserRights) => {
|
|
|
217
193
|
!isEmpty(case_details.accountNumberRef) &&
|
|
218
194
|
!isEmpty(case_details.contactSSOName) &&
|
|
219
195
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
220
|
-
|
|
196
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
197
|
+
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
198
|
+
: true) &&
|
|
221
199
|
loggedInUserRights.data.canManageCases());
|
|
222
200
|
};
|
|
223
201
|
export const isCaseManagementStateValid = (caseState, loggedInUserRights) => {
|
|
224
202
|
const case_details = caseState.caseDetails;
|
|
225
203
|
return (isEmpty(case_details.caseNumber) &&
|
|
226
204
|
!isEmpty(case_details.severity) &&
|
|
227
|
-
|
|
205
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
206
|
+
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
207
|
+
: true) &&
|
|
228
208
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
229
209
|
loggedInUserRights.data.canManageCases());
|
|
230
210
|
};
|
|
@@ -245,87 +225,8 @@ export const isCaseInformationSectionValid = (caseState, loggedInUserRights) =>
|
|
|
245
225
|
!isEmpty(case_details.accountNumberRef) &&
|
|
246
226
|
loggedInUserRights.data.canManageCases());
|
|
247
227
|
};
|
|
248
|
-
const assignDescriptionFields = (casePayload, case_details, v3ClusterName) => {
|
|
249
|
-
const noClusterFields = resolveNoClusterIdFieldsForCaseCreate(case_details);
|
|
250
|
-
if (!isEmpty(case_details.description)) {
|
|
251
|
-
casePayload.Description = stripNoClusterIdFieldsFromDescription(case_details.description);
|
|
252
|
-
}
|
|
253
|
-
if (noClusterFields.noClusterIdReason || noClusterFields.noClusterIdReasonExplanation) {
|
|
254
|
-
casePayload.AdditionalCaseInformation__c = serializeNoClusterIdFieldsToAdditionalCaseInformation(noClusterFields, case_details.additionalCaseInformation);
|
|
255
|
-
}
|
|
256
|
-
if (!isEmpty(case_details.environment) || !isEmpty(v3ClusterName)) {
|
|
257
|
-
const clusterPrefix = v3ClusterName ? `OpenShift Cluster Name: ${v3ClusterName}\n` : '';
|
|
258
|
-
casePayload.EnvironmentInWhichItOccurs__c = `${clusterPrefix} ${case_details.environment}`;
|
|
259
|
-
}
|
|
260
|
-
if (!isEmpty(case_details.periodicityOfIssue)) {
|
|
261
|
-
casePayload.FrequencyOfIssueOccurrence__c = case_details.periodicityOfIssue;
|
|
262
|
-
}
|
|
263
|
-
if (!isEmpty(case_details.timeFramesAndUrgency)) {
|
|
264
|
-
casePayload.ImpactOnUserOrBusiness__c = case_details.timeFramesAndUrgency;
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
const assignOptionalIdentifiers = (casePayload, caseState) => {
|
|
268
|
-
var _a, _b, _c, _d;
|
|
269
|
-
const case_details = caseState.caseDetails;
|
|
270
|
-
const contactId = (_b = (_a = caseState.selectedOwner) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.id;
|
|
271
|
-
const countryCode = (_c = case_details === null || case_details === void 0 ? void 0 : case_details.phoneCountryCode) === null || _c === void 0 ? void 0 : _c.trim();
|
|
272
|
-
const phoneLine = (_d = case_details.phoneAreaCodePrefixLineNumber) === null || _d === void 0 ? void 0 : _d.trim();
|
|
273
|
-
if (!isEmpty(contactId))
|
|
274
|
-
casePayload.ContactId = contactId;
|
|
275
|
-
if (!isEmpty(caseState.selectedEntitlementId))
|
|
276
|
-
casePayload.EntitlementId = caseState.selectedEntitlementId;
|
|
277
|
-
if (!isEmpty(caseState.selectedVersionId))
|
|
278
|
-
casePayload.ProductId = caseState.selectedVersionId;
|
|
279
|
-
if (caseState.hasUserUpdatedSuppliedPhone && !isEmpty(countryCode) && !isEmpty(phoneLine)) {
|
|
280
|
-
casePayload.SuppliedPhone = `${countryCode} ${phoneLine}`;
|
|
281
|
-
}
|
|
282
|
-
if (!isEmpty(case_details.alternateId))
|
|
283
|
-
casePayload.AlternateCaseId__c = case_details.alternateId;
|
|
284
|
-
if (!isEmpty(case_details.openshiftClusterID))
|
|
285
|
-
casePayload.OpenshiftClusterID__c = case_details.openshiftClusterID;
|
|
286
|
-
if (!isEmpty(case_details.openshiftClusterVersion)) {
|
|
287
|
-
casePayload.OpenshiftClusterVersion__c = case_details.openshiftClusterVersion;
|
|
288
|
-
}
|
|
289
|
-
if (case_details.groupNumber)
|
|
290
|
-
casePayload.Group__c = case_details.groupNumber;
|
|
291
|
-
};
|
|
292
|
-
const assignAccountAccessRestriction = (casePayload, caseState, traditionalSupportAgreed = false) => {
|
|
293
|
-
var _a, _b, _c;
|
|
294
|
-
const selectedAccount = (_a = caseState.selectedAccountDetails) === null || _a === void 0 ? void 0 : _a.data;
|
|
295
|
-
const rawAccessRestriction = (_b = selectedAccount === null || selectedAccount === void 0 ? void 0 : selectedAccount.accessRestriction) !== null && _b !== void 0 ? _b : (typeof (selectedAccount === null || selectedAccount === void 0 ? void 0 : selectedAccount.AccessRestrictions__c) === 'string'
|
|
296
|
-
? selectedAccount.AccessRestrictions__c
|
|
297
|
-
: (_c = selectedAccount === null || selectedAccount === void 0 ? void 0 : selectedAccount.AccessRestrictions__c) === null || _c === void 0 ? void 0 : _c.value);
|
|
298
|
-
const accessRestriction = resolveAccessRestrictionForCaseCreate(rawAccessRestriction, traditionalSupportAgreed);
|
|
299
|
-
if (accessRestriction != null && !isEmpty(accessRestriction)) {
|
|
300
|
-
casePayload.AccessRestrictions__c = accessRestriction;
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
export const createCasePayloadGraphQL = (caseState, sessionItem, isCaseCreate = false, traditionalSupportAgreed = false) => {
|
|
304
|
-
var _a;
|
|
305
|
-
const casePayload = {};
|
|
306
|
-
const case_details = caseState.caseDetails;
|
|
307
|
-
if (!isEmpty(case_details.summary))
|
|
308
|
-
casePayload.Subject = case_details.summary;
|
|
309
|
-
if (!isEmpty(case_details.caseType))
|
|
310
|
-
casePayload.Type = case_details.caseType;
|
|
311
|
-
if (!isEmpty(case_details.severity))
|
|
312
|
-
casePayload.Priority = case_details.severity;
|
|
313
|
-
if (!isEmpty(case_details.caseLanguage)) {
|
|
314
|
-
casePayload.Language = (_a = LANGUAGE_MAP[case_details.caseLanguage]) !== null && _a !== void 0 ? _a : case_details.caseLanguage;
|
|
315
|
-
}
|
|
316
|
-
assignDescriptionFields(casePayload, case_details, caseState.v3ClusterName);
|
|
317
|
-
casePayload.Origin = 'Web';
|
|
318
|
-
casePayload.RecordTypeId = getTechnicalSupportRecordTypeId();
|
|
319
|
-
assignOptionalIdentifiers(casePayload, caseState);
|
|
320
|
-
assignAccountAccessRestriction(casePayload, caseState, traditionalSupportAgreed);
|
|
321
|
-
casePayload.X24x7__c = !!case_details.fts;
|
|
322
|
-
if (case_details.fts && !isEmpty(case_details.contactInfo24x7)) {
|
|
323
|
-
casePayload.X24x7ContactInformation__c = case_details.contactInfo24x7;
|
|
324
|
-
}
|
|
325
|
-
return casePayload;
|
|
326
|
-
};
|
|
327
228
|
export const createCasePayload = (caseState, sessionItem, isCaseCreate = false) => {
|
|
328
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
229
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
329
230
|
const casePayload = {};
|
|
330
231
|
const case_details = caseState.caseDetails;
|
|
331
232
|
const seSessionId = (_a = sessionItem === null || sessionItem === void 0 ? void 0 : sessionItem.session) === null || _a === void 0 ? void 0 : _a.id;
|
|
@@ -361,10 +262,7 @@ export const createCasePayload = (caseState, sessionItem, isCaseCreate = false)
|
|
|
361
262
|
some(caseState.ownersCaseGroups.data, ['groupNum', case_details.groupNumber])) {
|
|
362
263
|
casePayload.groupNumber = case_details.groupNumber;
|
|
363
264
|
}
|
|
364
|
-
if (showFtsOnCreateCasePage((_e = case_details.entitlementSla) !== null && _e !== void 0 ? _e : '', case_details.severity
|
|
365
|
-
accountHasPremiumSla: caseState.accountHasPremiumSla,
|
|
366
|
-
hasMultipleSlas: !!caseState.productServiceLevel && ((_g = (_f = caseState.otherServiceLevels) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) > 0,
|
|
367
|
-
})) {
|
|
265
|
+
if (showFtsOnCreateCasePage((_e = case_details.entitlementSla) !== null && _e !== void 0 ? _e : '', case_details.severity)) {
|
|
368
266
|
casePayload.fts = !!case_details.fts;
|
|
369
267
|
if (casePayload.fts) {
|
|
370
268
|
casePayload.contactInfo24x7 = case_details.contactInfo24x7;
|
|
@@ -390,7 +288,7 @@ export const createCasePayload = (caseState, sessionItem, isCaseCreate = false)
|
|
|
390
288
|
!isEmpty(case_details.openshiftClusterVersion) &&
|
|
391
289
|
(casePayload.openshiftClusterVersion = case_details.openshiftClusterVersion);
|
|
392
290
|
casePayload.userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
393
|
-
casePayload.originatingSystem = (
|
|
291
|
+
casePayload.originatingSystem = (_g = (_f = sessionItem === null || sessionItem === void 0 ? void 0 : sessionItem.session) === null || _f === void 0 ? void 0 : _f.originatingSystem) !== null && _g !== void 0 ? _g : casePayload.userAgent;
|
|
394
292
|
!isEmpty(case_details.noClusterIdReason) && (casePayload.noClusterIdReason = case_details.noClusterIdReason);
|
|
395
293
|
!isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
396
294
|
(casePayload.noClusterIdReasonExplanation = case_details.noClusterIdReasonExplanation);
|
|
@@ -418,7 +316,7 @@ export const getCaseFromSessionDetails = (sessionItem, loggedInUserAccountNumber
|
|
|
418
316
|
severity: sessionDetails.severity,
|
|
419
317
|
entitlementSla: sessionDetails.sla,
|
|
420
318
|
accountNumberRef: sessionDetails.accountNumber || loggedInUserAccountNumber,
|
|
421
|
-
groupNumber: sessionDetails.folderNumber ||
|
|
319
|
+
groupNumber: sessionDetails.folderNumber || '-1',
|
|
422
320
|
fts: sessionDetails.isFts,
|
|
423
321
|
contactInfo24x7: sessionDetails.contactInfo24X7,
|
|
424
322
|
contactSSOName: sessionDetails.contactSsoUsername || loggedInUserSSO,
|
|
@@ -29,9 +29,7 @@ export declare const setSelectedStatus: (dispatch: CaseDetailsReducerDispatchTyp
|
|
|
29
29
|
export declare const setSeverityUpdating: (dispatch: CaseDetailsReducerDispatchType, caseSeverityUpdating: boolean) => void;
|
|
30
30
|
export declare const setStatusUpdating: (dispatch: CaseDetailsReducerDispatchType, caseStatusUpdating: boolean) => void;
|
|
31
31
|
export declare const setTypeUpdating: (dispatch: CaseDetailsReducerDispatchType, caseTypeUpdating: boolean) => void;
|
|
32
|
-
export declare const fetchAllStatuses: (dispatch: CaseDetailsReducerDispatchType,
|
|
33
|
-
query: (options: any) => Promise<any>;
|
|
34
|
-
}) => Promise<void>;
|
|
32
|
+
export declare const fetchAllStatuses: (dispatch: CaseDetailsReducerDispatchType, isSecureSupport: boolean) => Promise<void>;
|
|
35
33
|
export declare const fetchCaseHydra: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => Promise<void>;
|
|
36
34
|
export {};
|
|
37
35
|
//# sourceMappingURL=CaseOverviewReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseOverviewReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseOverviewReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGxE,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,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;CAC9C;AAED,MAAM,WAAW,cAAc;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1D;AAED,eAAO,MAAM,oBAAoB,EAAE,cAYlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,cAAc,EAAE,QAAQ,WAAW,KAAG,cAkBhF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,8BAA8B,EAAE,cAAc,MAAM,SAE7F,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,8BAA8B,EAAE,kBAAkB,MAAM,SAErG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,8BAA8B,EAAE,gBAAgB,MAAM,SAEjG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,8BAA8B,EAAE,sBAAsB,OAAO,SAE1G,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,8BAA8B,EAAE,oBAAoB,OAAO,SAEtG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,8BAA8B,EAAE,kBAAkB,OAAO,SAElG,CAAC;AAEF,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CaseOverviewReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseOverviewReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGxE,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,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;CAC9C;AAED,MAAM,WAAW,cAAc;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1D;AAED,eAAO,MAAM,oBAAoB,EAAE,cAYlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,cAAc,EAAE,QAAQ,WAAW,KAAG,cAkBhF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,8BAA8B,EAAE,cAAc,MAAM,SAE7F,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,8BAA8B,EAAE,kBAAkB,MAAM,SAErG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,8BAA8B,EAAE,gBAAgB,MAAM,SAEjG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,8BAA8B,EAAE,sBAAsB,OAAO,SAE1G,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,8BAA8B,EAAE,oBAAoB,OAAO,SAEtG,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,8BAA8B,EAAE,kBAAkB,OAAO,SAElG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,UAAU,8BAA8B,EAAE,iBAAiB,OAAO,kBAiBxG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,UAAU,8BAA8B,EAAE,YAAY,MAAM,kBAiBhG,CAAC"}
|
|
@@ -7,8 +7,8 @@ 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 { fields, kase } from '@cee-eng/hydrajs';
|
|
11
|
-
import {
|
|
10
|
+
import { caseMetadata, fields, kase } from '@cee-eng/hydrajs';
|
|
11
|
+
import { getApiResourceObject } from '@rh-support/utils';
|
|
12
12
|
export var CaseDetailsConstants;
|
|
13
13
|
(function (CaseDetailsConstants) {
|
|
14
14
|
CaseDetailsConstants["setSelectedValue"] = "setSelectedValue";
|
|
@@ -66,18 +66,16 @@ export const setStatusUpdating = (dispatch, caseStatusUpdating) => {
|
|
|
66
66
|
export const setTypeUpdating = (dispatch, caseTypeUpdating) => {
|
|
67
67
|
dispatch({ type: CaseDetailsConstants.setUpdating, payload: { caseTypeUpdating } });
|
|
68
68
|
};
|
|
69
|
-
export const fetchAllStatuses = (dispatch,
|
|
70
|
-
var _a;
|
|
69
|
+
export const fetchAllStatuses = (dispatch, isSecureSupport) => __awaiter(void 0, void 0, void 0, function* () {
|
|
71
70
|
dispatch({
|
|
72
71
|
type: CaseDetailsConstants.getCaseStatuses,
|
|
73
72
|
payload: { allCaseStatuses: getApiResourceObject([], true) },
|
|
74
73
|
});
|
|
75
74
|
try {
|
|
76
|
-
const
|
|
77
|
-
const allCaseStatuses = (_a = picklists.Status) !== null && _a !== void 0 ? _a : [];
|
|
75
|
+
const caseStatusesResponse = yield caseMetadata.getStatuses(isSecureSupport);
|
|
78
76
|
dispatch({
|
|
79
77
|
type: CaseDetailsConstants.getCaseStatuses,
|
|
80
|
-
payload: { allCaseStatuses: getApiResourceObject(
|
|
78
|
+
payload: { allCaseStatuses: getApiResourceObject(caseStatusesResponse.items) },
|
|
81
79
|
});
|
|
82
80
|
}
|
|
83
81
|
catch (e) {
|