@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.309.0-dev8 → 1.309.0-dev9

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/sfdc/index.js CHANGED
@@ -1464,36 +1464,141 @@ function validate$p(obj, path = 'PredictorField') {
1464
1464
  if (obj.customText !== undefined) {
1465
1465
  const obj_customText = obj.customText;
1466
1466
  const path_customText = path + '.customText';
1467
- if (typeof obj_customText !== 'string') {
1468
- return new TypeError('Expected "string" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
1467
+ let obj_customText_union0 = null;
1468
+ const obj_customText_union0_error = (() => {
1469
+ if (typeof obj_customText !== 'string') {
1470
+ return new TypeError('Expected "string" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
1471
+ }
1472
+ })();
1473
+ if (obj_customText_union0_error != null) {
1474
+ obj_customText_union0 = obj_customText_union0_error.message;
1475
+ }
1476
+ let obj_customText_union1 = null;
1477
+ const obj_customText_union1_error = (() => {
1478
+ if (obj_customText !== null) {
1479
+ return new TypeError('Expected "null" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
1480
+ }
1481
+ })();
1482
+ if (obj_customText_union1_error != null) {
1483
+ obj_customText_union1 = obj_customText_union1_error.message;
1484
+ }
1485
+ if (obj_customText_union0 && obj_customText_union1) {
1486
+ let message = 'Object doesn\'t match union (at "' + path_customText + '")';
1487
+ message += '\n' + obj_customText_union0.split('\n').map((line) => '\t' + line).join('\n');
1488
+ message += '\n' + obj_customText_union1.split('\n').map((line) => '\t' + line).join('\n');
1489
+ return new TypeError(message);
1469
1490
  }
1470
1491
  }
1471
1492
  if (obj.label !== undefined) {
1472
1493
  const obj_label = obj.label;
1473
1494
  const path_label = path + '.label';
1474
- if (typeof obj_label !== 'string') {
1475
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1495
+ let obj_label_union0 = null;
1496
+ const obj_label_union0_error = (() => {
1497
+ if (typeof obj_label !== 'string') {
1498
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1499
+ }
1500
+ })();
1501
+ if (obj_label_union0_error != null) {
1502
+ obj_label_union0 = obj_label_union0_error.message;
1503
+ }
1504
+ let obj_label_union1 = null;
1505
+ const obj_label_union1_error = (() => {
1506
+ if (obj_label !== null) {
1507
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1508
+ }
1509
+ })();
1510
+ if (obj_label_union1_error != null) {
1511
+ obj_label_union1 = obj_label_union1_error.message;
1512
+ }
1513
+ if (obj_label_union0 && obj_label_union1) {
1514
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
1515
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
1516
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
1517
+ return new TypeError(message);
1476
1518
  }
1477
1519
  }
1478
1520
  if (obj.name !== undefined) {
1479
1521
  const obj_name = obj.name;
1480
1522
  const path_name = path + '.name';
1481
- if (typeof obj_name !== 'string') {
1482
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1523
+ let obj_name_union0 = null;
1524
+ const obj_name_union0_error = (() => {
1525
+ if (typeof obj_name !== 'string') {
1526
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1527
+ }
1528
+ })();
1529
+ if (obj_name_union0_error != null) {
1530
+ obj_name_union0 = obj_name_union0_error.message;
1531
+ }
1532
+ let obj_name_union1 = null;
1533
+ const obj_name_union1_error = (() => {
1534
+ if (obj_name !== null) {
1535
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1536
+ }
1537
+ })();
1538
+ if (obj_name_union1_error != null) {
1539
+ obj_name_union1 = obj_name_union1_error.message;
1540
+ }
1541
+ if (obj_name_union0 && obj_name_union1) {
1542
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
1543
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
1544
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
1545
+ return new TypeError(message);
1483
1546
  }
1484
1547
  }
1485
1548
  if (obj.prescribedValue !== undefined) {
1486
1549
  const obj_prescribedValue = obj.prescribedValue;
1487
1550
  const path_prescribedValue = path + '.prescribedValue';
1488
- if (typeof obj_prescribedValue !== 'string') {
1489
- return new TypeError('Expected "string" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
1551
+ let obj_prescribedValue_union0 = null;
1552
+ const obj_prescribedValue_union0_error = (() => {
1553
+ if (typeof obj_prescribedValue !== 'string') {
1554
+ return new TypeError('Expected "string" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
1555
+ }
1556
+ })();
1557
+ if (obj_prescribedValue_union0_error != null) {
1558
+ obj_prescribedValue_union0 = obj_prescribedValue_union0_error.message;
1559
+ }
1560
+ let obj_prescribedValue_union1 = null;
1561
+ const obj_prescribedValue_union1_error = (() => {
1562
+ if (obj_prescribedValue !== null) {
1563
+ return new TypeError('Expected "null" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
1564
+ }
1565
+ })();
1566
+ if (obj_prescribedValue_union1_error != null) {
1567
+ obj_prescribedValue_union1 = obj_prescribedValue_union1_error.message;
1568
+ }
1569
+ if (obj_prescribedValue_union0 && obj_prescribedValue_union1) {
1570
+ let message = 'Object doesn\'t match union (at "' + path_prescribedValue + '")';
1571
+ message += '\n' + obj_prescribedValue_union0.split('\n').map((line) => '\t' + line).join('\n');
1572
+ message += '\n' + obj_prescribedValue_union1.split('\n').map((line) => '\t' + line).join('\n');
1573
+ return new TypeError(message);
1490
1574
  }
1491
1575
  }
1492
1576
  if (obj.value !== undefined) {
1493
1577
  const obj_value = obj.value;
1494
1578
  const path_value = path + '.value';
1495
- if (typeof obj_value !== 'string') {
1496
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1579
+ let obj_value_union0 = null;
1580
+ const obj_value_union0_error = (() => {
1581
+ if (typeof obj_value !== 'string') {
1582
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1583
+ }
1584
+ })();
1585
+ if (obj_value_union0_error != null) {
1586
+ obj_value_union0 = obj_value_union0_error.message;
1587
+ }
1588
+ let obj_value_union1 = null;
1589
+ const obj_value_union1_error = (() => {
1590
+ if (obj_value !== null) {
1591
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1592
+ }
1593
+ })();
1594
+ if (obj_value_union1_error != null) {
1595
+ obj_value_union1 = obj_value_union1_error.message;
1596
+ }
1597
+ if (obj_value_union0 && obj_value_union1) {
1598
+ let message = 'Object doesn\'t match union (at "' + path_value + '")';
1599
+ message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
1600
+ message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
1601
+ return new TypeError(message);
1497
1602
  }
1498
1603
  }
1499
1604
  })();
@@ -1521,10 +1626,31 @@ function validate$o(obj, path = 'Predictor') {
1521
1626
  for (let i = 0; i < obj_predictorFields.length; i++) {
1522
1627
  const obj_predictorFields_item = obj_predictorFields[i];
1523
1628
  const path_predictorFields_item = path_predictorFields + '[' + i + ']';
1524
- const referencepath_predictorFields_itemValidationError = validate$p(obj_predictorFields_item, path_predictorFields_item);
1525
- if (referencepath_predictorFields_itemValidationError !== null) {
1526
- let message = 'Object doesn\'t match PredictorField (at "' + path_predictorFields_item + '")\n';
1527
- message += referencepath_predictorFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1629
+ let obj_predictorFields_item_union0 = null;
1630
+ const obj_predictorFields_item_union0_error = (() => {
1631
+ const referencepath_predictorFields_itemValidationError = validate$p(obj_predictorFields_item, path_predictorFields_item);
1632
+ if (referencepath_predictorFields_itemValidationError !== null) {
1633
+ let message = 'Object doesn\'t match PredictorField (at "' + path_predictorFields_item + '")\n';
1634
+ message += referencepath_predictorFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1635
+ return new TypeError(message);
1636
+ }
1637
+ })();
1638
+ if (obj_predictorFields_item_union0_error != null) {
1639
+ obj_predictorFields_item_union0 = obj_predictorFields_item_union0_error.message;
1640
+ }
1641
+ let obj_predictorFields_item_union1 = null;
1642
+ const obj_predictorFields_item_union1_error = (() => {
1643
+ if (obj_predictorFields_item !== null) {
1644
+ return new TypeError('Expected "null" but received "' + typeof obj_predictorFields_item + '" (at "' + path_predictorFields_item + '")');
1645
+ }
1646
+ })();
1647
+ if (obj_predictorFields_item_union1_error != null) {
1648
+ obj_predictorFields_item_union1 = obj_predictorFields_item_union1_error.message;
1649
+ }
1650
+ if (obj_predictorFields_item_union0 && obj_predictorFields_item_union1) {
1651
+ let message = 'Object doesn\'t match union (at "' + path_predictorFields_item + '")';
1652
+ message += '\n' + obj_predictorFields_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1653
+ message += '\n' + obj_predictorFields_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1528
1654
  return new TypeError(message);
1529
1655
  }
1530
1656
  }
@@ -1572,8 +1698,29 @@ function validate$n(obj, path = 'PredictionOutput') {
1572
1698
  if (obj.customPredictionLabel !== undefined) {
1573
1699
  const obj_customPredictionLabel = obj.customPredictionLabel;
1574
1700
  const path_customPredictionLabel = path + '.customPredictionLabel';
1575
- if (typeof obj_customPredictionLabel !== 'string') {
1576
- return new TypeError('Expected "string" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
1701
+ let obj_customPredictionLabel_union0 = null;
1702
+ const obj_customPredictionLabel_union0_error = (() => {
1703
+ if (typeof obj_customPredictionLabel !== 'string') {
1704
+ return new TypeError('Expected "string" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
1705
+ }
1706
+ })();
1707
+ if (obj_customPredictionLabel_union0_error != null) {
1708
+ obj_customPredictionLabel_union0 = obj_customPredictionLabel_union0_error.message;
1709
+ }
1710
+ let obj_customPredictionLabel_union1 = null;
1711
+ const obj_customPredictionLabel_union1_error = (() => {
1712
+ if (obj_customPredictionLabel !== null) {
1713
+ return new TypeError('Expected "null" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
1714
+ }
1715
+ })();
1716
+ if (obj_customPredictionLabel_union1_error != null) {
1717
+ obj_customPredictionLabel_union1 = obj_customPredictionLabel_union1_error.message;
1718
+ }
1719
+ if (obj_customPredictionLabel_union0 && obj_customPredictionLabel_union1) {
1720
+ let message = 'Object doesn\'t match union (at "' + path_customPredictionLabel + '")';
1721
+ message += '\n' + obj_customPredictionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
1722
+ message += '\n' + obj_customPredictionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
1723
+ return new TypeError(message);
1577
1724
  }
1578
1725
  }
1579
1726
  if (obj.predictionScore !== undefined) {
@@ -1592,10 +1739,31 @@ function validate$n(obj, path = 'PredictionOutput') {
1592
1739
  for (let i = 0; i < obj_topPredictors.length; i++) {
1593
1740
  const obj_topPredictors_item = obj_topPredictors[i];
1594
1741
  const path_topPredictors_item = path_topPredictors + '[' + i + ']';
1595
- const referencepath_topPredictors_itemValidationError = validate$o(obj_topPredictors_item, path_topPredictors_item);
1596
- if (referencepath_topPredictors_itemValidationError !== null) {
1597
- let message = 'Object doesn\'t match Predictor (at "' + path_topPredictors_item + '")\n';
1598
- message += referencepath_topPredictors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1742
+ let obj_topPredictors_item_union0 = null;
1743
+ const obj_topPredictors_item_union0_error = (() => {
1744
+ const referencepath_topPredictors_itemValidationError = validate$o(obj_topPredictors_item, path_topPredictors_item);
1745
+ if (referencepath_topPredictors_itemValidationError !== null) {
1746
+ let message = 'Object doesn\'t match Predictor (at "' + path_topPredictors_item + '")\n';
1747
+ message += referencepath_topPredictors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1748
+ return new TypeError(message);
1749
+ }
1750
+ })();
1751
+ if (obj_topPredictors_item_union0_error != null) {
1752
+ obj_topPredictors_item_union0 = obj_topPredictors_item_union0_error.message;
1753
+ }
1754
+ let obj_topPredictors_item_union1 = null;
1755
+ const obj_topPredictors_item_union1_error = (() => {
1756
+ if (obj_topPredictors_item !== null) {
1757
+ return new TypeError('Expected "null" but received "' + typeof obj_topPredictors_item + '" (at "' + path_topPredictors_item + '")');
1758
+ }
1759
+ })();
1760
+ if (obj_topPredictors_item_union1_error != null) {
1761
+ obj_topPredictors_item_union1 = obj_topPredictors_item_union1_error.message;
1762
+ }
1763
+ if (obj_topPredictors_item_union0 && obj_topPredictors_item_union1) {
1764
+ let message = 'Object doesn\'t match union (at "' + path_topPredictors_item + '")';
1765
+ message += '\n' + obj_topPredictors_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1766
+ message += '\n' + obj_topPredictors_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1599
1767
  return new TypeError(message);
1600
1768
  }
1601
1769
  }
@@ -1612,15 +1780,57 @@ function validate$m(obj, path = 'FieldCount') {
1612
1780
  if (obj.count !== undefined) {
1613
1781
  const obj_count = obj.count;
1614
1782
  const path_count = path + '.count';
1615
- if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1616
- return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1783
+ let obj_count_union0 = null;
1784
+ const obj_count_union0_error = (() => {
1785
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1786
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1787
+ }
1788
+ })();
1789
+ if (obj_count_union0_error != null) {
1790
+ obj_count_union0 = obj_count_union0_error.message;
1791
+ }
1792
+ let obj_count_union1 = null;
1793
+ const obj_count_union1_error = (() => {
1794
+ if (obj_count !== null) {
1795
+ return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1796
+ }
1797
+ })();
1798
+ if (obj_count_union1_error != null) {
1799
+ obj_count_union1 = obj_count_union1_error.message;
1800
+ }
1801
+ if (obj_count_union0 && obj_count_union1) {
1802
+ let message = 'Object doesn\'t match union (at "' + path_count + '")';
1803
+ message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
1804
+ message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
1805
+ return new TypeError(message);
1617
1806
  }
1618
1807
  }
1619
1808
  if (obj.fieldValue !== undefined) {
1620
1809
  const obj_fieldValue = obj.fieldValue;
1621
1810
  const path_fieldValue = path + '.fieldValue';
1622
- if (typeof obj_fieldValue !== 'string') {
1623
- return new TypeError('Expected "string" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
1811
+ let obj_fieldValue_union0 = null;
1812
+ const obj_fieldValue_union0_error = (() => {
1813
+ if (typeof obj_fieldValue !== 'string') {
1814
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
1815
+ }
1816
+ })();
1817
+ if (obj_fieldValue_union0_error != null) {
1818
+ obj_fieldValue_union0 = obj_fieldValue_union0_error.message;
1819
+ }
1820
+ let obj_fieldValue_union1 = null;
1821
+ const obj_fieldValue_union1_error = (() => {
1822
+ if (obj_fieldValue !== null) {
1823
+ return new TypeError('Expected "null" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
1824
+ }
1825
+ })();
1826
+ if (obj_fieldValue_union1_error != null) {
1827
+ obj_fieldValue_union1 = obj_fieldValue_union1_error.message;
1828
+ }
1829
+ if (obj_fieldValue_union0 && obj_fieldValue_union1) {
1830
+ let message = 'Object doesn\'t match union (at "' + path_fieldValue + '")';
1831
+ message += '\n' + obj_fieldValue_union0.split('\n').map((line) => '\t' + line).join('\n');
1832
+ message += '\n' + obj_fieldValue_union1.split('\n').map((line) => '\t' + line).join('\n');
1833
+ return new TypeError(message);
1624
1834
  }
1625
1835
  }
1626
1836
  })();
@@ -1641,8 +1851,29 @@ function validate$l(obj, path = 'PredictionWarning') {
1641
1851
  for (let i = 0; i < obj_missingFieldNames.length; i++) {
1642
1852
  const obj_missingFieldNames_item = obj_missingFieldNames[i];
1643
1853
  const path_missingFieldNames_item = path_missingFieldNames + '[' + i + ']';
1644
- if (typeof obj_missingFieldNames_item !== 'string') {
1645
- return new TypeError('Expected "string" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
1854
+ let obj_missingFieldNames_item_union0 = null;
1855
+ const obj_missingFieldNames_item_union0_error = (() => {
1856
+ if (typeof obj_missingFieldNames_item !== 'string') {
1857
+ return new TypeError('Expected "string" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
1858
+ }
1859
+ })();
1860
+ if (obj_missingFieldNames_item_union0_error != null) {
1861
+ obj_missingFieldNames_item_union0 = obj_missingFieldNames_item_union0_error.message;
1862
+ }
1863
+ let obj_missingFieldNames_item_union1 = null;
1864
+ const obj_missingFieldNames_item_union1_error = (() => {
1865
+ if (obj_missingFieldNames_item !== null) {
1866
+ return new TypeError('Expected "null" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
1867
+ }
1868
+ })();
1869
+ if (obj_missingFieldNames_item_union1_error != null) {
1870
+ obj_missingFieldNames_item_union1 = obj_missingFieldNames_item_union1_error.message;
1871
+ }
1872
+ if (obj_missingFieldNames_item_union0 && obj_missingFieldNames_item_union1) {
1873
+ let message = 'Object doesn\'t match union (at "' + path_missingFieldNames_item + '")';
1874
+ message += '\n' + obj_missingFieldNames_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1875
+ message += '\n' + obj_missingFieldNames_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1876
+ return new TypeError(message);
1646
1877
  }
1647
1878
  }
1648
1879
  }
@@ -1655,10 +1886,31 @@ function validate$l(obj, path = 'PredictionWarning') {
1655
1886
  for (let i = 0; i < obj_outOfBoundFields.length; i++) {
1656
1887
  const obj_outOfBoundFields_item = obj_outOfBoundFields[i];
1657
1888
  const path_outOfBoundFields_item = path_outOfBoundFields + '[' + i + ']';
1658
- const referencepath_outOfBoundFields_itemValidationError = validate$m(obj_outOfBoundFields_item, path_outOfBoundFields_item);
1659
- if (referencepath_outOfBoundFields_itemValidationError !== null) {
1660
- let message = 'Object doesn\'t match FieldCount (at "' + path_outOfBoundFields_item + '")\n';
1661
- message += referencepath_outOfBoundFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1889
+ let obj_outOfBoundFields_item_union0 = null;
1890
+ const obj_outOfBoundFields_item_union0_error = (() => {
1891
+ const referencepath_outOfBoundFields_itemValidationError = validate$m(obj_outOfBoundFields_item, path_outOfBoundFields_item);
1892
+ if (referencepath_outOfBoundFields_itemValidationError !== null) {
1893
+ let message = 'Object doesn\'t match FieldCount (at "' + path_outOfBoundFields_item + '")\n';
1894
+ message += referencepath_outOfBoundFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1895
+ return new TypeError(message);
1896
+ }
1897
+ })();
1898
+ if (obj_outOfBoundFields_item_union0_error != null) {
1899
+ obj_outOfBoundFields_item_union0 = obj_outOfBoundFields_item_union0_error.message;
1900
+ }
1901
+ let obj_outOfBoundFields_item_union1 = null;
1902
+ const obj_outOfBoundFields_item_union1_error = (() => {
1903
+ if (obj_outOfBoundFields_item !== null) {
1904
+ return new TypeError('Expected "null" but received "' + typeof obj_outOfBoundFields_item + '" (at "' + path_outOfBoundFields_item + '")');
1905
+ }
1906
+ })();
1907
+ if (obj_outOfBoundFields_item_union1_error != null) {
1908
+ obj_outOfBoundFields_item_union1 = obj_outOfBoundFields_item_union1_error.message;
1909
+ }
1910
+ if (obj_outOfBoundFields_item_union0 && obj_outOfBoundFields_item_union1) {
1911
+ let message = 'Object doesn\'t match union (at "' + path_outOfBoundFields_item + '")';
1912
+ message += '\n' + obj_outOfBoundFields_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1913
+ message += '\n' + obj_outOfBoundFields_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1662
1914
  return new TypeError(message);
1663
1915
  }
1664
1916
  }
@@ -1681,10 +1933,31 @@ function validate$k(obj, path = 'PredictionOutputObject') {
1681
1933
  for (let i = 0; i < obj_errors.length; i++) {
1682
1934
  const obj_errors_item = obj_errors[i];
1683
1935
  const path_errors_item = path_errors + '[' + i + ']';
1684
- const referencepath_errors_itemValidationError = validate$y(obj_errors_item, path_errors_item);
1685
- if (referencepath_errors_itemValidationError !== null) {
1686
- let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
1687
- message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1936
+ let obj_errors_item_union0 = null;
1937
+ const obj_errors_item_union0_error = (() => {
1938
+ const referencepath_errors_itemValidationError = validate$y(obj_errors_item, path_errors_item);
1939
+ if (referencepath_errors_itemValidationError !== null) {
1940
+ let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
1941
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1942
+ return new TypeError(message);
1943
+ }
1944
+ })();
1945
+ if (obj_errors_item_union0_error != null) {
1946
+ obj_errors_item_union0 = obj_errors_item_union0_error.message;
1947
+ }
1948
+ let obj_errors_item_union1 = null;
1949
+ const obj_errors_item_union1_error = (() => {
1950
+ if (obj_errors_item !== null) {
1951
+ return new TypeError('Expected "null" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
1952
+ }
1953
+ })();
1954
+ if (obj_errors_item_union1_error != null) {
1955
+ obj_errors_item_union1 = obj_errors_item_union1_error.message;
1956
+ }
1957
+ if (obj_errors_item_union0 && obj_errors_item_union1) {
1958
+ let message = 'Object doesn\'t match union (at "' + path_errors_item + '")';
1959
+ message += '\n' + obj_errors_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1960
+ message += '\n' + obj_errors_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1688
1961
  return new TypeError(message);
1689
1962
  }
1690
1963
  }
@@ -1724,10 +1997,31 @@ function validate$k(obj, path = 'PredictionOutputObject') {
1724
1997
  for (let i = 0; i < obj_predictionOutput.length; i++) {
1725
1998
  const obj_predictionOutput_item = obj_predictionOutput[i];
1726
1999
  const path_predictionOutput_item = path_predictionOutput + '[' + i + ']';
1727
- const referencepath_predictionOutput_itemValidationError = validate$n(obj_predictionOutput_item, path_predictionOutput_item);
1728
- if (referencepath_predictionOutput_itemValidationError !== null) {
1729
- let message = 'Object doesn\'t match PredictionOutput (at "' + path_predictionOutput_item + '")\n';
1730
- message += referencepath_predictionOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2000
+ let obj_predictionOutput_item_union0 = null;
2001
+ const obj_predictionOutput_item_union0_error = (() => {
2002
+ const referencepath_predictionOutput_itemValidationError = validate$n(obj_predictionOutput_item, path_predictionOutput_item);
2003
+ if (referencepath_predictionOutput_itemValidationError !== null) {
2004
+ let message = 'Object doesn\'t match PredictionOutput (at "' + path_predictionOutput_item + '")\n';
2005
+ message += referencepath_predictionOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2006
+ return new TypeError(message);
2007
+ }
2008
+ })();
2009
+ if (obj_predictionOutput_item_union0_error != null) {
2010
+ obj_predictionOutput_item_union0 = obj_predictionOutput_item_union0_error.message;
2011
+ }
2012
+ let obj_predictionOutput_item_union1 = null;
2013
+ const obj_predictionOutput_item_union1_error = (() => {
2014
+ if (obj_predictionOutput_item !== null) {
2015
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionOutput_item + '" (at "' + path_predictionOutput_item + '")');
2016
+ }
2017
+ })();
2018
+ if (obj_predictionOutput_item_union1_error != null) {
2019
+ obj_predictionOutput_item_union1 = obj_predictionOutput_item_union1_error.message;
2020
+ }
2021
+ if (obj_predictionOutput_item_union0 && obj_predictionOutput_item_union1) {
2022
+ let message = 'Object doesn\'t match union (at "' + path_predictionOutput_item + '")';
2023
+ message += '\n' + obj_predictionOutput_item_union0.split('\n').map((line) => '\t' + line).join('\n');
2024
+ message += '\n' + obj_predictionOutput_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1731
2025
  return new TypeError(message);
1732
2026
  }
1733
2027
  }
@@ -1735,35 +2029,75 @@ function validate$k(obj, path = 'PredictionOutputObject') {
1735
2029
  if (obj.predictionWarning !== undefined) {
1736
2030
  const obj_predictionWarning = obj.predictionWarning;
1737
2031
  const path_predictionWarning = path + '.predictionWarning';
1738
- const referencepath_predictionWarningValidationError = validate$l(obj_predictionWarning, path_predictionWarning);
1739
- if (referencepath_predictionWarningValidationError !== null) {
1740
- let message = 'Object doesn\'t match PredictionWarning (at "' + path_predictionWarning + '")\n';
1741
- message += referencepath_predictionWarningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2032
+ let obj_predictionWarning_union0 = null;
2033
+ const obj_predictionWarning_union0_error = (() => {
2034
+ const referencepath_predictionWarningValidationError = validate$l(obj_predictionWarning, path_predictionWarning);
2035
+ if (referencepath_predictionWarningValidationError !== null) {
2036
+ let message = 'Object doesn\'t match PredictionWarning (at "' + path_predictionWarning + '")\n';
2037
+ message += referencepath_predictionWarningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2038
+ return new TypeError(message);
2039
+ }
2040
+ })();
2041
+ if (obj_predictionWarning_union0_error != null) {
2042
+ obj_predictionWarning_union0 = obj_predictionWarning_union0_error.message;
2043
+ }
2044
+ let obj_predictionWarning_union1 = null;
2045
+ const obj_predictionWarning_union1_error = (() => {
2046
+ if (obj_predictionWarning !== null) {
2047
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionWarning + '" (at "' + path_predictionWarning + '")');
2048
+ }
2049
+ })();
2050
+ if (obj_predictionWarning_union1_error != null) {
2051
+ obj_predictionWarning_union1 = obj_predictionWarning_union1_error.message;
2052
+ }
2053
+ if (obj_predictionWarning_union0 && obj_predictionWarning_union1) {
2054
+ let message = 'Object doesn\'t match union (at "' + path_predictionWarning + '")';
2055
+ message += '\n' + obj_predictionWarning_union0.split('\n').map((line) => '\t' + line).join('\n');
2056
+ message += '\n' + obj_predictionWarning_union1.split('\n').map((line) => '\t' + line).join('\n');
1742
2057
  return new TypeError(message);
1743
2058
  }
1744
2059
  }
1745
2060
  const obj_recordId = obj.recordId;
1746
2061
  const path_recordId = path + '.recordId';
1747
- if (typeof obj_recordId !== 'string') {
1748
- return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
2062
+ let obj_recordId_union0 = null;
2063
+ const obj_recordId_union0_error = (() => {
2064
+ if (typeof obj_recordId !== 'string') {
2065
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
2066
+ }
2067
+ })();
2068
+ if (obj_recordId_union0_error != null) {
2069
+ obj_recordId_union0 = obj_recordId_union0_error.message;
2070
+ }
2071
+ let obj_recordId_union1 = null;
2072
+ const obj_recordId_union1_error = (() => {
2073
+ if (obj_recordId !== null) {
2074
+ return new TypeError('Expected "null" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
2075
+ }
2076
+ })();
2077
+ if (obj_recordId_union1_error != null) {
2078
+ obj_recordId_union1 = obj_recordId_union1_error.message;
2079
+ }
2080
+ if (obj_recordId_union0 && obj_recordId_union1) {
2081
+ let message = 'Object doesn\'t match union (at "' + path_recordId + '")';
2082
+ message += '\n' + obj_recordId_union0.split('\n').map((line) => '\t' + line).join('\n');
2083
+ message += '\n' + obj_recordId_union1.split('\n').map((line) => '\t' + line).join('\n');
2084
+ return new TypeError(message);
1749
2085
  }
1750
2086
  })();
1751
2087
  return v_error === undefined ? null : v_error;
1752
2088
  }
1753
2089
 
1754
2090
  const TTL$1 = 1000;
1755
- const VERSION$1 = "c1431b6652fb0e211a1e2149b42f10f4";
2091
+ const VERSION$1 = "b41e19933ddff4d62138587673e7d951";
1756
2092
  function validate$j(obj, path = 'PredictionResponseRepresentation') {
1757
2093
  const v_error = (() => {
1758
2094
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1759
2095
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1760
2096
  }
1761
- if (obj.predictionModel !== undefined) {
1762
- const obj_predictionModel = obj.predictionModel;
1763
- const path_predictionModel = path + '.predictionModel';
1764
- if (typeof obj_predictionModel !== 'string') {
1765
- return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
1766
- }
2097
+ const obj_predictionModel = obj.predictionModel;
2098
+ const path_predictionModel = path + '.predictionModel';
2099
+ if (typeof obj_predictionModel !== 'string') {
2100
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
1767
2101
  }
1768
2102
  if (obj.predictionOutputObjects !== undefined) {
1769
2103
  const obj_predictionOutputObjects = obj.predictionOutputObjects;
@@ -1774,10 +2108,31 @@ function validate$j(obj, path = 'PredictionResponseRepresentation') {
1774
2108
  for (let i = 0; i < obj_predictionOutputObjects.length; i++) {
1775
2109
  const obj_predictionOutputObjects_item = obj_predictionOutputObjects[i];
1776
2110
  const path_predictionOutputObjects_item = path_predictionOutputObjects + '[' + i + ']';
1777
- const referencepath_predictionOutputObjects_itemValidationError = validate$k(obj_predictionOutputObjects_item, path_predictionOutputObjects_item);
1778
- if (referencepath_predictionOutputObjects_itemValidationError !== null) {
1779
- let message = 'Object doesn\'t match PredictionOutputObject (at "' + path_predictionOutputObjects_item + '")\n';
1780
- message += referencepath_predictionOutputObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2111
+ let obj_predictionOutputObjects_item_union0 = null;
2112
+ const obj_predictionOutputObjects_item_union0_error = (() => {
2113
+ const referencepath_predictionOutputObjects_itemValidationError = validate$k(obj_predictionOutputObjects_item, path_predictionOutputObjects_item);
2114
+ if (referencepath_predictionOutputObjects_itemValidationError !== null) {
2115
+ let message = 'Object doesn\'t match PredictionOutputObject (at "' + path_predictionOutputObjects_item + '")\n';
2116
+ message += referencepath_predictionOutputObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2117
+ return new TypeError(message);
2118
+ }
2119
+ })();
2120
+ if (obj_predictionOutputObjects_item_union0_error != null) {
2121
+ obj_predictionOutputObjects_item_union0 = obj_predictionOutputObjects_item_union0_error.message;
2122
+ }
2123
+ let obj_predictionOutputObjects_item_union1 = null;
2124
+ const obj_predictionOutputObjects_item_union1_error = (() => {
2125
+ if (obj_predictionOutputObjects_item !== null) {
2126
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionOutputObjects_item + '" (at "' + path_predictionOutputObjects_item + '")');
2127
+ }
2128
+ })();
2129
+ if (obj_predictionOutputObjects_item_union1_error != null) {
2130
+ obj_predictionOutputObjects_item_union1 = obj_predictionOutputObjects_item_union1_error.message;
2131
+ }
2132
+ if (obj_predictionOutputObjects_item_union0 && obj_predictionOutputObjects_item_union1) {
2133
+ let message = 'Object doesn\'t match union (at "' + path_predictionOutputObjects_item + '")';
2134
+ message += '\n' + obj_predictionOutputObjects_item_union0.split('\n').map((line) => '\t' + line).join('\n');
2135
+ message += '\n' + obj_predictionOutputObjects_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1781
2136
  return new TypeError(message);
1782
2137
  }
1783
2138
  }
@@ -1785,15 +2140,57 @@ function validate$j(obj, path = 'PredictionResponseRepresentation') {
1785
2140
  if (obj.predictionPlatform !== undefined) {
1786
2141
  const obj_predictionPlatform = obj.predictionPlatform;
1787
2142
  const path_predictionPlatform = path + '.predictionPlatform';
1788
- if (typeof obj_predictionPlatform !== 'string') {
1789
- return new TypeError('Expected "string" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
2143
+ let obj_predictionPlatform_union0 = null;
2144
+ const obj_predictionPlatform_union0_error = (() => {
2145
+ if (typeof obj_predictionPlatform !== 'string') {
2146
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
2147
+ }
2148
+ })();
2149
+ if (obj_predictionPlatform_union0_error != null) {
2150
+ obj_predictionPlatform_union0 = obj_predictionPlatform_union0_error.message;
2151
+ }
2152
+ let obj_predictionPlatform_union1 = null;
2153
+ const obj_predictionPlatform_union1_error = (() => {
2154
+ if (obj_predictionPlatform !== null) {
2155
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
2156
+ }
2157
+ })();
2158
+ if (obj_predictionPlatform_union1_error != null) {
2159
+ obj_predictionPlatform_union1 = obj_predictionPlatform_union1_error.message;
2160
+ }
2161
+ if (obj_predictionPlatform_union0 && obj_predictionPlatform_union1) {
2162
+ let message = 'Object doesn\'t match union (at "' + path_predictionPlatform + '")';
2163
+ message += '\n' + obj_predictionPlatform_union0.split('\n').map((line) => '\t' + line).join('\n');
2164
+ message += '\n' + obj_predictionPlatform_union1.split('\n').map((line) => '\t' + line).join('\n');
2165
+ return new TypeError(message);
1790
2166
  }
1791
2167
  }
1792
2168
  if (obj.predictionType !== undefined) {
1793
2169
  const obj_predictionType = obj.predictionType;
1794
2170
  const path_predictionType = path + '.predictionType';
1795
- if (typeof obj_predictionType !== 'string') {
1796
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2171
+ let obj_predictionType_union0 = null;
2172
+ const obj_predictionType_union0_error = (() => {
2173
+ if (typeof obj_predictionType !== 'string') {
2174
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2175
+ }
2176
+ })();
2177
+ if (obj_predictionType_union0_error != null) {
2178
+ obj_predictionType_union0 = obj_predictionType_union0_error.message;
2179
+ }
2180
+ let obj_predictionType_union1 = null;
2181
+ const obj_predictionType_union1_error = (() => {
2182
+ if (obj_predictionType !== null) {
2183
+ return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2184
+ }
2185
+ })();
2186
+ if (obj_predictionType_union1_error != null) {
2187
+ obj_predictionType_union1 = obj_predictionType_union1_error.message;
2188
+ }
2189
+ if (obj_predictionType_union0 && obj_predictionType_union1) {
2190
+ let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
2191
+ message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
2192
+ message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
2193
+ return new TypeError(message);
1797
2194
  }
1798
2195
  }
1799
2196
  const obj_status = obj.status;
@@ -1806,8 +2203,29 @@ function validate$j(obj, path = 'PredictionResponseRepresentation') {
1806
2203
  }
1807
2204
  const obj_usecaseName = obj.usecaseName;
1808
2205
  const path_usecaseName = path + '.usecaseName';
1809
- if (typeof obj_usecaseName !== 'string') {
1810
- return new TypeError('Expected "string" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
2206
+ let obj_usecaseName_union0 = null;
2207
+ const obj_usecaseName_union0_error = (() => {
2208
+ if (typeof obj_usecaseName !== 'string') {
2209
+ return new TypeError('Expected "string" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
2210
+ }
2211
+ })();
2212
+ if (obj_usecaseName_union0_error != null) {
2213
+ obj_usecaseName_union0 = obj_usecaseName_union0_error.message;
2214
+ }
2215
+ let obj_usecaseName_union1 = null;
2216
+ const obj_usecaseName_union1_error = (() => {
2217
+ if (obj_usecaseName !== null) {
2218
+ return new TypeError('Expected "null" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
2219
+ }
2220
+ })();
2221
+ if (obj_usecaseName_union1_error != null) {
2222
+ obj_usecaseName_union1 = obj_usecaseName_union1_error.message;
2223
+ }
2224
+ if (obj_usecaseName_union0 && obj_usecaseName_union1) {
2225
+ let message = 'Object doesn\'t match union (at "' + path_usecaseName + '")';
2226
+ message += '\n' + obj_usecaseName_union0.split('\n').map((line) => '\t' + line).join('\n');
2227
+ message += '\n' + obj_usecaseName_union1.split('\n').map((line) => '\t' + line).join('\n');
2228
+ return new TypeError(message);
1811
2229
  }
1812
2230
  })();
1813
2231
  return v_error === undefined ? null : v_error;
@@ -1900,13 +2318,13 @@ function createResourceRequest$1(config) {
1900
2318
 
1901
2319
  const adapterName$1 = 'getPredictions';
1902
2320
  const getPredictions_ConfigPropertyMetadata = [
1903
- generateParamConfigMetadata('maxInsights', false, 2 /* Body */, 3 /* Integer */),
2321
+ generateParamConfigMetadata('maxInsights', false, 2 /* Body */, 4 /* Unsupported */),
1904
2322
  generateParamConfigMetadata('predictionModel', true, 2 /* Body */, 0 /* String */),
1905
- generateParamConfigMetadata('predictionPlatform', false, 2 /* Body */, 0 /* String */),
2323
+ generateParamConfigMetadata('predictionPlatform', false, 2 /* Body */, 4 /* Unsupported */),
1906
2324
  generateParamConfigMetadata('records', false, 2 /* Body */, 4 /* Unsupported */),
1907
- generateParamConfigMetadata('scoreFilterCriteria', false, 2 /* Body */, 0 /* String */),
2325
+ generateParamConfigMetadata('scoreFilterCriteria', false, 2 /* Body */, 4 /* Unsupported */),
1908
2326
  generateParamConfigMetadata('scoringThreshold', false, 2 /* Body */, 2 /* Number */),
1909
- generateParamConfigMetadata('sortingOrder', false, 2 /* Body */, 0 /* String */),
2327
+ generateParamConfigMetadata('sortingOrder', false, 2 /* Body */, 4 /* Unsupported */),
1910
2328
  generateParamConfigMetadata('usecaseName', true, 2 /* Body */, 0 /* String */),
1911
2329
  ];
1912
2330
  const getPredictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPredictions_ConfigPropertyMetadata);
@@ -1914,6 +2332,20 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getPredictio
1914
2332
  function typeCheckConfig$1(untrustedConfig) {
1915
2333
  const config = {};
1916
2334
  typeCheckConfig$3(untrustedConfig, config, getPredictions_ConfigPropertyMetadata);
2335
+ const untrustedConfig_maxInsights = untrustedConfig.maxInsights;
2336
+ if (typeof untrustedConfig_maxInsights === 'number' && Math.floor(untrustedConfig_maxInsights) === untrustedConfig_maxInsights) {
2337
+ config.maxInsights = untrustedConfig_maxInsights;
2338
+ }
2339
+ if (untrustedConfig_maxInsights === null) {
2340
+ config.maxInsights = untrustedConfig_maxInsights;
2341
+ }
2342
+ const untrustedConfig_predictionPlatform = untrustedConfig.predictionPlatform;
2343
+ if (typeof untrustedConfig_predictionPlatform === 'string') {
2344
+ config.predictionPlatform = untrustedConfig_predictionPlatform;
2345
+ }
2346
+ if (untrustedConfig_predictionPlatform === null) {
2347
+ config.predictionPlatform = untrustedConfig_predictionPlatform;
2348
+ }
1917
2349
  const untrustedConfig_records = untrustedConfig.records;
1918
2350
  const referenceWrappedListValidationError = validate$s(untrustedConfig_records);
1919
2351
  if (referenceWrappedListValidationError === null) {
@@ -1922,6 +2354,20 @@ function typeCheckConfig$1(untrustedConfig) {
1922
2354
  if (untrustedConfig_records === null) {
1923
2355
  config.records = untrustedConfig_records;
1924
2356
  }
2357
+ const untrustedConfig_scoreFilterCriteria = untrustedConfig.scoreFilterCriteria;
2358
+ if (typeof untrustedConfig_scoreFilterCriteria === 'string') {
2359
+ config.scoreFilterCriteria = untrustedConfig_scoreFilterCriteria;
2360
+ }
2361
+ if (untrustedConfig_scoreFilterCriteria === null) {
2362
+ config.scoreFilterCriteria = untrustedConfig_scoreFilterCriteria;
2363
+ }
2364
+ const untrustedConfig_sortingOrder = untrustedConfig.sortingOrder;
2365
+ if (typeof untrustedConfig_sortingOrder === 'string') {
2366
+ config.sortingOrder = untrustedConfig_sortingOrder;
2367
+ }
2368
+ if (untrustedConfig_sortingOrder === null) {
2369
+ config.sortingOrder = untrustedConfig_sortingOrder;
2370
+ }
1925
2371
  return config;
1926
2372
  }
1927
2373
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4266,4 +4712,4 @@ withDefaultLuvio((luvio) => {
4266
4712
  });
4267
4713
 
4268
4714
  export { fetchRecommendations, getPredictions, predictions };
4269
- // version: 1.309.0-dev8-411e383cef
4715
+ // version: 1.309.0-dev9-7ca613f4d0