@rh-support/troubleshoot 1.0.51 → 1.0.52
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAoCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAoCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eAuRnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -56,11 +56,19 @@ function OwnerSelector(props) {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
try {
|
|
60
|
+
const selectedContact = yield contacts.getSFDCContactBySso(sso);
|
|
61
|
+
setCaseDetails(caseDispatch, {
|
|
62
|
+
phone: selectedContact.phone,
|
|
63
|
+
suppliedPhoneNumberVerified: 'Deferred',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
catch (e) {
|
|
67
|
+
setCaseDetails(caseDispatch, {
|
|
68
|
+
phone: '',
|
|
69
|
+
suppliedPhoneNumberVerified: 'Deferred',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
64
72
|
}
|
|
65
73
|
});
|
|
66
74
|
const updateContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -72,11 +80,19 @@ function OwnerSelector(props) {
|
|
|
72
80
|
});
|
|
73
81
|
}
|
|
74
82
|
else {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
try {
|
|
84
|
+
const selectedContact = yield contacts.getSFDCContactBySso(sso);
|
|
85
|
+
yield updateCaseDetails(caseDispatch, caseNumber, {
|
|
86
|
+
phone: selectedContact.phone,
|
|
87
|
+
suppliedPhoneNumberVerified: 'Deferred',
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
yield updateCaseDetails(caseDispatch, caseNumber, {
|
|
92
|
+
phone: '',
|
|
93
|
+
suppliedPhoneNumberVerified: 'Deferred',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
80
96
|
}
|
|
81
97
|
ToastNotification.addSuccessMessage(t(`Phone number has been successfully updated`));
|
|
82
98
|
}
|
|
@@ -85,7 +85,7 @@ export function CaseContactPhoneNumber() {
|
|
|
85
85
|
? ValidatedOptions.warning
|
|
86
86
|
: ValidatedOptions.default }),
|
|
87
87
|
!isCasePhoneUpdating ? (React.createElement(InputGroupText, { variant: InputGroupTextVariant.plain },
|
|
88
|
-
React.createElement("button", { className: "btn btn-app btn-link pf-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), disabled: (localPhoneState === null || localPhoneState === void 0 ? void 0 : localPhoneState.length) > PHONE_LIMIT },
|
|
88
|
+
React.createElement("button", { className: "btn btn-app btn-link pf-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), disabled: (localPhoneState === null || localPhoneState === void 0 ? void 0 : localPhoneState.length) > PHONE_LIMIT || localPhoneState === phone },
|
|
89
89
|
React.createElement(CheckIcon, null)),
|
|
90
90
|
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onCancel, "data-tracking-id": "case-details-page-supplied-phone-cancel" },
|
|
91
91
|
React.createElement(TimesIcon, { color: "#6A6E73" })))) : (React.createElement(InputGroupText, { variant: InputGroupTextVariant.plain },
|
|
@@ -215,7 +215,7 @@ export const createCasePayload = (caseState, sessionItem, isCaseCreate = false)
|
|
|
215
215
|
? case_details.suppliedPhoneNumberVerified
|
|
216
216
|
: !isEmpty(case_details.phone)
|
|
217
217
|
? 'True'
|
|
218
|
-
: '
|
|
218
|
+
: 'Deferred';
|
|
219
219
|
if (!isEmpty(case_details.entitlementSla) &&
|
|
220
220
|
some(caseState.ownersEntitlements.data, ['slaProcessId', case_details.entitlementSla])) {
|
|
221
221
|
casePayload.entitlementSla = case_details.entitlementSla;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"not ie <= 11",
|
|
146
146
|
"not op_mini all"
|
|
147
147
|
],
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "8479b2a66e377174b20280ac8bc3d660f6a5bf85"
|
|
149
149
|
}
|