@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.
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/main.js +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/App.html +3 -4
- package/docs/classes/EntityOav.html +2 -2
- package/docs/classes/EntitySlice.html +2 -2
- package/docs/classes/ErrorWithStatus.html +2 -2
- package/docs/classes/ExecuteFunPayload.html +2 -2
- package/docs/classes/ExecutionContext.html +2 -2
- package/docs/classes/Fun.html +2 -2
- package/docs/classes/FunObject.html +2 -2
- package/docs/classes/KokosEntityDAOService.html +14 -14
- package/docs/classes/Registry.html +2 -2
- package/docs/classes/SmeupDataStructureWriter.html +5 -6
- package/docs/classes/SourceLibrary.html +2 -2
- package/docs/classes/User.html +2 -2
- package/docs/enums/ApiVersion.html +2 -3
- package/docs/enums/Format.html +2 -2
- package/docs/enums/Level.html +2 -2
- package/docs/enums/SmeupDataStructureType.html +4 -10
- package/docs/enums/SmeupLayoutSectionType.html +2 -2
- package/docs/functions/clearLoggerContext.html +1 -1
- package/docs/functions/configureLogger.html +1 -1
- package/docs/functions/createLoggerContext.html +1 -1
- package/docs/functions/executeFun.html +2 -2
- package/docs/functions/funObjectToString.html +1 -1
- package/docs/functions/funToString.html +1 -1
- package/docs/functions/getSmeupDataStructureType.html +1 -1
- package/docs/functions/parseArrayString.html +1 -1
- package/docs/functions/parseKeyValueBetweenBrackets.html +1 -1
- package/docs/functions/startServer.html +1 -1
- package/docs/functions/startServerWithCustomConfig.html +1 -1
- package/docs/functions/stringToFun.html +1 -1
- package/docs/functions/toDateCell.html +1 -1
- package/docs/functions/toIconButtonCell.html +1 -1
- package/docs/functions/toNumberCell.html +1 -1
- package/docs/functions/toSingleChipCell.html +1 -1
- package/docs/functions/toStringCell.html +1 -1
- package/docs/functions/toTextButtonCell.html +1 -1
- package/docs/functions/toTimeCell.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/DebugInfo.html +2 -2
- package/docs/interfaces/IKokosEntityDAOService.html +2 -2
- package/docs/interfaces/KokosEntityDAOServiceMethods.html +13 -13
- package/docs/interfaces/KokosService.html +2 -2
- package/docs/interfaces/KokosServiceMethods.html +1 -1
- package/docs/interfaces/KokosServiceModule.html +2 -2
- package/docs/interfaces/LoggerContext.html +2 -2
- package/docs/interfaces/MicroExecutorConfiguration.html +2 -2
- package/docs/interfaces/SmeupDataCell.html +3 -3
- package/docs/interfaces/SmeupDataCellOption.html +2 -2
- package/docs/interfaces/SmeupDataColumn.html +2 -2
- package/docs/interfaces/SmeupDataNode.html +3 -3
- package/docs/interfaces/SmeupDataRow.html +2 -2
- package/docs/interfaces/SmeupDataStructure.html +2 -2
- package/docs/interfaces/SmeupDataTable.html +2 -2
- package/docs/interfaces/SmeupDataTree.html +2 -2
- package/docs/interfaces/SmeupFeedback.html +2 -2
- package/docs/interfaces/SmeupLayout.html +2 -2
- package/docs/interfaces/SmeupLayoutField.html +3 -3
- package/docs/interfaces/SmeupLayoutSection.html +2 -2
- package/docs/interfaces/SmeupMessage.html +2 -2
- package/docs/interfaces/SmeupVariable.html +2 -2
- package/docs/modules.html +1 -1
- package/docs/types/SmeupDataCellShapes.html +1 -1
- package/docs/variables/LOGGER.html +1 -1
- package/docs/variables/SMEUP_MESSAGE_GRAVITY.html +1 -1
- package/docs/variables/SMEUP_MESSAGE_MODE.html +1 -1
- package/docs/variables/SMEUP_VARIABLE_TYPE.html +1 -1
- package/docs/variables/SmeupDataCellShapes.html +1 -1
- package/lib/caller/executeFun.js +1 -1
- package/lib/caller/microExecutorServiceCaller.d.ts +1 -2
- package/lib/caller/microExecutorServiceCaller.js +3 -12
- package/lib/caller/microExecutorServiceCaller.js.map +1 -1
- package/lib/caller/serviceCaller.js +2 -2
- package/lib/caller/serviceCaller.js.map +1 -1
- package/lib/entrypoint/restapi/executeFunPayloadValidator.d.ts +1 -0
- package/lib/entrypoint/restapi/executeFunPayloadValidator.js +126 -0
- package/lib/entrypoint/restapi/executeFunPayloadValidator.js.map +1 -0
- package/lib/entrypoint/restapi/restapi.js +19 -26
- package/lib/entrypoint/restapi/restapi.js.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -2
- package/lib/index.js.map +1 -1
- package/lib/types/data-structures/smeupDataStructure.d.ts +1 -8
- package/lib/types/data-structures/smeupDataStructure.js +8 -19
- package/lib/types/data-structures/smeupDataStructure.js.map +1 -1
- package/lib/types/general.d.ts +0 -19
- package/lib/types/general.js +0 -217
- package/lib/types/general.js.map +1 -1
- package/lib/utils/smeupDataStructureWriter.d.ts +0 -1
- package/lib/utils/smeupDataStructureWriter.js +6 -32
- package/lib/utils/smeupDataStructureWriter.js.map +1 -1
- package/package.json +9 -11
- package/swagger/openapi.yaml +39 -48
- package/docs/classes/AppAuthentication.html +0 -7
- package/docs/classes/AppCustomAuthentication.html +0 -7
- package/docs/interfaces/SmeupObject.html +0 -18
- package/docs/interfaces/SmeupRawData.html +0 -6
- package/lib/types/data-structures/smeupObject.d.ts +0 -21
- package/lib/types/data-structures/smeupObject.js +0 -2
- package/lib/types/data-structures/smeupObject.js.map +0 -1
- package/lib/types/data-structures/smeupRawData.d.ts +0 -8
- package/lib/types/data-structures/smeupRawData.js +0 -2
- package/lib/types/data-structures/smeupRawData.js.map +0 -1
- package/lib/types/data-structures/smeupTable.d.ts +0 -66
- package/lib/types/data-structures/smeupTable.js +0 -2
- package/lib/types/data-structures/smeupTable.js.map +0 -1
- package/lib/types/data-structures/smeupTree.d.ts +0 -21
- package/lib/types/data-structures/smeupTree.js +0 -2
- package/lib/types/data-structures/smeupTree.js.map +0 -1
- package/lib/utils/smeupDataStructureUtils.d.ts +0 -7
- package/lib/utils/smeupDataStructureUtils.js +0 -46
- 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":"smeupDataStructureUtils.js","sourceRoot":"","sources":["../../src/utils/smeupDataStructureUtils.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,QAAuB,EACvB,OAA0B,EACX,EAAE;IACjB,MAAM,QAAQ,GAAkB;QAC9B,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE;YAC3B,SAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE;YAChC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE;YAC7B,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,IAAI,EAAE,QAAQ,CAAC,GAAG;YAClB,CAAC,EAAE,QAAQ,CAAC,IAAI;SACjB;QACD,GAAG,EAAE,QAAQ,CAAC,KAAK;YACjB,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;YAC5C,CAAC,CAAC,SAAS;QACb,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACrC,uBAAuB,CAAC,CAAC,EAAE,OAAO,CAAC,CACpC;KACF,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,UAA2B,EACd,EAAE;IACf,OAAO;QACL,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,IAAI,EAAE,UAAU,CAAC,KAAK;QACtB,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE;QAC5B,EAAE,EAAE,UAAU,IAAI,SAAS,IAAI,UAAU,CAAC,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,C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