@rh-support/troubleshoot 2.6.301 → 2.6.302
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 +28 -40
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +52 -14
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +51 -31
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +50 -18
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +25 -8
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +57 -34
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +2 -0
- 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 +1 -2
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +8 -6
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +43 -30
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +76 -30
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +0 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +3 -3
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +1 -3
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +3 -4
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -17
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +19 -43
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +17 -40
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +3 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +22 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +44 -41
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +8 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +0 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +38 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +19 -59
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +16 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +110 -148
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +5 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +15 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +19 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +17 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +49 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +6 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +147 -241
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +5 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +3 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +35 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +63 -224
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +4 -5
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +18 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +7 -2
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +30 -52
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +68 -46
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +7 -5
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +37 -24
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +32 -55
- 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 +4 -7
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +4 -7
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +19 -9
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +16 -11
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +34 -40
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +13 -14
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +4 -2
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +0 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +3 -15
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +13 -37
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +30 -50
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -3
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +1 -4
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -4
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +9 -7
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +16 -16
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +3 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +5 -8
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.js +3 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +3 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +76 -4
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +50 -64
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +16 -28
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +120 -24
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +6 -7
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -9
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/graphql/index.d.ts +4 -0
- package/lib/esm/graphql/index.d.ts.map +1 -0
- package/lib/esm/graphql/index.js +3 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +2 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.js +24 -0
- package/lib/esm/graphql/mutations/index.d.ts +2 -0
- package/lib/esm/graphql/mutations/index.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/index.js +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts +2 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.js +24 -0
- package/lib/esm/graphql/queries/getParentId.d.ts +2 -0
- package/lib/esm/graphql/queries/getParentId.d.ts.map +1 -0
- package/lib/esm/graphql/queries/getParentId.js +16 -0
- package/lib/esm/graphql/queries/index.d.ts +3 -0
- package/lib/esm/graphql/queries/index.d.ts.map +1 -0
- package/lib/esm/graphql/queries/index.js +2 -0
- package/lib/esm/graphql/schemas/escalation.d.ts +84 -0
- package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/escalation.js +1 -0
- package/lib/esm/graphql/schemas/index.d.ts +2 -0
- package/lib/esm/graphql/schemas/index.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/index.js +1 -0
- package/lib/esm/hooks/useCaseComments/caseCommentMutation.d.ts +4 -0
- package/lib/esm/hooks/useCaseComments/caseCommentMutation.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/caseCommentMutation.js +12 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +4 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +55 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts +7 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/index.js +5 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +25 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.js +66 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts +80 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/types.js +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +16 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +25 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +19 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +33 -0
- package/lib/esm/hooks/useCaseHistory.d.ts +26 -0
- package/lib/esm/hooks/useCaseHistory.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseHistory.js +98 -0
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +18 -11
- package/lib/esm/models/caseHistory.d.ts +80 -0
- package/lib/esm/models/caseHistory.d.ts.map +1 -0
- package/lib/esm/models/caseHistory.js +1 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +91 -3
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +20 -2
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +5 -4
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +39 -23
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +3 -5
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +33 -46
- package/lib/esm/reducers/CaseHelpers.d.ts +3 -2
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +108 -41
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -1
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +7 -5
- package/lib/esm/reducers/CaseReducer.d.ts +30 -8
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +192 -55
- package/lib/esm/utils/TimelineUtils.d.ts +41 -0
- package/lib/esm/utils/TimelineUtils.d.ts.map +1 -0
- package/lib/esm/utils/TimelineUtils.js +134 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts +66 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseHistoryUtils.js +165 -0
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +1 -2
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
- package/package.json +7 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAppVersion,
|
|
1
|
+
import { getAppVersion, getTechnicalSupportRecordTypeId, getUserAgentForCaseMode, 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';
|
|
@@ -8,8 +8,8 @@ import unionBy from 'lodash/unionBy';
|
|
|
8
8
|
import uniqBy from 'lodash/uniqBy';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { isPhoneValid, trimAndReplacePlus } from '../components/shared/utils';
|
|
11
|
-
import {
|
|
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';
|
|
11
|
+
// import { 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, LANGUAGE_MAP, 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) => {
|
|
@@ -117,34 +117,47 @@ export const getSeverityDescription = (severity) => {
|
|
|
117
117
|
}
|
|
118
118
|
return SeverityDescription[severity];
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
120
|
+
// TODO: Re-enable cluster ID validation when cluster ID field is made mandatory again
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
122
|
+
export const isClusterIDValid = (_caseState, _allProducts) => {
|
|
123
|
+
return true;
|
|
124
|
+
// const case_details = _caseState.caseDetails;
|
|
125
|
+
// const productHasClusterID = isClusterIdEnabledForProduct(case_details.product, _allProducts);
|
|
126
|
+
//
|
|
127
|
+
// //if product doesn't have clusterId we don't need to validate value
|
|
128
|
+
// if (!productHasClusterID) return true;
|
|
129
|
+
//
|
|
130
|
+
// const majorVersion = (case_details.version && getVersion(case_details.version).major) || '';
|
|
131
|
+
// const isOpenShiftV3 = case_details.product === 'OpenShift Container Platform' && majorVersion === '3';
|
|
132
|
+
//
|
|
133
|
+
// const hasValidClusterId = () =>
|
|
134
|
+
// !isEmpty(case_details.openshiftClusterID) &&
|
|
135
|
+
// isEmpty(case_details.noClusterIdReason) &&
|
|
136
|
+
// isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
137
|
+
// isEmpty(caseState.v3ClusterName) &&
|
|
138
|
+
// !getIsClusterIdInvalid(case_details.openshiftClusterID);
|
|
139
|
+
//
|
|
140
|
+
// const hasValidReason = () =>
|
|
141
|
+
// isEmpty(case_details.openshiftClusterID) &&
|
|
142
|
+
// !isEmpty(case_details.noClusterIdReason) &&
|
|
143
|
+
// case_details.noClusterIdReason !== 'Other' &&
|
|
144
|
+
// isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
145
|
+
// isEmpty(caseState.v3ClusterName);
|
|
146
|
+
//
|
|
147
|
+
// const hasValidReasonExplanation = () =>
|
|
148
|
+
// isEmpty(case_details.openshiftClusterID) &&
|
|
149
|
+
// !isEmpty(case_details.noClusterIdReason) &&
|
|
150
|
+
// case_details.noClusterIdReason === 'Other' &&
|
|
151
|
+
// !isEmpty(case_details.noClusterIdReasonExplanation) &&
|
|
152
|
+
// case_details.noClusterIdReasonExplanation !== 'v3-cluster' &&
|
|
153
|
+
// case_details.noClusterIdReasonExplanation.length <= SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT;
|
|
154
|
+
//
|
|
155
|
+
// const hasValidV3ClusterName = () =>
|
|
156
|
+
// isEmpty(case_details.openshiftClusterID) &&
|
|
157
|
+
// !isEmpty(caseState.v3ClusterName) &&
|
|
158
|
+
// (case_details.noClusterIdReasonExplanation === 'v3-cluster' || isOpenShiftV3);
|
|
159
|
+
//
|
|
160
|
+
// return hasValidClusterId() || hasValidReason() || hasValidReasonExplanation() || hasValidV3ClusterName();
|
|
148
161
|
};
|
|
149
162
|
// Add a !isEmpty to to make any KTQuestion Mandatory in isCaseStateValid
|
|
150
163
|
export const isCaseStateValid = (caseState, loggedInUserRights) => {
|
|
@@ -169,9 +182,7 @@ export const isCaseStateValid = (caseState, loggedInUserRights) => {
|
|
|
169
182
|
!isEmpty(case_details.accountNumberRef) &&
|
|
170
183
|
!isEmpty(case_details.contactSSOName) &&
|
|
171
184
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
172
|
-
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
173
|
-
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
174
|
-
: true) &&
|
|
185
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate ? !!case_details.groupNumber : true) &&
|
|
175
186
|
loggedInUserRights.data.canManageCases());
|
|
176
187
|
};
|
|
177
188
|
export const isIdeaCaseStateValid = (caseState, loggedInUserRights) => {
|
|
@@ -193,18 +204,14 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserRights) => {
|
|
|
193
204
|
!isEmpty(case_details.accountNumberRef) &&
|
|
194
205
|
!isEmpty(case_details.contactSSOName) &&
|
|
195
206
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
196
|
-
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
197
|
-
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
198
|
-
: true) &&
|
|
207
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate ? !!case_details.groupNumber : true) &&
|
|
199
208
|
loggedInUserRights.data.canManageCases());
|
|
200
209
|
};
|
|
201
210
|
export const isCaseManagementStateValid = (caseState, loggedInUserRights) => {
|
|
202
211
|
const case_details = caseState.caseDetails;
|
|
203
212
|
return (isEmpty(case_details.caseNumber) &&
|
|
204
213
|
!isEmpty(case_details.severity) &&
|
|
205
|
-
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
206
|
-
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
207
|
-
: true) &&
|
|
214
|
+
(caseState.selectedAccountDetails.data.requireCGroupOnCreate ? !!case_details.groupNumber : true) &&
|
|
208
215
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
209
216
|
loggedInUserRights.data.canManageCases());
|
|
210
217
|
};
|
|
@@ -225,6 +232,66 @@ export const isCaseInformationSectionValid = (caseState, loggedInUserRights) =>
|
|
|
225
232
|
!isEmpty(case_details.accountNumberRef) &&
|
|
226
233
|
loggedInUserRights.data.canManageCases());
|
|
227
234
|
};
|
|
235
|
+
const assignDescriptionFields = (casePayload, case_details, v3ClusterName) => {
|
|
236
|
+
const hasDescriptionContext = !isEmpty(case_details.environment) ||
|
|
237
|
+
!isEmpty(case_details.periodicityOfIssue) ||
|
|
238
|
+
!isEmpty(case_details.timeFramesAndUrgency);
|
|
239
|
+
if (!isEmpty(case_details.issue) && hasDescriptionContext) {
|
|
240
|
+
casePayload.Description = case_details.description;
|
|
241
|
+
}
|
|
242
|
+
if (!isEmpty(case_details.environment) || !isEmpty(v3ClusterName)) {
|
|
243
|
+
const clusterPrefix = v3ClusterName ? `OpenShift Cluster Name: ${v3ClusterName}\n` : '';
|
|
244
|
+
casePayload.EnvironmentInWhichItOccurs__c = `${clusterPrefix} ${case_details.environment}`;
|
|
245
|
+
}
|
|
246
|
+
if (!isEmpty(case_details.periodicityOfIssue)) {
|
|
247
|
+
casePayload.FrequencyOfIssueOccurrence__c = case_details.periodicityOfIssue;
|
|
248
|
+
}
|
|
249
|
+
if (!isEmpty(case_details.timeFramesAndUrgency)) {
|
|
250
|
+
casePayload.ImpactOnUserOrBusiness__c = case_details.timeFramesAndUrgency;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const assignOptionalIdentifiers = (casePayload, caseState) => {
|
|
254
|
+
var _a, _b, _c, _d;
|
|
255
|
+
const case_details = caseState.caseDetails;
|
|
256
|
+
const contactId = (_b = (_a = caseState.selectedOwner) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.id;
|
|
257
|
+
if (!isEmpty(contactId))
|
|
258
|
+
casePayload.ContactId = contactId;
|
|
259
|
+
if (!isEmpty(caseState.selectedEntitlementId))
|
|
260
|
+
casePayload.EntitlementId = caseState.selectedEntitlementId;
|
|
261
|
+
if (!isEmpty(caseState.selectedVersionId))
|
|
262
|
+
casePayload.ProductId = caseState.selectedVersionId;
|
|
263
|
+
if (!isEmpty((_c = case_details.phoneAreaCodePrefixLineNumber) === null || _c === void 0 ? void 0 : _c.trim())) {
|
|
264
|
+
casePayload.SuppliedPhone = (_d = case_details.phoneAreaCodePrefixLineNumber) === null || _d === void 0 ? void 0 : _d.trim();
|
|
265
|
+
}
|
|
266
|
+
if (!isEmpty(case_details.alternateId))
|
|
267
|
+
casePayload.AlternateCaseId__c = case_details.alternateId;
|
|
268
|
+
if (!isEmpty(case_details.openshiftClusterID))
|
|
269
|
+
casePayload.OpenshiftClusterID__c = case_details.openshiftClusterID;
|
|
270
|
+
if (!isEmpty(case_details.openshiftClusterVersion)) {
|
|
271
|
+
casePayload.OpenshiftClusterVersion__c = case_details.openshiftClusterVersion;
|
|
272
|
+
}
|
|
273
|
+
if (case_details.groupNumber)
|
|
274
|
+
casePayload.Group__c = case_details.groupNumber;
|
|
275
|
+
};
|
|
276
|
+
export const createCasePayloadGraphQL = (caseState, sessionItem, isCaseCreate = false) => {
|
|
277
|
+
var _a, _b, _c;
|
|
278
|
+
const casePayload = {};
|
|
279
|
+
const case_details = caseState.caseDetails;
|
|
280
|
+
if (!isEmpty(case_details.summary))
|
|
281
|
+
casePayload.Subject = case_details.summary;
|
|
282
|
+
if (!isEmpty(case_details.caseType))
|
|
283
|
+
casePayload.Type = case_details.caseType;
|
|
284
|
+
if (!isEmpty(case_details.severity))
|
|
285
|
+
casePayload.Priority = case_details.severity;
|
|
286
|
+
if (!isEmpty(case_details.caseLanguage)) {
|
|
287
|
+
casePayload.Language = (_a = LANGUAGE_MAP[case_details.caseLanguage]) !== null && _a !== void 0 ? _a : case_details.caseLanguage;
|
|
288
|
+
}
|
|
289
|
+
assignDescriptionFields(casePayload, case_details, caseState.v3ClusterName);
|
|
290
|
+
casePayload.Origin = (_c = (_b = sessionItem === null || sessionItem === void 0 ? void 0 : sessionItem.session) === null || _b === void 0 ? void 0 : _b.originatingSystem) !== null && _c !== void 0 ? _c : getUserAgentForCaseMode(isCaseCreate);
|
|
291
|
+
casePayload.RecordTypeId = getTechnicalSupportRecordTypeId();
|
|
292
|
+
assignOptionalIdentifiers(casePayload, caseState);
|
|
293
|
+
return casePayload;
|
|
294
|
+
};
|
|
228
295
|
export const createCasePayload = (caseState, sessionItem, isCaseCreate = false) => {
|
|
229
296
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
230
297
|
const casePayload = {};
|
|
@@ -316,7 +383,7 @@ export const getCaseFromSessionDetails = (sessionItem, loggedInUserAccountNumber
|
|
|
316
383
|
severity: sessionDetails.severity,
|
|
317
384
|
entitlementSla: sessionDetails.sla,
|
|
318
385
|
accountNumberRef: sessionDetails.accountNumber || loggedInUserAccountNumber,
|
|
319
|
-
groupNumber: sessionDetails.folderNumber ||
|
|
386
|
+
groupNumber: sessionDetails.folderNumber || null,
|
|
320
387
|
fts: sessionDetails.isFts,
|
|
321
388
|
contactInfo24x7: sessionDetails.contactInfo24X7,
|
|
322
389
|
contactSSOName: sessionDetails.contactSsoUsername || loggedInUserSSO,
|
|
@@ -29,7 +29,9 @@ 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,
|
|
32
|
+
export declare const fetchAllStatuses: (dispatch: CaseDetailsReducerDispatchType, apolloClient: {
|
|
33
|
+
query: (options: any) => Promise<any>;
|
|
34
|
+
}) => Promise<void>;
|
|
33
35
|
export declare const fetchCaseHydra: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => Promise<void>;
|
|
34
36
|
export {};
|
|
35
37
|
//# sourceMappingURL=CaseOverviewReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseOverviewReducer.d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,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,GACzB,UAAU,8BAA8B,EACxC,cAAc;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,kBAoB1D,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 {
|
|
11
|
-
import { getApiResourceObject } from '@rh-support/utils';
|
|
10
|
+
import { fields, kase } from '@cee-eng/hydrajs';
|
|
11
|
+
import { buildPicklistInput, fetchPicklistValues, getApiResourceObject } from '@rh-support/utils';
|
|
12
12
|
export var CaseDetailsConstants;
|
|
13
13
|
(function (CaseDetailsConstants) {
|
|
14
14
|
CaseDetailsConstants["setSelectedValue"] = "setSelectedValue";
|
|
@@ -66,16 +66,18 @@ 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,
|
|
69
|
+
export const fetchAllStatuses = (dispatch, apolloClient) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
+
var _a;
|
|
70
71
|
dispatch({
|
|
71
72
|
type: CaseDetailsConstants.getCaseStatuses,
|
|
72
73
|
payload: { allCaseStatuses: getApiResourceObject([], true) },
|
|
73
74
|
});
|
|
74
75
|
try {
|
|
75
|
-
const
|
|
76
|
+
const picklists = yield fetchPicklistValues(apolloClient, buildPicklistInput(['Status']));
|
|
77
|
+
const allCaseStatuses = (_a = picklists.Status) !== null && _a !== void 0 ? _a : [];
|
|
76
78
|
dispatch({
|
|
77
79
|
type: CaseDetailsConstants.getCaseStatuses,
|
|
78
|
-
payload: { allCaseStatuses: getApiResourceObject(
|
|
80
|
+
payload: { allCaseStatuses: getApiResourceObject(allCaseStatuses) },
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
catch (e) {
|
|
@@ -6,13 +6,16 @@ import { IContact } from '@cee-eng/hydrajs/@types/models/contact';
|
|
|
6
6
|
import { ISolrRecommendation } from '@cee-eng/hydrajs/@types/models/solr/solr';
|
|
7
7
|
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
8
8
|
import { UserAuth } from '@rh-support/user-permissions';
|
|
9
|
-
import {
|
|
9
|
+
import { IGraphQLCaseUpdateInput, MatchedCaseGroup } from '@rh-support/utils';
|
|
10
|
+
import { CaseReducerDispatchType, ICaseDetailsState, ICaseState } from './CaseConstNTypes';
|
|
10
11
|
import { SessionReducerDispatchType } from './SessionRestoreReducer';
|
|
11
12
|
export declare const caseReducer: (pState: ICaseState, action: any) => ICaseState;
|
|
12
|
-
export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<
|
|
13
|
+
export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseDetailsState>) => void;
|
|
13
14
|
export declare const setCaseState: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseState>) => void;
|
|
14
15
|
export declare const setNotifiedUser: (dispatch: CaseReducerDispatchType, selectedNotificationContacts: IContact[]) => void;
|
|
15
|
-
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport: boolean, isResubmit: boolean, isCreatingCaseFlow: boolean, sessionItem?: ISessionItem
|
|
16
|
+
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport: boolean, isResubmit: boolean, isCreatingCaseFlow: boolean, sessionItem?: ISessionItem, apolloClient?: {
|
|
17
|
+
mutate: (options: any) => Promise<any>;
|
|
18
|
+
}) => Promise<void>;
|
|
16
19
|
/**
|
|
17
20
|
* Update case details if there is HTTP 500 error while submitting case
|
|
18
21
|
* @param dispatch CaseReducerDispatchType
|
|
@@ -35,21 +38,40 @@ export declare const submitNotifiedUser: (dispatch: CaseReducerDispatchType, cas
|
|
|
35
38
|
export declare const deleteNotifiedUsers: (dispatch: CaseReducerDispatchType, caseNumber: string, ssoUsernames: string[]) => Promise<void>;
|
|
36
39
|
export declare const addingNotifiedUsers: (dispatch: CaseReducerDispatchType, caseNumber: string, addedUsers: IContact[]) => Promise<void>;
|
|
37
40
|
export declare const clearSelectedAccount: (dispatch: CaseReducerDispatchType) => void;
|
|
38
|
-
export declare const setCaseAccountNumber: (dispatch: CaseReducerDispatchType, accountNumber: string, isLoggedInUsersAccount?: boolean, loggedInUserAccount?: Partial<IAccount
|
|
41
|
+
export declare const setCaseAccountNumber: (dispatch: CaseReducerDispatchType, accountNumber: string, isLoggedInUsersAccount?: boolean, loggedInUserAccount?: Partial<IAccount>, apolloClient?: {
|
|
42
|
+
query: (options: any) => Promise<any>;
|
|
43
|
+
}) => Promise<void>;
|
|
39
44
|
export declare const fetchCaseGroupsForAccount: (dispatch: CaseReducerDispatchType, accountNumber: string, setCaseGroupToUngroupedOrDefault?: boolean, abortSignal?: AbortSignal, caseGroupNumberToRestore?: string | undefined) => Promise<void>;
|
|
40
45
|
export declare const setCaseOwner: (dispatch: CaseReducerDispatchType, owner: IContact, product: string, abortSignalCaseGroup?: AbortSignal, abortSignalEntitlements?: AbortSignal, setCaseGroupToUngroupedOrDefault?: boolean, caseGroupNumberToRestore?: string | undefined, canChangeGroup?: boolean, isUserUpdate?: boolean, caseNumber?: string, caseAccountNumber?: string) => Promise<void>;
|
|
41
46
|
export declare const fetchCaseEntitlements: (dispatch: CaseReducerDispatchType, ssoUserName: string, product?: string, abortSignal?: AbortSignal, isUserUpdate?: boolean, caseNumber?: string) => Promise<void>;
|
|
42
47
|
export declare const fetchCaseGroupsForSSO: (dispatch: CaseReducerDispatchType, contactSsoUsername: string, setCaseGroupToUngroupedOrDefault?: boolean, abortSignal?: AbortSignal, caseGroupNumberToRestore?: string | undefined) => Promise<void>;
|
|
43
|
-
export declare const
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
export declare const fetchCaseGroupsForContactGraphQL: (dispatch: CaseReducerDispatchType, apolloClient: {
|
|
49
|
+
query: (options: any) => Promise<any>;
|
|
50
|
+
}, contactId: string, accountNumber: string, defaultCaseGroupId?: string | null, isOrgAdmin?: boolean, currentGroupNumber?: string | null) => Promise<MatchedCaseGroup[]>;
|
|
51
|
+
export declare const updateCaseWithSession: (dispatch: CaseReducerDispatchType, sessionItem: ISessionItem, loggedInUserAccountNumber: string, loggedInUserContact: IContact, loggedInUserAccount?: Partial<IAccount>, apolloClient?: {
|
|
52
|
+
query: (options: any) => Promise<any>;
|
|
53
|
+
}) => Promise<void>;
|
|
54
|
+
export declare const fetchCaseDetailsHydra: (dispatch: CaseReducerDispatchType, caseNumber: string, loggedInUserRights: any, loggedInUser: any, apolloClient?: {
|
|
55
|
+
query: (options: any) => Promise<any>;
|
|
56
|
+
}) => Promise<void>;
|
|
57
|
+
export declare const updateCaseDetails: (dispatch: CaseReducerDispatchType, caseNumber: string, caseDetails: Partial<ICasePayload>, dontSetDetails?: boolean) => Promise<void>;
|
|
58
|
+
export interface UpdateCaseDetailsGraphQLOptions {
|
|
59
|
+
salesforceCaseId?: string;
|
|
60
|
+
existingCaseDetails?: Partial<ICaseDetailsState>;
|
|
61
|
+
}
|
|
62
|
+
export declare const updateCaseDetailsGraphQL: (dispatch: CaseReducerDispatchType, apolloClient: {
|
|
63
|
+
query: (options: any) => Promise<any>;
|
|
64
|
+
mutate: (options: any) => Promise<any>;
|
|
65
|
+
}, caseNumber: string, caseUpdate: Partial<IGraphQLCaseUpdateInput>, dontSetDetails?: boolean, options?: UpdateCaseDetailsGraphQLOptions) => Promise<void>;
|
|
46
66
|
export declare const getNotificationContacts4InternalUser: (dispatch: CaseReducerDispatchType, users: INotifiedUser[], caseOwnerSSO: string) => Promise<void>;
|
|
47
67
|
export declare const getNotificationContacts4ExternalUser: (dispatch: CaseReducerDispatchType, users: any, loggedInUserRights: any, accountNumber: any, caseOwnerSSO: string, fullNameCustom: string) => Promise<void>;
|
|
48
68
|
export declare const checkForCaseStatusToggleOnAttachOrComment: (dispatch: CaseReducerDispatchType, isInternal: boolean, currentStatus: string) => void;
|
|
49
69
|
export declare const setSelectedCaseGroupUsers: (dispatch: CaseReducerDispatchType, accountNumber: string, groupNumber: string, loggedInUserRights: UserAuth) => Promise<void>;
|
|
50
70
|
export declare function getCustomNotificationEmails(dispatch: CaseReducerDispatchType, caseNumber: string): Promise<void>;
|
|
51
71
|
export declare function updateEmailListState(dispatch: CaseReducerDispatchType, email: string, customEmailsList: IApiResponseDetails<Partial<ICaseNotificationAddresses[]>>, callback: (email: string) => ICaseNotificationAddresses[]): void;
|
|
52
|
-
export declare function getVersionsDetails(dispatch: CaseReducerDispatchType,
|
|
72
|
+
export declare function getVersionsDetails(dispatch: CaseReducerDispatchType, apolloClient: {
|
|
73
|
+
query: (options: any) => Promise<any>;
|
|
74
|
+
}, parentProductId: string, parentProductName: string): Promise<void>;
|
|
53
75
|
export declare const setRemoteRiderFlag: (dispatch: CaseReducerDispatchType, flag: boolean) => void;
|
|
54
76
|
export declare const setABTestVariation: (dispatch: CaseReducerDispatchType, ABTestVariation: string) => void;
|
|
55
77
|
//# sourceMappingURL=CaseReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,O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