@sme.up/kokos-sdk-node 2.1.0-SNAPSHOT.20250417080532.981 → 2.1.0-SNAPSHOT.20250521083643.280

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 (116) hide show
  1. package/docs/assets/hierarchy.js +1 -1
  2. package/docs/assets/main.js +4 -4
  3. package/docs/assets/navigation.js +1 -1
  4. package/docs/assets/search.js +1 -1
  5. package/docs/classes/App.html +3 -4
  6. package/docs/classes/EntityOav.html +2 -2
  7. package/docs/classes/EntitySlice.html +2 -2
  8. package/docs/classes/ErrorWithStatus.html +2 -2
  9. package/docs/classes/ExecuteFunPayload.html +2 -2
  10. package/docs/classes/ExecutionContext.html +2 -2
  11. package/docs/classes/Fun.html +2 -2
  12. package/docs/classes/FunObject.html +2 -2
  13. package/docs/classes/KokosEntityDAOService.html +14 -14
  14. package/docs/classes/Registry.html +2 -2
  15. package/docs/classes/SmeupDataStructureWriter.html +5 -6
  16. package/docs/classes/SourceLibrary.html +2 -2
  17. package/docs/classes/User.html +2 -2
  18. package/docs/enums/ApiVersion.html +2 -3
  19. package/docs/enums/Format.html +2 -2
  20. package/docs/enums/Level.html +2 -2
  21. package/docs/enums/SmeupDataStructureType.html +4 -10
  22. package/docs/enums/SmeupLayoutSectionType.html +2 -2
  23. package/docs/functions/clearLoggerContext.html +1 -1
  24. package/docs/functions/configureLogger.html +1 -1
  25. package/docs/functions/createLoggerContext.html +1 -1
  26. package/docs/functions/executeFun.html +2 -2
  27. package/docs/functions/funObjectToString.html +1 -1
  28. package/docs/functions/funToString.html +1 -1
  29. package/docs/functions/getSmeupDataStructureType.html +1 -1
  30. package/docs/functions/parseArrayString.html +1 -1
  31. package/docs/functions/parseKeyValueBetweenBrackets.html +1 -1
  32. package/docs/functions/startServer.html +1 -1
  33. package/docs/functions/startServerWithCustomConfig.html +1 -1
  34. package/docs/functions/stringToFun.html +1 -1
  35. package/docs/functions/toDateCell.html +1 -1
  36. package/docs/functions/toIconButtonCell.html +1 -1
  37. package/docs/functions/toNumberCell.html +1 -1
  38. package/docs/functions/toSingleChipCell.html +1 -1
  39. package/docs/functions/toStringCell.html +1 -1
  40. package/docs/functions/toTextButtonCell.html +1 -1
  41. package/docs/functions/toTimeCell.html +1 -1
  42. package/docs/hierarchy.html +1 -1
  43. package/docs/index.html +1 -1
  44. package/docs/interfaces/DebugInfo.html +2 -2
  45. package/docs/interfaces/IKokosEntityDAOService.html +2 -2
  46. package/docs/interfaces/KokosEntityDAOServiceMethods.html +13 -13
  47. package/docs/interfaces/KokosService.html +2 -2
  48. package/docs/interfaces/KokosServiceMethods.html +1 -1
  49. package/docs/interfaces/KokosServiceModule.html +2 -2
  50. package/docs/interfaces/LoggerContext.html +2 -2
  51. package/docs/interfaces/MicroExecutorConfiguration.html +2 -2
  52. package/docs/interfaces/SmeupDataCell.html +3 -3
  53. package/docs/interfaces/SmeupDataCellOption.html +2 -2
  54. package/docs/interfaces/SmeupDataColumn.html +2 -2
  55. package/docs/interfaces/SmeupDataNode.html +3 -3
  56. package/docs/interfaces/SmeupDataRow.html +2 -2
  57. package/docs/interfaces/SmeupDataStructure.html +2 -2
  58. package/docs/interfaces/SmeupDataTable.html +2 -2
  59. package/docs/interfaces/SmeupDataTree.html +2 -2
  60. package/docs/interfaces/SmeupFeedback.html +2 -2
  61. package/docs/interfaces/SmeupLayout.html +2 -2
  62. package/docs/interfaces/SmeupLayoutField.html +3 -3
  63. package/docs/interfaces/SmeupLayoutSection.html +2 -2
  64. package/docs/interfaces/SmeupMessage.html +2 -2
  65. package/docs/interfaces/SmeupVariable.html +2 -2
  66. package/docs/modules.html +1 -1
  67. package/docs/types/SmeupDataCellShapes.html +1 -1
  68. package/docs/variables/LOGGER.html +1 -1
  69. package/docs/variables/SMEUP_MESSAGE_GRAVITY.html +1 -1
  70. package/docs/variables/SMEUP_MESSAGE_MODE.html +1 -1
  71. package/docs/variables/SMEUP_VARIABLE_TYPE.html +1 -1
  72. package/docs/variables/SmeupDataCellShapes.html +1 -1
  73. package/lib/caller/executeFun.js +1 -1
  74. package/lib/caller/microExecutorServiceCaller.d.ts +1 -2
  75. package/lib/caller/microExecutorServiceCaller.js +3 -12
  76. package/lib/caller/microExecutorServiceCaller.js.map +1 -1
  77. package/lib/caller/serviceCaller.js +2 -2
  78. package/lib/caller/serviceCaller.js.map +1 -1
  79. package/lib/entrypoint/restapi/executeFunPayloadValidator.d.ts +1 -0
  80. package/lib/entrypoint/restapi/executeFunPayloadValidator.js +126 -0
  81. package/lib/entrypoint/restapi/executeFunPayloadValidator.js.map +1 -0
  82. package/lib/entrypoint/restapi/restapi.js +19 -26
  83. package/lib/entrypoint/restapi/restapi.js.map +1 -1
  84. package/lib/index.d.ts +0 -2
  85. package/lib/index.js +0 -2
  86. package/lib/index.js.map +1 -1
  87. package/lib/types/data-structures/smeupDataStructure.d.ts +1 -8
  88. package/lib/types/data-structures/smeupDataStructure.js +8 -19
  89. package/lib/types/data-structures/smeupDataStructure.js.map +1 -1
  90. package/lib/types/general.d.ts +0 -19
  91. package/lib/types/general.js +0 -217
  92. package/lib/types/general.js.map +1 -1
  93. package/lib/utils/smeupDataStructureWriter.d.ts +0 -1
  94. package/lib/utils/smeupDataStructureWriter.js +6 -32
  95. package/lib/utils/smeupDataStructureWriter.js.map +1 -1
  96. package/package.json +9 -11
  97. package/swagger/openapi.yaml +39 -48
  98. package/docs/classes/AppAuthentication.html +0 -7
  99. package/docs/classes/AppCustomAuthentication.html +0 -7
  100. package/docs/interfaces/SmeupObject.html +0 -18
  101. package/docs/interfaces/SmeupRawData.html +0 -6
  102. package/lib/types/data-structures/smeupObject.d.ts +0 -21
  103. package/lib/types/data-structures/smeupObject.js +0 -2
  104. package/lib/types/data-structures/smeupObject.js.map +0 -1
  105. package/lib/types/data-structures/smeupRawData.d.ts +0 -8
  106. package/lib/types/data-structures/smeupRawData.js +0 -2
  107. package/lib/types/data-structures/smeupRawData.js.map +0 -1
  108. package/lib/types/data-structures/smeupTable.d.ts +0 -66
  109. package/lib/types/data-structures/smeupTable.js +0 -2
  110. package/lib/types/data-structures/smeupTable.js.map +0 -1
  111. package/lib/types/data-structures/smeupTree.d.ts +0 -21
  112. package/lib/types/data-structures/smeupTree.js +0 -2
  113. package/lib/types/data-structures/smeupTree.js.map +0 -1
  114. package/lib/utils/smeupDataStructureUtils.d.ts +0 -7
  115. package/lib/utils/smeupDataStructureUtils.js +0 -46
  116. package/lib/utils/smeupDataStructureUtils.js.map +0 -1
