@rh-support/react-context 2.5.277 → 2.5.279

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.
@@ -449,7 +449,7 @@ export const fetchProducts = (dispatch, apolloClient) => __awaiter(void 0, void
449
449
  orderBy: { Name: { order: 'ASC' } },
450
450
  },
451
451
  });
452
- const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportProduct2) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
452
+ 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.RedHatSupportProduct2) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
453
453
  const allProducts = handleGraphQLProductsResponse(edges);
454
454
  dispatch({
455
455
  type: GlobalMetadataReducerConstants.setAllProducts,
@@ -473,7 +473,7 @@ export const fetchCaseRecordTypes = (dispatch, apolloClient) => __awaiter(void 0
473
473
  const { data } = yield apolloClient.query({
474
474
  query: GET_CASE_RECORD_TYPES,
475
475
  });
476
- const recordTypeInfos = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.objectInfos) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.recordTypeInfos) !== null && _d !== void 0 ? _d : [];
476
+ const recordTypeInfos = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.objectInfos) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.recordTypeInfos) !== null && _d !== void 0 ? _d : [];
477
477
  const caseRecordTypes = {};
478
478
  recordTypeInfos.forEach((info) => {
479
479
  caseRecordTypes[info.name] = info.recordTypeId;
@@ -506,7 +506,7 @@ export const fetchLoggedInUsersAccount = (dispatch_1, token_1, ...args_1) => __a
506
506
  query: GET_ACCOUNT,
507
507
  variables: getAccountQueryVariables(accountNumber),
508
508
  });
509
- const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportAccount) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
509
+ 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.RedHatSupportAccount) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
510
510
  const loggedInUsersAccount = handleGraphQLAccountResponse(edges);
511
511
  dispatch({
512
512
  type: GlobalMetadataReducerConstants.setLoggedInUsersAccount,
@@ -528,7 +528,7 @@ export const fetchLoggedInUsersAccount = (dispatch_1, token_1, ...args_1) => __a
528
528
  variables: getAccountQueryVariables(accountNumber),
529
529
  fetchPolicy: 'network-only',
530
530
  });
531
- const edges = (_h = (_g = (_f = (_e = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _e === void 0 ? void 0 : _e.query) === null || _f === void 0 ? void 0 : _f.SalesforceSupportAccount) === null || _g === void 0 ? void 0 : _g.edges) !== null && _h !== void 0 ? _h : [];
531
+ const edges = (_h = (_g = (_f = (_e = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _e === void 0 ? void 0 : _e.query) === null || _f === void 0 ? void 0 : _f.RedHatSupportAccount) === null || _g === void 0 ? void 0 : _g.edges) !== null && _h !== void 0 ? _h : [];
532
532
  const loggedInUsersAccount = handleGraphQLAccountResponse(edges);
533
533
  dispatch({
534
534
  type: GlobalMetadataReducerConstants.setLoggedInUsersAccount,
@@ -731,7 +731,7 @@ const fetchCaseGroupsByAccountId = (dispatch, apolloClient, accountId, defaultCa
731
731
  variables: { where: { Account__c: { eq: accountId } }, first: 2000 },
732
732
  fetchPolicy: 'network-only',
733
733
  });
734
- const edges = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportCaseGroup__c) === null || _c === void 0 ? void 0 : _c.edges) || [];
734
+ const edges = ((_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.RedHatSupportCaseGroup__c) === null || _c === void 0 ? void 0 : _c.edges) || [];
735
735
  const groups = edges.map(({ node }) => {
736
736
  var _a;
737
737
  return ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/react-context",
3
- "version": "2.5.277",
3
+ "version": "2.5.279",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -37,10 +37,10 @@
37
37
  "@cee-eng/hydrajs": "^4.18.113",
38
38
  "@patternfly/react-core": "6.2.1",
39
39
  "@patternfly/react-icons": "6.2.1",
40
- "@rh-support/components": "2.5.183",
40
+ "@rh-support/components": "2.5.185",
41
41
  "@rh-support/types": "2.0.26",
42
- "@rh-support/user-permissions": "2.5.129",
43
- "@rh-support/utils": "2.5.111",
42
+ "@rh-support/user-permissions": "2.5.131",
43
+ "@rh-support/utils": "2.5.113",
44
44
  "i18next": "^23.15.0",
45
45
  "localforage": "^1.10.0",
46
46
  "lodash": "^4.17.21",
@@ -90,5 +90,5 @@
90
90
  "defaults and supports es6-module",
91
91
  "maintained node versions"
92
92
  ],
93
- "gitHead": "deb5936155a3b68fc98e231dde9819da0967876b"
93
+ "gitHead": "4e6af2167e2c8cc3a0b949a41f1e82c1b7ca1d0a"
94
94
  }