@rh-support/utils 2.5.8 → 2.5.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/eventUtils.d.ts
CHANGED
|
@@ -13,9 +13,8 @@ declare function dtmTrackEvent(eventName: string, stepName: string, caseNumber?:
|
|
|
13
13
|
export declare function getPageName(pathname: string): string;
|
|
14
14
|
declare function dtmTrackEventCaseCreationStepEncountered(caseSection: boolean, stepName: string, caseNumber?: string, caseType?: string, caseTitle?: string, product?: string, version?: string): void;
|
|
15
15
|
export declare function dtmTrackEventCaseStepEncountered(stepName: 'close' | 'comment' | 'follow' | 'review', caseNumber?: string, product?: string, version?: string): void;
|
|
16
|
-
export declare function
|
|
17
|
-
declare function dtmTrackEventRecommendationListingItemClicked(url: string, activityName: string, contentListingRegion: string, contentID: string, contentPosition: number, contentTitle: string, contentUrl: string, displayFeature: string, displayFeatureTitle: string): void;
|
|
16
|
+
export declare function dtmTrackEventContentListingItemClicked(url: string, contentID: string, contentPosition: number, contentTitle: string, contentUrl: string, linkText: string, displayFeature: string, displayFeatureTitle: string, isCaseCreate?: boolean): void;
|
|
18
17
|
declare function dtmTrackEventRecommendationListingDisplayed(contentListingRegion: any, activityName: any, listing: any, resultsCount: any): void;
|
|
19
18
|
export declare function dtmTrackEventUploadFileToAnalyze(caseSection: boolean, stepName: string, caseType?: string, caseTitle?: string, product?: string, version?: string): void;
|
|
20
|
-
export { haltEvent, pendoTrackEvent, dtmTrackEvent, dtmTrackEventCaseCreationStepEncountered,
|
|
19
|
+
export { haltEvent, pendoTrackEvent, dtmTrackEvent, dtmTrackEventCaseCreationStepEncountered, dtmTrackEventRecommendationListingDisplayed, };
|
|
21
20
|
//# sourceMappingURL=eventUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../src/eventUtils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAA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aAAa,EACb,wCAAwC,EACxC,2CAA2C,GAC9C,CAAC"}
|
package/lib/esm/eventUtils.js
CHANGED
|
@@ -53,37 +53,25 @@ export function dtmTrackEventCaseStepEncountered(stepName, caseNumber, product,
|
|
|
53
53
|
case: caseObject,
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
// https://github.com/further-external/redhat-datalayer/blob/main/EDDL/global-datalayer.md#
|
|
57
|
-
export function
|
|
58
|
-
const event = 'Page Load Started';
|
|
59
|
-
const caseObject = {
|
|
60
|
-
type: 'cp-support',
|
|
61
|
-
pageName,
|
|
62
|
-
};
|
|
56
|
+
// https://github.com/further-external/redhat-datalayer/blob/main/EDDL/global-datalayer.md#content-listing-item-clicked
|
|
57
|
+
export function dtmTrackEventContentListingItemClicked(url, contentID, contentPosition, contentTitle, contentUrl, linkText, displayFeature, displayFeatureTitle, isCaseCreate = false) {
|
|
63
58
|
(window.appEventData || []).push({
|
|
64
|
-
event,
|
|
65
|
-
case: caseObject,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
// https://github.com/further-external/redhat-datalayer/blob/main/EDDL/global-datalayer.md#recommendation-listing-item-clicked
|
|
69
|
-
function dtmTrackEventRecommendationListingItemClicked(url, activityName, contentListingRegion, contentID, contentPosition, contentTitle, contentUrl, displayFeature, displayFeatureTitle) {
|
|
70
|
-
(window.appEventData || []).push({
|
|
71
|
-
event: 'Recommendation Listing Item Clicked',
|
|
59
|
+
event: 'Content Listing Item Clicked',
|
|
72
60
|
linkInfo: {
|
|
73
61
|
href: url,
|
|
74
|
-
|
|
62
|
+
category: isCaseCreate ? 'case' : 'troubleshoot',
|
|
75
63
|
linkTypeName: 'listing result click',
|
|
76
64
|
targetHost: 'access.redhat.com',
|
|
77
|
-
text:
|
|
65
|
+
text: linkText,
|
|
66
|
+
displayPosition: contentPosition,
|
|
78
67
|
},
|
|
79
68
|
listingItemClicked: {
|
|
80
|
-
activityName,
|
|
81
|
-
contentListingRegion,
|
|
82
69
|
listing: [
|
|
83
70
|
{
|
|
84
71
|
content: {
|
|
85
72
|
contentID,
|
|
86
73
|
contentPosition,
|
|
74
|
+
contentPositionRelative: contentPosition,
|
|
87
75
|
contentTitle,
|
|
88
76
|
contentUrl,
|
|
89
77
|
displayFeature,
|
|
@@ -117,4 +105,4 @@ export function dtmTrackEventUploadFileToAnalyze(caseSection, stepName, caseType
|
|
|
117
105
|
case: caseObject,
|
|
118
106
|
});
|
|
119
107
|
}
|
|
120
|
-
export { haltEvent, pendoTrackEvent, dtmTrackEvent, dtmTrackEventCaseCreationStepEncountered,
|
|
108
|
+
export { haltEvent, pendoTrackEvent, dtmTrackEvent, dtmTrackEventCaseCreationStepEncountered, dtmTrackEventRecommendationListingDisplayed, };
|
package/lib/esm/solrUtils.d.ts
CHANGED
|
@@ -24,13 +24,13 @@ export declare function solr(init?: ISolrQP): {
|
|
|
24
24
|
processValue: {
|
|
25
25
|
join: string;
|
|
26
26
|
};
|
|
27
|
-
}) => any;
|
|
28
|
-
preBuiltfq: (k: string, v: string | string[], tag?: string) => any;
|
|
29
|
-
facetField: (facet: string, excludeTags?: string[]) => any;
|
|
30
|
-
pivotField: (pivot: string, excludeTags?: string[]) => any;
|
|
27
|
+
}) => /*elided*/ any;
|
|
28
|
+
preBuiltfq: (k: string, v: string | string[], tag?: string) => /*elided*/ any;
|
|
29
|
+
facetField: (facet: string, excludeTags?: string[]) => /*elided*/ any;
|
|
30
|
+
pivotField: (pivot: string, excludeTags?: string[]) => /*elided*/ any;
|
|
31
31
|
value: () => ISolrQP;
|
|
32
|
-
beginOr: () => any;
|
|
33
|
-
endOr: () => any;
|
|
32
|
+
beginOr: () => /*elided*/ any;
|
|
33
|
+
endOr: () => /*elided*/ any;
|
|
34
34
|
};
|
|
35
35
|
export type ISolrResponseToFacetFields<T> = {
|
|
36
36
|
[key in keyof T]?: IFacetResponse[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.10",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"defaults and supports es6-module",
|
|
75
75
|
"maintained node versions"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "269e160216d2acd58357f6875a9855b4e11b262b"
|
|
78
78
|
}
|