@@ -1,46 +0,0 @@
1
- export const dataNodeToSmeupTreeNode = (dataNode, columns) => {
2
- const treeNode = {
3
- content: {
4
- tipo: dataNode.obj?.t ?? "",
5
- parametro: dataNode.obj?.p ?? "",
6
- codice: dataNode.obj?.k ?? "",
7
- testo: dataNode.value,
8
- exec: dataNode.fun,
9
- i: dataNode.icon,
10
- },
11
- row: dataNode.cells
12
- ? dataRowToSmeupRow(dataNode.cells, columns)
13
- : undefined,
14
- children: dataNode.children?.map((e) => dataNodeToSmeupTreeNode(e, columns)),
15
- };
16
- return treeNode;
17
- };
18
- export const dataColumnToSmeupColumn = (dataColumn) => {
19
- return {
20
- code: dataColumn.name,
21
- text: dataColumn.title,
22
- ogg: dataColumn.obj?.t ?? "",
23
- IO: dataColumn != undefined && dataColumn.visible == false ? "H" : "O",
24
- };
25
- };
26
- export const dataRowToSmeupRow = (row, columns) => {
27
- const r = {
28
- fields: {},
29
- };
30
- columns.forEach((col) => {
31
- const cell = {
32
- name: col.name,
33
- smeupObject: {
34
- tipo: row.cells?.[col.name].obj?.t ?? "",
35
- parametro: row.cells?.[col.name].obj?.p ?? "",
36
- codice: row.cells?.[col.name].obj?.k ?? "",
37
- testo: row.cells?.[col.name].value,
38
- exec: row.cells?.[col.name].fun,
39
- i: row.cells?.[col.name].icon,
40
- },
41
- };
42
- r.fields[cell.name] = cell;
43
- });
44
- return r;
45
- };
46
- //# sourceMappingURL=smeupDataStructureUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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