@rh-support/troubleshoot 2.6.273 → 2.6.280
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 +40 -28
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +1 -3
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +1 -3
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +34 -38
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +59 -19
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +3 -5
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +5 -7
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +24 -37
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +55 -32
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +7 -4
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +10 -10
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +2 -4
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +1 -0
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +15 -3
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +37 -13
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +53 -19
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +3 -1
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +10 -6
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -3
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +64 -50
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +9 -34
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +7 -6
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +9 -10
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +11 -13
- package/lib/esm/reducers/CaseConstNTypes.d.ts +0 -23
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +0 -5
- package/lib/esm/reducers/CaseHelpers.d.ts +1 -2
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +2 -39
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +1 -3
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +5 -7
- package/lib/esm/reducers/CaseReducer.d.ts +5 -15
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +23 -60
- package/package.json +6 -6
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { accounts, contacts, kase, pcm, publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { formattedApiErrorMessage } from '@rh-support/components';
|
|
12
|
-
import {
|
|
13
|
-
|
|
12
|
+
import { dtmTrackEventCaseCreationStepEncountered, getApiResourceObject, PreviousToNewCaseTypeMap, } from '@rh-support/utils';
|
|
13
|
+
import delay from 'lodash/delay';
|
|
14
14
|
import filter from 'lodash/filter';
|
|
15
15
|
import find from 'lodash/find';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -20,7 +20,7 @@ import uniq from 'lodash/uniq';
|
|
|
20
20
|
import uniqBy from 'lodash/uniqBy';
|
|
21
21
|
import { trimAndReplacePlus } from '../components/shared/utils';
|
|
22
22
|
import { CaseReducerConstants, DESCRIPTION_LENGTH_LIMIT, initialCaseState, SupportLevelDisplay, } from './CaseConstNTypes';
|
|
23
|
-
import { createCasePayload,
|
|
23
|
+
import { createCasePayload, getCaseFromSessionDetails, getCaseRecommendations, getCepCommentFromCepDetails, getHasInvalidEntitlements, getProcessedEntitlements, } from './CaseHelpers';
|
|
24
24
|
import { updateSession } from './SessionRestoreReducer';
|
|
25
25
|
export const caseReducer = (pState, action) => {
|
|
26
26
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -29,20 +29,17 @@ export const caseReducer = (pState, action) => {
|
|
|
29
29
|
const hasLargeCaseDescription = action.payload.caseDetails.hasOwnProperty('description')
|
|
30
30
|
? (action.payload.caseDetails.description || '').length > DESCRIPTION_LENGTH_LIMIT
|
|
31
31
|
: pState.hasLargeCaseDescription;
|
|
32
|
-
let resetEntitlementId = false;
|
|
33
32
|
if (((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.contactSSOName) &&
|
|
34
33
|
pState.caseDetails.contactSSOName !== ((_d = (_c = action.payload) === null || _c === void 0 ? void 0 : _c.caseDetails) === null || _d === void 0 ? void 0 : _d.contactSSOName)) {
|
|
35
34
|
// Need to reset casegroup and sla as they are dependent on selected owner
|
|
36
35
|
action.payload.caseDetails.entitlementSla = undefined;
|
|
37
|
-
resetEntitlementId = true;
|
|
38
36
|
}
|
|
39
37
|
if (((_f = (_e = action.payload) === null || _e === void 0 ? void 0 : _e.caseDetails) === null || _f === void 0 ? void 0 : _f.product) &&
|
|
40
38
|
pState.caseDetails.product !== ((_h = (_g = action.payload) === null || _g === void 0 ? void 0 : _g.caseDetails) === null || _h === void 0 ? void 0 : _h.product)) {
|
|
41
39
|
// need to reset sla on product change as individiual products can have independent sla
|
|
42
40
|
action.payload.caseDetails.entitlementSla = undefined;
|
|
43
|
-
resetEntitlementId = true;
|
|
44
41
|
}
|
|
45
|
-
return Object.assign(Object.assign(
|
|
42
|
+
return Object.assign(Object.assign({}, pState), { hasLargeCaseDescription, caseDetails: Object.assign(Object.assign({}, pState.caseDetails), action.payload.caseDetails), isCaseUpdating: false });
|
|
46
43
|
}
|
|
47
44
|
case CaseReducerConstants.caseStateChanged: {
|
|
48
45
|
return Object.assign(Object.assign({}, pState), action.payload);
|
|
@@ -170,23 +167,15 @@ export const setNotifiedUser = (dispatch, selectedNotificationContacts) => {
|
|
|
170
167
|
payload: { selectedNotificationContacts },
|
|
171
168
|
});
|
|
172
169
|
};
|
|
173
|
-
export const submitCase = (dispatch_1, sessionRestoreDispatch_1, caseDetails_1, isCaseCreate_1, errorMessage500_1, loggedInUserSsoUsername_1, ...args_1) => __awaiter(void 0, [dispatch_1, sessionRestoreDispatch_1, caseDetails_1, isCaseCreate_1, errorMessage500_1, loggedInUserSsoUsername_1, ...args_1], void 0, function* (dispatch, sessionRestoreDispatch, caseDetails, isCaseCreate, errorMessage500, loggedInUserSsoUsername, isSecureSupport = false, isResubmit, isCreatingCaseFlow, sessionItem
|
|
174
|
-
var _a, _b
|
|
170
|
+
export const submitCase = (dispatch_1, sessionRestoreDispatch_1, caseDetails_1, isCaseCreate_1, errorMessage500_1, loggedInUserSsoUsername_1, ...args_1) => __awaiter(void 0, [dispatch_1, sessionRestoreDispatch_1, caseDetails_1, isCaseCreate_1, errorMessage500_1, loggedInUserSsoUsername_1, ...args_1], void 0, function* (dispatch, sessionRestoreDispatch, caseDetails, isCaseCreate, errorMessage500, loggedInUserSsoUsername, isSecureSupport = false, isResubmit, isCreatingCaseFlow, sessionItem) {
|
|
171
|
+
var _a, _b;
|
|
175
172
|
dispatch({ type: CaseReducerConstants.isCreatingCase });
|
|
176
173
|
try {
|
|
177
174
|
const casePayload = createCasePayload(caseDetails, sessionItem, isCaseCreate);
|
|
178
|
-
const graphQLPayload = createCasePayloadGraphQL(caseDetails, sessionItem, isCaseCreate);
|
|
179
175
|
dispatch({ type: CaseReducerConstants.resetCaseNoOfCreatedCase, payload: { caseNoOfCreatedCase: '' } });
|
|
180
|
-
const
|
|
181
|
-
mutation: CREATE_SUPPORT_CASE,
|
|
182
|
-
variables: {
|
|
183
|
-
caseInput: graphQLPayload,
|
|
184
|
-
},
|
|
185
|
-
});
|
|
186
|
-
const caseRecord = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.SalesforceSupportRecord;
|
|
187
|
-
const caseNumber = (_c = caseRecord === null || caseRecord === void 0 ? void 0 : caseRecord.CaseNumber) === null || _c === void 0 ? void 0 : _c.value;
|
|
176
|
+
const caseNumber = yield publicApi.kase.createCase(casePayload, caseDetails.selectedAccountDetails.data.secureSupport);
|
|
188
177
|
if (casePayload.contactSSOName === loggedInUserSsoUsername &&
|
|
189
|
-
!isEmpty((
|
|
178
|
+
!isEmpty((_a = casePayload.phoneAreaCodePrefixLineNumber) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
190
179
|
!isEmpty(trimAndReplacePlus((casePayload === null || casePayload === void 0 ? void 0 : casePayload.phoneCountryCode) || ''))) {
|
|
191
180
|
contacts.updateContactBySSO(casePayload.contactSSOName, {
|
|
192
181
|
supportPhoneCountryCode: casePayload.phoneCountryCode,
|
|
@@ -195,7 +184,7 @@ export const submitCase = (dispatch_1, sessionRestoreDispatch_1, caseDetails_1,
|
|
|
195
184
|
}
|
|
196
185
|
// For updating the sessions and posting cep details after case creation
|
|
197
186
|
postCaseCreationProcessing(isSecureSupport, dispatch, sessionRestoreDispatch, caseNumber, caseDetails, sessionItem);
|
|
198
|
-
dtmTrackEventCaseCreationStepEncountered(isCreatingCaseFlow, 'Submit', false, caseNumber, PreviousToNewCaseTypeMap[(
|
|
187
|
+
dtmTrackEventCaseCreationStepEncountered(isCreatingCaseFlow, 'Submit', false, caseNumber, PreviousToNewCaseTypeMap[(_b = caseDetails.caseDetails) === null || _b === void 0 ? void 0 : _b.caseType], caseDetails.caseDetails.summary, caseDetails.caseDetails.product, caseDetails.caseDetails.version);
|
|
199
188
|
dispatch({ type: CaseReducerConstants.caseCreated, payload: { caseNoOfCreatedCase: caseNumber } });
|
|
200
189
|
}
|
|
201
190
|
catch (error) {
|
|
@@ -387,8 +376,8 @@ export const clearSelectedAccount = (dispatch) => {
|
|
|
387
376
|
payload: { caseDetails: { accountNumberRef: '' } },
|
|
388
377
|
});
|
|
389
378
|
};
|
|
390
|
-
export const setCaseAccountNumber = (dispatch_1, accountNumber_1, ...args_1) => __awaiter(void 0, [dispatch_1, accountNumber_1, ...args_1], void 0, function* (dispatch, accountNumber, isLoggedInUsersAccount = false, loggedInUserAccount = {}
|
|
391
|
-
var _a
|
|
379
|
+
export const setCaseAccountNumber = (dispatch_1, accountNumber_1, ...args_1) => __awaiter(void 0, [dispatch_1, accountNumber_1, ...args_1], void 0, function* (dispatch, accountNumber, isLoggedInUsersAccount = false, loggedInUserAccount = {}) {
|
|
380
|
+
var _a;
|
|
392
381
|
if (isLoggedInUsersAccount && !isEmpty(loggedInUserAccount) && !isEmpty(accountNumber)) {
|
|
393
382
|
dispatch({
|
|
394
383
|
type: CaseReducerConstants.caseStateChanged,
|
|
@@ -421,12 +410,7 @@ export const setCaseAccountNumber = (dispatch_1, accountNumber_1, ...args_1) =>
|
|
|
421
410
|
payload: { selectedAccountDetails: getApiResourceObject({}, true) },
|
|
422
411
|
});
|
|
423
412
|
try {
|
|
424
|
-
const
|
|
425
|
-
query: GET_ACCOUNT,
|
|
426
|
-
variables: getAccountQueryVariables(accountNumber),
|
|
427
|
-
});
|
|
428
|
-
const edges = (_e = (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.SalesforceSupportAccount) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : [];
|
|
429
|
-
const selectedAccountDetails = handleGraphQLAccountResponse(edges);
|
|
413
|
+
const selectedAccountDetails = yield accounts.getAccount(accountNumber);
|
|
430
414
|
dispatch({
|
|
431
415
|
type: CaseReducerConstants.caseStateChanged,
|
|
432
416
|
payload: { selectedAccountDetails: getApiResourceObject(selectedAccountDetails) },
|
|
@@ -491,7 +475,7 @@ export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGrou
|
|
|
491
475
|
}
|
|
492
476
|
dispatch({
|
|
493
477
|
type: CaseReducerConstants.caseStateChanged,
|
|
494
|
-
payload: { selectedOwner: getApiResourceObject(owner)
|
|
478
|
+
payload: { selectedOwner: getApiResourceObject(owner) },
|
|
495
479
|
});
|
|
496
480
|
dispatch({
|
|
497
481
|
type: CaseReducerConstants.caseDetailChanged,
|
|
@@ -500,6 +484,7 @@ export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGrou
|
|
|
500
484
|
if (canChangeGroup) {
|
|
501
485
|
const accountNumber = owner.accountNumber;
|
|
502
486
|
if (owner.isInternal && accountNumber) {
|
|
487
|
+
// For internal users, fetch case groups based on account number
|
|
503
488
|
fetchCaseGroupsForAccount(dispatch, accountNumber, setCaseGroupToUngroupedOrDefault, abortSignalCaseGroup, caseGroupNumberToRestore);
|
|
504
489
|
}
|
|
505
490
|
else {
|
|
@@ -507,19 +492,9 @@ export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGrou
|
|
|
507
492
|
fetchCaseGroupsForSSO(dispatch, owner.ssoUsername, setCaseGroupToUngroupedOrDefault, abortSignalCaseGroup, caseGroupNumberToRestore);
|
|
508
493
|
}
|
|
509
494
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
// dispatch,
|
|
514
|
-
// owner.ssoUsername!,
|
|
515
|
-
// product,
|
|
516
|
-
// abortSignalEntitlements,
|
|
517
|
-
// isUserUpdate,
|
|
518
|
-
// caseNumber
|
|
519
|
-
// ),
|
|
520
|
-
// 5000,
|
|
521
|
-
// 'later'
|
|
522
|
-
// );
|
|
495
|
+
delay(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
496
|
+
return yield fetchCaseEntitlements(dispatch, owner.ssoUsername, product, abortSignalEntitlements, isUserUpdate, caseNumber);
|
|
497
|
+
}), 5000, 'later');
|
|
523
498
|
});
|
|
524
499
|
//changing the item values to uppercase to match the backend values
|
|
525
500
|
const slaOrder = Object.values(SupportLevelDisplay).map((item) => {
|
|
@@ -600,12 +575,12 @@ export const fetchCaseGroupsForSSO = (dispatch_1, contactSsoUsername_1, ...args_
|
|
|
600
575
|
const getSelectedNotificationContactsFromSession = (contacts, notifiedUsers) => {
|
|
601
576
|
return filter(contacts, (c) => notifiedUsers.includes(c.ssoUsername));
|
|
602
577
|
};
|
|
603
|
-
export const updateCaseWithSession = (dispatch_1, sessionItem_1, loggedInUserAccountNumber_1, loggedInUserContact_1, ...args_1) => __awaiter(void 0, [dispatch_1, sessionItem_1, loggedInUserAccountNumber_1, loggedInUserContact_1, ...args_1], void 0, function* (dispatch, sessionItem, loggedInUserAccountNumber, loggedInUserContact, loggedInUserAccount = {}
|
|
578
|
+
export const updateCaseWithSession = (dispatch_1, sessionItem_1, loggedInUserAccountNumber_1, loggedInUserContact_1, ...args_1) => __awaiter(void 0, [dispatch_1, sessionItem_1, loggedInUserAccountNumber_1, loggedInUserContact_1, ...args_1], void 0, function* (dispatch, sessionItem, loggedInUserAccountNumber, loggedInUserContact, loggedInUserAccount = {}) {
|
|
604
579
|
var _a, _b, _c, _d;
|
|
605
580
|
const caseDetails = getCaseFromSessionDetails(sessionItem, loggedInUserAccountNumber, loggedInUserContact.ssoUsername);
|
|
606
581
|
const { sessionDetails } = sessionItem;
|
|
607
582
|
setCaseDetails(dispatch, caseDetails);
|
|
608
|
-
setCaseAccountNumber(dispatch, caseDetails.accountNumberRef, caseDetails.accountNumberRef === loggedInUserAccountNumber, loggedInUserAccount
|
|
583
|
+
setCaseAccountNumber(dispatch, caseDetails.accountNumberRef, caseDetails.accountNumberRef === loggedInUserAccountNumber, loggedInUserAccount);
|
|
609
584
|
// entitlementSla gets undefined when case group, owner or product is changed
|
|
610
585
|
// Please refer line 60
|
|
611
586
|
if (isUndefined(caseDetails.entitlementSla)) {
|
|
@@ -665,7 +640,7 @@ const getAllRelevantContacts = (loggedInUserContact, caseAccountNumber, contactS
|
|
|
665
640
|
return uniqBy(contactsToReturn, 'ssoUsername');
|
|
666
641
|
}
|
|
667
642
|
});
|
|
668
|
-
export const fetchCaseDetails = (dispatch, caseNumber, loggedInUserRights, loggedInUser
|
|
643
|
+
export const fetchCaseDetails = (dispatch, caseNumber, loggedInUserRights, loggedInUser) => __awaiter(void 0, void 0, void 0, function* () {
|
|
669
644
|
var _a, _b;
|
|
670
645
|
dispatch({ type: CaseReducerConstants.requestCaseDetails, payload: { caseDetails: { caseNumber } } });
|
|
671
646
|
try {
|
|
@@ -735,7 +710,7 @@ export const fetchCaseDetails = (dispatch, caseNumber, loggedInUserRights, logge
|
|
|
735
710
|
caseNoOfCreatedCase: caseNumber,
|
|
736
711
|
};
|
|
737
712
|
dispatch({ type: CaseReducerConstants.receivedCaseDetails, payload: Object.assign(Object.assign({}, caseState), { caseDetails }) });
|
|
738
|
-
setCaseAccountNumber(dispatch, data.accountNumberRef
|
|
713
|
+
setCaseAccountNumber(dispatch, data.accountNumberRef);
|
|
739
714
|
const canChangeGroup = loggedInUserRights.isInternal() ||
|
|
740
715
|
loggedInUser.isOrgAdmin ||
|
|
741
716
|
loggedInUser.ssoUsername === caseDetails.contactSSOName ||
|
|
@@ -963,26 +938,14 @@ export function updateEmailListState(dispatch, email, customEmailsList, callback
|
|
|
963
938
|
payload: { customEmailsList: Object.assign(Object.assign({}, customEmailsList), { data: newEmail }) },
|
|
964
939
|
});
|
|
965
940
|
}
|
|
966
|
-
export function getVersionsDetails(dispatch,
|
|
941
|
+
export function getVersionsDetails(dispatch, product) {
|
|
967
942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
968
|
-
var _a, _b, _c, _d;
|
|
969
943
|
try {
|
|
970
944
|
dispatch({
|
|
971
945
|
type: CaseReducerConstants.getVersionDetails,
|
|
972
946
|
payload: { versionsDetails: getApiResourceObject([], true) },
|
|
973
947
|
});
|
|
974
|
-
const
|
|
975
|
-
query: GET_PRODUCTS,
|
|
976
|
-
variables: {
|
|
977
|
-
where: {
|
|
978
|
-
ParentProduct__c: { eq: parentProductId },
|
|
979
|
-
IsActive: { eq: true },
|
|
980
|
-
},
|
|
981
|
-
first: 200,
|
|
982
|
-
},
|
|
983
|
-
});
|
|
984
|
-
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.SalesforceSupportProduct2) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
985
|
-
const versionsDetails = handleGraphQLVersionsResponse(edges, parentProductName);
|
|
948
|
+
const versionsDetails = yield pcm.products.getDetailedVersions(product);
|
|
986
949
|
dispatch({
|
|
987
950
|
type: CaseReducerConstants.getVersionDetails,
|
|
988
951
|
payload: { versionsDetails: getApiResourceObject(versionsDetails) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.280",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@progress/kendo-licensing": "1.3.5",
|
|
54
54
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
55
55
|
"@redux-devtools/extension": "^3.3.0",
|
|
56
|
-
"@rh-support/components": "2.5.
|
|
57
|
-
"@rh-support/react-context": "2.5.
|
|
56
|
+
"@rh-support/components": "2.5.165",
|
|
57
|
+
"@rh-support/react-context": "2.5.255",
|
|
58
58
|
"@rh-support/types": "2.0.26",
|
|
59
|
-
"@rh-support/user-permissions": "2.5.
|
|
60
|
-
"@rh-support/utils": "2.5.
|
|
59
|
+
"@rh-support/user-permissions": "2.5.111",
|
|
60
|
+
"@rh-support/utils": "2.5.92",
|
|
61
61
|
"@types/react-redux": "^7.1.33",
|
|
62
62
|
"@types/redux": "^3.6.0",
|
|
63
63
|
"date-fns": "3.6.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"defaults and supports es6-module",
|
|
128
128
|
"maintained node versions"
|
|
129
129
|
],
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "885e09d1b122b6340159a8d297ff4f40095d9379"
|
|
131
131
|
}
|