@rh-support/troubleshoot 2.6.302 → 2.6.303

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 (26) hide show
  1. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +1 -1
  2. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +1 -1
  3. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +1 -1
  5. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  6. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +1 -1
  7. package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +2 -2
  8. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +1 -1
  9. package/lib/esm/graphql/mutations/createRMECaseEscalation.js +4 -4
  10. package/lib/esm/graphql/queries/getEscalationDetails.js +3 -3
  11. package/lib/esm/graphql/queries/getParentId.js +3 -3
  12. package/lib/esm/graphql/schemas/escalation.d.ts +6 -6
  13. package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -1
  14. package/lib/esm/hooks/useCaseComments/caseCommentMutation.js +4 -4
  15. package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +4 -4
  16. package/lib/esm/hooks/useCaseComments/mapCaseComment.js +1 -1
  17. package/lib/esm/hooks/useCaseComments/types.d.ts +4 -4
  18. package/lib/esm/hooks/useCaseComments/types.d.ts.map +1 -1
  19. package/lib/esm/hooks/useCaseHistory.d.ts +5 -5
  20. package/lib/esm/hooks/useCaseHistory.js +17 -17
  21. package/lib/esm/models/caseHistory.d.ts +3 -3
  22. package/lib/esm/models/caseHistory.d.ts.map +1 -1
  23. package/lib/esm/reducers/CaseDetailsPageReducer.js +1 -1
  24. package/lib/esm/reducers/CaseReducer.js +4 -4
  25. package/lib/esm/utils/caseHistoryUtils.js +3 -3
  26. package/package.json +6 -6
@@ -109,7 +109,7 @@ export function RequestEscalationModal(props) {
109
109
  },
110
110
  },
111
111
  });
