@rh-support/cases 0.2.20 → 0.2.24
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/components/case-list/CaseList.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseList.js +14 -6
- package/lib/esm/components/case-list/case-list-filters/AccountsFilter.js +1 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.js +3 -3
- package/lib/esm/components/case-list/case-search/AdvanceSearch.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/AdvanceSearch.js +1 -1
- package/lib/esm/enums/filters.d.ts +1 -0
- package/lib/esm/enums/filters.d.ts.map +1 -1
- package/lib/esm/enums/filters.js +1 -0
- package/lib/esm/i18n/template-de.d.ts +5 -5
- package/lib/esm/i18n/template-de.js +5 -5
- package/lib/esm/i18n/template-es.d.ts +5 -5
- package/lib/esm/i18n/template-es.js +5 -5
- package/lib/esm/i18n/template-fr.d.ts +5 -5
- package/lib/esm/i18n/template-fr.js +5 -5
- package/lib/esm/i18n/template-it.d.ts +5 -5
- package/lib/esm/i18n/template-it.d.ts.map +1 -1
- package/lib/esm/i18n/template-it.js +5 -5
- package/lib/esm/i18n/template-jp.d.ts +5 -5
- package/lib/esm/i18n/template-jp.d.ts.map +1 -1
- package/lib/esm/i18n/template-jp.js +5 -5
- package/lib/esm/i18n/template-ko.d.ts +5 -5
- package/lib/esm/i18n/template-ko.d.ts.map +1 -1
- package/lib/esm/i18n/template-ko.js +5 -5
- package/lib/esm/i18n/template-pt.d.ts +5 -5
- package/lib/esm/i18n/template-pt.js +5 -5
- package/lib/esm/i18n/template-ru.d.ts +5 -5
- package/lib/esm/i18n/template-ru.d.ts.map +1 -1
- package/lib/esm/i18n/template-ru.js +5 -5
- package/lib/esm/i18n/template-zh.d.ts +5 -5
- package/lib/esm/i18n/template-zh.d.ts.map +1 -1
- package/lib/esm/i18n/template-zh.js +5 -5
- package/lib/esm/models/caseList.d.ts +1 -0
- package/lib/esm/models/caseList.d.ts.map +1 -1
- package/lib/esm/utils/caseListUtils.d.ts +1 -1
- package/lib/esm/utils/caseListUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseListUtils.js +16 -7
- package/lib/esm/utils/constants.js +1 -1
- package/lib/esm/utils/mockSolrResponse.d.ts +42 -0
- package/lib/esm/utils/mockSolrResponse.d.ts.map +1 -0
- package/lib/esm/utils/mockSolrResponse.js +2685 -0
- package/package.json +8 -8
|
@@ -52,14 +52,14 @@ export default {
|
|
|
52
52
|
'If you believe you should have permission to view this resource, please<a href="/support/contact/customerService.html">contact Customer Service</a>for assistance. Your Red Hat login might not be associated with the right account for your organization,\n or there might be an issue with your subscription. Either way, Customer Service should be able to help\n you resolve the problem.': 'Caso você acredite que deveria ter permissão para ver este recurso, <a href="/support/contact/customerService.html">entre em contato com o Atendimento ao Cliente</a>para obter ajuda. O seu login da Red Hat pode não estar associado à conta certa para sua organização\n ou pode haver um problema na sua inscrição. Nos dois casos, o Atendimento ao Cliente poderá ajudar\n você a resolver o problema.',
|
|
53
53
|
'Support subscription required': 'Assinatura de suporte necessária',
|
|
54
54
|
'The credentials you provided are valid, but you do not have<strong>direct support from Red Hat.</strong>': 'As credenciais fornecidas são válidas, mas não tem<strong>suporte direto da Red Hat.</strong>',
|
|
55
|
-
|
|
55
|
+
i18nAccounts: 'Contas',
|
|
56
56
|
'Search for an account': 'Pesquisar uma conta',
|
|
57
57
|
Bookmark: 'Favorito',
|
|
58
58
|
'Search for an bookmark': 'Pesquisar um favorito',
|
|
59
59
|
Advanced: 'Avançado',
|
|
60
60
|
Username: 'Nome de usuário',
|
|
61
61
|
Basic: 'Básico',
|
|
62
|
-
|
|
62
|
+
i18nEnterSolrQuery: 'Digite a consulta SOLR, por exemplo: severity:""1 (Urgent)"" and -status:""Waiting on Customer""',
|
|
63
63
|
Export: 'Exportar',
|
|
64
64
|
'Close case': 'Fechar caso',
|
|
65
65
|
Collapse: 'Recolher',
|
|
@@ -79,10 +79,10 @@ export default {
|
|
|
79
79
|
'Please address the errors to proceed': 'Corrija os erros para prosseguir',
|
|
80
80
|
'Search for an email address or username of the person you want to notify': 'Procure um endereço de e-mail ou nome de usuário da pessoa que você deseja notificar',
|
|
81
81
|
//Feedback Form
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
i18nSendUsFeedback: 'Envie-nos seu feedback',
|
|
83
|
+
i18nFeedbackFormFoundBug: 'Informe-nos se você encontrou um bug ou se você tem uma sugestão para melhorar a experiência na web.',
|
|
84
84
|
'How can we improve?': 'Como podemos melhorar?',
|
|
85
|
-
|
|
85
|
+
i18nDescribeSuggestionDetail: 'Descreva sua sugestão em detalhes',
|
|
86
86
|
'Feedback is sent to the web team working on this application, not the support associate working on your case.': 'O feedback é enviado para a equipe da web que trabalha no aplicativo, não para o associado de suporte que trabalha no seu caso.',
|
|
87
87
|
'Send feedback': 'Enviar feedback',
|
|
88
88
|
};
|
|
@@ -52,14 +52,14 @@ declare const _default: {
|
|
|
52
52
|
'If you believe you should have permission to view this resource, please<a href="/support/contact/customerService.html">contact Customer Service</a>for assistance. Your Red Hat login might not be associated with the right account for your organization,\n or there might be an issue with your subscription. Either way, Customer Service should be able to help\n you resolve the problem.': string;
|
|
53
53
|
'Support subscription required': string;
|
|
54
54
|
'The credentials you provided are valid, but you do not have<strong>direct support from Red Hat.</strong>': string;
|
|
55
|
-
|
|
55
|
+
i18nAccounts: string;
|
|
56
56
|
'Search for an account': string;
|
|
57
57
|
Bookmark: string;
|
|
58
58
|
'Search for an bookmark': string;
|
|
59
59
|
Advanced: string;
|
|
60
60
|
Username: string;
|
|
61
61
|
Basic: string;
|
|
62
|
-
|
|
62
|
+
i18nEnterSolrQuery: string;
|
|
63
63
|
Export: string;
|
|
64
64
|
'Close case': string;
|
|
65
65
|
Collapse: string;
|
|
@@ -78,10 +78,10 @@ declare const _default: {
|
|
|
78
78
|
'Defect / Bug': string;
|
|
79
79
|
'Please address the errors to proceed': string;
|
|
80
80
|
'Search for an email address or username of the person you want to notify': string;
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
i18nSendUsFeedback: string;
|
|
82
|
+
i18nFeedbackFormFoundBug: string;
|
|
83
83
|
'How can we improve?': string;
|
|
84
|
-
|
|
84
|
+
i18nDescribeSuggestionDetail: string;
|
|
85
85
|
'Feedback is sent to the web team working on this application, not the support associate working on your case.': string;
|
|
86
86
|
'Send feedback': string;
|
|
87
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-ru.d.ts","sourceRoot":"","sources":["../../../src/i18n/template-ru.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"template-ru.d.ts","sourceRoot":"","sources":["../../../src/i18n/template-ru.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAmHE"}
|
|
@@ -52,14 +52,14 @@ export default {
|
|
|
52
52
|
'If you believe you should have permission to view this resource, please<a href="/support/contact/customerService.html">contact Customer Service</a>for assistance. Your Red Hat login might not be associated with the right account for your organization,\n or there might be an issue with your subscription. Either way, Customer Service should be able to help\n you resolve the problem.': 'Если вы считаете, что у вас должно быть разрешение на просмотр этого ресурса, <a href="/support/contact/customerService.html">обратитесь в службу поддержки</a> за помощью. Возможно, ваше имя пользователя Red Hat не связано с нужной учетной записью\n для вашей организации или есть проблема с подпиской. Служба поддержки поможет вам\n решить эту проблему.',
|
|
53
53
|
'Support subscription required': 'Требуется действительная подписка',
|
|
54
54
|
'The credentials you provided are valid, but you do not have<strong>direct support from Red Hat.</strong>': 'Вы указали действительные учетные данные, но у вас нет <strong>прямой поддержки от Red Hat</strong>.',
|
|
55
|
-
|
|
55
|
+
i18nAccounts: 'Учетные записи',
|
|
56
56
|
'Search for an account': 'Поиск учетной записи',
|
|
57
57
|
Bookmark: 'Закладка',
|
|
58
58
|
'Search for an bookmark': 'Поиск закладки',
|
|
59
59
|
Advanced: 'Расширенный',
|
|
60
60
|
Username: 'Имя пользователя',
|
|
61
61
|
Basic: 'Простой',
|
|
62
|
-
|
|
62
|
+
i18nEnterSolrQuery: 'Введите SOLR-запрос, например: severity:""1 (срочный)"" and -status:""Ожидание клиента""',
|
|
63
63
|
Export: 'Экспорт',
|
|
64
64
|
'Close case': 'Закрыть обращение',
|
|
65
65
|
Collapse: 'Свернуть',
|
|
@@ -79,10 +79,10 @@ export default {
|
|
|
79
79
|
'Please address the errors to proceed': 'Устраните ошибки, чтобы продолжить',
|
|
80
80
|
'Search for an email address or username of the person you want to notify': 'Найдите адрес эл. почты или имя пользователя человека, которого необходимо уведомлять',
|
|
81
81
|
//Feedback Form
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
i18nSendUsFeedback: 'Отправьте нам свой отзыв',
|
|
83
|
+
i18nFeedbackFormFoundBug: 'Если вы обнаружили ошибку или у вас есть предложения по улучшению работы системы, расскажите нам об этом.',
|
|
84
84
|
'How can we improve?': 'Что мы можем улучшить?',
|
|
85
|
-
|
|
85
|
+
i18nDescribeSuggestionDetail: 'Подробно опишите свое предложение',
|
|
86
86
|
'Feedback is sent to the web team working on this application, not the support associate working on your case.': 'Отзывы отправляются команде специалистов, работающих над этим приложением, а не сотруднику службы поддержки, занимающемуся вашим обращением.',
|
|
87
87
|
'Send feedback': 'Отправить отзыв',
|
|
88
88
|
};
|
|
@@ -53,14 +53,14 @@ declare const _default: {
|
|
|
53
53
|
'Support subscription required': string;
|
|
54
54
|
'The credentials you provided are valid, but you do not have<strong>direct support from Red Hat.</strong>': string;
|
|
55
55
|
Owner: string;
|
|
56
|
-
|
|
56
|
+
i18nAccounts: string;
|
|
57
57
|
'Search for an account': string;
|
|
58
58
|
Bookmark: string;
|
|
59
59
|
'Search for an bookmark': string;
|
|
60
60
|
Advanced: string;
|
|
61
61
|
Username: string;
|
|
62
62
|
Basic: string;
|
|
63
|
-
|
|
63
|
+
i18nEnterSolrQuery: string;
|
|
64
64
|
Export: string;
|
|
65
65
|
'Close case': string;
|
|
66
66
|
Collapse: string;
|
|
@@ -79,10 +79,10 @@ declare const _default: {
|
|
|
79
79
|
'Defect / Bug': string;
|
|
80
80
|
'Please address the errors to proceed': string;
|
|
81
81
|
'Search for an email address or username of the person you want to notify': string;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
i18nSendUsFeedback: string;
|
|
83
|
+
i18nFeedbackFormFoundBug: string;
|
|
84
84
|
'How can we improve?': string;
|
|
85
|
-
|
|
85
|
+
i18nDescribeSuggestionDetail: string;
|
|
86
86
|
'Feedback is sent to the web team working on this application, not the support associate working on your case.': string;
|
|
87
87
|
'Send feedback': string;
|
|
88
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-zh.d.ts","sourceRoot":"","sources":["../../../src/i18n/template-zh.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"template-zh.d.ts","sourceRoot":"","sources":["../../../src/i18n/template-zh.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAmHE"}
|
|
@@ -54,14 +54,14 @@ export default {
|
|
|
54
54
|
'Support subscription required': '需要支持订阅',
|
|
55
55
|
'The credentials you provided are valid, but you do not have<strong>direct support from Red Hat.</strong>': '您提供的是有效凭证,但无法<strong>直接从红帽获得支持。</strong>',
|
|
56
56
|
Owner: '所有者',
|
|
57
|
-
|
|
57
|
+
i18nAccounts: '帐户',
|
|
58
58
|
'Search for an account': '搜索帐户',
|
|
59
59
|
Bookmark: '书签',
|
|
60
60
|
'Search for an bookmark': '搜索书签',
|
|
61
61
|
Advanced: '高级',
|
|
62
62
|
Username: '用户名',
|
|
63
63
|
Basic: '基本',
|
|
64
|
-
|
|
64
|
+
i18nEnterSolrQuery: '输入 SOLR 查询,例如:severity:""1 (Urgent)"" and -status:""Waiting on Customer""',
|
|
65
65
|
Export: '导出',
|
|
66
66
|
'Close case': '关闭问题单',
|
|
67
67
|
Collapse: '折叠',
|
|
@@ -81,10 +81,10 @@ export default {
|
|
|
81
81
|
'Please address the errors to proceed': '请修正错误以继续',
|
|
82
82
|
'Search for an email address or username of the person you want to notify': '搜索您要通知的用户的电子邮件地址或用户名',
|
|
83
83
|
//Feedback Form
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
i18nSendUsFeedback: '提供您的反馈',
|
|
85
|
+
i18nFeedbackFormFoundBug: '如果您发现了一个错误,或者有改进 Web 体验的建议,请告知我们。',
|
|
86
86
|
'How can we improve?': '我们可以如何改进?',
|
|
87
|
-
|
|
87
|
+
i18nDescribeSuggestionDetail: '详细描述您的建议',
|
|
88
88
|
'Feedback is sent to the web team working on this application, not the support associate working on your case.': '您的反馈会发送到负责此应用程序的 Web 团队,而不是处理您的问题单的支持团队。',
|
|
89
89
|
'Send feedback': '发送反馈',
|
|
90
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseList.d.ts","sourceRoot":"","sources":["../../../src/models/caseList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,WAAW;IACxB,2BAA2B,EAAE,kBAAkB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,EAAE,OAAO,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0BAA0B,EAAE,MAAM,CAAC;IACnC,4BAA4B,EAAE,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,uBAAuB,GAAG,aAAa,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAEzF,oBAAY,iBAAiB,GAAG,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"caseList.d.ts","sourceRoot":"","sources":["../../../src/models/caseList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,WAAW;IACxB,2BAA2B,EAAE,kBAAkB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,EAAE,OAAO,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0BAA0B,EAAE,MAAM,CAAC;IACnC,4BAA4B,EAAE,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,uBAAuB,GAAG,aAAa,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAEzF,oBAAY,iBAAiB,GAAG,qBAAqB,CAAC"}
|
|
@@ -8,6 +8,6 @@ export interface IPromiseReflection<T> {
|
|
|
8
8
|
status: 'fulfilled' | 'rejected';
|
|
9
9
|
e?: Error;
|
|
10
10
|
}
|
|
11
|
-
export declare function getCaseList(filterState: ICaseListFilterState, loggedInUser: UserAuth, loggedInUserAccount: Partial<IAccount>, abortSignal: AbortSignal, forceSfdcSearch?: boolean): Promise<ISolrCaseSearchResponse>;
|
|
11
|
+
export declare function getCaseList(filterState: ICaseListFilterState, loggedInUser: UserAuth, loggedInUserAccount: Partial<IAccount>, abortSignal: AbortSignal, forceSfdcSearch?: boolean, alwaysUseSFDC?: boolean): Promise<ISolrCaseSearchResponse>;
|
|
12
12
|
export declare function getCaseListFromSolr(solrQuery: ISearchSolrQuery, partnerSearch: boolean, abortSignal: AbortSignal, isSecureSupport?: boolean): Promise<ISolrCaseSearchResponse>;
|
|
13
13
|
//# sourceMappingURL=caseListUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseListUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseListUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"caseListUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseListUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAuC,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAQlG,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,CAAC,CAAC,EAAE,CAAC,CAAC;IACN,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,CAAC,CAAC,EAAE,KAAK,CAAC;CACb;AAoBD,wBAAsB,WAAW,CAC7B,WAAW,EAAE,oBAAoB,EACjC,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,EACtC,WAAW,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,OAAO,EACzB,aAAa,UAAQ,GACtB,OAAO,CAAC,uBAAuB,CAAC,CA4ClC;AAED,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,gBAAgB,EAC3B,aAAa,EAAE,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,GAAE,OAAe,GACjC,OAAO,CAAC,uBAAuB,CAAC,CASlC"}
|
|
@@ -19,8 +19,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
21
|
import { publicApi, search } from '@cee-eng/hydrajs';
|
|
22
|
+
import isEmpty from 'lodash/isEmpty';
|
|
22
23
|
import { isNoFilterApplied, isSearchSupportedBySFDC } from '../components/case-list/CaseListFilterHelpers';
|
|
23
24
|
import { createSFDCQueryFromFilterState, createSolrQueryFromFilterState, mapSFDCCaseListToSolrCaseList, } from './caseSearchUtils';
|
|
25
|
+
import { mockSolrResponse } from './mockSolrResponse';
|
|
24
26
|
const reflect = (p) => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
27
|
try {
|
|
26
28
|
const v = yield p;
|
|
@@ -39,26 +41,33 @@ const reflect = (p) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
39
41
|
// and override the solr result with sfdc.
|
|
40
42
|
// Even though SFDC support most of the filters but another problem with SFDC is it doesnot support multiple values for a praticular filter.
|
|
41
43
|
// if user applies any filter apart from default filter we will always call solr and assume that(not safely) 10 sec scenario is not bound to happen.
|
|
42
|
-
export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abortSignal, forceSfdcSearch) {
|
|
44
|
+
export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abortSignal, forceSfdcSearch, alwaysUseSFDC = false) {
|
|
43
45
|
var _a, _b, _c, _d;
|
|
44
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
47
|
const solrFilter = createSolrQueryFromFilterState(filterState, loggedInUser);
|
|
46
48
|
const isSfdcSearchRequired = ((forceSfdcSearch || isSearchSupportedBySFDC(filterState)) && !filterState.filterQueryInfo.queryString) ||
|
|
47
49
|
loggedInUserAccount.secureSupport;
|
|
48
50
|
const partnerSearch = loggedInUser.hasManagedAccounts() && ((_b = (_a = filterState.filterInfo) === null || _a === void 0 ? void 0 : _a.case_accountNumber) !== null && _b !== void 0 ? _b : []).length > 0;
|
|
49
|
-
|
|
51
|
+
let solrPromise = Promise.resolve(undefined);
|
|
52
|
+
if (!alwaysUseSFDC) {
|
|
53
|
+
solrPromise = getCaseListFromSolr(solrFilter, partnerSearch, abortSignal, loggedInUserAccount === null || loggedInUserAccount === void 0 ? void 0 : loggedInUserAccount.secureSupport);
|
|
54
|
+
}
|
|
50
55
|
let sfdcPromise;
|
|
51
|
-
|
|
56
|
+
const needToUseSFDC = isSfdcSearchRequired || alwaysUseSFDC;
|
|
57
|
+
if (needToUseSFDC) {
|
|
52
58
|
const sfdcFilter = createSFDCQueryFromFilterState(filterState, loggedInUser, loggedInUserAccount, isNoFilterApplied(filterState));
|
|
53
59
|
sfdcPromise = publicApi.caseList.getCaseListFromSFDC(sfdcFilter, partnerSearch, loggedInUserAccount === null || loggedInUserAccount === void 0 ? void 0 : loggedInUserAccount.secureSupport, abortSignal);
|
|
54
60
|
}
|
|
55
61
|
const res = yield Promise.all([solrPromise, sfdcPromise].filter((item) => !!item).map(reflect));
|
|
56
|
-
|
|
62
|
+
let solrResponse = res[0];
|
|
63
|
+
if (isEmpty(solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.v) && alwaysUseSFDC) {
|
|
64
|
+
solrResponse.v = mockSolrResponse;
|
|
65
|
+
}
|
|
57
66
|
const sfdcResponse = res[1];
|
|
58
|
-
if (solrResponse.status === 'rejected') {
|
|
59
|
-
throw new Error(solrResponse.e.message);
|
|
67
|
+
if ((solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.status) === 'rejected') {
|
|
68
|
+
throw new Error(solrResponse === null || solrResponse === void 0 ? void 0 : solrResponse.e.message);
|
|
60
69
|
}
|
|
61
|
-
if (
|
|
70
|
+
if (needToUseSFDC && sfdcResponse) {
|
|
62
71
|
if (sfdcResponse.status === 'fulfilled') {
|
|
63
72
|
const mappedSfdcRes = sfdcResponse && mapSFDCCaseListToSolrCaseList((_d = (_c = sfdcResponse === null || sfdcResponse === void 0 ? void 0 : sfdcResponse.v) === null || _c === void 0 ? void 0 : _c.cases) !== null && _d !== void 0 ? _d : []);
|
|
64
73
|
solrResponse.v.response.docs = mappedSfdcRes;
|
|
@@ -4,7 +4,7 @@ export const filterNamesMap = {
|
|
|
4
4
|
[SolrKeys.status]: 'Status',
|
|
5
5
|
[SolrKeys.severity]: 'Severity',
|
|
6
6
|
[SolrKeys.group]: 'Groups',
|
|
7
|
-
[SolrKeys.accountNumber]: 'Bookmarks
|
|
7
|
+
[SolrKeys.accountNumber]: 'Bookmarks',
|
|
8
8
|
[SolrKeys.caseSummary]: 'Summary',
|
|
9
9
|
[SolrKeys.escalation]: 'Escalated',
|
|
10
10
|
[SolrKeys.contactName]: 'Owner',
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const mockSolrResponse: {
|
|
2
|
+
response: {
|
|
3
|
+
numFound: number;
|
|
4
|
+
start: number;
|
|
5
|
+
docs: any[];
|
|
6
|
+
};
|
|
7
|
+
responseHeader: {
|
|
8
|
+
zkConnected: boolean;
|
|
9
|
+
status: number;
|
|
10
|
+
QTime: number;
|
|
11
|
+
params: {};
|
|
12
|
+
};
|
|
13
|
+
facet_counts: {
|
|
14
|
+
facet_queries: {};
|
|
15
|
+
facet_fields: {
|
|
16
|
+
case_product: (string | number)[];
|
|
17
|
+
case_severity: (string | number)[];
|
|
18
|
+
case_status: (string | number)[];
|
|
19
|
+
};
|
|
20
|
+
facet_ranges: {};
|
|
21
|
+
facet_intervals: {};
|
|
22
|
+
facet_heatmaps: {};
|
|
23
|
+
facet_pivot: {
|
|
24
|
+
'case_product,case_version': ({
|
|
25
|
+
field: string;
|
|
26
|
+
value: string;
|
|
27
|
+
count: number;
|
|
28
|
+
pivot: {
|
|
29
|
+
field: string;
|
|
30
|
+
value: string;
|
|
31
|
+
count: number;
|
|
32
|
+
}[];
|
|
33
|
+
} | {
|
|
34
|
+
field: string;
|
|
35
|
+
value: string;
|
|
36
|
+
count: number;
|
|
37
|
+
pivot?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=mockSolrResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockSolrResponse.d.ts","sourceRoot":"","sources":["../../../src/utils/mockSolrResponse.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4nF5B,CAAC"}
|