@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,11 +1,12 @@
|
|
|
1
1
|
import { IVersionsDetails } from '@cee-eng/hydrajs/@types/api/pcm/products';
|
|
2
|
-
import { ICaseDetails,
|
|
2
|
+
import { ICaseBugzilla, ICaseChat, ICaseComment, ICaseDetails, ICaseResourceLink, ICepDetails, INotifiedUser } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
3
3
|
import { ICaseGroup, IGroupUser } from '@cee-eng/hydrajs/@types/api/public/caseGroups';
|
|
4
4
|
import { IEntitlement } from '@cee-eng/hydrajs/@types/api/public/entitlements';
|
|
5
5
|
import { IAccount } from '@cee-eng/hydrajs/@types/models/account';
|
|
6
6
|
import { ICaseNotificationAddresses } from '@cee-eng/hydrajs/@types/models/case';
|
|
7
7
|
import { IContact } from '@cee-eng/hydrajs/@types/models/contact';
|
|
8
8
|
import { IAction, IAPIError, IApiResponseDetails } from '@rh-support/types/shared';
|
|
9
|
+
import { IServiceLevelInfo } from '@rh-support/utils';
|
|
9
10
|
import { Dispatch } from 'react';
|
|
10
11
|
import { ICVEWorkflowRecommendation } from '../models/caseCreationWorkflows';
|
|
11
12
|
export declare const TITLE_SUMMARY_LENGTH_LIMIT = 255;
|
|
@@ -20,6 +21,7 @@ export declare const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 32000;
|
|
|
20
21
|
export declare const HOSTNAME_LENGTH_LIMIT = 255;
|
|
21
22
|
export declare const CONTACT_INFO_24X7_LIMIT = 32768;
|
|
22
23
|
export declare const CLUSTER_ID_LIMIT = 255;
|
|
24
|
+
export declare const CLUSTER_ID_ENABLED_PRODUCTS: string[];
|
|
23
25
|
export declare const CASE_REFERENCE_NUMBER_LIMIT = 100;
|
|
24
26
|
export declare const PHONE_LIMIT = 23;
|
|
25
27
|
export declare const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
@@ -176,13 +178,74 @@ export declare enum CaseReducerConstants {
|
|
|
176
178
|
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
177
179
|
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
178
180
|
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError",
|
|
179
|
-
updateComments = "updateComments",
|
|
180
181
|
setABTestVariation = "setABTestVariation"
|
|
181
182
|
}
|
|
182
183
|
export declare const initialCaseState: ICaseState;
|
|
184
|
+
export interface ICaseDetailsState {
|
|
185
|
+
actionPlan?: string;
|
|
186
|
+
alternateId?: string;
|
|
187
|
+
accountNumberRef?: string;
|
|
188
|
+
bugzillas?: ICaseBugzilla[];
|
|
189
|
+
caseLanguage?: string;
|
|
190
|
+
caseNumber?: string;
|
|
191
|
+
caseResourceLinks?: ICaseResourceLink[];
|
|
192
|
+
caseType?: string;
|
|
193
|
+
cep?: boolean;
|
|
194
|
+
chats?: ICaseChat[];
|
|
195
|
+
comments?: ICaseComment[];
|
|
196
|
+
contactCountry?: string | null;
|
|
197
|
+
contactEmail?: string;
|
|
198
|
+
contactInfo24x7?: string;
|
|
199
|
+
contactName?: string;
|
|
200
|
+
contactPhone?: string | null;
|
|
201
|
+
contactId?: string;
|
|
202
|
+
contactSSOName?: string;
|
|
203
|
+
createdById?: string;
|
|
204
|
+
createdByName?: string;
|
|
205
|
+
createdDate?: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
entitlementSla?: string;
|
|
208
|
+
environment?: string;
|
|
209
|
+
externalTrackers?: unknown[];
|
|
210
|
+
firstCaseInactivityWarningSentAt?: string;
|
|
211
|
+
fts?: boolean;
|
|
212
|
+
groupName?: string;
|
|
213
|
+
groupNumber?: string | null;
|
|
214
|
+
hostname?: string;
|
|
215
|
+
id?: string;
|
|
216
|
+
internalStatus?: string;
|
|
217
|
+
isClosed?: boolean;
|
|
218
|
+
isPrivate?: boolean;
|
|
219
|
+
isStrategicAccount?: boolean;
|
|
220
|
+
issue?: string;
|
|
221
|
+
noClusterIdReason?: string;
|
|
222
|
+
noClusterIdReasonExplanation?: string;
|
|
223
|
+
notes?: string;
|
|
224
|
+
openshiftClusterID?: string | null;
|
|
225
|
+
openshiftClusterVersion?: string;
|
|
226
|
+
ownerId?: string;
|
|
227
|
+
ownerName?: string | null;
|
|
228
|
+
periodicityOfIssue?: string;
|
|
229
|
+
phone?: string;
|
|
230
|
+
phoneAreaCodePrefixLineNumber?: string;
|
|
231
|
+
phoneCountryCode?: string;
|
|
232
|
+
product?: string;
|
|
233
|
+
referrer?: string;
|
|
234
|
+
remoteSessionTermsAcked?: boolean;
|
|
235
|
+
sbrGroups?: string[];
|
|
236
|
+
screenSessionRequested?: boolean;
|
|
237
|
+
secondCaseInactivityWarningSentAt?: string;
|
|
238
|
+
severity?: string;
|
|
239
|
+
status?: string;
|
|
240
|
+
summary?: string | null;
|
|
241
|
+
suppliedPhoneNumberVerified?: 'True' | 'False' | 'Deferred';
|
|
242
|
+
timeFramesAndUrgency?: string;
|
|
243
|
+
version?: string;
|
|
244
|
+
waitingOnCallback?: boolean;
|
|
245
|
+
}
|
|
183
246
|
export interface ICaseState {
|
|
184
247
|
caseDetailsStrata: IApiResponseDetails<Partial<ICaseDetails>>;
|
|
185
|
-
caseDetails:
|
|
248
|
+
caseDetails: ICaseDetailsState;
|
|
186
249
|
customerEscalation: boolean;
|
|
187
250
|
isClosed: boolean;
|
|
188
251
|
isStrategicAccount: boolean;
|
|
@@ -236,6 +299,30 @@ export interface ICaseState {
|
|
|
236
299
|
isCveModalOpened?: boolean;
|
|
237
300
|
ABTestVariation?: string;
|
|
238
301
|
openShiftClusterSupportLevel?: string;
|
|
302
|
+
productServiceLevel?: IServiceLevelInfo;
|
|
303
|
+
otherServiceLevels?: IServiceLevelInfo[];
|
|
304
|
+
selectedEntitlementId?: string;
|
|
305
|
+
selectedVersionId?: string;
|
|
306
|
+
}
|
|
307
|
+
export interface IGraphQLCasePayload {
|
|
308
|
+
ContactId?: string;
|
|
309
|
+
EntitlementId?: string;
|
|
310
|
+
Language?: string;
|
|
311
|
+
Type?: string;
|
|
312
|
+
Priority?: string;
|
|
313
|
+
Subject?: string;
|
|
314
|
+
Description?: string;
|
|
315
|
+
ImpactOnUserOrBusiness__c?: string;
|
|
316
|
+
EnvironmentInWhichItOccurs__c?: string;
|
|
317
|
+
FrequencyOfIssueOccurrence__c?: string;
|
|
318
|
+
SuppliedPhone?: string;
|
|
319
|
+
ProductId?: string;
|
|
320
|
+
Origin?: string;
|
|
321
|
+
RecordTypeId?: string;
|
|
322
|
+
AlternateCaseId__c?: string;
|
|
323
|
+
OpenshiftClusterID__c?: string;
|
|
324
|
+
OpenshiftClusterVersion__c?: string;
|
|
325
|
+
Group__c?: string;
|
|
239
326
|
}
|
|
240
327
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
241
328
|
}
|
|
@@ -243,6 +330,7 @@ export type ICaseActionType = IAction<CaseReducerConstants, ICreateCasePayloadTy
|
|
|
243
330
|
export type CaseReducerDispatchType = Dispatch<ICaseActionType>;
|
|
244
331
|
export declare const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967811";
|
|
245
332
|
export declare const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967831";
|
|
333
|
+
export declare const LANGUAGE_MAP: Record<string, string>;
|
|
246
334
|
export declare const excludedCaseTypesforARH: string[];
|
|
247
335
|
export declare const appSourceId_ARH = "PCM-001";
|
|
248
336
|
//# sourceMappingURL=CaseConstNTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EACH,aAAa,EACb,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,aAAa,EAChB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAwB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5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MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC;AAEtG,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA6C,CAAC;AAE9F,eAAO,MAAM,uBAAuB,UAAoC,CAAC;AACzE,eAAO,MAAM,eAAe,YAAY,CAAC"}
|
|
@@ -11,6 +11,20 @@ export const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 32000; //used to be 31000 to ac
|
|
|
11
11
|
export const HOSTNAME_LENGTH_LIMIT = 255;
|
|
12
12
|
export const CONTACT_INFO_24X7_LIMIT = 32768;
|
|
13
13
|
export const CLUSTER_ID_LIMIT = 255;
|
|
14
|
+
export const CLUSTER_ID_ENABLED_PRODUCTS = [
|
|
15
|
+
'Azure Red Hat OpenShift',
|
|
16
|
+
'OpenShift API for Data Protection',
|
|
17
|
+
'OpenShift Container Platform',
|
|
18
|
+
'OpenShift Dedicated',
|
|
19
|
+
'Red Hat Advanced Cluster Security for Kubernetes',
|
|
20
|
+
'Red Hat OpenShift API Management',
|
|
21
|
+
'Red Hat OpenShift Data Foundation',
|
|
22
|
+
'Red Hat OpenShift Dev Spaces',
|
|
23
|
+
'Red Hat OpenShift Serverless',
|
|
24
|
+
'Red Hat OpenShift Service Mesh',
|
|
25
|
+
'Red Hat OpenShift Service on AWS',
|
|
26
|
+
'Red Hat OpenShift Service on AWS Hosted Control Planes',
|
|
27
|
+
];
|
|
14
28
|
export const CASE_REFERENCE_NUMBER_LIMIT = 100;
|
|
15
29
|
export const PHONE_LIMIT = 23;
|
|
16
30
|
export const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
@@ -127,7 +141,6 @@ export var CaseReducerConstants;
|
|
|
127
141
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
128
142
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
129
143
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
130
|
-
CaseReducerConstants["updateComments"] = "updateComments";
|
|
131
144
|
CaseReducerConstants["setABTestVariation"] = "setABTestVariation";
|
|
132
145
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
133
146
|
export const initialCaseState = {
|
|
@@ -151,7 +164,7 @@ export const initialCaseState = {
|
|
|
151
164
|
environment: '',
|
|
152
165
|
periodicityOfIssue: '',
|
|
153
166
|
timeFramesAndUrgency: '',
|
|
154
|
-
groupNumber:
|
|
167
|
+
groupNumber: null,
|
|
155
168
|
entitlementSla: '',
|
|
156
169
|
accountNumberRef: '',
|
|
157
170
|
fts: undefined,
|
|
@@ -231,8 +244,13 @@ export const initialCaseState = {
|
|
|
231
244
|
cveWorkflowRecommendation: [],
|
|
232
245
|
isCveModalOpened: true,
|
|
233
246
|
ABTestVariation: 'B',
|
|
247
|
+
productServiceLevel: undefined,
|
|
248
|
+
otherServiceLevels: [],
|
|
249
|
+
selectedEntitlementId: undefined,
|
|
250
|
+
selectedVersionId: undefined,
|
|
234
251
|
};
|
|
235
252
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
236
253
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
254
|
+
export const LANGUAGE_MAP = { en: 'en_US', zh: 'zh_CN', pt: 'pt_BR' };
|
|
237
255
|
export const excludedCaseTypesforARH = ['Feature / Enhancement Request'];
|
|
238
256
|
export const appSourceId_ARH = 'PCM-001';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IExternalTrackerUpdate } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
2
1
|
import { ICommentFeedback } from '@cee-eng/hydrajs/@types/api/public/commentFeedback';
|
|
3
2
|
import { IAttachment } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
4
3
|
import { ICaseEscalation } from '@cee-eng/hydrajs/@types/models/escalation';
|
|
@@ -11,14 +10,16 @@ export declare enum CaseDetailsConstants {
|
|
|
11
10
|
export interface ICaseViewState {
|
|
12
11
|
caseFeedbacksHydra: IApiResponseDetails<Partial<ICommentFeedback[]>>;
|
|
13
12
|
caseAttachmentHydra: IApiResponseDetails<Partial<IAttachment[]>>;
|
|
14
|
-
caseExternalTrackersUpdate: IApiResponseDetails<Partial<
|
|
13
|
+
caseExternalTrackersUpdate: IApiResponseDetails<Partial<unknown[]>>;
|
|
15
14
|
caseEscalations: IApiResponseDetails<ICaseEscalation[]>;
|
|
16
15
|
}
|
|
17
16
|
export declare const initialCaseDetailsPageState: ICaseViewState;
|
|
18
17
|
export declare const caseDetailsPageReducer: (state: ICaseViewState, action: IActionType) => any;
|
|
19
18
|
export declare const fetchAttachments: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string, isSecureSupport: boolean) => Promise<void>;
|
|
20
19
|
export declare const fetchFeedbacks: (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => Promise<void>;
|
|
21
|
-
export declare const fetchExternalTrackers: (
|
|
22
|
-
export declare const fetchCaseEscalations: (dispatch: CaseDetailsReducerDispatchType,
|
|
20
|
+
export declare const fetchExternalTrackers: (_dispatch: CaseDetailsReducerDispatchType, _caseNumber: string) => Promise<void>;
|
|
21
|
+
export declare const fetchCaseEscalations: (dispatch: CaseDetailsReducerDispatchType, parentId: string, apolloClient: {
|
|
22
|
+
query: (options: any) => Promise<any>;
|
|
23
|
+
}, setLoading?: boolean) => Promise<void>;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=CaseDetailsPageReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsPageReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDetailsPageReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAKxE,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE1E,oBAAY,oBAAoB;IAC5B,WAAW,gBAAgB;CAC9B;AAED,MAAM,WAAW,cAAc;IAC3B,kBAAkB,EAAE,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IACrE,mBAAmB,EAAE,mBAAmB,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAGjE,0BAA0B,EAAE,mBAAmB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACpE,eAAe,EAAE,mBAAmB,CAAC,eAAe,EAAE,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,2BAA2B,EAAE,cAOzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,cAAc,EAAE,QAAQ,WAAW,KAAG,GASnF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GACzB,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,iBAAiB,OAAO,kBAmB3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,UAAU,8BAA8B,EAAE,YAAY,MAAM,kBAoBhG,CAAC;AAsBF,eAAO,MAAM,qBAAqB,GAAU,WAAW,8BAA8B,EAAE,aAAa,MAAM,kBAEzG,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,UAAU,8BAA8B,EACxC,UAAU,MAAM,EAChB,cAAc;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,EACvD,oBAAiB,kBAgCpB,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 {
|
|
10
|
+
import { kase, publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { getApiResourceObject } from '@rh-support/utils';
|
|
12
|
-
import
|
|
12
|
+
import { GET_ESCALATION_DETAILS } from '../graphql';
|
|
13
13
|
export var CaseDetailsConstants;
|
|
14
14
|
(function (CaseDetailsConstants) {
|
|
15
15
|
CaseDetailsConstants["updateState"] = "updateState";
|
|
@@ -17,6 +17,8 @@ export var CaseDetailsConstants;
|
|
|
17
17
|
export const initialCaseDetailsPageState = {
|
|
18
18
|
caseFeedbacksHydra: getApiResourceObject([]),
|
|
19
19
|
caseAttachmentHydra: getApiResourceObject([]),
|
|
20
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
21
|
+
// caseExternalTrackersUpdate: getApiResourceObject([]),
|
|
20
22
|
caseExternalTrackersUpdate: getApiResourceObject([]),
|
|
21
23
|
caseEscalations: getApiResourceObject([]),
|
|
22
24
|
};
|
|
@@ -69,34 +71,48 @@ export const fetchFeedbacks = (dispatch, caseNumber) => __awaiter(void 0, void 0
|
|
|
69
71
|
});
|
|
70
72
|
}
|
|
71
73
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
75
|
+
// export const fetchExternalTrackers = async (dispatch: CaseDetailsReducerDispatchType, caseNumber: string) => {
|
|
76
|
+
// try {
|
|
77
|
+
// dispatch({
|
|
78
|
+
// type: CaseDetailsConstants.updateState,
|
|
79
|
+
// payload: { caseExternalTrackersUpdate: getApiResourceObject([], true) },
|
|
80
|
+
// });
|
|
81
|
+
// const caseExtUpdates = await publicApi.kase.getExternalUpdates(caseNumber);
|
|
82
|
+
//
|
|
83
|
+
// dispatch({
|
|
84
|
+
// type: CaseDetailsConstants.updateState,
|
|
85
|
+
// payload: { caseExternalTrackersUpdate: getApiResourceObject(caseExtUpdates) },
|
|
86
|
+
// });
|
|
87
|
+
// } catch (e) {
|
|
88
|
+
// dispatch({
|
|
89
|
+
// type: CaseDetailsConstants.updateState,
|
|
90
|
+
// payload: { caseExternalTrackersUpdate: getApiResourceObject([], false, true, e.message) },
|
|
91
|
+
// });
|
|
92
|
+
// }
|
|
93
|
+
// };
|
|
94
|
+
export const fetchExternalTrackers = (_dispatch, _caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
|
95
|
+
// no-op stub until External Trackers has a functioning GraphQL endpoint
|
|
90
96
|
});
|
|
91
|
-
export const fetchCaseEscalations = (dispatch_1,
|
|
97
|
+
export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...args_1) => __awaiter(void 0, [dispatch_1, parentId_1, apolloClient_1, ...args_1], void 0, function* (dispatch, parentId, apolloClient, setLoading = true) {
|
|
98
|
+
var _a, _b, _c, _d;
|
|
92
99
|
try {
|
|
93
100
|
setLoading &&
|
|
94
101
|
dispatch({
|
|
95
102
|
type: CaseDetailsConstants.updateState,
|
|
96
103
|
payload: { caseEscalations: getApiResourceObject([], setLoading) },
|
|
97
104
|
});
|
|
98
|
-
const
|
|
99
|
-
|
|
105
|
+
const { data } = yield apolloClient.query({
|
|
106
|
+
query: GET_ESCALATION_DETAILS,
|
|
107
|
+
variables: { where: { ParentId: { eq: parentId } } },
|
|
108
|
+
});
|
|
109
|
+
const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
110
|
+
const caseEscalations = edges.map(({ node }) => ({
|
|
111
|
+
name: node.CaseNumber.value,
|
|
112
|
+
subject: node.Subject.value,
|
|
113
|
+
status: node.Status.value,
|
|
114
|
+
escalationSource: 'RME Escalation',
|
|
115
|
+
}));
|
|
100
116
|
dispatch({
|
|
101
117
|
type: CaseDetailsConstants.updateState,
|
|
102
118
|
payload: { caseEscalations: getApiResourceObject(caseEscalations, false) },
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ICaseChat, ICaseComment
|
|
1
|
+
import { ICaseChat, ICaseComment } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
2
2
|
import { ICommentFeedback } from '@cee-eng/hydrajs/@types/api/public/commentFeedback';
|
|
3
3
|
import { IAttachment } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
4
4
|
import { IAction } from '@rh-support/types/shared';
|
|
5
|
-
import { CaseReducerDispatchType } from './CaseConstNTypes';
|
|
6
5
|
type IActionType = IAction<DiscussionsConstants, IDiscussionState>;
|
|
7
6
|
export type DiscussionsReducerDispatchType = (value: IActionType) => void;
|
|
8
7
|
export interface IDiscussion {
|
|
9
|
-
item: Partial<ICaseComment | IAttachment | ICaseChat
|
|
8
|
+
item: Partial<ICaseComment | IAttachment | ICaseChat>;
|
|
10
9
|
last_modified_date: string;
|
|
11
10
|
discussionType: string;
|
|
12
11
|
feedback?: number;
|
|
@@ -45,11 +44,10 @@ export declare enum DiscussionsConstants {
|
|
|
45
44
|
export declare const discussionReducer: (state: IDiscussionState, action: IActionType) => IDiscussionState;
|
|
46
45
|
export declare const setSort: (dispatch: DiscussionsReducerDispatchType, sort: ISort, allDiscussions: IDiscussion[]) => void;
|
|
47
46
|
export declare const setFilter: (dispatch: DiscussionsReducerDispatchType, selected: string[], discussionFiltersListState: IFilter[]) => void;
|
|
48
|
-
export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType, comments: ICaseComment[], chats: ICaseChat[], attachments: IAttachment[], feedbacks: ICommentFeedback[], trackerUpdates: Partial<
|
|
47
|
+
export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType, comments: ICaseComment[], chats: ICaseChat[], attachments: IAttachment[], feedbacks: ICommentFeedback[], trackerUpdates: Partial<unknown[]>, discussionFiltersListState: IFilter[], canSeeExternalTracker: boolean, canSeeChat: boolean, canSeeAttachments: boolean) => void;
|
|
49
48
|
export declare const updateAttacmentsAfterRemoval: (dispatch: DiscussionsReducerDispatchType, uuid_removed: string, allDiscussions: IDiscussion[], discussionFiltersListState: IFilter[]) => void;
|
|
50
49
|
export declare const updateCommentStateFeedback: (dispatch: DiscussionsReducerDispatchType, comment_id: string, newFeedback: any, allDiscussions: IDiscussion[]) => Promise<void>;
|
|
51
50
|
export declare const updateAttachment: (dispatch: DiscussionsReducerDispatchType, uuid: string, newAttachment: any, allDiscussions: IDiscussion[]) => void;
|
|
52
|
-
export declare const updateDiscussionStateComments: (dispatch: DiscussionsReducerDispatchType, caseDispatch: CaseReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, feedbacks: ICommentFeedback[], discussionFiltersListState: IFilter[]) => Promise<void>;
|
|
53
51
|
export declare const updateDiscussionStateAttachments: (dispatch: DiscussionsReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, isSecureSupport: boolean, discussionFiltersListState: IFilter[], dispatchCaseDetailsHydraAttachments: any) => Promise<void>;
|
|
54
52
|
export declare const setCommentText: (dispatch: DiscussionsReducerDispatchType, replyCommentText: string, replyCommentCreator: string) => void;
|
|
55
53
|
export declare const clearReplyComment: (dispatch: DiscussionsReducerDispatchType) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AASnD,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AACnE,MAAM,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE1E,MAAM,WAAW,WAAW;IAGxB,IAAI,EAAE,OAAO,CAAC,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACtD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,cAAc;IACtB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,gBAAgB,oBAAoB;IACpC,GAAG,QAAQ;CACd;AAED,MAAM,WAAW,KAAK;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,KA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A8B,EACxC,cAAc,MAAM,EACpB,gBAAgB,WAAW,EAAE,EAC7B,4BAA4B,OAAO,EAAE,SAsBxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,gBAAW,EACX,gBAAgB,WAAW,EAAE,kBAUhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GACzB,UAAU,8BAA8B,EACxC,MAAM,MAAM,EACZ,kBAAa,EACb,gBAAgB,WAAW,EAAE,SAUhC,CAAC;AAEF,eAAO,MAAM,gCAAgC,GACzC,UAAU,8BAA8B,EACxC,YAAY,MAAM,EAClB,gBAAgB,WAAW,EAAE,EAC7B,MAAM,KAAK,EACX,iBAAiB,OAAO,EACxB,4BAA4B,OAAO,EAAE,EACrC,wCAAmC,kBA+BtC,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,UAAU,8BAA8B,EACxC,kBAAkB,MAAM,EACxB,qBAAqB,MAAM,SAG9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,8BAA8B,SAKzE,CAAC"}
|
|
@@ -7,13 +7,12 @@ 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 { kase
|
|
10
|
+
import { kase } from '@cee-eng/hydrajs';
|
|
11
11
|
import { getApiResourceObject } from '@rh-support/utils';
|
|
12
12
|
import filter from 'lodash/filter';
|
|
13
13
|
import findIndex from 'lodash/findIndex';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
15
15
|
import orderBy from 'lodash/orderBy';
|
|
16
|
-
import { CaseReducerConstants } from './CaseConstNTypes';
|
|
17
16
|
import { CaseDetailsConstants } from './CaseDetailsPageReducer';
|
|
18
17
|
export var DiscussionType;
|
|
19
18
|
(function (DiscussionType) {
|
|
@@ -62,13 +61,14 @@ export const initDiscussionFiltersListState = [
|
|
|
62
61
|
isSelected: true,
|
|
63
62
|
canSee: false,
|
|
64
63
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
65
|
+
// {
|
|
66
|
+
// filterLabel: 'External Tracker',
|
|
67
|
+
// value: DiscussionType.EXTERNAL_TRACKER,
|
|
68
|
+
// isDisabled: false,
|
|
69
|
+
// isSelected: true,
|
|
70
|
+
// canSee: false,
|
|
71
|
+
// },
|
|
72
72
|
];
|
|
73
73
|
export const initialDiscussionState = {
|
|
74
74
|
sort: discussionSortOrderConst[0],
|
|
@@ -117,7 +117,13 @@ const commputeFeedback = (commentId, feedbacks) => {
|
|
|
117
117
|
const feedback = feedbacks.filter((feedback) => feedback.commentId === commentId);
|
|
118
118
|
return feedback.length === 0 ? undefined : parseInt(feedback[0].feedback);
|
|
119
119
|
};
|
|
120
|
-
export const setDiscussions = (dispatch, comments, chats, attachments, feedbacks,
|
|
120
|
+
export const setDiscussions = (dispatch, comments, chats, attachments, feedbacks,
|
|
121
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
122
|
+
// trackerUpdates: Partial<IExternalTrackerUpdate[]>,
|
|
123
|
+
trackerUpdates, discussionFiltersListState,
|
|
124
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
125
|
+
// canSeeExternalTracker: boolean,
|
|
126
|
+
canSeeExternalTracker, canSeeChat, canSeeAttachments) => {
|
|
121
127
|
// set all discussions state
|
|
122
128
|
// we need to transform discussions item because:
|
|
123
129
|
// - last_modified_date is needed for sort and field name is different in different discussion types
|
|
@@ -135,17 +141,24 @@ export const setDiscussions = (dispatch, comments, chats, attachments, feedbacks
|
|
|
135
141
|
last_modified_date: comment.lastModifiedDate || comment.createdDate,
|
|
136
142
|
feedback: commputeFeedback(comment.id, feedbacks),
|
|
137
143
|
}));
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
145
|
+
// const allExternalTrackers: IDiscussion[] = (trackerUpdates || []).map((externalUpdate) => ({
|
|
146
|
+
// item: {
|
|
147
|
+
// ...externalUpdate,
|
|
148
|
+
// originating_system_last_updated_at:
|
|
149
|
+
// externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate,
|
|
150
|
+
// },
|
|
151
|
+
// last_modified_date: externalUpdate.originatingSystemLastUpdatedAt || externalUpdate.createdDate,
|
|
152
|
+
// discussionType: DiscussionType.EXTERNAL_TRACKER,
|
|
153
|
+
// }));
|
|
143
154
|
const allAttachments = attachments.map((attachment) => ({
|
|
144
155
|
item: Object.assign(Object.assign({}, attachment), { lastModifiedDate: attachment.lastModifiedDate || attachment.createdDate }),
|
|
145
156
|
last_modified_date: attachment.lastModifiedDate || attachment.createdDate,
|
|
146
157
|
discussionType: DiscussionType.ATTACHMENT,
|
|
147
158
|
}));
|
|
148
|
-
|
|
159
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
160
|
+
// const allDiscussions: IDiscussion[] = [...allComments, ...allChats, ...allAttachments, ...allExternalTrackers];
|
|
161
|
+
const allDiscussions = [...allComments, ...allChats, ...allAttachments];
|
|
149
162
|
const sortedAllDiscussions = orderBy(allDiscussions, 'last_modified_date', 'desc');
|
|
150
163
|
//set filter dropdown state
|
|
151
164
|
// when we don't have any result for a discussion type, in filter options dropdown list, we make that type disable
|
|
@@ -157,10 +170,10 @@ export const setDiscussions = (dispatch, comments, chats, attachments, feedbacks
|
|
|
157
170
|
else if (filter.value === DiscussionType.CHAT) {
|
|
158
171
|
filter.isDisabled = allChats.length === 0 ? true : false;
|
|
159
172
|
filter.canSee = canSeeChat;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
filter.isDisabled = allExternalTrackers.length === 0 ? true : false;
|
|
163
|
-
filter.canSee = canSeeExternalTracker;
|
|
173
|
+
// TODO: Uncomment when External Trackers has a functioning GraphQL endpoint
|
|
174
|
+
// } else if (filter.value === DiscussionType.EXTERNAL_TRACKER) {
|
|
175
|
+
// filter.isDisabled = allExternalTrackers.length === 0 ? true : false;
|
|
176
|
+
// filter.canSee = canSeeExternalTracker;
|
|
164
177
|
}
|
|
165
178
|
else if (filter.value === DiscussionType.COMMENT) {
|
|
166
179
|
filter.isDisabled = allComments.length === 0 ? true : false;
|
|
@@ -211,32 +224,6 @@ export const updateAttachment = (dispatch, uuid, newAttachment, allDiscussions)
|
|
|
211
224
|
});
|
|
212
225
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
213
226
|
};
|
|
214
|
-
export const updateDiscussionStateComments = (dispatch, caseDispatch, caseNumber, allDiscussions, sort, feedbacks, discussionFiltersListState) => __awaiter(void 0, void 0, void 0, function* () {
|
|
215
|
-
try {
|
|
216
|
-
const comments = yield publicApi.kase.getComments(caseNumber);
|
|
217
|
-
const allComments = (comments || [])
|
|
218
|
-
.filter((comment) => comment.isDraft === false)
|
|
219
|
-
.map((comment) => ({
|
|
220
|
-
item: Object.assign(Object.assign({}, comment), { isPublic: comment.isPublic === undefined ? true : comment.isPublic, last_modified_date: comment.lastModifiedDate || comment.createdDate }),
|
|
221
|
-
discussionType: DiscussionType.COMMENT,
|
|
222
|
-
last_modified_date: comment.lastModifiedDate || comment.createdDate,
|
|
223
|
-
feedback: commputeFeedback(comment.id, feedbacks),
|
|
224
|
-
}));
|
|
225
|
-
const filteredDiscussion = filter([...allDiscussions], (o) => o.discussionType !== DiscussionType.COMMENT);
|
|
226
|
-
const updatedDiscussions = orderBy([...filteredDiscussion, ...allComments], 'last_modified_date', sort.sortOrder);
|
|
227
|
-
discussionFiltersListState.forEach((filter) => {
|
|
228
|
-
if (filter.value === DiscussionType.COMMENT) {
|
|
229
|
-
filter.isDisabled = false;
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { discussionFiltersListState } });
|
|
233
|
-
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
234
|
-
caseDispatch({ type: CaseReducerConstants.updateComments, payload: { caseDetails: { comments } } });
|
|
235
|
-
}
|
|
236
|
-
catch (e) {
|
|
237
|
-
console.log(e);
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
227
|
export const updateDiscussionStateAttachments = (dispatch, caseNumber, allDiscussions, sort, isSecureSupport, discussionFiltersListState, dispatchCaseDetailsHydraAttachments) => __awaiter(void 0, void 0, void 0, function* () {
|
|
241
228
|
try {
|
|
242
229
|
const attachments = yield kase.getAttachments(caseNumber, false, isSecureSupport);
|
|
@@ -6,7 +6,7 @@ import { ISolrRecommendation } from '@cee-eng/hydrajs/@types/models/solr/solr';
|
|
|
6
6
|
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
7
7
|
import { UserAuth } from '@rh-support/user-permissions';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { ICaseState } from './CaseConstNTypes';
|
|
9
|
+
import { ICaseState, IGraphQLCasePayload } from './CaseConstNTypes';
|
|
10
10
|
export declare const getCaseRecommendations: (docs: ISolrRecommendation[], oldDocs: any) => any[];
|
|
11
11
|
export declare const getCepCommentFromCepDetails: (cepDetails: ICepDetails) => string;
|
|
12
12
|
export declare const getRecommendationObject: (doc: ISolrRecommendation, index: number) => ICaseResourceLink;
|
|
@@ -16,11 +16,12 @@ export declare const getIrtForSLAAndSeverity: (slaProcessId: string, severity: s
|
|
|
16
16
|
export declare const getNewSeverityStringDef: (severity: string) => string | React.JSX.Element;
|
|
17
17
|
export declare const getOrtForSLAAndSeverity: (slaProcessId: string, severity: string) => string;
|
|
18
18
|
export declare const getSeverityDescription: (severity: string) => string;
|
|
19
|
-
export declare const isClusterIDValid: (
|
|
19
|
+
export declare const isClusterIDValid: (_caseState: any, _allProducts: any) => boolean;
|
|
20
20
|
export declare const isCaseStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
21
21
|
export declare const isIdeaCaseStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
22
22
|
export declare const isCaseManagementStateValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
23
23
|
export declare const isCaseInformationSectionValid: (caseState: ICaseState, loggedInUserRights: IApiResponseDetails<UserAuth>) => boolean;
|
|
24
|
+
export declare const createCasePayloadGraphQL: (caseState: ICaseState, sessionItem?: ISessionItem, isCaseCreate?: boolean) => IGraphQLCasePayload;
|
|
24
25
|
export declare const createCasePayload: (caseState: ICaseState, sessionItem?: ISessionItem, isCaseCreate?: boolean) => Partial<ICasePayload>;
|
|
25
26
|
export declare const getProcessedEntitlements: (caseEntitlements: IEntitlement[]) => IEntitlement[];
|
|
26
27
|
export declare const getHasInvalidEntitlements: (caseEntitlements: IEntitlement[]) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAexD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAOH,UAAU,
|
|
1
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