@rh-support/troubleshoot 2.6.340 → 2.6.349
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 +1 -1
- 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 +10 -39
- 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 +45 -76
- 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 +10 -21
- 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 +57 -132
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +4 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +58 -93
- 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 +91 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +33 -78
- 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 +153 -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 +137 -74
- 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 +263 -211
- 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 +57 -123
- 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 +30 -107
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +7 -10
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +1 -2
- 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.js +2 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +7 -8
- 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 -22
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +7 -9
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +18 -13
- 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 +3 -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 +18 -16
- 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.js +2 -2
- 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 +16 -20
- 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 +62 -135
- 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.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
- 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 -21
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +34 -210
- 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 -4
- 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 -116
- 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 -160
- 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 +12 -11
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -11
- 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/case.css +202 -60
- 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 -121
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +7 -30
- 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 +2 -3
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +15 -98
- 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 -50
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +99 -270
- 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 -7
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +0 -17
- 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 -103
- 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 -109
- 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/getParentId.d.ts +0 -2
- package/lib/esm/graphql/queries/getParentId.d.ts.map +0 -1
- package/lib/esm/graphql/queries/getParentId.js +0 -16
- package/lib/esm/graphql/queries/index.d.ts +0 -3
- package/lib/esm/graphql/queries/index.d.ts.map +0 -1
- package/lib/esm/graphql/queries/index.js +0 -2
- package/lib/esm/graphql/schemas/escalation.d.ts +0 -88
- 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/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 -21
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,UAAkB,EAClB,GAAG,QAAQ,EACd,EAAE,MAAM,qBA8BR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { CaseDiagnosticsStatus } from '@cee-eng/hydrajs/@types/api/pcm/preCaseDiagnostics';
|
|
2
2
|
import { ISlowUploadDetectionConfig } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
3
|
-
import { ApolloQueryClient } from '@rh-support/utils';
|
|
4
3
|
import { AnalysisStatusConstants, AttachmentReducerDispatchType, IAnalysisResults, ICaseFiles, IFileLocal, IUploadMetadata, UploadStatusConstants } from './AttachmentReducer';
|
|
5
4
|
export declare const onDrop: (dispatchToAttachmentReducer: AttachmentReducerDispatchType, isSessionId: boolean, isPrivate?: boolean) => (acceptedFiles: File[]) => void;
|
|
6
5
|
export declare const isUploadingOnSession: (status: string) => status is UploadStatusConstants.uploadingOnSession;
|
|
7
6
|
export declare const isUploadingOnCase: (status: string) => status is UploadStatusConstants.uploadingOnCase;
|
|
8
|
-
export declare const isAttachedOnCase: (status: string) => status is UploadStatusConstants.attachedOnCase;
|
|
9
7
|
export declare const isVerifyingSessionUpload: (status: string) => status is UploadStatusConstants.verifyingSessionUpload;
|
|
10
8
|
export declare const isVerifyingCaseUpload: (status: string) => status is UploadStatusConstants.verifyingCaseUpload;
|
|
11
9
|
export declare const isRestoredFromSession: (status: string) => status is UploadStatusConstants.restoredFromSession;
|
|
@@ -28,20 +26,10 @@ export declare const isFileDeleted: (status: string) => status is UploadStatusCo
|
|
|
28
26
|
export declare const hasUploadedSomeAttachments: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
29
27
|
export declare const hasAnalysedSomeAttachments: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
30
28
|
export declare const hasSomeUnUploadedAttachments: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Files still queued to start uploading. Aborted/failed are terminal and must not
|
|
33
|
-
* block post-upload discussion refresh when other files in the batch succeeded.
|
|
34
|
-
*/
|
|
35
|
-
export declare const hasQueuedAttachmentUploads: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
36
|
-
/** Aborted/failed rows should stay in the upload panel until the user clicks Remove. */
|
|
37
|
-
export declare const hasAbortedOrFailedAttachments: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
38
|
-
/** True when at least one non-deleted file remains in the upload queue (UI visibility). */
|
|
39
29
|
export declare const hasSomeSelectedFiles: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
40
30
|
export declare const isUploadingAttachment: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
41
31
|
export declare const isAnalysingAnyAttachment: (selectedLocalFiles: IFileLocal[]) => boolean;
|
|
42
32
|
export declare const canShowProgressBar: (file: IFileLocal) => boolean;
|
|
43
|
-
/** Case discussion: show radial progress while queued (attachedOnCase) or actively uploading. */
|
|
44
|
-
export declare const shouldShowUploadProgressIndicator: (file: IFileLocal, isSessionUpload: boolean) => boolean;
|
|
45
33
|
export declare const shouldHideDescription: (file: IFileLocal, isSessionUpload: boolean) => boolean;
|
|
46
34
|
export declare const isUploadOnTrack: (file: IFileLocal) => boolean;
|
|
47
35
|
export declare const isUploadedAndAnalyzed: (file: IFileLocal) => boolean;
|
|
@@ -49,34 +37,30 @@ export declare const isUploadedAndAnalysisFailed: (file: IFileLocal) => boolean;
|
|
|
49
37
|
export declare const isUploadedSuccessfully: (file: IFileLocal) => string;
|
|
50
38
|
export declare const isUploadedAndAnalysisSkipped: (file: IFileLocal) => boolean;
|
|
51
39
|
export declare const updateUploadMetadata: (dispatch: AttachmentReducerDispatchType, fileIndexToEdit: number, newUploadMetadata: Partial<IUploadMetadata>) => void;
|
|
52
|
-
export declare const uploadAllFiles: ({ dispatch, idToUploadTo, caseFiles, needsAnalyzing, isSessionId, slowUploadConfig,
|
|
40
|
+
export declare const uploadAllFiles: ({ dispatch, idToUploadTo, caseFiles, isSecureSupport, needsAnalyzing, isSessionId, slowUploadConfig, }: {
|
|
53
41
|
dispatch: AttachmentReducerDispatchType;
|
|
54
42
|
idToUploadTo: string;
|
|
55
43
|
caseFiles: ICaseFiles;
|
|
44
|
+
isSecureSupport: boolean;
|
|
56
45
|
needsAnalyzing?: boolean;
|
|
57
46
|
isSessionId?: boolean;
|
|
58
47
|
slowUploadConfig?: ISlowUploadDetectionConfig;
|
|
59
|
-
apolloClient?: ApolloQueryClient;
|
|
60
|
-
caseSalesforceId?: string;
|
|
61
|
-
onCaseFileUploaded?: () => void;
|
|
62
48
|
}) => Promise<void>;
|
|
63
|
-
export declare const uploadFile: ({ dispatch, idToUploadTo, localFile, originalFile, index, needsAnalyzing, isSessionId, slowUploadConfig,
|
|
49
|
+
export declare const uploadFile: ({ dispatch, idToUploadTo, localFile, originalFile, index, isSecureSupport, needsAnalyzing, isSessionId, slowUploadConfig, }: {
|
|
64
50
|
dispatch: AttachmentReducerDispatchType;
|
|
65
51
|
idToUploadTo: string;
|
|
66
52
|
localFile: IFileLocal;
|
|
67
53
|
originalFile: File;
|
|
68
54
|
index: number;
|
|
55
|
+
isSecureSupport: boolean;
|
|
69
56
|
needsAnalyzing?: boolean;
|
|
70
57
|
isSessionId?: boolean;
|
|
71
58
|
slowUploadConfig?: ISlowUploadDetectionConfig;
|
|
72
|
-
apolloClient?: ApolloQueryClient;
|
|
73
|
-
caseSalesforceId?: string;
|
|
74
|
-
onCaseFileUploaded?: () => void;
|
|
75
59
|
}) => Promise<void>;
|
|
76
60
|
export declare function doSosReportAnalysisForAllFiles(dispatch: any, idToUploadTo: string, localFiles: IFileLocal[], isSessionId: boolean): Promise<void>;
|
|
77
61
|
export declare function doSosReportAnalysisForFile(dispatch: any, idToUploadTo: string, attachmentId: string, localFile: IFileLocal, isSessionId: boolean, fileIndex: number, fileUploadStatus?: UploadStatusConstants): Promise<void>;
|
|
78
62
|
export declare function computeAnalysisResults(idToUploadTo: string, attachmentId: string, fileSize: number, isSessionId: boolean, listener: (status: CaseDiagnosticsStatus) => void): Promise<IAnalysisResults>;
|
|
79
|
-
export declare function moveSessionAttachmentToCase(dispatch: any, caseNumber: string, sessionId: string, localFile: IFileLocal, fileIndex: number
|
|
63
|
+
export declare function moveSessionAttachmentToCase(dispatch: any, caseNumber: string, sessionId: string, localFile: IFileLocal, fileIndex: number): Promise<void>;
|
|
80
64
|
export declare function restoreFilesFromSession(dispatch: any, sessionId: string): Promise<void>;
|
|
81
65
|
export declare function isFileAnalysisFailedForAllFiles(localFiles: IFileLocal[]): boolean;
|
|
82
66
|
export declare function isAnyFileAttached(localFiles: IFileLocal[]): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AASvF,OAAO,EACH,uBAAuB,EAEvB,6BAA6B,EAK7B,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,eAAe,EAMf,qBAAqB,EACxB,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,MAAM,GACd,6BAA6B,6BAA6B,EAAE,aAAa,OAAO,EAAE,mBAAiB,MACnG,eAAe,IAAI,EAAE,SA+BrB,CAAC;AAiB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,UAAU,EAAE,UAAU,EAAE,WAKzD;AAED,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU,KAAG,OAShE,CAAC;AAKF,eAAO,MAAM,2BAA2B,UAOvC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,UAAU,EAAE,YAE9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAQ,SAOvC,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 { Config, pcm, sessionAttachments } from '@cee-eng/hydrajs';
|
|
10
|
+
import { caseAttachments, Config, pcm, sessionAttachments } from '@cee-eng/hydrajs';
|
|
11
11
|
import { ToastNotification } from '@rh-support/components';
|
|
12
|
-
import {
|
|
12
|
+
import { getText } from '@rh-support/utils';
|
|
13
13
|
import find from 'lodash/find';
|
|
14
14
|
import forEach from 'lodash/forEach';
|
|
15
15
|
import includes from 'lodash/includes';
|
|
@@ -62,7 +62,6 @@ const getFileAccessDetails = (file) => __awaiter(void 0, void 0, void 0, functio
|
|
|
62
62
|
});
|
|
63
63
|
export const isUploadingOnSession = (status) => status === UploadStatusConstants.uploadingOnSession;
|
|
64
64
|
export const isUploadingOnCase = (status) => status === UploadStatusConstants.uploadingOnCase;
|
|
65
|
-
export const isAttachedOnCase = (status) => status === UploadStatusConstants.attachedOnCase;
|
|
66
65
|
export const isVerifyingSessionUpload = (status) => status === UploadStatusConstants.verifyingSessionUpload;
|
|
67
66
|
export const isVerifyingCaseUpload = (status) => status === UploadStatusConstants.verifyingCaseUpload;
|
|
68
67
|
export const isRestoredFromSession = (status) => status === UploadStatusConstants.restoredFromSession;
|
|
@@ -87,35 +86,16 @@ export const hasAnalysedSomeAttachments = (selectedLocalFiles) => !isEmpty(find(
|
|
|
87
86
|
export const hasSomeUnUploadedAttachments = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => !isUploading(localFile.uploadProgress.uploadStatus) &&
|
|
88
87
|
!isUploadComplete(localFile.uploadProgress.uploadStatus) &&
|
|
89
88
|
!isFileDeleted(localFile.uploadProgress.uploadStatus)));
|
|
90
|
-
|
|
91
|
-
* Files still queued to start uploading. Aborted/failed are terminal and must not
|
|
92
|
-
* block post-upload discussion refresh when other files in the batch succeeded.
|
|
93
|
-
*/
|
|
94
|
-
export const hasQueuedAttachmentUploads = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => !isUploading(localFile.uploadProgress.uploadStatus) &&
|
|
95
|
-
!isUploadComplete(localFile.uploadProgress.uploadStatus) &&
|
|
96
|
-
!isFileDeleted(localFile.uploadProgress.uploadStatus) &&
|
|
97
|
-
!isUploadAborted(localFile.uploadProgress.uploadStatus) &&
|
|
98
|
-
!isUploadFailed(localFile.uploadProgress.uploadStatus)));
|
|
99
|
-
/** Aborted/failed rows should stay in the upload panel until the user clicks Remove. */
|
|
100
|
-
export const hasAbortedOrFailedAttachments = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => isUploadAborted(localFile.uploadProgress.uploadStatus) ||
|
|
101
|
-
isUploadFailed(localFile.uploadProgress.uploadStatus)));
|
|
102
|
-
/** True when at least one non-deleted file remains in the upload queue (UI visibility). */
|
|
103
|
-
export const hasSomeSelectedFiles = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => !isFileDeleted(localFile.uploadProgress.uploadStatus)));
|
|
89
|
+
export const hasSomeSelectedFiles = (selectedLocalFiles) => !isEmpty(selectedLocalFiles);
|
|
104
90
|
export const isUploadingAttachment = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => isUploading(localFile.uploadProgress.uploadStatus)));
|
|
105
91
|
export const isAnalysingAnyAttachment = (selectedLocalFiles) => !isEmpty(find(selectedLocalFiles, (localFile) => isAnalysingFile(localFile.analysisMetadata.analysisStatus)));
|
|
106
92
|
export const canShowProgressBar = (file) => isUploading(file.uploadProgress.uploadStatus) || isAnalysingFile(file.analysisMetadata.analysisStatus);
|
|
107
|
-
/** Case discussion: show radial progress while queued (attachedOnCase) or actively uploading. */
|
|
108
|
-
export const shouldShowUploadProgressIndicator = (file, isSessionUpload) => isUploading(file.uploadProgress.uploadStatus) ||
|
|
109
|
-
(!isSessionUpload && isAttachedOnCase(file.uploadProgress.uploadStatus));
|
|
110
93
|
export const shouldHideDescription = (file, isSessionUpload) => !file.uploadability.ableToUpload ||
|
|
111
94
|
isUploading(file.uploadProgress.uploadStatus) ||
|
|
112
95
|
(!isSessionUpload &&
|
|
113
|
-
(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
(file.uploadability.ableToUpload &&
|
|
117
|
-
file.uploadProgress.percentUploaded > 0 &&
|
|
118
|
-
(file.description || '').length === 0) ||
|
|
96
|
+
((file.uploadability.ableToUpload &&
|
|
97
|
+
file.uploadProgress.percentUploaded > 0 &&
|
|
98
|
+
(file.description || '').length === 0) ||
|
|
119
99
|
isUploadComplete(file.uploadProgress.uploadStatus)));
|
|
120
100
|
export const isUploadOnTrack = (file) => !isUploadFailed(file.uploadProgress.uploadStatus) &&
|
|
121
101
|
!isUploadAborted(file.uploadProgress.uploadStatus) &&
|
|
@@ -130,54 +110,30 @@ export const isUploadedAndAnalysisSkipped = (file) => isSessionUploadComplete(fi
|
|
|
130
110
|
export const updateUploadMetadata = (dispatch, fileIndexToEdit, newUploadMetadata) => {
|
|
131
111
|
udpateFileUploadMetadata(dispatch, newUploadMetadata, fileIndexToEdit);
|
|
132
112
|
};
|
|
133
|
-
export const uploadAllFiles = (_a) => __awaiter(void 0, [_a], void 0, function* ({ dispatch, idToUploadTo, caseFiles,
|
|
134
|
-
|
|
135
|
-
needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient, caseSalesforceId, onCaseFileUploaded, }) {
|
|
136
|
-
const eligibleIndices = [];
|
|
137
|
-
caseFiles.selectedLocalFiles.forEach((localFile, index) => {
|
|
113
|
+
export const uploadAllFiles = (_a) => __awaiter(void 0, [_a], void 0, function* ({ dispatch, idToUploadTo, caseFiles, isSecureSupport, needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, }) {
|
|
114
|
+
forEach(caseFiles.selectedLocalFiles, (localFile, index) => __awaiter(void 0, void 0, void 0, function* () {
|
|
138
115
|
const fileStatus = new FileStatusHelper(localFile);
|
|
139
116
|
if (fileStatus.isUploadComplete() ||
|
|
140
117
|
fileStatus.isAnalysingFile() ||
|
|
141
118
|
fileStatus.isAnalysisFailed() ||
|
|
142
119
|
fileStatus.isUploading() ||
|
|
143
120
|
fileStatus.isVerifyingUpload() ||
|
|
144
|
-
fileStatus.isFileDeleted())
|
|
121
|
+
fileStatus.isFileDeleted())
|
|
145
122
|
return;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
uploadFile({
|
|
157
|
-
dispatch,
|
|
158
|
-
idToUploadTo,
|
|
159
|
-
localFile,
|
|
160
|
-
originalFile: caseFiles.selectedOriginalFiles[index],
|
|
161
|
-
index,
|
|
162
|
-
needsAnalyzing,
|
|
163
|
-
isSessionId,
|
|
164
|
-
slowUploadConfig,
|
|
165
|
-
apolloClient,
|
|
166
|
-
caseSalesforceId,
|
|
167
|
-
onCaseFileUploaded,
|
|
168
|
-
});
|
|
123
|
+
uploadFile({
|
|
124
|
+
dispatch,
|
|
125
|
+
idToUploadTo,
|
|
126
|
+
localFile,
|
|
127
|
+
originalFile: caseFiles.selectedOriginalFiles[index],
|
|
128
|
+
index,
|
|
129
|
+
isSecureSupport,
|
|
130
|
+
needsAnalyzing,
|
|
131
|
+
isSessionId,
|
|
132
|
+
slowUploadConfig,
|
|
169
133
|
});
|
|
170
|
-
};
|
|
171
|
-
if (isUploadingAttachment(caseFiles.selectedLocalFiles)) {
|
|
172
|
-
startEligibleUploads();
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
startEligibleUploads();
|
|
134
|
+
}));
|
|
176
135
|
});
|
|
177
|
-
export const uploadFile = (_a) => __awaiter(void 0, [_a], void 0, function* ({ dispatch, idToUploadTo, localFile, originalFile, index,
|
|
178
|
-
// isSecureSupport = false, // TODO: Re-enable when Hydra/GraphQL attachment APIs support secure support again
|
|
179
|
-
needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient, caseSalesforceId, onCaseFileUploaded, }) {
|
|
180
|
-
var _b;
|
|
136
|
+
export const uploadFile = (_a) => __awaiter(void 0, [_a], void 0, function* ({ dispatch, idToUploadTo, localFile, originalFile, index, isSecureSupport, needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, }) {
|
|
181
137
|
if (!localFile.uploadability.ableToUpload) {
|
|
182
138
|
return;
|
|
183
139
|
}
|
|
@@ -194,8 +150,6 @@ needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient
|
|
|
194
150
|
Metadata: Object.assign(Object.assign(Object.assign(Object.assign({}, (localFile.description && { 'x-amz-meta-description': localFile.description })), (localFile.name && { 'x-amz-meta-fileName': localFile.name })), (localFile.size && { 'x-amz-meta-byteLength': localFile.size.toString() })), (localFile.type && { 'x-amz-meta-content-type': localFile.type })),
|
|
195
151
|
};
|
|
196
152
|
let triggerTrackSlowUpload = true;
|
|
197
|
-
// Hoisted so catch can treat S3 403-after-abort as user cancel, not a hard failure.
|
|
198
|
-
let userAborted = false;
|
|
199
153
|
try {
|
|
200
154
|
const listener = (progress, abort, isUploadingWithSlowConfig) => {
|
|
201
155
|
if (isUploadingWithSlowConfig && triggerTrackSlowUpload) {
|
|
@@ -249,81 +203,14 @@ needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient
|
|
|
249
203
|
}, putObjectRequest, listener, true, { partSize: 5 * 1024 * 1024, queueSize: 5 }, Object.assign(Object.assign({}, slowUploadConfig), { preferSlowS3Upload: Config.userConfig.preferSlowS3Upload }));
|
|
250
204
|
}
|
|
251
205
|
else {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
onAbort: undefined,
|
|
259
|
-
uploadStatus: UploadStatusConstants.aborted,
|
|
260
|
-
};
|
|
261
|
-
abortUpload === null || abortUpload === void 0 ? void 0 : abortUpload();
|
|
262
|
-
updateUploadMetadata(dispatch, abortedFileIndex, abortPayload);
|
|
263
|
-
};
|
|
264
|
-
// Register abort handler immediately so Cancel works before first progress tick
|
|
265
|
-
updateUploadMetadata(dispatch, index, {
|
|
266
|
-
uploadStatus: UploadStatusConstants.uploadingOnCase,
|
|
267
|
-
percentUploaded: 0,
|
|
268
|
-
uploadErrorMessage: '',
|
|
269
|
-
onAbort,
|
|
270
|
-
});
|
|
271
|
-
attachmentId = yield uploadCaseAttachment(idToUploadTo, originalFile, (percent) => {
|
|
272
|
-
if (userAborted)
|
|
273
|
-
return;
|
|
274
|
-
const verifyingUpdate = percent === 100;
|
|
275
|
-
updateUploadMetadata(dispatch, index, {
|
|
276
|
-
uploadStatus: verifyingUpdate
|
|
277
|
-
? UploadStatusConstants.verifyingCaseUpload
|
|
278
|
-
: UploadStatusConstants.uploadingOnCase,
|
|
279
|
-
percentUploaded: percent,
|
|
280
|
-
uploadErrorMessage: '',
|
|
281
|
-
onAbort: verifyingUpdate ? undefined : onAbort,
|
|
282
|
-
});
|
|
283
|
-
}, (abort) => {
|
|
284
|
-
abortUpload = abort;
|
|
285
|
-
if (userAborted) {
|
|
286
|
-
abort();
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
updateUploadMetadata(dispatch, index, {
|
|
290
|
-
uploadStatus: UploadStatusConstants.uploadingOnCase,
|
|
291
|
-
onAbort,
|
|
292
|
-
});
|
|
293
|
-
}, undefined, localFile.uploadProgress.multipartResumeState
|
|
294
|
-
? {
|
|
295
|
-
attachmentId: localFile.uploadProgress.multipartResumeState.attachmentId,
|
|
296
|
-
uploadId: localFile.uploadProgress.multipartResumeState.uploadId,
|
|
297
|
-
parts: localFile.uploadProgress.multipartResumeState.parts,
|
|
298
|
-
completedParts: localFile.uploadProgress.multipartResumeState.completedParts,
|
|
299
|
-
}
|
|
300
|
-
: undefined, (initAttachmentId) => {
|
|
301
|
-
updateAttachmentIdForFile(dispatch, initAttachmentId, index);
|
|
302
|
-
});
|
|
303
|
-
if (userAborted) {
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
if (apolloClient && caseSalesforceId) {
|
|
307
|
-
updateUploadMetadata(dispatch, index, {
|
|
308
|
-
uploadStatus: UploadStatusConstants.verifyingCaseUpload,
|
|
309
|
-
percentUploaded: 100,
|
|
310
|
-
onAbort: undefined,
|
|
311
|
-
});
|
|
312
|
-
yield pollAttachmentUploadStatus(apolloClient, caseSalesforceId, attachmentId);
|
|
313
|
-
}
|
|
206
|
+
attachmentId = yield caseAttachments.uploadAttachmentS3(idToUploadTo, {
|
|
207
|
+
description: localFile.description,
|
|
208
|
+
fileName: localFile.name,
|
|
209
|
+
isPrivate: localFile.isPrivate,
|
|
210
|
+
size: localFile.size,
|
|
211
|
+
}, putObjectRequest, listener, true, { partSize: 5 * 1024 * 1024, queueSize: 5 }, isSecureSupport, Object.assign(Object.assign({}, slowUploadConfig), { preferSlowS3Upload: Config.userConfig.preferSlowS3Upload }));
|
|
314
212
|
}
|
|
315
213
|
attachmentId && updateAttachmentIdForFile(dispatch, attachmentId, index);
|
|
316
|
-
if (!isSessionId && attachmentId) {
|
|
317
|
-
// Hide from upload queue without shifting indices of in-flight siblings, then refresh discussion
|
|
318
|
-
updateUploadMetadata(dispatch, index, {
|
|
319
|
-
uploadStatus: UploadStatusConstants.deleted,
|
|
320
|
-
uploadErrorMessage: '',
|
|
321
|
-
percentUploaded: 100,
|
|
322
|
-
onAbort: undefined,
|
|
323
|
-
});
|
|
324
|
-
onCaseFileUploaded === null || onCaseFileUploaded === void 0 ? void 0 : onCaseFileUploaded();
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
214
|
const uploadPayload = {
|
|
328
215
|
uploadStatus: isSessionId ? UploadStatusConstants.uploadedOnSession : UploadStatusConstants.uploadedOnCase,
|
|
329
216
|
uploadErrorMessage: '',
|
|
@@ -337,24 +224,8 @@ needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient
|
|
|
337
224
|
}
|
|
338
225
|
}
|
|
339
226
|
catch (error) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
(error instanceof CaseAttachmentUploadError && error.attachmentId) ||
|
|
343
|
-
undefined;
|
|
344
|
-
if (attachmentIdFromError) {
|
|
345
|
-
updateAttachmentIdForFile(dispatch, attachmentIdFromError, index);
|
|
346
|
-
}
|
|
347
|
-
if (isUserAbort) {
|
|
348
|
-
if (!isSessionId && attachmentIdFromError) {
|
|
349
|
-
try {
|
|
350
|
-
yield deleteCaseAttachment(idToUploadTo, attachmentIdFromError);
|
|
351
|
-
}
|
|
352
|
-
catch (_c) {
|
|
353
|
-
// Best-effort: file stays in queue as ABORTED for retry
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
const resumeState = error instanceof MultipartUploadError ? error.resumeData : undefined;
|
|
357
|
-
updateUploadMetadata(dispatch, index, Object.assign({ uploadStatus: UploadStatusConstants.aborted, uploadErrorMessage: '', onAbort: undefined, percentUploaded: 0 }, (resumeState && resumeState.completedParts.length > 0 ? { multipartResumeState: resumeState } : {})));
|
|
227
|
+
if (error.message === 'Request aborted by user') {
|
|
228
|
+
// Show alert if needed
|
|
358
229
|
}
|
|
359
230
|
else {
|
|
360
231
|
console.error(error);
|
|
@@ -363,12 +234,10 @@ needsAnalyzing = false, isSessionId = false, slowUploadConfig = {}, apolloClient
|
|
|
363
234
|
? UploadStatusConstants.uploadOnSessionFailed
|
|
364
235
|
: UploadStatusConstants.uploadOnCaseFailed,
|
|
365
236
|
uploadErrorMessage: error.message,
|
|
237
|
+
percentUploaded: 0,
|
|
366
238
|
onAbort: undefined,
|
|
367
|
-
multipartResumeState: error instanceof MultipartUploadError ? error.resumeData : undefined,
|
|
368
239
|
};
|
|
369
|
-
|
|
370
|
-
uploadErrorPayload.percentUploaded = 0;
|
|
371
|
-
}
|
|
240
|
+
updateAttachmentIdForFile(dispatch, null, index);
|
|
372
241
|
updateUploadMetadata(dispatch, index, uploadErrorPayload);
|
|
373
242
|
}
|
|
374
243
|
}
|
|
@@ -452,10 +321,8 @@ export function computeAnalysisResults(idToUploadTo, attachmentId, fileSize, isS
|
|
|
452
321
|
return analysisResults;
|
|
453
322
|
});
|
|
454
323
|
}
|
|
455
|
-
|
|
456
|
-
export function moveSessionAttachmentToCase(dispatch, caseNumber, sessionId, localFile, fileIndex, apolloClient, caseSalesforceId) {
|
|
324
|
+
export function moveSessionAttachmentToCase(dispatch, caseNumber, sessionId, localFile, fileIndex) {
|
|
457
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
var _a, _b, _c, _d, _e;
|
|
459
326
|
if (!caseNumber || !sessionId || !localFile.attachmentId)
|
|
460
327
|
return;
|
|
461
328
|
const currentUploadPayload = {
|
|
@@ -463,49 +330,9 @@ export function moveSessionAttachmentToCase(dispatch, caseNumber, sessionId, loc
|
|
|
463
330
|
uploadStatus: UploadStatusConstants.movingToCase,
|
|
464
331
|
};
|
|
465
332
|
updateUploadMetadata(dispatch, fileIndex, currentUploadPayload);
|
|
333
|
+
const fileMetadata = yield sessionAttachments.moveSessionAttachmentsToCase(sessionId, [localFile.attachmentId], caseNumber);
|
|
466
334
|
try {
|
|
467
|
-
|
|
468
|
-
if (apolloClient && !resolvedCaseSalesforceId) {
|
|
469
|
-
const caseDetails = yield fetchCaseDetailsByCaseNumber(apolloClient, caseNumber);
|
|
470
|
-
resolvedCaseSalesforceId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.id;
|
|
471
|
-
}
|
|
472
|
-
const totalChunks = Math.ceil(localFile.size / SCT_PART_SIZE);
|
|
473
|
-
const moveResponse = yield sessionAttachments.moveSessionAttachmentsToCaseSCT(sessionId, {
|
|
474
|
-
caseNumber,
|
|
475
|
-
attachments: [
|
|
476
|
-
{
|
|
477
|
-
attachmentId: localFile.attachmentId,
|
|
478
|
-
fileName: localFile.name,
|
|
479
|
-
fileSize: String(localFile.size),
|
|
480
|
-
totalChunks: String(totalChunks),
|
|
481
|
-
clientId: 'pcm',
|
|
482
|
-
description: localFile.description || '',
|
|
483
|
-
},
|
|
484
|
-
],
|
|
485
|
-
});
|
|
486
|
-
const sctAttachmentId = (_a = moveResponse === null || moveResponse === void 0 ? void 0 : moveResponse[0]) === null || _a === void 0 ? void 0 : _a.attachmentId;
|
|
487
|
-
if (!sctAttachmentId) {
|
|
488
|
-
throw new Error('Missing attachmentId from SCT move response');
|
|
489
|
-
}
|
|
490
|
-
if (!resolvedCaseSalesforceId || !apolloClient) {
|
|
491
|
-
updateUploadMetadata(dispatch, fileIndex, {
|
|
492
|
-
uploadStatus: UploadStatusConstants.uploadedOnCase,
|
|
493
|
-
});
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
const { data: docLinkData } = yield apolloClient.query({
|
|
497
|
-
query: GET_CONTENT_DOCUMENT_IDS,
|
|
498
|
-
variables: { linkedEntityId: { eq: resolvedCaseSalesforceId } },
|
|
499
|
-
fetchPolicy: 'network-only',
|
|
500
|
-
});
|
|
501
|
-
const contentDocumentIds = ((_e = (_d = (_c = (_b = docLinkData === null || docLinkData === void 0 ? void 0 : docLinkData.redhat_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.RedHatSupportContentDocumentLink) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : []).map((edge) => edge.node.ContentDocumentId.value);
|
|
502
|
-
if (contentDocumentIds.length === 0) {
|
|
503
|
-
updateUploadMetadata(dispatch, fileIndex, {
|
|
504
|
-
uploadStatus: UploadStatusConstants.uploadedOnCase,
|
|
505
|
-
});
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
yield pollContentVersionStatus(apolloClient, contentDocumentIds, sctAttachmentId);
|
|
335
|
+
yield sessionAttachments.pollFileMoveProcess(sessionId, fileMetadata[0].id, fileMetadata[0]);
|
|
509
336
|
updateUploadMetadata(dispatch, fileIndex, {
|
|
510
337
|
uploadStatus: UploadStatusConstants.uploadedOnCase,
|
|
511
338
|
});
|
|
@@ -605,13 +432,10 @@ export const isAnyFileDiagnosticsAttachment = (selectedLocalFiles) => {
|
|
|
605
432
|
return selectedLocalFiles.some(isDiagnosticsAttachment);
|
|
606
433
|
};
|
|
607
434
|
export const trackSlowUpload = (dispatch) => {
|
|
608
|
-
// show an alert
|
|
609
|
-
//track in pendo
|
|
610
435
|
dispatch({
|
|
611
436
|
type: AttachmentReducerConstants.setShowUploadingOnSlowConnectionMsg,
|
|
612
437
|
payload: {
|
|
613
438
|
showUploadingOnSlowConnectionMsg: true,
|
|
614
439
|
},
|
|
615
440
|
});
|
|
616
|
-
pendoTrackEvent('PCM-Next > S3-Slow-Upload');
|
|
617
441
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CaseDiagnosticsStatus, ICaseDiagnosticsResponse } from '@cee-eng/hydrajs/@types/api/pcm/preCaseDiagnostics';
|
|
2
2
|
import { Report } from '@cee-eng/hydrajs/@types/models/insights';
|
|
3
3
|
import { IAction } from '@rh-support/types/shared';
|
|
4
|
-
import { IMultipartResumeData } from '@rh-support/utils';
|
|
5
4
|
export declare enum AttachmentReducerConstants {
|
|
6
5
|
caseFileSelected = "caseFileSelected",
|
|
7
6
|
caseLocalFileEdited = "caseLocalFileEdited",
|
|
@@ -11,8 +10,7 @@ export declare enum AttachmentReducerConstants {
|
|
|
11
10
|
updateAttachmentIdForFile = "updateAttachmentIdForFile",
|
|
12
11
|
updateAnalysisMetadata = "updateAnalysisMetadata",
|
|
13
12
|
udpateFileUploadMetadata = "udpateFileUploadMetadata",
|
|
14
|
-
setShowUploadingOnSlowConnectionMsg = "setShowUploadingOnSlowConnectionMsg"
|
|
15
|
-
clearCompletedAttachments = "clearCompletedAttachments"
|
|
13
|
+
setShowUploadingOnSlowConnectionMsg = "setShowUploadingOnSlowConnectionMsg"
|
|
16
14
|
}
|
|
17
15
|
export declare enum UploadStatusConstants {
|
|
18
16
|
attachedOnCase = "ATTACHED_ON_CASE",
|
|
@@ -55,7 +53,6 @@ export interface IUploadMetadata {
|
|
|
55
53
|
uploadErrorMessage: string;
|
|
56
54
|
onAbort: (abortedFileIndex: number) => void;
|
|
57
55
|
percentUploaded: number;
|
|
58
|
-
multipartResumeState?: IMultipartResumeData;
|
|
59
56
|
}
|
|
60
57
|
export interface IAnalysisMetadata {
|
|
61
58
|
analysisErrorMesssage?: string;
|
|
@@ -105,7 +102,6 @@ export declare const onFilesSelect: (dispatch: AttachmentReducerDispatchType, ca
|
|
|
105
102
|
export declare const onFileEdit: (dispatch: AttachmentReducerDispatchType, editedLocalFile: IFileLocal, fileIndexToEdit: number) => void;
|
|
106
103
|
export declare const onFileRemove: (dispatch: AttachmentReducerDispatchType, fileIndexToRemove: number) => void;
|
|
107
104
|
export declare const resetAttachment: (dispatch: AttachmentReducerDispatchType) => void;
|
|
108
|
-
export declare const clearCompletedAttachments: (dispatch: AttachmentReducerDispatchType) => void;
|
|
109
105
|
export declare const onIncludeExcludeResults: (dispatch: AttachmentReducerDispatchType, includeResults: boolean) => void;
|
|
110
106
|
export declare const updateAttachmentIdForFile: (dispatch: AttachmentReducerDispatchType, attachmentId: string, fileIndexToEdit: number) => void;
|
|
111
107
|
export declare const updateAnalysisMetadata: (dispatch: AttachmentReducerDispatchType, analysisMetadata: Partial<IAnalysisMetadata>, fileIndexToEdit: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentReducer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AACrH,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentReducer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AACrH,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAMnD,oBAAY,0BAA0B;IAClC,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;IACrD,mCAAmC,wCAAwC;CAC9E;AAED,oBAAY,qBAAqB;IAC7B,cAAc,qBAAqB;IACnC,iBAAiB,wBAAwB;IACzC,eAAe,sBAAsB;IACrC,kBAAkB,yBAAyB;IAC3C,mBAAmB,0BAA0B;IAC7C,sBAAsB,6BAA6B;IACnD,cAAc,qBAAqB;IACnC,iBAAiB,wBAAwB;IACzC,kBAAkB,0BAA0B;IAC5C,qBAAqB,6BAA6B;IAClD,YAAY,mBAAmB;IAC/B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,mBAAmB,wBAAwB;CAC9C;AAED,oBAAY,uBAAuB;IAC/B,kBAAkB,yBAAyB;IAC3C,iBAAiB,yBAAyB;IAC1C,gBAAgB,sBAAsB;IACtC,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;CACvC;AAED,MAAM,WAAW,aAAa;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AACD,MAAM,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,EAC5C,iBAAiB,MAAM,SAM1B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,UAAU,6BAA6B,EACvC,gBAAgB,OAAO,CAAC,eAAe,CAAC,EACxC,iBAAiB,MAAM,SAM1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pcm } from '@cee-eng/hydrajs';
|
|
2
2
|
import forEach from 'lodash/forEach';
|
|
3
|
-
import { isAnalysingAnyAttachment,
|
|
3
|
+
import { isAnalysingAnyAttachment, isUploadingAttachment } from './AttachmentHelper';
|
|
4
4
|
// Constants
|
|
5
5
|
export var AttachmentReducerConstants;
|
|
6
6
|
(function (AttachmentReducerConstants) {
|
|
@@ -13,7 +13,6 @@ export var AttachmentReducerConstants;
|
|
|
13
13
|
AttachmentReducerConstants["updateAnalysisMetadata"] = "updateAnalysisMetadata";
|
|
14
14
|
AttachmentReducerConstants["udpateFileUploadMetadata"] = "udpateFileUploadMetadata";
|
|
15
15
|
AttachmentReducerConstants["setShowUploadingOnSlowConnectionMsg"] = "setShowUploadingOnSlowConnectionMsg";
|
|
16
|
-
AttachmentReducerConstants["clearCompletedAttachments"] = "clearCompletedAttachments";
|
|
17
16
|
})(AttachmentReducerConstants || (AttachmentReducerConstants = {}));
|
|
18
17
|
export var UploadStatusConstants;
|
|
19
18
|
(function (UploadStatusConstants) {
|
|
@@ -60,7 +59,6 @@ export const initialAttachmentState = {
|
|
|
60
59
|
includeAnalysisResults: true,
|
|
61
60
|
showUploadingOnSlowConnectionMsg: false,
|
|
62
61
|
};
|
|
63
|
-
const getLocalFileAtIndex = (selectedLocalFiles, index) => index >= 0 && index < selectedLocalFiles.length ? selectedLocalFiles[index] : undefined;
|
|
64
62
|
export const attachmentReducer = (pState, action) => {
|
|
65
63
|
switch (action.type) {
|
|
66
64
|
case AttachmentReducerConstants.caseFileSelected: {
|
|
@@ -80,9 +78,6 @@ export const attachmentReducer = (pState, action) => {
|
|
|
80
78
|
case AttachmentReducerConstants.caseLocalFileEdited: {
|
|
81
79
|
const editedLocalFile = action.payload.editedLocalFile;
|
|
82
80
|
const indexToEdit = action.payload.fileIndexToEdit;
|
|
83
|
-
if (!getLocalFileAtIndex(pState.caseFiles.selectedLocalFiles, indexToEdit)) {
|
|
84
|
-
return pState;
|
|
85
|
-
}
|
|
86
81
|
const newState = Object.assign({}, pState);
|
|
87
82
|
const newCaseFiles = Object.assign({}, newState.caseFiles);
|
|
88
83
|
const selectedLocalFiles = [...newState.caseFiles.selectedLocalFiles];
|
|
@@ -134,9 +129,6 @@ export const attachmentReducer = (pState, action) => {
|
|
|
134
129
|
}
|
|
135
130
|
case AttachmentReducerConstants.updateAttachmentIdForFile: {
|
|
136
131
|
const indexToEdit = action.payload.fileIndexToEdit;
|
|
137
|
-
if (!getLocalFileAtIndex(pState.caseFiles.selectedLocalFiles, indexToEdit)) {
|
|
138
|
-
return pState;
|
|
139
|
-
}
|
|
140
132
|
const newState = Object.assign({}, pState);
|
|
141
133
|
const newCaseFiles = Object.assign({}, newState.caseFiles);
|
|
142
134
|
const selectedLocalFiles = [...newState.caseFiles.selectedLocalFiles];
|
|
@@ -147,9 +139,6 @@ export const attachmentReducer = (pState, action) => {
|
|
|
147
139
|
}
|
|
148
140
|
case AttachmentReducerConstants.updateAnalysisMetadata: {
|
|
149
141
|
const indexToEdit = action.payload.fileIndexToEdit;
|
|
150
|
-
if (!getLocalFileAtIndex(pState.caseFiles.selectedLocalFiles, indexToEdit)) {
|
|
151
|
-
return pState;
|
|
152
|
-
}
|
|
153
142
|
const newState = Object.assign({}, pState);
|
|
154
143
|
const newCaseFiles = Object.assign({}, newState.caseFiles);
|
|
155
144
|
const selectedLocalFiles = [...newState.caseFiles.selectedLocalFiles];
|
|
@@ -160,9 +149,6 @@ export const attachmentReducer = (pState, action) => {
|
|
|
160
149
|
}
|
|
161
150
|
case AttachmentReducerConstants.udpateFileUploadMetadata: {
|
|
162
151
|
const indexToEdit = action.payload.fileIndexToEdit;
|
|
163
|
-
if (!getLocalFileAtIndex(pState.caseFiles.selectedLocalFiles, indexToEdit)) {
|
|
164
|
-
return pState;
|
|
165
|
-
}
|
|
166
152
|
const newState = Object.assign({}, pState);
|
|
167
153
|
const newCaseFiles = Object.assign({}, newState.caseFiles);
|
|
168
154
|
const selectedLocalFiles = [...newState.caseFiles.selectedLocalFiles];
|
|
@@ -174,24 +160,6 @@ export const attachmentReducer = (pState, action) => {
|
|
|
174
160
|
case AttachmentReducerConstants.setShowUploadingOnSlowConnectionMsg: {
|
|
175
161
|
return Object.assign(Object.assign({}, pState), { showUploadingOnSlowConnectionMsg: action.payload.showUploadingOnSlowConnectionMsg });
|
|
176
162
|
}
|
|
177
|
-
case AttachmentReducerConstants.clearCompletedAttachments: {
|
|
178
|
-
const selectedLocalFiles = pState.caseFiles.selectedLocalFiles;
|
|
179
|
-
const selectedOriginalFiles = pState.caseFiles.selectedOriginalFiles;
|
|
180
|
-
const keptLocalFiles = [];
|
|
181
|
-
const keptOriginalFiles = [];
|
|
182
|
-
selectedLocalFiles.forEach((localFile, index) => {
|
|
183
|
-
if (!isUploadComplete(localFile.uploadProgress.uploadStatus)) {
|
|
184
|
-
keptLocalFiles.push(localFile);
|
|
185
|
-
if (selectedOriginalFiles[index]) {
|
|
186
|
-
keptOriginalFiles.push(selectedOriginalFiles[index]);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
return Object.assign(Object.assign({}, pState), { caseFiles: {
|
|
191
|
-
selectedLocalFiles: keptLocalFiles,
|
|
192
|
-
selectedOriginalFiles: keptOriginalFiles,
|
|
193
|
-
} });
|
|
194
|
-
}
|
|
195
163
|
default: {
|
|
196
164
|
return pState;
|
|
197
165
|
}
|
|
@@ -210,9 +178,6 @@ export const onFileRemove = (dispatch, fileIndexToRemove) => {
|
|
|
210
178
|
export const resetAttachment = (dispatch) => {
|
|
211
179
|
dispatch({ type: AttachmentReducerConstants.resetAttachment });
|
|
212
180
|
};
|
|
213
|
-
export const clearCompletedAttachments = (dispatch) => {
|
|
214
|
-
dispatch({ type: AttachmentReducerConstants.clearCompletedAttachments });
|
|
215
|
-
};
|
|
216
181
|
export const onIncludeExcludeResults = (dispatch, includeResults) => {
|
|
217
182
|
dispatch({ type: AttachmentReducerConstants.caseFileIncludeExclude, payload: { includeResults } });
|
|
218
183
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export interface IFileUploaderCommonProps {
|
|
2
|
+
isSecureSupport: boolean;
|
|
2
3
|
idToUploadTo: string;
|
|
3
|
-
/** Salesforce case Id from caseDetails.state — avoids an extra GetCaseByCaseNumber on upload. */
|
|
4
|
-
caseSalesforceId?: string;
|
|
5
4
|
needsAnalyzing?: boolean;
|
|
6
5
|
isSessionId: boolean;
|
|
7
6
|
autoUploadOnSelect?: boolean;
|
|
8
7
|
isPrivate?: boolean;
|
|
9
8
|
onUploadClick?: () => void;
|
|
10
|
-
/** Fired after each successful case attachment upload so discussion can refresh immediately. */
|
|
11
|
-
onCaseFileUploaded?: () => void;
|
|
12
9
|
}
|
|
13
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { IFileLocal } from './reducer/AttachmentReducer';
|
|
3
3
|
import { IFileUploaderCommonProps } from './types';
|
|
4
4
|
export declare function useFileUploader(props: IFileUploaderCommonProps): {
|
|
5
|
-
retryUpload: (indexToRetry: number) =>
|
|
5
|
+
retryUpload: (indexToRetry: number) => void;
|
|
6
6
|
editFile: (editedLocalFile: IFileLocal, fileIndexToEdit: number, changes: IFileLocal) => Promise<void>;
|
|
7
7
|
removeFile: (fileIndexToRemove: number, file: IFileLocal) => Promise<void>;
|
|
8
8
|
uploadAll: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
|
|
9
|
-
uploadFile: (fileIndex: number) =>
|
|
9
|
+
uploadFile: (fileIndex: number) => void;
|
|
10
10
|
retryAnalysis: (indexToRetry: number) => void;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=useFileUploader.d.ts.map
|