@rh-support/troubleshoot 2.6.308 → 2.6.310

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.
Files changed (44) hide show
  1. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  2. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +11 -3
  3. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +14 -3
  5. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +6 -1
  7. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +1 -1
  8. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  9. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +1 -2
  10. package/lib/esm/components/CaseInformation/CaseLabels.d.ts +3 -0
  11. package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +1 -0
  12. package/lib/esm/components/CaseInformation/CaseLabels.js +98 -0
  13. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  14. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +123 -45
  15. package/lib/esm/graphql/schemas/escalation.d.ts +4 -0
  16. package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -1
  17. package/lib/esm/hooks/useCaseComments/mapCaseComment.js +1 -1
  18. package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +21 -0
  19. package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +1 -0
  20. package/lib/esm/hooks/useCaseLabelLinkMutations.js +84 -0
  21. package/lib/esm/i18n/template-de.d.ts +2 -2
  22. package/lib/esm/i18n/template-de.js +2 -2
  23. package/lib/esm/i18n/template-es.d.ts +2 -2
  24. package/lib/esm/i18n/template-es.js +2 -2
  25. package/lib/esm/i18n/template-fr.d.ts +2 -2
  26. package/lib/esm/i18n/template-fr.js +2 -2
  27. package/lib/esm/i18n/template-it.d.ts +2 -2
  28. package/lib/esm/i18n/template-it.js +2 -2
  29. package/lib/esm/i18n/template-jp.d.ts +2 -2
  30. package/lib/esm/i18n/template-jp.js +2 -2
  31. package/lib/esm/i18n/template-ko.d.ts +2 -2
  32. package/lib/esm/i18n/template-ko.js +2 -2
  33. package/lib/esm/i18n/template-pt.d.ts +2 -2
  34. package/lib/esm/i18n/template-pt.js +2 -2
  35. package/lib/esm/i18n/template-ru.d.ts +2 -2
  36. package/lib/esm/i18n/template-ru.js +2 -2
  37. package/lib/esm/i18n/template-zh.d.ts +2 -2
  38. package/lib/esm/i18n/template-zh.js +2 -2
  39. package/lib/esm/reducers/CaseConstNTypes.d.ts +7 -6
  40. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  41. package/lib/esm/reducers/CaseConstNTypes.js +5 -5
  42. package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
  43. package/lib/esm/reducers/CaseDetailsPageReducer.js +6 -2
  44. package/package.json +6 -6
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { fetchCaseAttachmentsViaGraphQL, fetchCaseDetailsByCaseNumber, getApiResourceObject, } from '@rh-support/utils';
11
+ import { buildAccessRestrictionExclusionFilter, fetchCaseAttachmentsViaGraphQL, fetchCaseDetailsByCaseNumber, getApiResourceObject, } from '@rh-support/utils';
12
12
  import { GET_ESCALATION_DETAILS } from '../graphql';
13
13
  export var CaseDetailsConstants;
14
14
  (function (CaseDetailsConstants) {
@@ -112,7 +112,11 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
112
112
  });
113
113
  const { data } = yield apolloClient.query({
114
114
  query: GET_ESCALATION_DETAILS,
115
- variables: { where: { ParentId: { eq: parentId } } },
115
+ variables: {
116
+ where: {
117
+ and: [{ ParentId: { eq: parentId } }, buildAccessRestrictionExclusionFilter()],
118
+ },
119
+ },
116
120
  });
117
121
  const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
118
122
  const caseEscalations = edges.map(({ node }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.308",
3
+ "version": "2.6.310",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -52,11 +52,11 @@
52
52
  "@progress/kendo-licensing": "1.3.5",
53
53
  "@progress/kendo-react-pdf": "^5.16.0",
54
54
  "@redux-devtools/extension": "^3.3.0",
55
- "@rh-support/components": "2.5.189",
56
- "@rh-support/react-context": "2.5.283",
55
+ "@rh-support/components": "2.5.191",
56
+ "@rh-support/react-context": "2.5.285",
57
57
  "@rh-support/types": "2.0.26",
58
- "@rh-support/user-permissions": "2.5.135",
59
- "@rh-support/utils": "2.5.117",
58
+ "@rh-support/user-permissions": "2.5.137",
59
+ "@rh-support/utils": "2.5.119",
60
60
  "@types/react-redux": "^7.1.33",
61
61
  "@types/redux": "^3.6.0",
62
62
  "date-fns": "3.6.0",
@@ -126,5 +126,5 @@
126
126
  "defaults and supports es6-module",
127
127
  "maintained node versions"
128
128
  ],
129
- "gitHead": "8f1387bb291fa73c60cec5251c7cc4c599fd1b5e"
129
+ "gitHead": "e737fe04f1e771923e483cd65f7d6f6f87b53356"
130
130
  }