112
- const createdCaseNumber = (_d = (_c = (_b = (_a = escalationData === null || escalationData === void 0 ? void 0 : escalationData.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.SalesforceSupportRecord) === null || _c === void 0 ? void 0 : _c.CaseNumber) === null || _d === void 0 ? void 0 : _d.value;
112
+ const createdCaseNumber = (_d = (_c = (_b = (_a = escalationData === null || escalationData === void 0 ? void 0 : escalationData.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.RedHatSupportRecord) === null || _c === void 0 ? void 0 : _c.CaseNumber) === null || _d === void 0 ? void 0 : _d.value;
113
113
  const fullComment = t('### Request Management Escalation:\n\n**Subject**\n{{subject}}\n\n**Category**\n{{rmeCategory}}\n\n**Description**\n{{description}}\n\n**Expectations**\n{{expectations}}\n\n**Business Impact**\n{{businessImpactDescription}}', {
114
114
  category: formState.rmeCategory,
115
115
  subject: formState.subject,
@@ -53,7 +53,7 @@ export function CaseDetailsAside(props) {
53
53
  const { data: parentData, loading: isLoadingParentId } = useQuery(GET_PARENT_ID, {
54
54
  variables: { where: { CaseNumber: { eq: caseNumber } } },
55
55
  });
56
- const parentId = (_f = (_e = (_d = (_c = (_b = (_a = parentData === null || parentData === void 0 ? void 0 : parentData.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportCase) === null || _c === void 0 ? void 0 : _c.edges) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Id;
56
+ const parentId = (_f = (_e = (_d = (_c = (_b = (_a = parentData === null || parentData === void 0 ? void 0 : parentData.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Id;
57
57
  const { loading: isLoadingEscalations } = useQuery(GET_ESCALATION_DETAILS, {
58
58
  variables: { where: { ParentId: { eq: parentId } } },
59
59
  skip: !parentId,
@@ -1 +1 @@
1
- {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAwC/D,wBAAgB,sBAAsB,sBA0XrC"}
1
+ {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuC/D,wBAAgB,sBAAsB,sBA0XrC"}
@@ -41,7 +41,7 @@ function fetchContactBySSO(apolloClient, accountNumber, ssoUsername) {
41
41
  fetchPolicy: 'network-only',
42
42
  });
43
43
  const response = data;
44
- const contactNode = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.node;
44
+ const contactNode = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.node;
45
45
  return {
46
46
  phone: (_l = (_k = contactNode === null || contactNode === void 0 ? void 0 : contactNode.Phone) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : '',
47
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuC/D,wBAAgB,kBAAkB,sBAwVjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAsC/D,wBAAgB,kBAAkB,sBAwVjC"}
@@ -37,7 +37,7 @@ function fetchContactBySSO(apolloClient, accountNumber, ssoUsername) {
37
37
  },
38
38
  });
39
39
  const response = data;
40
- const contactNode = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.node;
40
+ const contactNode = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.node;
41
41
  return {
42
42
  phone: (_l = (_k = contactNode === null || contactNode === void 0 ? void 0 : contactNode.Phone) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : '',
43
43
  };
@@ -372,7 +372,7 @@ export function moveSessionAttachmentToCase(dispatch, caseNumber, sessionId, loc
372
372
  variables: { linkedEntityId: { eq: caseSalesforceId } },
373
373
  fetchPolicy: 'network-only',
374
374
  });
375
- const contentDocumentIds = ((_e = (_d = (_c = (_b = docLinkData === null || docLinkData === void 0 ? void 0 : docLinkData.salesforce_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.SalesforceSupportContentDocumentLink) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : []).map((edge) => edge.node.ContentDocumentId.value);
375
+ const contentDocumentIds = ((_e = (_d = (_c = (_b = docLinkData === null || docLinkData === void 0 ? void 0 : docLinkData.redhat_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.RedHatSupportContentDocumentLink) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : []).map((edge) => edge.node.ContentDocumentId.value);
376
376
  if (contentDocumentIds.length === 0) {
377
377
  updateUploadMetadata(dispatch, fileIndex, {
378
378
  uploadStatus: UploadStatusConstants.uploadedOnCase,
@@ -410,7 +410,7 @@ function pollContentVersionStatus(apolloClient, contentDocumentIds, attachmentUU
410
410
  },
411
411
  fetchPolicy: 'network-only',
412
412
  });
413
- 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.SalesforceSupportContentVersion) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
413
+ 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.RedHatSupportContentVersion) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
414
414
  const matchingEntry = edges.find((edge) => { var _a; return ((_a = edge.node.AttachmentUUID__c) === null || _a === void 0 ? void 0 : _a.value) === attachmentUUID; });
415
415
  const uploadStatus = (_f = (_e = matchingEntry === null || matchingEntry === void 0 ? void 0 : matchingEntry.node) === null || _e === void 0 ? void 0 : _e.UploadStatus__c) === null || _f === void 0 ? void 0 : _f.value;
416
416
  if (uploadStatus === SCTUploadStatus.COMPLETED) {
@@ -221,7 +221,7 @@ export function GlobalTroubleshootEffects(props) {
221
221
  },
222
222
  });
223
223
  const response = data;
224
- const contactEdges = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) !== null && _h !== void 0 ? _h : [];
224
+ const contactEdges = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.Contacts) === null || _g === void 0 ? void 0 : _g.edges) !== null && _h !== void 0 ? _h : [];
225
225
  const matchingContact = contactEdges.find(({ node }) => { var _a, _b; return ((_b = (_a = node.SSOUserName__c) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === (ownerSso === null || ownerSso === void 0 ? void 0 : ownerSso.toLowerCase()); });
226
226
  if ((_j = matchingContact === null || matchingContact === void 0 ? void 0 : matchingContact.node) === null || _j === void 0 ? void 0 : _j.Id) {
227
227
  const ownerWithId = Object.assign(Object.assign({}, loggedInUserRights.data.getHydraContactFromLoggedInUser()), { id: matchingContact.node.Id, defaultCaseGroup: (_l = (_k = matchingContact.node.DefaultCaseGroup__c) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : null });
@@ -1,9 +1,9 @@
1
1
  import { gql } from '@apollo/client/core';
2
2
  export const CREATE_RME_CASE_ESCALATION = gql `
3
- mutation CreateRMECaseEscalation($caseInput: SalesforceSupportCaseCreateRepresentation!) {
4
- salesforce_support_uiapi {
5
- CaseCreate(input: { SalesforceSupportCase: $caseInput }) {
6
- SalesforceSupportRecord {
3
+ mutation CreateRMECaseEscalation($caseInput: RedHatSupportCaseCreateRepresentation!) {
4
+ redhat_support_uiapi {
5
+ CaseCreate(input: { RedHatSupportCase: $caseInput }) {
6
+ RedHatSupportRecord {
7
7
  Id
8
8
  CaseNumber {
9
9
  value
@@ -1,9 +1,9 @@
1
1
  import { gql } from '@apollo/client/core';
2
2
  export const GET_ESCALATION_DETAILS = gql `
3
- query getEscalationDetails($where: SalesforceSupportCase_Filter) {
4
- salesforce_support_uiapi {
3
+ query getEscalationDetails($where: RedHatSupportCase_Filter) {
4
+ redhat_support_uiapi {
5
5
  query {
6
- SalesforceSupportCase(where: $where) {
6
+ RedHatSupportCase(where: $where) {
7
7
  edges {
8
8
  node {
9
9
  CaseNumber {
@@ -1,9 +1,9 @@
1
1
  import { gql } from '@apollo/client/core';
2
2
  export const GET_PARENT_ID = gql `
3
- query Query($where: SalesforceSupportCase_Filter) {
4
- salesforce_support_uiapi {
3
+ query Query($where: RedHatSupportCase_Filter) {
4
+ redhat_support_uiapi {
5
5
  query {
6
- SalesforceSupportCase(where: $where) {
6
+ RedHatSupportCase(where: $where) {
7
7
  edges {
8
8
  node {
9
9
  Id
@@ -6,9 +6,9 @@ export interface GetParentIdVariables {
6
6
  };
7
7
  }
8
8
  export interface GetParentIdResponse {
9
- salesforce_support_uiapi: {
9
+ redhat_support_uiapi: {
10
10
  query: {
11
- SalesforceSupportCase: {
11
+ RedHatSupportCase: {
12
12
  edges: Array<{
13
13
  node: {
14
14
  Id: string;
@@ -33,9 +33,9 @@ export interface CreateRMECaseEscalationVariables {
33
33
  };
34
34
  }
35
35
  export interface CreateRMECaseEscalationResponse {
36
- salesforce_support_uiapi: {
36
+ redhat_support_uiapi: {
37
37
  CaseCreate: {
38
- SalesforceSupportRecord: {
38
+ RedHatSupportRecord: {
39
39
  Id: string;
40
40
  CaseNumber: {
41
41
  value: string;
@@ -61,9 +61,9 @@ export interface GetEscalationDetailsVariables {
61
61
  };
62
62
  }
63
63
  export interface GetEscalationDetailsResponse {
64
- salesforce_support_uiapi: {
64
+ redhat_support_uiapi: {
65
65
  query: {
66
- SalesforceSupportCase: {
66
+ RedHatSupportCase: {
67
67
  edges: Array<{
68
68
  node: {
69
69
  CaseNumber: {
@@ -1 +1 @@
1
- {"version":3,"file":"escalation.d.ts","sourceRoot":"","sources":["../../../../src/graphql/schemas/escalation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE;QACH,UAAU,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,WAAW,mBAAmB;IAChC,wBAAwB,EAAE;QACtB,KAAK,EAAE;YACH,qBAAqB,EAAE;gBACnB,KAAK,EAAE,KAAK,CAAC;oBACT,IAAI,EAAE;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E,MAAM,CAAA;yBAAE,CAAC;wBAC3B,MAAM,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;qBAC7B,CAAC;iBACL,CAAC,CAAC;aACN,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
1
+ {"version":3,"file":"escalation.d.ts","sourceRoot":"","sources":["../../../../src/graphql/schemas/escalation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE;QACH,UAAU,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9B,CAAC;CACL;AAED,MAAM,WAAW,mBAAmB;IAChC,oBAAoB,EAAE;QAClB,KAAK,EAAE;YACH,iBAAiB,EAAE;gBACf,KAAK,EAAE,KAAK,CAAC;oBACT,IAAI,EAAE;wBACF,EAAE,EAAE,MAAM,CAAC;qBACd,CAAC;iBACL,CAAC,CAAC;aACN,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,gCAAgC;IAC7C,SAAS,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;KACrC,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,oBAAoB,EAAE;QAClB,UAAU,EAAE;YACR,mBAAmB,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC;gBACX,UAAU,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC9B,MAAM,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC1B,OAAO,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;gBAC3B,QAAQ,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC;aAC/B,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,6BAA6B;IAC1C,KAAK,EAAE;QACH,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;KAC5B,CAAC;CACL;AAED,MAAM,WAAW,4BAA4B;IACzC,oBAAoB,EAAE;QAClB,KAAK,EAAE;YACH,iBAAiB,EAAE;gBACf,KAAK,EAAE,KAAK,CAAC;oBACT,IAAI,EAAE;wBACF,UAAU,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;wBAC9B,OAAO,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;wBAC3B,MAAM,EAAE;4BAAE,KAAK,EAAE,MAAM,CAAA;yBAAE,CAAC;qBAC7B,CAAC;iBACL,CAAC,CAAC;aACN,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
@@ -1,9 +1,9 @@
1
1
  import { gql } from '@apollo/client/core';
2
2
  export const CREATE_CASE_COMMENT = gql `
3
- mutation CreateCaseComment($commentInput: SalesforceSupportCaseComment__cCreateRepresentation!) {
4
- salesforce_support_uiapi {
5
- CaseComment__cCreate(input: { SalesforceSupportCaseComment__c: $commentInput }) {
6
- SalesforceSupportRecord {
3
+ mutation CreateCaseComment($commentInput: RedHatSupportCaseComment__cCreateRepresentation!) {
4
+ redhat_support_uiapi {
5
+ CaseComment__cCreate(input: { RedHatSupportCaseComment__c: $commentInput }) {
6
+ RedHatSupportRecord {
7
7
  Id
8
8
  }
9
9
  }
@@ -1,13 +1,13 @@
1
1
  import { gql } from '@apollo/client/core';
2
2
  export const GET_CASE_COMMENTS = gql `
3
3
  query GetCaseComments(
4
- $filter: SalesforceSupportCaseComment__c_Filter!
5
- $orderBy: SalesforceSupportCaseComment__c_OrderBy
4
+ $filter: RedHatSupportCaseComment__c_Filter!
5
+ $orderBy: RedHatSupportCaseComment__c_OrderBy
6
6
  $first: Int
7
7
  ) {
8
- salesforce_support_uiapi {
8
+ redhat_support_uiapi {
9
9
  query {
10
- SalesforceSupportCaseComment__c(where: $filter, orderBy: $orderBy, first: $first) {
10
+ RedHatSupportCaseComment__c(where: $filter, orderBy: $orderBy, first: $first) {
11
11
  edges {
12
12
  node {
13
13
  Id
@@ -59,7 +59,7 @@ export function mapCaseCommentsResponse(data) {
59
59
  var _a, _b, _c;
60
60
  if (!data)
61
61
  return [];
62
- const edges = (_c = (_b = (_a = data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.SalesforceSupportCaseComment__c) === null || _c === void 0 ? void 0 : _c.edges;
62
+ const edges = (_c = (_b = (_a = data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportCaseComment__c) === null || _c === void 0 ? void 0 : _c.edges;
63
63
  if (!edges)
64
64
  return [];
65
65
  return edges.map((edge) => mapCaseCommentNode(edge.node));
@@ -34,9 +34,9 @@ export interface ICaseCommentsConnection {
34
34
  edges: ICaseCommentEdge[];
35
35
  }
36
36
  export interface IGetCaseCommentsQueryResponse {
37
- salesforce_support_uiapi: {
37
+ redhat_support_uiapi: {
38
38
  query: {
39
- SalesforceSupportCaseComment__c: ICaseCommentsConnection;
39
+ RedHatSupportCaseComment__c: ICaseCommentsConnection;
40
40
  };
41
41
  };
42
42
  }
@@ -69,9 +69,9 @@ export interface ICreateCaseCommentVariables {
69
69
  commentInput: ICreateCaseCommentInput;
70
70
  }
71
71
  export interface ICreateCaseCommentResponse {
72
- salesforce_support_uiapi: {
72
+ redhat_support_uiapi: {
73
73
  CaseComment__cCreate: {
74
- SalesforceSupportRecord: {
74
+ RedHatSupportRecord: {
75
75
  Id: string;
76
76
  };
77
77
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","source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AC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACvC,wBAAwB,EAAE;QACtB,oBAAoB,EAAE;YAClB,uBAAuB,EAAE;gBACrB,EAAE,EAAE,MAAM,CAAC;aACd,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCaseComments/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,uBAAuB,CAAC;CACtC;AAED,MAAM,WAAW,0BAA0B;IACvC,I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MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACvC,oBAAoB,EAAE;QAClB,oBAAoB,EAAE;YAClB,mBAAmB,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC;aACd,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
@@ -6,11 +6,11 @@ import type { ICaseHistoryItem, IGetCaseHistoryData, IGetCaseHistoryVars } from
6
6
  * Changing an alias here without updating `extractStringValue` will silently break
7
7
  * value extraction.
8
8
  *
9
- * Supported value types (members of the Salesforce_Support_AnyType union):
10
- * - SalesforceSupportStringValue → stringValue
11
- * - SalesforceSupportBooleanValue → booleanValue
12
- * - SalesforceSupportDoubleValue → doubleValue
13
- * - SalesforceSupportDateTimeValue → dateTimeValue
9
+ * Supported value types (members of the RedHat_Support_AnyType union):
10
+ * - RedHatSupportStringValue → stringValue
11
+ * - RedHatSupportBooleanValue → booleanValue
12
+ * - RedHatSupportDoubleValue → doubleValue
13
+ * - RedHatSupportDateTimeValue → dateTimeValue
14
14
  *
15
15
  * `first` defaults to 2000 — a practical cap that covers all observed real-world case
16
16
  * histories while staying well within the SF API limit.
@@ -8,53 +8,53 @@ import { filterSfdcIdEntries, normalizeNodeToHistoryItem } from '../utils/caseHi
8
8
  * Changing an alias here without updating `extractStringValue` will silently break
9
9
  * value extraction.
10
10
  *
11
- * Supported value types (members of the Salesforce_Support_AnyType union):
12
- * - SalesforceSupportStringValue → stringValue
13
- * - SalesforceSupportBooleanValue → booleanValue
14
- * - SalesforceSupportDoubleValue → doubleValue
15
- * - SalesforceSupportDateTimeValue → dateTimeValue
11
+ * Supported value types (members of the RedHat_Support_AnyType union):
12
+ * - RedHatSupportStringValue → stringValue
13
+ * - RedHatSupportBooleanValue → booleanValue
14
+ * - RedHatSupportDoubleValue → doubleValue
15
+ * - RedHatSupportDateTimeValue → dateTimeValue
16
16
  *
17
17
  * `first` defaults to 2000 — a practical cap that covers all observed real-world case
18
18
  * histories while staying well within the SF API limit.
19
19
  */
20
20
  export const GET_CASE_HISTORY = gql `
21
21
  query GetCaseHistory($caseId: ID!, $first: Int = 2000) {
22
- salesforce_support_uiapi {
22
+ redhat_support_uiapi {
23
23
  query {
24
- SalesforceSupportCaseHistory(first: $first, where: { CaseId: { eq: $caseId } }) {
24
+ RedHatSupportCaseHistory(first: $first, where: { CaseId: { eq: $caseId } }) {
25
25
  edges {
26
26
  node {
27
27
  Id
28
- SalesforceSupportField {
28
+ RedHatSupportField {
29
29
  value
30
30
  displayValue
31
31
  label
32
32
  }
33
33
  OldValue {
34
- ... on SalesforceSupportStringValue {
34
+ ... on RedHatSupportStringValue {
35
35
  stringValue: value
36
36
  }
37
- ... on SalesforceSupportBooleanValue {
37
+ ... on RedHatSupportBooleanValue {
38
38
  booleanValue: value
39
39
  }
40
- ... on SalesforceSupportDoubleValue {
40
+ ... on RedHatSupportDoubleValue {
41
41
  doubleValue: value
42
42
  }
43
- ... on SalesforceSupportDateTimeValue {
43
+ ... on RedHatSupportDateTimeValue {
44
44
  dateTimeValue: value
45
45
  }
46
46
  }
47
47
  NewValue {
48
- ... on SalesforceSupportStringValue {
48
+ ... on RedHatSupportStringValue {
49
49
  stringValue: value
50
50
  }
51
- ... on SalesforceSupportBooleanValue {
51
+ ... on RedHatSupportBooleanValue {
52
52
  booleanValue: value
53
53
  }
54
- ... on SalesforceSupportDoubleValue {
54
+ ... on RedHatSupportDoubleValue {
55
55
  doubleValue: value
56
56
  }
57
- ... on SalesforceSupportDateTimeValue {
57
+ ... on RedHatSupportDateTimeValue {
58
58
  dateTimeValue: value
59
59
  }
60
60
  }
@@ -89,7 +89,7 @@ export function useCaseHistory(caseId, first = 2000) {
89
89
  });
90
90
  const historyItems = useMemo(() => {
91
91
  var _a, _b, _c;
92
- 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.SalesforceSupportCaseHistory) === null || _c === void 0 ? void 0 : _c.edges;
92
+ 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.RedHatSupportCaseHistory) === null || _c === void 0 ? void 0 : _c.edges;
93
93
  if (!edges)
94
94
  return [];
95
95
  return filterSfdcIdEntries(edges).map(normalizeNodeToHistoryItem);
@@ -13,7 +13,7 @@ export interface ISFDateTimeValue {
13
13
  export type SFValue = ISFStringValue | ISFBooleanValue | ISFDoubleValue | ISFDateTimeValue | null;
14
14
  export interface ICaseHistoryNode {
15
15
  Id: string;
16
- SalesforceSupportField: {
16
+ RedHatSupportField: {
17
17
  value: string;
18
18
  displayValue: string | null;
19
19
  label: string | null;
@@ -39,9 +39,9 @@ export interface ICaseHistoryEdge {
39
39
  node: ICaseHistoryNode;
40
40
  }
41
41
  export interface IGetCaseHistoryData {
42
- salesforce_support_uiapi: {
42
+ redhat_support_uiapi: {
43
43
  query: {
44
- SalesforceSupportCaseHistory: {
44
+ RedHatSupportCaseHistory: {
45
45
  edges: ICaseHistoryEdge[];
46
46
  };
47
47
  };
@@ -1 +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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AAgB;IAC7B,IAAI,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAChC,oBAAoB,EAAE;QAClB,KAAK,EAAE;YACH,wBAAwB,EAAE;gBACtB,KAAK,EAAE,gBAAgB,EAAE,CAAC;aAC7B,CAAC;SACL,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,4GAA4G;IAC5G,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -106,7 +106,7 @@ export const fetchCaseEscalations = (dispatch_1, parentId_1, apolloClient_1, ...
106
106
  query: GET_ESCALATION_DETAILS,
107
107
  variables: { where: { ParentId: { eq: parentId } } },
108
108
  });
109
- 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.SalesforceSupportCase) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
109
+ 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 : [];
110
110
  const caseEscalations = edges.map(({ node }) => ({
111
111
  name: node.CaseNumber.value,
112
112
  subject: node.Subject.value,
@@ -194,7 +194,7 @@ export const submitCase = (dispatch_1, sessionRestoreDispatch_1, caseDetails_1,
194
194
  caseInput: graphQLPayload,
195
195
  },
196
196
  });
197
- const caseRecord = (_b = (_a = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.SalesforceSupportRecord;
197
+ const caseRecord = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.RedHatSupportRecord;
198
198
  const caseNumber = (_c = caseRecord === null || caseRecord === void 0 ? void 0 : caseRecord.CaseNumber) === null || _c === void 0 ? void 0 : _c.value;
199
199
  if (casePayload.contactSSOName === loggedInUserSsoUsername &&
200
200
  !isEmpty((_d = casePayload.phoneAreaCodePrefixLineNumber) === null || _d === void 0 ? void 0 : _d.trim()) &&
@@ -436,7 +436,7 @@ export const setCaseAccountNumber = (dispatch_1, accountNumber_1, ...args_1) =>
436
436
  query: GET_ACCOUNT,
437
437
  variables: getAccountQueryVariables(accountNumber),
438
438
  });
439
- const edges = (_e = (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.salesforce_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.SalesforceSupportAccount) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : [];
439
+ const edges = (_e = (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.RedHatSupportAccount) === null || _d === void 0 ? void 0 : _d.edges) !== null && _e !== void 0 ? _e : [];
440
440
  const selectedAccountDetails = handleGraphQLAccountResponse(edges);
441
441
  dispatch({
442
442
  type: CaseReducerConstants.caseStateChanged,
@@ -609,7 +609,7 @@ export const fetchCaseGroupsForContactGraphQL = (dispatch_1, apolloClient_1, con
609
609
  query: GET_CASE_GROUP,
610
610
  });
611
611
  const response = data;
612
- const allGroups = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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) !== null && _d !== void 0 ? _d : [];
612
+ const allGroups = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.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) !== null && _d !== void 0 ? _d : [];
613
613
  const matchedGroups = allGroups
614
614
  .filter(({ node }) => isOrgAdmin ||
615
615
  node.CaseGroupMembers__r.edges.some(({ node: member }) => member.Contact__c.value === contactId))
@@ -1078,7 +1078,7 @@ export function getVersionsDetails(dispatch, apolloClient, parentProductId, pare
1078
1078
  first: 200,
1079
1079
  },
1080
1080
  });
1081
- 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 : [];
1081
+ 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 : [];
1082
1082
  const versionsDetails = handleGraphQLVersionsResponse(edges, parentProductName);
1083
1083
  dispatch({
1084
1084
  type: CaseReducerConstants.getVersionDetails,
@@ -133,7 +133,7 @@ export function filterSfdcIdEntries(edges) {
133
133
  */
134
134
  export function normalizeNodeToHistoryItem(node) {
135
135
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
136
- const fieldName = node.SalesforceSupportField.value;
136
+ const fieldName = node.RedHatSupportField.value;
137
137
  const oldValue = extractStringValue(node.OldValue);
138
138
  const newValue = extractStringValue(node.NewValue);
139
139
  const isAction = !oldValue && !newValue;
@@ -149,8 +149,8 @@ export function normalizeNodeToHistoryItem(node) {
149
149
  return {
150
150
  id: node.Id,
151
151
  fieldName,
152
- displayName: (_c = (_b = (_a = getFieldDisplayName(fieldName)) !== null && _a !== void 0 ? _a : node.SalesforceSupportField.label) !== null && _b !== void 0 ? _b : node.SalesforceSupportField.displayValue) !== null && _c !== void 0 ? _c : fieldName,
153
- label: (_f = (_e = (_d = getFieldDisplayName(fieldName)) !== null && _d !== void 0 ? _d : node.SalesforceSupportField.label) !== null && _e !== void 0 ? _e : node.SalesforceSupportField.displayValue) !== null && _f !== void 0 ? _f : fieldName,
152
+ displayName: (_c = (_b = (_a = getFieldDisplayName(fieldName)) !== null && _a !== void 0 ? _a : node.RedHatSupportField.label) !== null && _b !== void 0 ? _b : node.RedHatSupportField.displayValue) !== null && _c !== void 0 ? _c : fieldName,
153
+ label: (_f = (_e = (_d = getFieldDisplayName(fieldName)) !== null && _d !== void 0 ? _d : node.RedHatSupportField.label) !== null && _e !== void 0 ? _e : node.RedHatSupportField.displayValue) !== null && _f !== void 0 ? _f : fieldName,
154
154
  oldValue,
155
155
  newValue,
156
156
  createdDate: node.CreatedDate.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.302",
3
+ "version": "2.6.303",
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.183",
56
- "@rh-support/react-context": "2.5.277",
55
+ "@rh-support/components": "2.5.184",
56
+ "@rh-support/react-context": "2.5.278",
57
57
  "@rh-support/types": "2.0.26",
58
- "@rh-support/user-permissions": "2.5.129",
59
- "@rh-support/utils": "2.5.111",
58
+ "@rh-support/user-permissions": "2.5.130",
59
+ "@rh-support/utils": "2.5.112",
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": "deb5936155a3b68fc98e231dde9819da0967876b"
129
+ "gitHead": "d93a57f2a62bdfc7ec25341b3dcae197f3e5f1a3"
130
130
  }