@rh-support/cases 2.6.182 → 2.6.185
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":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAazD,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAoC,CAAC;AAIzE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAuD1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iDAAiD,CAAC"}
|
|
@@ -9,6 +9,7 @@ export const PORTAL_STATUS_GROUPS = {
|
|
|
9
9
|
'Waiting on Engineering',
|
|
10
10
|
'Waiting on Sales',
|
|
11
11
|
'Waiting on 3rd Party Vendor',
|
|
12
|
+
'Waiting on Red Hat',
|
|
12
13
|
],
|
|
13
14
|
'Waiting on Customer': ['Waiting on Customer Action Required', 'Waiting on Customer Solution Delivered'],
|
|
14
15
|
Closed: ['Closed'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function expandStatusGroupsToApiValues(selectedStatuses: string[]): string[];
|
|
2
2
|
export declare function mapSfdcStatusToPortalStatus(sfdcStatus: string): string;
|
|
3
|
+
export declare function resolvePortalStatusToApiValue(portalStatus: string, currentApiStatus?: string | null): string;
|
|
3
4
|
//# sourceMappingURL=statusUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/statusUtils.ts"],"names":[],"mappings":"AAEA,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAWlF;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAOtE"}
|
|
1
|
+
{"version":3,"file":"statusUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/statusUtils.ts"],"names":[],"mappings":"AAEA,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAWlF;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAOtE;AAED,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgB5G"}
|
|
@@ -20,3 +20,17 @@ export function mapSfdcStatusToPortalStatus(sfdcStatus) {
|
|
|
20
20
|
}
|
|
21
21
|
return sfdcStatus;
|
|
22
22
|
}
|
|
23
|
+
export function resolvePortalStatusToApiValue(portalStatus, currentApiStatus) {
|
|
24
|
+
const group = PORTAL_STATUS_GROUPS[portalStatus];
|
|
25
|
+
if (!group) {
|
|
26
|
+
return portalStatus;
|
|
27
|
+
}
|
|
28
|
+
const currentPortalStatus = currentApiStatus ? mapSfdcStatusToPortalStatus(currentApiStatus) : null;
|
|
29
|
+
if (currentPortalStatus === portalStatus && currentApiStatus && group.includes(currentApiStatus)) {
|
|
30
|
+
return currentApiStatus;
|
|
31
|
+
}
|
|
32
|
+
if (portalStatus === 'In Progress') {
|
|
33
|
+
return 'In Progress';
|
|
34
|
+
}
|
|
35
|
+
return group[0];
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.185",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@patternfly/react-core": "6.2.1",
|
|
41
41
|
"@patternfly/react-table": "6.2.1",
|
|
42
42
|
"@rh-support/components": "2.5.165",
|
|
43
|
-
"@rh-support/react-context": "2.5.
|
|
43
|
+
"@rh-support/react-context": "2.5.275",
|
|
44
44
|
"@rh-support/types": "2.0.26",
|
|
45
|
-
"@rh-support/user-permissions": "2.5.
|
|
46
|
-
"@rh-support/utils": "2.5.
|
|
45
|
+
"@rh-support/user-permissions": "2.5.127",
|
|
46
|
+
"@rh-support/utils": "2.5.110",
|
|
47
47
|
"localforage": "^1.10.0",
|
|
48
48
|
"lodash": "^4.17.21",
|
|
49
49
|
"pegjs": "^0.10.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"defaults and supports es6-module",
|
|
94
94
|
"maintained node versions"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "d1a226af32eb5997a31c34001b6146be141c8911"
|
|
97
97
|
}
|