@rh-support/troubleshoot 2.7.35 → 2.7.37
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/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +33 -51
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +15 -10
- package/lib/esm/css/case.css +1 -1
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +1 -1
- package/lib/esm/graphql/queries/getEscalationDetails.js +1 -0
- package/lib/esm/graphql/schemas/escalation.d.ts +6 -0
- package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +6 -5
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyCaseStatusModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VerifyCaseStatusModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAYzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA6HlD"}
|
|
@@ -7,16 +7,16 @@ 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 { useApolloClient } from '@apollo/client/react';
|
|
11
10
|
import { Button, ButtonVariant, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
|
|
12
11
|
import { SingleSelectDropdown, ToastNotification } from '@rh-support/components';
|
|
13
12
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
13
|
+
import { getPortalStatusDropdownOptions, mapSfdcStatusToPortalStatus, resolvePortalStatusToApiValue, } from '@rh-support/utils';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
15
|
-
import React, { useContext,
|
|
15
|
+
import React, { useContext, useMemo, useReducer, useState } from 'react';
|
|
16
16
|
import { Trans, useTranslation } from 'react-i18next';
|
|
17
17
|
import { useCaseDispatch, useCaseSelector } from '../../../../../context/CaseContext';
|
|
18
18
|
import { useCaseUpdateErrorMessage } from '../../../../../hooks/useCaseUpdateErrorMessage';
|
|
19
|
-
import { caseOverviewReducer,
|
|
19
|
+
import { caseOverviewReducer, initialCaseViewState, setStatusUpdating, } from '../../../../../reducers/CaseOverviewReducer';
|
|
20
20
|
import { updateCaseDetails } from '../../../../../reducers/CaseReducer';
|
|
21
21
|
export function VerifyCaseStatusModal(props) {
|
|
22
22
|
const { t } = useTranslation();
|
|
@@ -24,75 +24,59 @@ export function VerifyCaseStatusModal(props) {
|
|
|
24
24
|
const [caseOverviewState, caseOverviewDispatch] = useReducer(caseOverviewReducer, initialCaseViewState);
|
|
25
25
|
const caseState = useCaseSelector((state) => ({
|
|
26
26
|
caseDetails: {
|
|
27
|
-
product: state.caseDetails.product,
|
|
28
|
-
version: state.caseDetails.version,
|
|
29
27
|
status: state.caseDetails.status,
|
|
30
|
-
caseType: state.caseDetails.caseType,
|
|
31
|
-
createdDate: state.caseDetails.createdDate,
|
|
32
|
-
createdById: state.caseDetails.createdById,
|
|
33
|
-
ownerId: state.caseDetails.ownerId,
|
|
34
|
-
caseNumber: state.caseDetails.caseNumber,
|
|
35
|
-
cep: state.caseDetails.cep,
|
|
36
|
-
accountNumber: state.caseDetails.accountNumberRef,
|
|
37
|
-
firstCaseInactivityWarningSentAt: state.caseDetails.firstCaseInactivityWarningSentAt,
|
|
38
|
-
secondCaseInactivityWarningSentAt: state.caseDetails.secondCaseInactivityWarningSentAt,
|
|
39
28
|
},
|
|
40
29
|
isCaseUpdating: state.isCaseUpdating,
|
|
41
|
-
contactIsPartner: state.contactIsPartner,
|
|
42
|
-
hotfixRequested: state.hotfixRequested,
|
|
43
|
-
hotfixDelivered: state.hotfixDelivered,
|
|
44
|
-
selectedAccountDetails: state.selectedAccountDetails,
|
|
45
30
|
}), isEqual);
|
|
46
31
|
const { status } = caseState.caseDetails;
|
|
47
32
|
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
48
|
-
const apolloClient = useApolloClient();
|
|
49
33
|
const canManageCase = loggedInUserRights.data.canManageCases();
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
const isInternal = loggedInUserRights.data.isInternal();
|
|
35
|
+
const currentPortalStatus = useMemo(() => (status ? mapSfdcStatusToPortalStatus(status) : ''), [status]);
|
|
36
|
+
const isClosed = currentPortalStatus === 'Closed';
|
|
53
37
|
const { isCaseUpdating } = caseState;
|
|
54
38
|
const canEditCase = useCanEditCase();
|
|
55
39
|
const caseDispatch = useCaseDispatch();
|
|
56
|
-
const [
|
|
40
|
+
const [selectedPortalStatus, setSelectedPortalStatus] = useState(currentPortalStatus);
|
|
57
41
|
const [isVerifyCaseStatusLoading, setIsVerifyCaseStatusLoading] = useState(false);
|
|
58
42
|
const onSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
59
43
|
yield props.onConfirm();
|
|
60
|
-
yield updateStatusState(
|
|
44
|
+
yield updateStatusState(selectedPortalStatus);
|
|
61
45
|
setIsVerifyCaseStatusLoading(true);
|
|
62
46
|
});
|
|
63
|
-
const updateStatusState = (
|
|
64
|
-
if (
|
|
65
|
-
setStatusUpdating(caseOverviewDispatch, true);
|
|
66
|
-
try {
|
|
67
|
-
yield updateCaseDetails(caseDispatch, props.caseNumber, { status: statusVal });
|
|
68
|
-
setStatusUpdating(caseOverviewDispatch, false);
|
|
69
|
-
onStatusUpdate && (yield onStatusUpdate());
|
|
70
|
-
ToastNotification.addSuccessMessage(t('Status has been successfully updated'));
|
|
71
|
-
}
|
|
72
|
-
catch (e) {
|
|
73
|
-
setStatusUpdating(caseOverviewDispatch, false);
|
|
74
|
-
caseUpdateError.showFieldError(e, t('Status'), () => updateStatusState(statusVal, onStatusUpdate));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
47
|
+
const updateStatusState = (portalStatusVal_1, ...args_1) => __awaiter(this, [portalStatusVal_1, ...args_1], void 0, function* (portalStatusVal, onStatusUpdate = null) {
|
|
48
|
+
if (currentPortalStatus === portalStatusVal)
|
|
78
49
|
return;
|
|
50
|
+
const apiValue = resolvePortalStatusToApiValue(portalStatusVal, status);
|
|
51
|
+
setStatusUpdating(caseOverviewDispatch, true);
|
|
52
|
+
try {
|
|
53
|
+
yield updateCaseDetails(caseDispatch, props.caseNumber, { status: apiValue });
|
|
54
|
+
setStatusUpdating(caseOverviewDispatch, false);
|
|
55
|
+
if (onStatusUpdate)
|
|
56
|
+
yield onStatusUpdate();
|
|
57
|
+
ToastNotification.addSuccessMessage(t('Status has been successfully updated'));
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
setStatusUpdating(caseOverviewDispatch, false);
|
|
61
|
+
caseUpdateError.showFieldError(e, t('Status'), () => updateStatusState(portalStatusVal, onStatusUpdate));
|
|
79
62
|
}
|
|
80
63
|
});
|
|
81
64
|
const onStatusChange = (selectedOption) => __awaiter(this, void 0, void 0, function* () {
|
|
82
65
|
if (canEditCase.alert())
|
|
83
66
|
return;
|
|
84
|
-
|
|
67
|
+
if (selectedOption.disabled)
|
|
68
|
+
return;
|
|
69
|
+
setSelectedPortalStatus(selectedOption.value);
|
|
85
70
|
});
|
|
86
|
-
// Create selected option for SingleSelectDropdown
|
|
87
71
|
const getSelectedOption = () => ({
|
|
88
|
-
label: t(
|
|
89
|
-
value:
|
|
72
|
+
label: t(selectedPortalStatus || currentPortalStatus),
|
|
73
|
+
value: selectedPortalStatus || currentPortalStatus,
|
|
90
74
|
});
|
|
91
|
-
|
|
92
|
-
const getDropdownOptions = () =>
|
|
93
|
-
label: t(
|
|
94
|
-
value:
|
|
95
|
-
disabled:
|
|
75
|
+
const statusOptions = getPortalStatusDropdownOptions(isClosed, isInternal);
|
|
76
|
+
const getDropdownOptions = () => statusOptions.map((opt) => ({
|
|
77
|
+
label: t(opt.value),
|
|
78
|
+
value: opt.value,
|
|
79
|
+
disabled: opt.disabled,
|
|
96
80
|
}));
|
|
97
81
|
return (React.createElement(Modal, { id: "case-close-modal", title: t(`Please verify this case's status`), "aria-describedby": "case-close-modal", isOpen: true, onClose: props.onClose, variant: ModalVariant.medium },
|
|
98
82
|
React.createElement(ModalHeader, null,
|
|
@@ -100,9 +84,7 @@ export function VerifyCaseStatusModal(props) {
|
|
|
100
84
|
React.createElement(Trans, null, "Status"),
|
|
101
85
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
|
|
102
86
|
React.createElement(ModalBody, null,
|
|
103
|
-
React.createElement(SingleSelectDropdown, { ariaLabel: t(
|
|
104
|
-
caseOverviewState.allCaseStatuses.isFetching ||
|
|
105
|
-
(caseOverviewState.caseStatusUpdating && isCaseUpdating), isInvalid: !status, placeholder: t(status) })),
|
|
87
|
+
React.createElement(SingleSelectDropdown, { ariaLabel: t(currentPortalStatus), id: "verify-case-status", selected: getSelectedOption(), options: getDropdownOptions(), onSelect: onStatusChange, isDisabled: !canManageCase || (caseOverviewState.caseStatusUpdating && isCaseUpdating), isInvalid: !status, placeholder: t(currentPortalStatus) })),
|
|
106
88
|
React.createElement(ModalFooter, null,
|
|
107
89
|
React.createElement(Button, { key: "submit-description", variant: ButtonVariant.primary, onClick: onSubmit, isLoading: isVerifyCaseStatusLoading, isDisabled: props.isUpdating, "data-tracking-id": "close-case-description-modal-submit" },
|
|
108
90
|
React.createElement(Trans, null, "Continue")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAS5E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,UAAU,MAAM;IACZ,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAS5E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,UAAU,MAAM;IACZ,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,qBA+LtD"}
|
|
@@ -58,7 +58,7 @@ export default function RMEEscalationList(props) {
|
|
|
58
58
|
// const updateEscalation = async (escalationName: string, text: string, options: Partial<IEscalationUpdate>) => {
|
|
59
59
|
// ...
|
|
60
60
|
// };
|
|
61
|
-
const submitEscalationComment = (escalationName, comment, message) => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const submitEscalationComment = (escalationName, escalationId, comment, message) => __awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
var _a;
|
|
63
63
|
escalationUpdateInProgessIds.current.push(escalationName);
|
|
64
64
|
try {
|
|
@@ -68,6 +68,11 @@ export default function RMEEscalationList(props) {
|
|
|
68
68
|
body: comment,
|
|
69
69
|
isPublic: true,
|
|
70
70
|
});
|
|
71
|
+
yield createComment({
|
|
72
|
+
caseId: escalationId,
|
|
73
|
+
body: comment,
|
|
74
|
+
isPublic: true,
|
|
75
|
+
});
|
|
71
76
|
apolloClient.refetchQueries({ include: [GET_CASE_COMMENTS] });
|
|
72
77
|
// TODO: migrate updateCaseRequest(props.caseNumber, { customerEscalation: true }) to GraphQL
|
|
73
78
|
yield checkForCaseStatusToggleOnAttachOrComment(caseDispatch, props.isInternal, props.caseStatus, {
|
|
@@ -85,33 +90,33 @@ export default function RMEEscalationList(props) {
|
|
|
85
90
|
escalationUpdateInProgessIds.current = escalationUpdateInProgessIds.current.filter((item) => item !== escalationName);
|
|
86
91
|
}
|
|
87
92
|
});
|
|
88
|
-
const requestUpdateRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const requestUpdateRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
|
|
89
94
|
const comment = `${ESCALATION_MSG}\n ${UPDATE_ESCALATION_MSG}`;
|
|
90
|
-
yield submitEscalationComment(escalationName, comment, UPDATE_ESCALATION_MSG);
|
|
95
|
+
yield submitEscalationComment(escalationName, escalationId, comment, UPDATE_ESCALATION_MSG);
|
|
91
96
|
});
|
|
92
|
-
const requestClosureRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const requestClosureRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
|
|
93
98
|
const comment = `${ESCALATION_MSG}\n ${CLOSURE_ESCALATION_MSG}`;
|
|
94
|
-
yield submitEscalationComment(escalationName, comment, CLOSURE_ESCALATION_MSG);
|
|
99
|
+
yield submitEscalationComment(escalationName, escalationId, comment, CLOSURE_ESCALATION_MSG);
|
|
95
100
|
});
|
|
96
|
-
const requestReOpenRMEEscalation = (escalationName) => __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const requestReOpenRMEEscalation = (escalationName, escalationId) => __awaiter(this, void 0, void 0, function* () {
|
|
97
102
|
const comment = `${ESCALATION_MSG}\n ${REOPEN_ESCALATION_MSG}`;
|
|
98
|
-
yield submitEscalationComment(escalationName, comment, REOPEN_ESCALATION_MSG);
|
|
103
|
+
yield submitEscalationComment(escalationName, escalationId, comment, REOPEN_ESCALATION_MSG);
|
|
99
104
|
});
|
|
100
105
|
const renderActionButtons = (escalation) => {
|
|
101
106
|
if (isUpdating && escalationUpdateInProgessIds.current.includes(escalation.name)) {
|
|
102
107
|
return React.createElement(LoadingIndicator, { size: "sm", isInline: true });
|
|
103
108
|
}
|
|
104
109
|
if (escalation.status === escalationStatus.closed) {
|
|
105
|
-
return (React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestReOpenRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-reopen" },
|
|
110
|
+
return (React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestReOpenRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-reopen" },
|
|
106
111
|
React.createElement(Trans, null, "Request Re-Open")));
|
|
107
112
|
}
|
|
108
113
|
else {
|
|
109
114
|
return (React.createElement(Flex, null,
|
|
110
115
|
React.createElement(FlexItem, null,
|
|
111
|
-
React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestUpdateRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-update", isDisabled: customerEscalation },
|
|
116
|
+
React.createElement(Button, { variant: ButtonVariant.secondary, onClick: () => requestUpdateRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-update", isDisabled: customerEscalation },
|
|
112
117
|
React.createElement(Trans, null, "Request Update"))),
|
|
113
118
|
React.createElement(FlexItem, null,
|
|
114
|
-
React.createElement(Button, { variant: ButtonVariant.secondary, className: "pf-v6-u-mt-sm", onClick: () => requestClosureRMEEscalation(escalation.name), "data-tracking-id": "case-details-rme-req-closure" },
|
|
119
|
+
React.createElement(Button, { variant: ButtonVariant.secondary, className: "pf-v6-u-mt-sm", onClick: () => requestClosureRMEEscalation(escalation.name, escalation.id), "data-tracking-id": "case-details-rme-req-closure" },
|
|
115
120
|
React.createElement(Trans, null, "Request Closure")))));
|
|
116
121
|
}
|
|
117
122
|
};
|
package/lib/esm/css/case.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"getEscalationDetails.d.ts","sourceRoot":"","sources":["../../../../src/graphql/queries/getEscalationDetails.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,uCAmClC,CAAC"}
|
|
@@ -48,6 +48,7 @@ export interface GetEscalationDetailsResponse {
|
|
|
48
48
|
RedHatSupportCase: {
|
|
49
49
|
edges: Array<{
|
|
50
50
|
node: {
|
|
51
|
+
Id: string;
|
|
51
52
|
CaseNumber__c: {
|
|
52
53
|
value: string;
|
|
53
54
|
};
|
|
@@ -57,6 +58,11 @@ export interface GetEscalationDetailsResponse {
|
|
|
57
58
|
Status: {
|
|
58
59
|
value: string;
|
|
59
60
|
};
|
|
61
|
+
Owner?: {
|
|
62
|
+
Name?: {
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
60
66
|
};
|
|
61
67
|
}>;
|
|
62
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escalation.d.ts","sourceRoot":"","sources":["../../../../src/graphql/schemas/escalation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC7C,SAAS,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;KACrC,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,oBAAoB,EAAE;QAClB,UAAU,EAAE;YACR,mBAAmB,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC;gBACX,aAAa,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBACjC,MAAM,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC1B,OAAO,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC3B,QAAQ,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;aAC/B,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,6BAA6B;IAC1C,KAAK,EACC;QACI,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,GACD;QACI,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KACvC,CAAC;CACX;AAED,MAAM,WAAW,4BAA4B;IACzC,oBAAoB,EAAE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,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,EACvD,oBAAiB,EACjB,8BAA4B,EAC5B,cAAa,aAAa,GAAG,cAA8B,KAC5D,OAAO,CAAC,eAAe,EAAE,CA0C3B,CAAC"}
|
|
@@ -121,12 +121,13 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
|
|
|
121
121
|
});
|
|
122
122
|
const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
123
123
|
const caseEscalations = edges.map(({ node }) => {
|
|
124
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
124
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
125
125
|
return ({
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
id: (_a = node.Id) !== null && _a !== void 0 ? _a : '',
|
|
127
|
+
name: (_c = (_b = node.CaseNumber__c) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : '',
|
|
128
|
+
subject: (_e = (_d = node.Subject) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : '',
|
|
129
|
+
status: (_g = (_f = node.Status) === null || _f === void 0 ? void 0 : _f.value) !== null && _g !== void 0 ? _g : '',
|
|
130
|
+
owner: (_k = (_j = (_h = node.Owner) === null || _h === void 0 ? void 0 : _h.Name) === null || _j === void 0 ? void 0 : _j.value) !== null && _k !== void 0 ? _k : '',
|
|
130
131
|
escalationSource: 'RME Escalation',
|
|
131
132
|
});
|
|
132
133
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.37",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@progress/kendo-licensing": "1.3.5",
|
|
53
53
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
54
54
|
"@redux-devtools/extension": "^3.3.0",
|
|
55
|
-
"@rh-support/components": "2.6.
|
|
56
|
-
"@rh-support/react-context": "2.6.
|
|
55
|
+
"@rh-support/components": "2.6.32",
|
|
56
|
+
"@rh-support/react-context": "2.6.34",
|
|
57
57
|
"@rh-support/types": "2.0.31",
|
|
58
58
|
"@rh-support/user-permissions": "2.6.29",
|
|
59
59
|
"@rh-support/utils": "2.6.28",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"defaults and supports es6-module",
|
|
130
130
|
"maintained node versions"
|
|
131
131
|
],
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "78e26961827a37e8a482a67be76d50f0ec9c0286"
|
|
133
133
|
}
|