@rh-support/troubleshoot 2.6.295 → 2.6.299
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/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +4 -7
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +42 -12
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +17 -7
- 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 +17 -12
- 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 +4 -7
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +4 -30
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +4 -30
- 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/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/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/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/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 +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/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +18 -4
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +4 -7
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +6 -10
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +0 -2
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- 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/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 +0 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +0 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +0 -2
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +1 -28
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +14 -4
- 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/package.json +5 -5
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export interface ISFStringValue {
|
|
2
|
+
stringValue: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ISFBooleanValue {
|
|
5
|
+
booleanValue: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ISFDoubleValue {
|
|
8
|
+
doubleValue: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ISFDateTimeValue {
|
|
11
|
+
dateTimeValue: string;
|
|
12
|
+
}
|
|
13
|
+
export type SFValue = ISFStringValue | ISFBooleanValue | ISFDoubleValue | ISFDateTimeValue | null;
|
|
14
|
+
export interface ICaseHistoryNode {
|
|
15
|
+
Id: string;
|
|
16
|
+
SalesforceSupportField: {
|
|
17
|
+
value: string;
|
|
18
|
+
displayValue: string | null;
|
|
19
|
+
label: string | null;
|
|
20
|
+
};
|
|
21
|
+
OldValue: SFValue;
|
|
22
|
+
NewValue: SFValue;
|
|
23
|
+
CreatedBy: {
|
|
24
|
+
Name: {
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
UserType: {
|
|
28
|
+
value: string;
|
|
29
|
+
} | null;
|
|
30
|
+
SmallPhotoUrl: {
|
|
31
|
+
value: string | null;
|
|
32
|
+
} | null;
|
|
33
|
+
};
|
|
34
|
+
CreatedDate: {
|
|
35
|
+
value: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface ICaseHistoryEdge {
|
|
39
|
+
node: ICaseHistoryNode;
|
|
40
|
+
}
|
|
41
|
+
export interface IGetCaseHistoryData {
|
|
42
|
+
salesforce_support_uiapi: {
|
|
43
|
+
query: {
|
|
44
|
+
SalesforceSupportCaseHistory: {
|
|
45
|
+
edges: ICaseHistoryEdge[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface IGetCaseHistoryVars {
|
|
51
|
+
caseId: string;
|
|
52
|
+
first?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Normalized representation of a single Salesforce case history entry.
|
|
56
|
+
*
|
|
57
|
+
* Discriminated on `type`:
|
|
58
|
+
* - `'Action'` — lifecycle events (created, closed, owner transfer) where no field
|
|
59
|
+
* value changed. `outputText` contains the human-readable sentence.
|
|
60
|
+
* - `'Change'` — field-value mutations. `outputText` is empty; the Timeline layer
|
|
61
|
+
* formats display text via `applyReplacements` / `handleFieldChange`.
|
|
62
|
+
*/
|
|
63
|
+
export interface ICaseHistoryItem {
|
|
64
|
+
id: string;
|
|
65
|
+
/** Raw Salesforce API field name (e.g. `Status`, `Case_Language__c`, `created`). */
|
|
66
|
+
fieldName: string;
|
|
67
|
+
/** Resolved human-readable label for the field (from FIELD_NAME_DISPLAY_MAP, SF label, or displayValue). */
|
|
68
|
+
displayName: string;
|
|
69
|
+
label: string | null;
|
|
70
|
+
oldValue: string | null;
|
|
71
|
+
newValue: string | null;
|
|
72
|
+
createdDate: string;
|
|
73
|
+
createdByUserName: string;
|
|
74
|
+
createdByCustomer: boolean;
|
|
75
|
+
photoUrl: string | null;
|
|
76
|
+
type: 'Action' | 'Change';
|
|
77
|
+
/** Pre-built sentence for Action items (e.g. "created the case"); empty for Change items. */
|
|
78
|
+
outputText: string;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=caseHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caseHistory.d.ts","sourceRoot":"","sources":["../../../src/models/caseHistory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC5B,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAC;AAElG,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAA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,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -177,7 +177,6 @@ export declare enum CaseReducerConstants {
|
|
|
177
177
|
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
178
178
|
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
179
179
|
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError",
|
|
180
|
-
updateComments = "updateComments",
|
|
181
180
|
setABTestVariation = "setABTestVariation"
|
|
182
181
|
}
|
|
183
182
|
export declare const initialCaseState: ICaseState;
|
|
@@ -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,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;AAC5E,OAAO,EAAE,QAA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AAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA6C,CAAC;AAE9F,eAAO,MAAM,uBAAuB,UAAoC,CAAC;AACzE,eAAO,MAAM,eAAe,YAAY,CAAC"}
|
|
@@ -127,7 +127,6 @@ export var CaseReducerConstants;
|
|
|
127
127
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
128
128
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
129
129
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
130
|
-
CaseReducerConstants["updateComments"] = "updateComments";
|
|
131
130
|
CaseReducerConstants["setABTestVariation"] = "setABTestVariation";
|
|
132
131
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
133
132
|
export const initialCaseState = {
|
|
@@ -2,7 +2,6 @@ import { ICaseChat, ICaseComment, IExternalTrackerUpdate } from '@cee-eng/hydraj
|
|
|
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 {
|
|
@@ -49,7 +48,6 @@ export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType,
|
|
|
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,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC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F,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) {
|
|
@@ -211,32 +210,6 @@ export const updateAttachment = (dispatch, uuid, newAttachment, allDiscussions)
|
|
|
211
210
|
});
|
|
212
211
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
213
212
|
};
|
|
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
213
|
export const updateDiscussionStateAttachments = (dispatch, caseNumber, allDiscussions, sort, isSecureSupport, discussionFiltersListState, dispatchCaseDetailsHydraAttachments) => __awaiter(void 0, void 0, void 0, function* () {
|
|
241
214
|
try {
|
|
242
215
|
const attachments = yield kase.getAttachments(caseNumber, false, isSecureSupport);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAEA,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,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE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E,iBAAiB,MAAM,SAK5F,CAAC"}
|
|
@@ -7,6 +7,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
10
21
|
import { accounts, contacts, kase, pcm, publicApi } from '@cee-eng/hydrajs';
|
|
11
22
|
import { formattedApiErrorMessage } from '@rh-support/components';
|
|
12
23
|
import { CREATE_SUPPORT_CASE, dtmTrackEventCaseCreationStepEncountered, fetchCaseDetailsByCaseNumber, GET_ACCOUNT, GET_PRODUCTS, getAccountQueryVariables, getApiResourceObject, handleGraphQLAccountResponse, handleGraphQLVersionsResponse, mapGraphQLCaseDetailsToCasePayload, PreviousToNewCaseTypeMap, updateCaseDetailsGraphQLRequest, } from '@rh-support/utils';
|
|
@@ -92,10 +103,8 @@ export const caseReducer = (pState, action) => {
|
|
|
92
103
|
return Object.assign(Object.assign(Object.assign({}, pState), initialCaseState), { isFetchingCaseDetails: true, isFetchingCaseDetailsError: false, caseDetails: Object.assign(Object.assign({}, initialCaseState.caseDetails), { caseNumber: (_l = (_k = (_j = action.payload) === null || _j === void 0 ? void 0 : _j.caseDetails) === null || _k === void 0 ? void 0 : _k.caseNumber) !== null && _l !== void 0 ? _l : '' }) });
|
|
93
104
|
}
|
|
94
105
|
case CaseReducerConstants.receivedCaseDetails: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
case CaseReducerConstants.updateComments: {
|
|
98
|
-
return Object.assign(Object.assign({}, pState), { caseDetails: Object.assign(Object.assign({}, pState.caseDetails), { comments: action.payload.caseDetails.comments }) });
|
|
106
|
+
const _m = action.payload, { caseDetails } = _m, rest = __rest(_m, ["caseDetails"]);
|
|
107
|
+
return Object.assign(Object.assign(Object.assign({}, pState), rest), { caseDetails: Object.assign(Object.assign({}, pState.caseDetails), caseDetails), isFetchingCaseDetails: false, isFetchingCaseDetailsError: false });
|
|
99
108
|
}
|
|
100
109
|
case CaseReducerConstants.receivedCaseDetailsError: {
|
|
101
110
|
return Object.assign(Object.assign({}, pState), { isFetchingCaseDetails: false, isFetchingCaseDetailsError: true, caseDetailsError: action.payload.caseDetailsError });
|
|
@@ -669,6 +678,7 @@ export const fetchCaseDetailsHydra = (dispatch, caseNumber, loggedInUserRights,
|
|
|
669
678
|
try {
|
|
670
679
|
const data = yield publicApi.kase.getCase(caseNumber);
|
|
671
680
|
const caseDetails = {
|
|
681
|
+
id: data.id,
|
|
672
682
|
product: data.product,
|
|
673
683
|
version: data.version,
|
|
674
684
|
summary: data.summary,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface IHistoryChangeItem {
|
|
2
|
+
fieldName: string;
|
|
3
|
+
displayName?: string;
|
|
4
|
+
oldValue?: string | null;
|
|
5
|
+
newValue?: string | boolean | null;
|
|
6
|
+
createdByUserName?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const MULTI_SELECT_FIELDS: string[];
|
|
9
|
+
export declare const LANGUAGE_CODE_MAPPING: Record<string, string>;
|
|
10
|
+
/**
|
|
11
|
+
* Maps `displayName` values (from `normalizeNodeToHistoryItem`, not raw SF API names)
|
|
12
|
+
* to camelCase property prefixes used for hydrated lookup properties on history items.
|
|
13
|
+
* E.g. key `"Product"` → prefix `"product"` → looks up `productNewName`, `productOldName`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const KEY_MAP: Record<string, string>;
|
|
16
|
+
export declare const formatMultiSelectChange: (fieldName: string, oldValue: string, newValue: string) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Generates human-readable text for a field change based on which values are present:
|
|
19
|
+
* - Both values present → "changed X from A to B" (multiselect fields get add/remove diffing)
|
|
20
|
+
* - Only newValue → "set X to B"
|
|
21
|
+
* - Only oldValue (newValue is undefined or empty) → "removed X, was A"
|
|
22
|
+
* - None of the above but `item.newValue` exists → fallback for cases where the resolved
|
|
23
|
+
* display string on the item differs from the `newValue` parameter passed in
|
|
24
|
+
*/
|
|
25
|
+
export declare const formatDefaultChange: (item: IHistoryChangeItem, fieldName: string, oldValue: string, newValue: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Field-specific formatting for history change text. Each case handles a SF field
|
|
28
|
+
* whose raw values need special treatment before display.
|
|
29
|
+
*/
|
|
30
|
+
export declare const handleFieldChange: (item: IHistoryChangeItem, fieldName: string, oldValue: string, newValue: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Post-processes formatted change text.
|
|
33
|
+
*
|
|
34
|
+
* - Boolean special case: SF boolean history entries can carry a raw `boolean` newValue
|
|
35
|
+
* even after `extractStringValue` stringifies it. When the item's `newValue` is still
|
|
36
|
+
* a boolean at this point, we generate dedicated text to avoid displaying "true"/"false".
|
|
37
|
+
* - String replacements remap legacy SF display names to current UI terminology
|
|
38
|
+
* ("Problem Statement" → "Title", "Case Type" → "Support Type").
|
|
39
|
+
*/
|
|
40
|
+
export declare const applyPostProcessing: (text: string, item: IHistoryChangeItem) => string;
|
|
41
|
+
//# sourceMappingURL=TimelineUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/TimelineUtils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAMD,eAAO,MAAM,mBAAmB,UAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcxD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAY1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,KAAG,MAgB/F,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC5B,MAAM,kBAAkB,EACxB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,UAAU,MAAM,KACjB,MAiBF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC1B,MAAM,kBAAkB,EACxB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,UAAU,MAAM,KACjB,MA+BF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,EAAE,MAAM,kBAAkB,KAAG,MAM5E,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { getFieldDisplayName } from './caseHistoryUtils';
|
|
2
|
+
// https://help.salesforce.com/s/articleView?id=000384484&type=1
|
|
3
|
+
// Adding in option for multiselect fields provided by salesforce.
|
|
4
|
+
// In future for more multiselect fields just add to below array.
|
|
5
|
+
// SF delimits multiselect picklist values with semicolons (`;`).
|
|
6
|
+
export const MULTI_SELECT_FIELDS = ['SBR_Group__c'];
|
|
7
|
+
export const LANGUAGE_CODE_MAPPING = {
|
|
8
|
+
de: 'German',
|
|
9
|
+
en: 'English',
|
|
10
|
+
es: 'Spanish',
|
|
11
|
+
fr: 'French',
|
|
12
|
+
it: 'Italian',
|
|
13
|
+
pt: 'Portuguese',
|
|
14
|
+
ko: 'Korean',
|
|
15
|
+
ja: 'Japanese',
|
|
16
|
+
zh: 'Chinese',
|
|
17
|
+
zh_CN: 'Chinese',
|
|
18
|
+
zh_HK: 'Chinese (Hong Kong)',
|
|
19
|
+
zh_TW: 'Chinese (Taiwan)',
|
|
20
|
+
ru: 'Russian',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Maps `displayName` values (from `normalizeNodeToHistoryItem`, not raw SF API names)
|
|
24
|
+
* to camelCase property prefixes used for hydrated lookup properties on history items.
|
|
25
|
+
* E.g. key `"Product"` → prefix `"product"` → looks up `productNewName`, `productOldName`.
|
|
26
|
+
*/
|
|
27
|
+
export const KEY_MAP = {
|
|
28
|
+
Product: 'product',
|
|
29
|
+
Version: 'version',
|
|
30
|
+
Account: 'account',
|
|
31
|
+
Contact: 'contact',
|
|
32
|
+
Entitlement: 'entitlement',
|
|
33
|
+
'Business Hours': 'businessHours',
|
|
34
|
+
Owner: 'queueNameOwner',
|
|
35
|
+
'Customer Escalation': 'customerEscalation',
|
|
36
|
+
'Case Group': 'caseGroup',
|
|
37
|
+
'SLA Start Date': 'slaStartDate',
|
|
38
|
+
'Case Language': 'caseLanguage',
|
|
39
|
+
};
|
|
40
|
+
export const formatMultiSelectChange = (fieldName, oldValue, newValue) => {
|
|
41
|
+
const oldValues = oldValue.split(';').map((s) => s.trim());
|
|
42
|
+
const newValues = newValue.split(';').map((s) => s.trim());
|
|
43
|
+
const added = newValues.filter((nv) => !oldValues.includes(nv));
|
|
44
|
+
const removed = oldValues.filter((ov) => !newValues.includes(ov));
|
|
45
|
+
if (added.length > 0 && removed.length === 0) {
|
|
46
|
+
return `added ${added.join(', ')} to ${fieldName}`;
|
|
47
|
+
}
|
|
48
|
+
if (removed.length > 0 && added.length === 0) {
|
|
49
|
+
return `removed ${removed.join(', ')} from ${fieldName}`;
|
|
50
|
+
}
|
|
51
|
+
if (added.length > 0 && removed.length > 0) {
|
|
52
|
+
return `changed ${fieldName}, added ${added.join(', ')} and removed ${removed.join(', ')}`;
|
|
53
|
+
}
|
|
54
|
+
return `changed ${fieldName} from ${oldValue} to ${newValue}`;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Generates human-readable text for a field change based on which values are present:
|
|
58
|
+
* - Both values present → "changed X from A to B" (multiselect fields get add/remove diffing)
|
|
59
|
+
* - Only newValue → "set X to B"
|
|
60
|
+
* - Only oldValue (newValue is undefined or empty) → "removed X, was A"
|
|
61
|
+
* - None of the above but `item.newValue` exists → fallback for cases where the resolved
|
|
62
|
+
* display string on the item differs from the `newValue` parameter passed in
|
|
63
|
+
*/
|
|
64
|
+
export const formatDefaultChange = (item, fieldName, oldValue, newValue) => {
|
|
65
|
+
if (oldValue && newValue) {
|
|
66
|
+
if (MULTI_SELECT_FIELDS.includes(item.fieldName)) {
|
|
67
|
+
return formatMultiSelectChange(fieldName, oldValue, newValue);
|
|
68
|
+
}
|
|
69
|
+
return `changed ${fieldName} from ${oldValue} to ${newValue}`;
|
|
70
|
+
}
|
|
71
|
+
if (newValue) {
|
|
72
|
+
return `set ${fieldName} to ${newValue}`;
|
|
73
|
+
}
|
|
74
|
+
if (oldValue && (newValue === undefined || newValue === '')) {
|
|
75
|
+
return `removed ${fieldName}, was ${oldValue}`;
|
|
76
|
+
}
|
|
77
|
+
if (item.newValue !== undefined) {
|
|
78
|
+
return `set ${fieldName} to ${item.newValue}`;
|
|
79
|
+
}
|
|
80
|
+
return '';
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Field-specific formatting for history change text. Each case handles a SF field
|
|
84
|
+
* whose raw values need special treatment before display.
|
|
85
|
+
*/
|
|
86
|
+
export const handleFieldChange = (item, fieldName, oldValue, newValue) => {
|
|
87
|
+
var _a, _b;
|
|
88
|
+
switch (item.fieldName) {
|
|
89
|
+
// Raw values are ISO 639-1 language codes; expand via LANGUAGE_CODE_MAPPING.
|
|
90
|
+
case 'Case_Language__c': {
|
|
91
|
+
const newVal = String((_a = item.newValue) !== null && _a !== void 0 ? _a : '');
|
|
92
|
+
const oldVal = String((_b = item.oldValue) !== null && _b !== void 0 ? _b : '');
|
|
93
|
+
const newLanguage = LANGUAGE_CODE_MAPPING[newVal] || newVal;
|
|
94
|
+
const oldLanguage = LANGUAGE_CODE_MAPPING[oldVal] || oldVal;
|
|
95
|
+
return oldVal && newVal
|
|
96
|
+
? `changed ${fieldName} from ${oldLanguage} to ${newLanguage}`
|
|
97
|
+
: `set ${fieldName} to ${newLanguage || 'empty'}`;
|
|
98
|
+
}
|
|
99
|
+
// Raw SFDC IDs were already filtered by filterSfdcIdEntries; this handles the
|
|
100
|
+
// resolved-name path and uses createdByUserName as the display value.
|
|
101
|
+
case 'OwnerId':
|
|
102
|
+
return item.createdByUserName ? `set ${fieldName} to ${item.createdByUserName}` : '';
|
|
103
|
+
case 'Status':
|
|
104
|
+
return item.oldValue && item.newValue
|
|
105
|
+
? `changed ${fieldName} from ${item.oldValue} to ${item.newValue}`
|
|
106
|
+
: `set ${fieldName} to ${item.newValue || 'empty'}`;
|
|
107
|
+
// Boolean toggle → human sentence; only reports when a user name is available.
|
|
108
|
+
case 'Customer_Escalation__c':
|
|
109
|
+
return item.createdByUserName ? 'started Escalation for this ticket' : '';
|
|
110
|
+
case 'SlaStartDate':
|
|
111
|
+
return item.newValue ? `set ${fieldName} to ${item.newValue}` : '';
|
|
112
|
+
// Field value is a user ID, not a label — hardcoded string avoids displaying a raw ID.
|
|
113
|
+
case 'RemoteSessionTermsAckedBy__c':
|
|
114
|
+
return 'Acked Remote Rider terms';
|
|
115
|
+
default:
|
|
116
|
+
return formatDefaultChange(item, fieldName, oldValue, newValue);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Post-processes formatted change text.
|
|
121
|
+
*
|
|
122
|
+
* - Boolean special case: SF boolean history entries can carry a raw `boolean` newValue
|
|
123
|
+
* even after `extractStringValue` stringifies it. When the item's `newValue` is still
|
|
124
|
+
* a boolean at this point, we generate dedicated text to avoid displaying "true"/"false".
|
|
125
|
+
* - String replacements remap legacy SF display names to current UI terminology
|
|
126
|
+
* ("Problem Statement" → "Title", "Case Type" → "Support Type").
|
|
127
|
+
*/
|
|
128
|
+
export const applyPostProcessing = (text, item) => {
|
|
129
|
+
if (typeof item.newValue === 'boolean') {
|
|
130
|
+
const fieldName = item.displayName || getFieldDisplayName(item.fieldName);
|
|
131
|
+
return `set ${fieldName} to ${item.newValue}`;
|
|
132
|
+
}
|
|
133
|
+
return text.replaceAll('Problem Statement', 'Title').replaceAll('Case Type', 'Support Type');
|
|
134
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ICaseHistoryEdge, ICaseHistoryItem, ICaseHistoryNode, SFValue } from '../models/caseHistory';
|
|
2
|
+
/**
|
|
3
|
+
* Maps Salesforce field identifiers to human-readable display names.
|
|
4
|
+
*
|
|
5
|
+
* Contains two distinct key categories:
|
|
6
|
+
* - Real SF API field names (e.g. `ContactId`, `RH_Product__c`, `FolderId__c`)
|
|
7
|
+
* - Synthetic lifecycle pseudo-fields produced by the SF History API (e.g. `created`,
|
|
8
|
+
* `closed`, `ownerAssignment`). These are not custom Salesforce fields — they represent
|
|
9
|
+
* case lifecycle events that appear as history entries with no OldValue/NewValue.
|
|
10
|
+
*/
|
|
11
|
+
export declare const FIELD_NAME_DISPLAY_MAP: Record<string, string>;
|
|
12
|
+
export declare function getFieldDisplayName(fieldName: string): string | undefined;
|
|
13
|
+
export declare function isSfdcId(value: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Extracts a string representation from a polymorphic SF value union.
|
|
16
|
+
*
|
|
17
|
+
* Property names (`stringValue`, `booleanValue`, etc.) correspond to GraphQL
|
|
18
|
+
* inline-fragment aliases defined in the `GET_CASE_HISTORY` query. Changing those
|
|
19
|
+
* aliases without updating this function will silently break value extraction.
|
|
20
|
+
*
|
|
21
|
+
* The check order is safe because the union discriminants are mutually exclusive.
|
|
22
|
+
* Note: empty string `''` is a valid return value (distinct from `null`).
|
|
23
|
+
*/
|
|
24
|
+
export declare function extractStringValue(val: SFValue): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Lifecycle pseudo-field names from the SF History API mapped to human-readable action
|
|
27
|
+
* sentences. Fields not listed here fall back to using the raw `fieldName` as output text
|
|
28
|
+
* in {@link normalizeNodeToHistoryItem}.
|
|
29
|
+
*/
|
|
30
|
+
export declare const SPECIAL_FIELD_ACTIONS: Record<string, string>;
|
|
31
|
+
export declare const DEFAULT_AVATAR_SRC = "https://www.patternfly.org/images/668560cd.svg";
|
|
32
|
+
/**
|
|
33
|
+
* Only SF `UserType === 'Standard'` is treated as an internal (Red Hat) user.
|
|
34
|
+
* All other types — including `null`, `undefined`, and unknown portal types — default
|
|
35
|
+
* to customer. This conservative default ensures external users are never accidentally
|
|
36
|
+
* styled as internal.
|
|
37
|
+
*/
|
|
38
|
+
export declare function deriveIsCustomer(userType: string | null | undefined): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Filters out history entries whose values are raw Salesforce IDs that cannot be
|
|
41
|
+
* decoded into human-readable display strings.
|
|
42
|
+
*
|
|
43
|
+
* Filtering rules:
|
|
44
|
+
* - Both values null → **keep** (lifecycle action events carry no values)
|
|
45
|
+
* - `newValue` is an SFDC ID and `oldValue` is null or also an ID → **drop**
|
|
46
|
+
* (unresolvable reference change with no readable side)
|
|
47
|
+
* - `oldValue` is an SFDC ID and `newValue` is null → **drop**
|
|
48
|
+
* (ID removal with no display name)
|
|
49
|
+
* - At least one side is a human-readable string → **keep**
|
|
50
|
+
*/
|
|
51
|
+
export declare function filterSfdcIdEntries(edges: ICaseHistoryEdge[]): ICaseHistoryNode[];
|
|
52
|
+
/**
|
|
53
|
+
* Converts a raw SF history node into a normalized `ICaseHistoryItem`.
|
|
54
|
+
*
|
|
55
|
+
* Classifies each entry as either:
|
|
56
|
+
* - **Action** (`!oldValue && !newValue`): lifecycle events like "created", "closed".
|
|
57
|
+
* `outputText` is set here from {@link SPECIAL_FIELD_ACTIONS}, or falls back to the
|
|
58
|
+
* raw `fieldName` for unknown actions.
|
|
59
|
+
* - **Change**: field-value mutations. `outputText` is left empty because the Timeline
|
|
60
|
+
* layer formats change text via `applyReplacements` / `handleFieldChange`.
|
|
61
|
+
*
|
|
62
|
+
* Display name fallback chain: `FIELD_NAME_DISPLAY_MAP` → SF `label` → SF
|
|
63
|
+
* `displayValue` → raw `fieldName`.
|
|
64
|
+
*/
|
|
65
|
+
export declare function normalizeNodeToHistoryItem(node: ICaseHistoryNode): ICaseHistoryItem;
|
|
66
|
+
//# sourceMappingURL=caseHistoryUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caseHistoryUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseHistoryUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3G;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoBzD,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzE;AAMD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAO9D;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,mDAAmD,CAAC;AAInF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAG7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAajF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAuCnF"}
|