oro-sdk 2.15.1-dev1 → 2.17.0

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,5 +1,5 @@
1
1
  import { MetadataCategory, PopulatedWorkflowData, SelectedAnswerData, SelectedAnswersData, WorkflowData, WorkflowUploadedImage } from 'oro-sdk-apis';
2
- export declare function filterTriggeredAnsweredWithKind(workflowData: WorkflowData, kind: 'text' | 'textArea' | 'hybrid' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker'): Promise<SelectedAnswerData[]>;
2
+ export declare function filterTriggeredAnsweredWithKind(workflowData: WorkflowData, kind: 'text' | 'text-area' | 'text-select-group' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker'): Promise<SelectedAnswerData[]>;
3
3
  /**
4
4
  * Filters and Populates the `selectedAnswers` from the workflow by
5
5
  * Cross-referencing the `MetaCategory` of the answer's respective question
@@ -1402,21 +1402,19 @@ function populateWorkflowField(_x6, _x7) {
1402
1402
 
1403
1403
  function _populateWorkflowField() {
1404
1404
  _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(question, answerValue) {
1405
- var answer, displayedAnswer, displayedAnswer1, displayedAnswer2;
1405
+ var answer, displayedAnswer;
1406
1406
  return runtime_1.wrap(function _callee4$(_context4) {
1407
1407
  while (1) {
1408
1408
  switch (_context4.prev = _context4.next) {
1409
1409
  case 0:
1410
1410
  displayedAnswer = undefined;
1411
1411
  _context4.t0 = question.kind;
1412
- _context4.next = _context4.t0 === 'hybrid' ? 4 : _context4.t0 === 'radio' ? 7 : _context4.t0 === 'radio-card' ? 7 : _context4.t0 === 'select' ? 7 : _context4.t0 === 'multiple' ? 10 : _context4.t0 === 'checkbox-group' ? 10 : _context4.t0 === 'images' ? 13 : 17;
1412
+ _context4.next = _context4.t0 === 'text-select-group' ? 4 : _context4.t0 === 'radio' ? 7 : _context4.t0 === 'radio-card' ? 7 : _context4.t0 === 'select' ? 7 : _context4.t0 === 'multiple' ? 10 : _context4.t0 === 'checkbox-group' ? 10 : _context4.t0 === 'images' ? 13 : 17;
1413
1413
  break;
1414
1414
 
1415
1415
  case 4:
1416
1416
  if (question.answers) {
1417
- displayedAnswer1 = question.answers[answerValue].text.split(" ")[0];
1418
- displayedAnswer2 = question.answers[answerValue].text.split(" ")[1];
1419
- displayedAnswer = displayedAnswer1 + " " + displayedAnswer2;
1417
+ displayedAnswer = answerValue[0] + " " + question.answers[answerValue[1]].text;
1420
1418
  }
1421
1419
 
1422
1420
  answer = answerValue;