@rh-support/troubleshoot 2.3.0-alpha.0 → 2.4.5-beta.10
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/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +1 -1
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +20 -16
- package/lib/esm/components/Cve/CveItem.d.ts +8 -0
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveItem.js +86 -0
- package/lib/esm/components/Cve/CveModal.d.ts +3 -0
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveModal.js +42 -0
- package/lib/esm/components/Cve/CvePanel.d.ts +7 -0
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -0
- package/lib/esm/components/Cve/CvePanel.js +23 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts +3 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveSidebar.js +24 -0
- package/lib/esm/components/OpenCase/OpenCase.d.ts +3 -0
- package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.js +8 -0
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +3 -0
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +29 -21
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -0
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +2 -2
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts +4 -2
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +12 -7
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +1 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +2 -2
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +5 -6
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +54 -15
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts +3 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +11 -0
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +14 -7
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +11 -9
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +28 -22
- package/lib/esm/css/results.css +6 -0
- package/lib/esm/hooks/useFetchCVEData.d.ts +5 -0
- package/lib/esm/hooks/useFetchCVEData.d.ts.map +1 -0
- package/lib/esm/hooks/useFetchCVEData.js +133 -0
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +11 -3
- package/lib/esm/models/caseCreationWorkflows.d.ts +25 -0
- package/lib/esm/models/caseCreationWorkflows.d.ts.map +1 -0
- package/lib/esm/models/caseCreationWorkflows.js +1 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +4 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +3 -0
- package/lib/esm/reducers/CaseReducer.d.ts +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +13 -9
- package/lib/esm/reducers/RouteConstNTypes.d.ts +0 -1
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +0 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +15 -122
- package/lib/esm/scss/_main.scss +19 -0
- package/lib/esm/utils/caseUtils.d.ts +6 -0
- package/lib/esm/utils/caseUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseUtils.js +15 -0
- package/package.json +9 -10
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
|
|
2
|
+
import { ability } from '@rh-support/user-permissions/lib/esm/AuthFramework';
|
|
3
|
+
import { CaseListFields, resourceActions, resources } from '@rh-support/user-permissions/lib/esm/enums';
|
|
2
4
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
3
5
|
import isEmpty from 'lodash/isEmpty';
|
|
4
6
|
import isEqual from 'lodash/isEqual';
|
|
5
7
|
import React, { Suspense, useContext } from 'react';
|
|
6
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
9
|
+
import { AccountSelector } from '../components/AccountInfo/AccountSelector';
|
|
10
|
+
import { OwnerSelector } from '../components/AccountInfo/OwnerSelector';
|
|
7
11
|
import CaseInformation from '../components/CaseInformation/CaseInformation';
|
|
8
12
|
import CaseManagement from '../components/CaseManagement/CaseManagement';
|
|
9
13
|
import IdeaInformation from '../components/IdeaInformation/IdeaInformation';
|
|
@@ -50,18 +54,22 @@ export function useWizard(routeProps, props) {
|
|
|
50
54
|
: AlertType.DANGER, isInline: true, title: title, className: "pf-v5-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
|
|
51
55
|
};
|
|
52
56
|
let summarizeNextButtonLabelLogic = () => {
|
|
53
|
-
return props.
|
|
57
|
+
return props.userScrolledLabel;
|
|
54
58
|
};
|
|
59
|
+
const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
|
|
55
60
|
// components that are used in wizard steps
|
|
56
61
|
const appRouteConfugurations = {
|
|
57
62
|
[AppRouteSections.GET_SUPPORT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.GET_SUPPORT, name: t('Get support'), component: (React.createElement(MainSection, { stepNumber: 1, totalSteps: 6, section: AppRouteSections.GET_SUPPORT, title: t('Why are you opening a case?'), description: t('Select the best category for your issue.') },
|
|
58
63
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
59
64
|
alertMessage(),
|
|
60
|
-
React.createElement(OpenCase, { routeProps: routeProps })))), canJumpTo: isSectionValidFn(AppRouteSections.GET_SUPPORT) || activeSection === AppRouteSections.GET_SUPPORT }),
|
|
65
|
+
React.createElement(OpenCase, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef })))), canJumpTo: isSectionValidFn(AppRouteSections.GET_SUPPORT) || activeSection === AppRouteSections.GET_SUPPORT }),
|
|
61
66
|
[AppRouteSections.SUMMARIZE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.SUMMARIZE, name: t('Summarize'), component: (React.createElement(MainSection, { stepNumber: 2, totalSteps: 6, section: AppRouteSections.SUMMARIZE, title: t('What are you having an issue with?') },
|
|
62
67
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
63
68
|
alertMessage(),
|
|
64
|
-
|
|
69
|
+
canChangeAccountInfo && !isCaseCreate && (React.createElement(React.Fragment, null,
|
|
70
|
+
React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
|
|
71
|
+
React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
|
|
72
|
+
React.createElement(ProductSelector, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: false, caseCreateExperience: isCaseCreate })))), canJumpTo: isSectionValidFn(AppRouteSections.SUMMARIZE) || activeSection === AppRouteSections.SUMMARIZE, nextButtonLabel: (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
|
|
65
73
|
!isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
|
|
66
74
|
? t('Continue')
|
|
67
75
|
: t('See more options') }),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ICVEWorkflowRecommendation {
|
|
2
|
+
publicDate: string;
|
|
3
|
+
title: string;
|
|
4
|
+
severity: any;
|
|
5
|
+
mitigation: any;
|
|
6
|
+
details: string;
|
|
7
|
+
cveLink: string;
|
|
8
|
+
errataData: IErrataDetails[];
|
|
9
|
+
}
|
|
10
|
+
interface IAdvisory {
|
|
11
|
+
name: string;
|
|
12
|
+
release_date: string;
|
|
13
|
+
type: string;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IErrataDetails {
|
|
17
|
+
cpe: string;
|
|
18
|
+
product: string;
|
|
19
|
+
advisory: IAdvisory;
|
|
20
|
+
package: string;
|
|
21
|
+
state: string;
|
|
22
|
+
lifecycle_url: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=caseCreationWorkflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caseCreationWorkflows.d.ts","sourceRoot":"","sources":["../../../src/models/caseCreationWorkflows.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,7 @@ 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
9
|
import { Dispatch } from 'react';
|
|
10
|
+
import { ICVEWorkflowRecommendation } from '../models/caseCreationWorkflows';
|
|
10
11
|
export declare const TITLE_SUMMARY_LENGTH_LIMIT = 255;
|
|
11
12
|
export declare const ISSUE_SUMMARY_LENGTH_LIMIT = 20000;
|
|
12
13
|
export declare const SUMMARY_LENGTH_LIMIT = 255;
|
|
@@ -179,6 +180,7 @@ export declare enum CaseReducerConstants {
|
|
|
179
180
|
}
|
|
180
181
|
export declare const initialCaseState: ICaseState;
|
|
181
182
|
export interface ICaseState {
|
|
183
|
+
enableGetSupportProductVersion?: boolean;
|
|
182
184
|
caseDetailsStrata: IApiResponseDetails<Partial<ICaseDetails>>;
|
|
183
185
|
caseDetails: Partial<ICasePayload>;
|
|
184
186
|
customerEscalation: boolean;
|
|
@@ -230,6 +232,8 @@ export interface ICaseState {
|
|
|
230
232
|
shouldNotSetPhoneCountryCode?: boolean;
|
|
231
233
|
ftsContactSameAsOwner?: boolean;
|
|
232
234
|
isCasePhoneUpdating?: boolean;
|
|
235
|
+
cveWorkflowRecommendation?: ICVEWorkflowRecommendation[];
|
|
236
|
+
isCveModalOpened?: boolean;
|
|
233
237
|
}
|
|
234
238
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
235
239
|
}
|
|
@@ -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,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,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;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD,eAAO,MAAM,oBAAoB,MAAM,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0B,EAAE,CAAC;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,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"}
|
|
@@ -130,6 +130,7 @@ export var CaseReducerConstants;
|
|
|
130
130
|
CaseReducerConstants["updateComments"] = "updateComments";
|
|
131
131
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
132
132
|
export const initialCaseState = {
|
|
133
|
+
enableGetSupportProductVersion: true,
|
|
133
134
|
isCreatingCase: false,
|
|
134
135
|
caseCreationError: false,
|
|
135
136
|
caseCreationErrorMessage: '',
|
|
@@ -227,6 +228,8 @@ export const initialCaseState = {
|
|
|
227
228
|
shouldNotSetPhoneCountryCode: false,
|
|
228
229
|
ftsContactSameAsOwner: false,
|
|
229
230
|
isCasePhoneUpdating: false,
|
|
231
|
+
cveWorkflowRecommendation: [],
|
|
232
|
+
isCveModalOpened: true,
|
|
230
233
|
};
|
|
231
234
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
232
235
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -36,7 +36,7 @@ export declare const deleteNotifiedUsers: (dispatch: CaseReducerDispatchType, ca
|
|
|
36
36
|
export declare const addingNotifiedUsers: (dispatch: CaseReducerDispatchType, caseNumber: string, addedUsers: IContact[]) => Promise<void>;
|
|
37
37
|
export declare const clearSelectedAccount: (dispatch: CaseReducerDispatchType) => void;
|
|
38
38
|
export declare const setCaseAccountNumber: (dispatch: CaseReducerDispatchType, accountNumber: string, isLoggedInUsersAccount?: boolean, loggedInUserAccount?: Partial<IAccount>) => Promise<void>;
|
|
39
|
-
export declare const setCaseOwner: (dispatch: CaseReducerDispatchType, owner: IContact, product: string, abortSignalCaseGroup?: AbortSignal, abortSignalEntitlements?: AbortSignal, setCaseGroupToUngroupedOrDefault?: boolean, caseGroupNumberToRestore?: string | undefined, canChangeGroup?: boolean) => Promise<void>;
|
|
39
|
+
export declare const setCaseOwner: (dispatch: CaseReducerDispatchType, owner: IContact, product: string, abortSignalCaseGroup?: AbortSignal, abortSignalEntitlements?: AbortSignal, setCaseGroupToUngroupedOrDefault?: boolean, caseGroupNumberToRestore?: string | undefined, canChangeGroup?: boolean, isUserUpdate?: boolean, caseNumber?: string) => Promise<void>;
|
|
40
40
|
export declare const fetchCaseGroupsForSSO: (dispatch: CaseReducerDispatchType, contactSsoUsername: string, setCaseGroupToUngroupedOrDefault?: boolean, abortSignal?: AbortSignal, caseGroupNumberToRestore?: string | undefined) => Promise<void>;
|
|
41
41
|
export declare const updateCaseWithSession: (dispatch: CaseReducerDispatchType, sessionItem: ISessionItem, loggedInUserAccountNumber: string, loggedInUserContact: IContact, loggedInUserAccount?: Partial<IAccount>) => Promise<void>;
|
|
42
42
|
export declare const fetchCaseDetails: (dispatch: CaseReducerDispatchType, caseNumber: string, loggedInUserRights: any, loggedInUser: any) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ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C;AAEF,eAAO,MAAM,oCAAoC,aACnC,uBAAuB,yEAInB,MAAM,kBACJ,MAAM,kBAgFzB,CAAC;AAEF,eAAO,MAAM,yCAAyC,aACxC,uBAAuB,cACrB,OAAO,iBACJ,MAAM,SAMxB,CAAC;AAIF,eAAO,MAAM,yBAAyB,aACxB,uBAAuB,iBAClB,MAAM,eACR,MAAM,sBACC,QAAQ,kBA6B/B,CAAC;AAEF,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,iBAmBtG;AAGD,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,0BAA0B,EAAE,QAO5D;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC"}
|
|
@@ -417,7 +417,7 @@ export const setCaseAccountNumber = (dispatch_1, accountNumber_1, ...args_1) =>
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
|
-
export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGroup_1, abortSignalEntitlements_1, ...args_1) => __awaiter(void 0, [dispatch_1, owner_1, product_1, abortSignalCaseGroup_1, abortSignalEntitlements_1, ...args_1], void 0, function* (dispatch, owner, product, abortSignalCaseGroup, abortSignalEntitlements, setCaseGroupToUngroupedOrDefault = false, caseGroupNumberToRestore, canChangeGroup = true) {
|
|
420
|
+
export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGroup_1, abortSignalEntitlements_1, ...args_1) => __awaiter(void 0, [dispatch_1, owner_1, product_1, abortSignalCaseGroup_1, abortSignalEntitlements_1, ...args_1], void 0, function* (dispatch, owner, product, abortSignalCaseGroup, abortSignalEntitlements, setCaseGroupToUngroupedOrDefault = false, caseGroupNumberToRestore, canChangeGroup = true, isUserUpdate, caseNumber) {
|
|
421
421
|
if (isEmpty(owner) || isEmpty(owner.ssoUsername)) {
|
|
422
422
|
dispatch({
|
|
423
423
|
type: CaseReducerConstants.caseDetailChanged,
|
|
@@ -451,7 +451,7 @@ export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGrou
|
|
|
451
451
|
});
|
|
452
452
|
canChangeGroup &&
|
|
453
453
|
fetchCaseGroupsForSSO(dispatch, owner.ssoUsername, setCaseGroupToUngroupedOrDefault, abortSignalCaseGroup, caseGroupNumberToRestore);
|
|
454
|
-
fetchCaseEntitlements(dispatch, owner.ssoUsername, product, abortSignalEntitlements);
|
|
454
|
+
yield fetchCaseEntitlements(dispatch, owner.ssoUsername, product, abortSignalEntitlements, isUserUpdate, caseNumber);
|
|
455
455
|
});
|
|
456
456
|
//changing the item values to uppercase to match the backend values
|
|
457
457
|
const slaOrder = Object.values(SupportLevelDisplay).map((item) => {
|
|
@@ -472,7 +472,7 @@ const getHighestSLASubscription = (subs) => {
|
|
|
472
472
|
return currentIndex > highestIndex ? current : highest;
|
|
473
473
|
});
|
|
474
474
|
};
|
|
475
|
-
const fetchCaseEntitlements = (dispatch, ssoUserName, product, abortSignal) => __awaiter(void 0, void 0, void 0, function* () {
|
|
475
|
+
const fetchCaseEntitlements = (dispatch, ssoUserName, product, abortSignal, isUserUpdate, caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
|
476
476
|
dispatch({
|
|
477
477
|
type: CaseReducerConstants.caseStateChanged,
|
|
478
478
|
payload: { ownersEntitlements: getApiResourceObject([], true) },
|
|
@@ -485,12 +485,16 @@ const fetchCaseEntitlements = (dispatch, ssoUserName, product, abortSignal) => _
|
|
|
485
485
|
type: CaseReducerConstants.caseStateChanged,
|
|
486
486
|
payload: { hasInvalidEntitlements, ownersEntitlements },
|
|
487
487
|
});
|
|
488
|
-
//
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
488
|
+
// Checking for the highest available support level for the user
|
|
489
|
+
if (isUserUpdate) {
|
|
490
|
+
const highest = getHighestSLASubscription(ownersEntitlements.data);
|
|
491
|
+
const caseDetails = { entitlementSla: highest.slaProcessId };
|
|
492
|
+
yield updateCaseDetails(dispatch, caseNumber, caseDetails);
|
|
493
|
+
dispatch({
|
|
494
|
+
type: CaseReducerConstants.caseDetailChanged,
|
|
495
|
+
payload: { caseDetails: { entitlementSla: highest.slaProcessId } },
|
|
496
|
+
});
|
|
497
|
+
}
|
|
494
498
|
}
|
|
495
499
|
catch (e) {
|
|
496
500
|
dispatch({
|
|
@@ -50,5 +50,4 @@ export declare const showSideBarClusterIdRuleWidgetSections: AppRouteSections[];
|
|
|
50
50
|
export declare const showSideBarFileRecommendationSections: AppRouteSections[];
|
|
51
51
|
export declare const hideSideBarClusterIdRuleToast: AppRouteSections[];
|
|
52
52
|
export declare const hiddengetSupportSections: AppRouteSections[];
|
|
53
|
-
export declare const showRecommendationTipsSections: AppRouteSections[];
|
|
54
53
|
//# sourceMappingURL=RouteConstNTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/RouteConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB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c;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAClB;AAKD,eAAO,MAAM,4BAA4B,EAAE,gBAAgB,EAI1D,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,gBAAgB,EAK9D,CAAC;AAEF,eAAO,MAAM,iCAAiC,oBAQ7C,CAAC;AAEF,eAAO,MAAM,gCAAgC,oBAQ5C,CAAC;AAEF,eAAO,MAAM,4BAA4B,oBAQxC,CAAC;AAGF,eAAO,MAAM,0BAA0B,oBAAiC,CAAC;AAEzE,eAAO,MAAM,mCAAmC,oBAA+D,CAAC;AAEhH,eAAO,MAAM,kCAAkC,oBAO9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,oBAM3C,CAAC;AAEF,eAAO,MAAM,sCAAsC,oBAAyD,CAAC;AAE7G,eAAO,MAAM,qCAAqC,oBAAgE,CAAC;AAEnH,eAAO,MAAM,6BAA6B,oBAAiC,CAAC;AAE5E,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAKtD,CAAC"}
|
|
@@ -59,7 +59,7 @@ export type SessionRestoreDispatchType = (value: IActionType) => void;
|
|
|
59
59
|
export declare const sessionRestoreReducer: (state: ISessionRestoreState, action: IActionType) => ISessionRestoreState;
|
|
60
60
|
export declare const getIndividualSessionById: (dispatch: SessionReducerDispatchType, sessionId: string | undefined) => Promise<void>;
|
|
61
61
|
export declare const loadPreviousSessions: (dispatch: SessionReducerDispatchType, caseDispatch: CaseReducerDispatchType) => Promise<void>;
|
|
62
|
-
export declare const createSession: (dispatch: SessionReducerDispatchType, sessionDetails: ISessionDetails, session: ISession) => Promise<
|
|
62
|
+
export declare const createSession: (dispatch: SessionReducerDispatchType, sessionDetails: ISessionDetails, session: ISession) => Promise<string>;
|
|
63
63
|
export declare const updateSession: (dispatch: SessionReducerDispatchType, sessionId: string, sessionDetails: ISessionDetails, session?: ISession) => Promise<void>;
|
|
64
64
|
export declare const updateActiveSessionId: (dispatch: SessionReducerDispatchType, activeSessionId: string) => void;
|
|
65
65
|
export declare function getRelevantSessionFromSessions(dispatch: SessionReducerDispatchType, currentRelevantSessionId: string, previousSessions: IPrevSessions, caseDetails: Partial<ICasePayload>): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0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O,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { pcm } from '@cee-eng/hydrajs';
|
|
11
|
-
import {
|
|
11
|
+
import { getApiCreationStatus, getApiResourceObject, getApiUpdationStatus, getPastUTCDateFromNow, getResTypeFromUrl, promiseReflection, } from '@rh-support/utils';
|
|
12
12
|
import cloneDeep from 'lodash/cloneDeep';
|
|
13
13
|
import differenceBy from 'lodash/differenceBy';
|
|
14
14
|
import filter from 'lodash/filter';
|
|
@@ -16,17 +16,9 @@ import findIndex from 'lodash/findIndex';
|
|
|
16
16
|
import forEach from 'lodash/forEach';
|
|
17
17
|
import isEmpty from 'lodash/isEmpty';
|
|
18
18
|
import map from 'lodash/map';
|
|
19
|
-
import omit from 'lodash/omit';
|
|
20
|
-
import pick from 'lodash/pick';
|
|
21
19
|
import uniqBy from 'lodash/uniqBy';
|
|
22
20
|
import { CaseReducerConstants } from './CaseConstNTypes';
|
|
23
|
-
const {
|
|
24
|
-
// getSessions,
|
|
25
|
-
patchSession,
|
|
26
|
-
// createNewSession,
|
|
27
|
-
// createSessionResources,
|
|
28
|
-
// updateSessionResources,
|
|
29
|
-
createSessionCepDetails, SessionResourceVisibility, } = pcm.preCase.session;
|
|
21
|
+
const { getSessions, patchSession, createNewSession, createSessionResources, updateSessionResources, createSessionCepDetails, SessionResourceVisibility, } = pcm.preCase.session;
|
|
30
22
|
// Constants
|
|
31
23
|
export var SessionRestoreConstants;
|
|
32
24
|
(function (SessionRestoreConstants) {
|
|
@@ -134,10 +126,7 @@ export const getIndividualSessionById = (dispatch, sessionId) => __awaiter(void
|
|
|
134
126
|
if (isEmpty(sessionId))
|
|
135
127
|
return;
|
|
136
128
|
try {
|
|
137
|
-
|
|
138
|
-
// sessionId: sessionId,
|
|
139
|
-
// });
|
|
140
|
-
const sessions = yield getSessionByGraphql({
|
|
129
|
+
const sessions = yield getSessions({
|
|
141
130
|
sessionId: sessionId,
|
|
142
131
|
});
|
|
143
132
|
if (!isEmpty(sessions)) {
|
|
@@ -146,30 +135,6 @@ export const getIndividualSessionById = (dispatch, sessionId) => __awaiter(void
|
|
|
146
135
|
}
|
|
147
136
|
catch (error) { }
|
|
148
137
|
});
|
|
149
|
-
// transform graphql session data as per rest API
|
|
150
|
-
const transformGraphqlSessionToRestSession = (sessionResponse, isNodeValue = false) => {
|
|
151
|
-
const result = map(sessionResponse, (s) => {
|
|
152
|
-
const response = isNodeValue ? s === null || s === void 0 ? void 0 : s.node : s;
|
|
153
|
-
return {
|
|
154
|
-
session: omit(response, ['pcmSessionDetails', 'pcmSessionResource']),
|
|
155
|
-
sessionDetails: pick(response, ['pcmSessionDetails']).pcmSessionDetails,
|
|
156
|
-
};
|
|
157
|
-
});
|
|
158
|
-
console.log('transformGraphqlSessionToRestSession', result);
|
|
159
|
-
return result;
|
|
160
|
-
};
|
|
161
|
-
const getSessionByGraphql = (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
162
|
-
var _a, _b;
|
|
163
|
-
const response = yield graphqlFetch({
|
|
164
|
-
query: GET_SESSION,
|
|
165
|
-
variables: {
|
|
166
|
-
filters: Object.assign({}, payload),
|
|
167
|
-
first: 3,
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
const sessions = transformGraphqlSessionToRestSession((_b = (_a = response === null || response === void 0 ? void 0 : response.pcm_session) === null || _a === void 0 ? void 0 : _a.edges) !== null && _b !== void 0 ? _b : [], true);
|
|
171
|
-
return sessions;
|
|
172
|
-
});
|
|
173
138
|
// Function to Load Previous Session
|
|
174
139
|
export const loadPreviousSessions = (dispatch, caseDispatch) => __awaiter(void 0, void 0, void 0, function* () {
|
|
175
140
|
dispatch({
|
|
@@ -177,17 +142,11 @@ export const loadPreviousSessions = (dispatch, caseDispatch) => __awaiter(void 0
|
|
|
177
142
|
payload: { previousSessions: getApiResourceObject({}, true), hasFetchedPreviousSessions: false },
|
|
178
143
|
});
|
|
179
144
|
try {
|
|
180
|
-
|
|
181
|
-
// isResolved: false,
|
|
182
|
-
// isActive: true,
|
|
183
|
-
// modifiedAfter: getPastUTCDateFromNow(30),
|
|
184
|
-
// });
|
|
185
|
-
const sessions = yield getSessionByGraphql({
|
|
145
|
+
const sessions = yield getSessions({
|
|
186
146
|
isResolved: false,
|
|
187
147
|
isActive: true,
|
|
188
148
|
modifiedAfter: getPastUTCDateFromNow(30),
|
|
189
149
|
});
|
|
190
|
-
console.log('sessions graphql', sessions);
|
|
191
150
|
const prevSessions = {};
|
|
192
151
|
let foundSessionWithCaseCreationError = {};
|
|
193
152
|
for (const s of sessions) {
|
|
@@ -226,25 +185,12 @@ export const loadPreviousSessions = (dispatch, caseDispatch) => __awaiter(void 0
|
|
|
226
185
|
});
|
|
227
186
|
// Function to Create Session
|
|
228
187
|
export const createSession = (dispatch, sessionDetails, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
229
|
-
var _a;
|
|
230
188
|
try {
|
|
231
189
|
dispatch({
|
|
232
190
|
type: SessionRestoreConstants.setSessionCreationState,
|
|
233
191
|
payload: { sessionCreationStatus: getApiCreationStatus(true) },
|
|
234
192
|
});
|
|
235
|
-
|
|
236
|
-
const response = yield graphqlFetch({
|
|
237
|
-
query: CREATE_SESSION,
|
|
238
|
-
variables: {
|
|
239
|
-
input: {
|
|
240
|
-
session,
|
|
241
|
-
sessionDetails,
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
console.log('CREATE_SESSION', response);
|
|
246
|
-
const newSession = transformGraphqlSessionToRestSession([(_a = response === null || response === void 0 ? void 0 : response.pcm_create_session) !== null && _a !== void 0 ? _a : []]);
|
|
247
|
-
const newSessionDetails = newSession === null || newSession === void 0 ? void 0 : newSession[0];
|
|
193
|
+
const newSessionDetails = yield createNewSession(sessionDetails, session);
|
|
248
194
|
setTimeout(() => createSessionCepDetails(newSessionDetails.session.id, {}), 2000);
|
|
249
195
|
dispatch({ type: SessionRestoreConstants.createSession, payload: { sessionItem: newSessionDetails } });
|
|
250
196
|
return newSessionDetails.session.id;
|
|
@@ -258,39 +204,13 @@ export const createSession = (dispatch, sessionDetails, session) => __awaiter(vo
|
|
|
258
204
|
}
|
|
259
205
|
});
|
|
260
206
|
// Function to Update Session
|
|
261
|
-
const updateSessionByGraphql = (sessionId, sessionDetails, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
262
|
-
var _a;
|
|
263
|
-
const response = yield graphqlFetch({
|
|
264
|
-
query: UPDATE_SESSION,
|
|
265
|
-
variables: {
|
|
266
|
-
input: {
|
|
267
|
-
session: omit(session, [
|
|
268
|
-
'hasVisitedResources',
|
|
269
|
-
'modifiedBy',
|
|
270
|
-
'modifiedDate',
|
|
271
|
-
'createdBy',
|
|
272
|
-
'createdDate',
|
|
273
|
-
'id',
|
|
274
|
-
]),
|
|
275
|
-
sessionDetails,
|
|
276
|
-
sessionId,
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
});
|
|
280
|
-
console.log('UPDATE_SESSION', response === null || response === void 0 ? void 0 : response.pcm_updateSession);
|
|
281
|
-
const updatedNewSession = transformGraphqlSessionToRestSession([(_a = response === null || response === void 0 ? void 0 : response.pcm_update_session) !== null && _a !== void 0 ? _a : []]);
|
|
282
|
-
const updatedSession = updatedNewSession === null || updatedNewSession === void 0 ? void 0 : updatedNewSession[0];
|
|
283
|
-
return updatedSession;
|
|
284
|
-
});
|
|
285
207
|
export const updateSession = (dispatch, sessionId, sessionDetails, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
286
208
|
try {
|
|
287
209
|
dispatch({
|
|
288
210
|
type: SessionRestoreConstants.setSessionUpdationState,
|
|
289
211
|
payload: { sessionUpdationStatus: getApiUpdationStatus(true) },
|
|
290
212
|
});
|
|
291
|
-
|
|
292
|
-
const updatedSession = yield updateSessionByGraphql(sessionId, sessionDetails, session);
|
|
293
|
-
console.log('updatedSession1 graphql', updatedSession);
|
|
213
|
+
const updatedSession = yield patchSession(sessionId, sessionDetails, session);
|
|
294
214
|
// to set sessionDetails fn param used because the session api response removes the
|
|
295
215
|
// fields that have undefined value and it causes problem when we compare
|
|
296
216
|
// sessionDetails and caseDetails
|
|
@@ -332,8 +252,7 @@ export function getRelevantSessionFromSessions(dispatch, currentRelevantSessionI
|
|
|
332
252
|
}
|
|
333
253
|
else if (sessionItem && sessionItem.session.hasVisitedResources && sessionItem.session.isActive) {
|
|
334
254
|
// Mark session as inactive so that it doesn't bother us next time
|
|
335
|
-
|
|
336
|
-
updateSessionByGraphql(s, {}, { isActive: false });
|
|
255
|
+
patchSession(s, {}, { isActive: false });
|
|
337
256
|
// Mocking it as we don't really care if and when this call is made as long as we ignore these sessions in next iteration
|
|
338
257
|
const updatedSession = Object.assign(Object.assign({}, sessionItem), { session: Object.assign(Object.assign({}, sessionItem.session), { isActive: false }) });
|
|
339
258
|
dispatch({ type: SessionRestoreConstants.patchSession, payload: { sessionItem: updatedSession } });
|
|
@@ -387,7 +306,6 @@ export function createOrUpdateSessionResources(dispatch_1, activeSessionId_1, cu
|
|
|
387
306
|
// Create Session Resource Helper
|
|
388
307
|
export function createSessionResourcesLocal(dispatch_1, activeSessionId_1, currentSessionResourceTracking_1, source_1, payload_1) {
|
|
389
308
|
return __awaiter(this, arguments, void 0, function* (dispatch, activeSessionId, currentSessionResourceTracking, source, payload, resources = []) {
|
|
390
|
-
var _a;
|
|
391
309
|
if (isEmpty(payload) || isEmpty(activeSessionId) || isEmpty(source))
|
|
392
310
|
return;
|
|
393
311
|
const resourceTracking = currentSessionResourceTracking[source];
|
|
@@ -405,22 +323,12 @@ export function createSessionResourcesLocal(dispatch_1, activeSessionId_1, curre
|
|
|
405
323
|
presentedTabResources: filter(resources, (res) => res.visibilityStatus === SessionResourceVisibility.PRESENTED_TAB),
|
|
406
324
|
},
|
|
407
325
|
});
|
|
408
|
-
|
|
409
|
-
const response = yield graphqlFetch({
|
|
410
|
-
query: CREATE_SESSION_RESOURCE,
|
|
411
|
-
variables: {
|
|
412
|
-
input: {
|
|
413
|
-
sessionResources: resources,
|
|
414
|
-
resourceOrigin: { source, payload },
|
|
415
|
-
sessionId: activeSessionId,
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
});
|
|
326
|
+
const response = yield createSessionResources(activeSessionId, { source, payload }, resources);
|
|
419
327
|
dispatch({
|
|
420
328
|
type: SessionRestoreConstants.updateSessionResourceTracking,
|
|
421
329
|
payload: {
|
|
422
330
|
resourceSource: source,
|
|
423
|
-
resourceOriginId:
|
|
331
|
+
resourceOriginId: response.resourceOrigin.id,
|
|
424
332
|
},
|
|
425
333
|
});
|
|
426
334
|
}
|
|
@@ -450,26 +358,11 @@ export function updateSessionResourcesLocal(dispatch, activeSessionId, currentSe
|
|
|
450
358
|
!nonPreviouslyPresentedTabResources.length)
|
|
451
359
|
return;
|
|
452
360
|
try {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const response1 = yield graphqlFetch({
|
|
459
|
-
query: UPDATE_SESSION_RESOURCE,
|
|
460
|
-
variables: {
|
|
461
|
-
input: {
|
|
462
|
-
sessionResources: [
|
|
463
|
-
...nonPreviouslyVisitedResources,
|
|
464
|
-
...nonPreviouslyPresentedResources,
|
|
465
|
-
...nonPreviouslyPresentedTabResources,
|
|
466
|
-
],
|
|
467
|
-
resourceOriginId: resourceTracking.resourceOriginId,
|
|
468
|
-
sessionId: activeSessionId,
|
|
469
|
-
},
|
|
470
|
-
},
|
|
471
|
-
});
|
|
472
|
-
console.log('updateSessionResources', response1);
|
|
361
|
+
yield updateSessionResources(activeSessionId, { id: resourceTracking.resourceOriginId }, [
|
|
362
|
+
...nonPreviouslyVisitedResources,
|
|
363
|
+
...nonPreviouslyPresentedResources,
|
|
364
|
+
...nonPreviouslyPresentedTabResources,
|
|
365
|
+
]);
|
|
473
366
|
const payloadToDispatch = {
|
|
474
367
|
resourceSource: source,
|
|
475
368
|
sessionResourceTracking: {},
|
|
@@ -497,7 +390,7 @@ export function getSessResFromRecs(recs, visibilityStatus, pageSize = 1, current
|
|
|
497
390
|
return toReturn;
|
|
498
391
|
}
|
|
499
392
|
// Recommendations Helper Function
|
|
500
|
-
export const getSessResFromRec = (rec, visibilityStatus, rank = 1) => (Object.assign(Object.assign({ visibilityStatus }, (rec.id && { resourceEntityId: rec.id })), { type: getResTypeFromUrl(rec.view_uri), url: rec.view_uri, rank }));
|
|
393
|
+
export const getSessResFromRec = (rec, visibilityStatus, rank = 1) => (Object.assign(Object.assign({ visibilityStatus }, (rec.id && { resourceEntityId: rec.id })), { type: getResTypeFromUrl(rec.view_uri), url: rec.view_uri, rank, reRankScore: rec.rerank_score }));
|
|
501
394
|
export const getSessResFromRules = (url, visibilityStatus, rank = 1, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(url), url: url, rank }));
|
|
502
395
|
export const getRulesToSave = (visiterUrl, visitedRec, allPresentedRec) => {
|
|
503
396
|
return map(allPresentedRec, (rec, i) => {
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -1060,3 +1060,22 @@ svg.pf-v5-u-ml-xs.icon-size {
|
|
|
1060
1060
|
#get-support-severity-modal {
|
|
1061
1061
|
max-width: min-content;
|
|
1062
1062
|
}
|
|
1063
|
+
|
|
1064
|
+
#DeepPurpleColorAILabel {
|
|
1065
|
+
background-color: #6600cc !important; //deep purple override because not available in PF yet
|
|
1066
|
+
}
|
|
1067
|
+
#DeepPurpleColorAILabel .pf-v5-c-label__content {
|
|
1068
|
+
color: #ffffff !important;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
#DeepPurpleColorAILabel .pf-v5-svg {
|
|
1072
|
+
margin: 0 10px 0 5px;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
#DeepPurpleColorAILabel .pf-v5-c-spinner__path {
|
|
1076
|
+
stroke: white;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
#DeepPurpleColorAILabel svg.pf-v5-c-spinner {
|
|
1080
|
+
margin: 0 10px 0 5px;
|
|
1081
|
+
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export declare const extractKTQuestion1FromDescription: (description: any) => any;
|
|
2
|
+
/**
|
|
3
|
+
* Finds all CVE identifiers in the given text.
|
|
4
|
+
* @param {string} text - The input text to search for CVE identifiers.
|
|
5
|
+
* @returns {string[]} An array of CVE identifiers found in the text, or an empty array if none are found.
|
|
6
|
+
*/
|
|
7
|
+
export declare const findCVEsInString: (text: string) => string[];
|
|
2
8
|
//# sourceMappingURL=caseUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseUtils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iCAAiC,2BAa7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"caseUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseUtils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iCAAiC,2BAa7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,KAAG,MAAM,EAYrD,CAAC"}
|
|
@@ -14,3 +14,18 @@ export const extractKTQuestion1FromDescription = (description) => {
|
|
|
14
14
|
return description;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Finds all CVE identifiers in the given text.
|
|
19
|
+
* @param {string} text - The input text to search for CVE identifiers.
|
|
20
|
+
* @returns {string[]} An array of CVE identifiers found in the text, or an empty array if none are found.
|
|
21
|
+
*/
|
|
22
|
+
export const findCVEsInString = (text) => {
|
|
23
|
+
// Regular expression to match CVE identifiers
|
|
24
|
+
const cveRegex = /\b(CVE-\d{4}-\d{4,7})\b/gi;
|
|
25
|
+
// Find all matches in the text
|
|
26
|
+
const matches = text.match(cveRegex);
|
|
27
|
+
// Deduplicate the matches and convert to uppercase
|
|
28
|
+
const uniqueMatches = [...new Set(matches === null || matches === void 0 ? void 0 : matches.map((match) => match.toUpperCase()))];
|
|
29
|
+
// Return the unique matches, or an empty array if no matches found
|
|
30
|
+
return uniqueMatches || [];
|
|
31
|
+
};
|