@sme.up/kokos-sdk-node 2.1.0-SNAPSHOT.20250417080532.981 → 2.1.0-SNAPSHOT.20250520101226.793
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 +40 -49
- 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,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SMEUP_MESSAGE_MODE | @sme.up/kokos-sdk-node</title><meta name="description" content="Documentation for @sme.up/kokos-sdk-node"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@sme.up/kokos-sdk-node</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SMEUP_MESSAGE_MODE</a></li></ul><h1>Variable SMEUP_MESSAGE_MODE<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SMEUP_MESSAGE_MODE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">PM</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"PM"</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">PN</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"PN"</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">TN</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"TN"</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>SmeupMessage Mode</p>
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="pm"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PM</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PM"</span></h5></li><li class="tsd-parameter"><h5 id="pn"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PN</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PN"</span></h5></li><li class="tsd-parameter"><h5 id="tn"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TN</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TN"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="pm"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PM</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PM"</span></h5></li><li class="tsd-parameter"><h5 id="pn"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PN</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PN"</span></h5></li><li class="tsd-parameter"><h5 id="tn"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TN</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TN"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/c36c3bca99ffbd3011788eb13e8fe1fe740f8af9/src/types/data-structures/smeupDataStructure.ts#L88">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataStructure.ts:88</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@sme.up/kokos-sdk-node</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SMEUP_VARIABLE_TYPE | @sme.up/kokos-sdk-node</title><meta name="description" content="Documentation for @sme.up/kokos-sdk-node"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@sme.up/kokos-sdk-node</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SMEUP_VARIABLE_TYPE</a></li></ul><h1>Variable SMEUP_VARIABLE_TYPE<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SMEUP_VARIABLE_TYPE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">LOO</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"loo"</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">SCH</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"sch"</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">SEC</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"sec"</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">SSC</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ssc"</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>SmeupVariableType</p>
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="loo"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">LOO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"loo"</span></h5></li><li class="tsd-parameter"><h5 id="sch"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SCH</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"sch"</span></h5></li><li class="tsd-parameter"><h5 id="sec"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SEC</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"sec"</span></h5></li><li class="tsd-parameter"><h5 id="ssc"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SSC</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ssc"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="loo"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">LOO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"loo"</span></h5></li><li class="tsd-parameter"><h5 id="sch"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SCH</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"sch"</span></h5></li><li class="tsd-parameter"><h5 id="sec"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SEC</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"sec"</span></h5></li><li class="tsd-parameter"><h5 id="ssc"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SSC</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ssc"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/c36c3bca99ffbd3011788eb13e8fe1fe740f8af9/src/types/data-structures/smeupDataStructure.ts#L108">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataStructure.ts:108</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@sme.up/kokos-sdk-node</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SmeupDataCellShapes | @sme.up/kokos-sdk-node</title><meta name="description" content="Documentation for @sme.up/kokos-sdk-node"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@sme.up/kokos-sdk-node</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SmeupDataCellShapes</a></li></ul><h1>Variable SmeupDataCellShapes<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SmeupDataCellShapes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">AUTOCOMPLETE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ACP"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">BOOLEAN_BUTTON</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"BNB"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">BUTTON_LIST</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"BTN"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">CHART</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"GRA"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">CHECKBOX</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CHK"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">CHIP</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CHI"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">COLOR_PICKER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CLP"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">COMBOBOX</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CMB"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">COMMAND_EXECUTE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RUN"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">DATE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CAL"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">DECODE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"DEC"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">EDITOR</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"EDT"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">FILE_READER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"FRE"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">FILE_UPLOAD</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"FUP"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">GAUGE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"GAU"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">ICON</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ICO"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IMAGE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"IMG"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">INPUT_CHECKBOX</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"INC"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">INPUT_FIELD</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"INF"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">INPUT_NUMBER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"INR"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">KNOB</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"KNB"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">LABEL</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"LBL"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">MEMO</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"MEM"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">MULTI_AUTOCOMPLETE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"AML"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">MULTI_COMBOBOX</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CML"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">OBJECT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"OBJ"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">ONE_BUTTON</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"BTO"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PASSWORD</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"PWD"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PROGRESS_BAR</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"PGB"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">RADIO</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RAD"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">RANGE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RNG"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">RATING</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RTG"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">SPINNER</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"SPN"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">SWITCH</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"SWT"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">TABLE</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"TBL"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">TEXT_FIELD</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ITX"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">TIME</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"TIM"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>Represent the possible shapes of a field</p>
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="autocomplete"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">AUTOCOMPLETE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ACP"</span></h5></li><li class="tsd-parameter"><h5 id="boolean_button"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">BOOLEAN_BUTTON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BNB"</span></h5></li><li class="tsd-parameter"><h5 id="button_list"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">BUTTON_LIST</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BTN"</span></h5></li><li class="tsd-parameter"><h5 id="chart"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHART</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"GRA"</span></h5></li><li class="tsd-parameter"><h5 id="checkbox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHECKBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CHK"</span></h5></li><li class="tsd-parameter"><h5 id="chip"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHIP</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CHI"</span></h5></li><li class="tsd-parameter"><h5 id="color_picker"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COLOR_PICKER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CLP"</span></h5></li><li class="tsd-parameter"><h5 id="combobox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COMBOBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CMB"</span></h5></li><li class="tsd-parameter"><h5 id="command_execute"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COMMAND_EXECUTE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RUN"</span></h5></li><li class="tsd-parameter"><h5 id="date"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">DATE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CAL"</span></h5></li><li class="tsd-parameter"><h5 id="decode"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">DECODE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"DEC"</span></h5></li><li class="tsd-parameter"><h5 id="editor"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">EDITOR</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"EDT"</span></h5></li><li class="tsd-parameter"><h5 id="file_reader"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">FILE_READER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"FRE"</span></h5></li><li class="tsd-parameter"><h5 id="file_upload"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">FILE_UPLOAD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"FUP"</span></h5></li><li class="tsd-parameter"><h5 id="gauge"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">GAUGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"GAU"</span></h5></li><li class="tsd-parameter"><h5 id="icon"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">ICON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ICO"</span></h5></li><li class="tsd-parameter"><h5 id="image"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">IMAGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"IMG"</span></h5></li><li class="tsd-parameter"><h5 id="input_checkbox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_CHECKBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INC"</span></h5></li><li class="tsd-parameter"><h5 id="input_field"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_FIELD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INF"</span></h5></li><li class="tsd-parameter"><h5 id="input_number"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_NUMBER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INR"</span></h5></li><li class="tsd-parameter"><h5 id="knob"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">KNOB</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"KNB"</span></h5></li><li class="tsd-parameter"><h5 id="label"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">LABEL</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"LBL"</span></h5></li><li class="tsd-parameter"><h5 id="memo"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MEMO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"MEM"</span></h5></li><li class="tsd-parameter"><h5 id="multi_autocomplete"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MULTI_AUTOCOMPLETE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"AML"</span></h5></li><li class="tsd-parameter"><h5 id="multi_combobox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MULTI_COMBOBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CML"</span></h5></li><li class="tsd-parameter"><h5 id="object"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">OBJECT</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"OBJ"</span></h5></li><li class="tsd-parameter"><h5 id="one_button"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">ONE_BUTTON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BTO"</span></h5></li><li class="tsd-parameter"><h5 id="password"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PASSWORD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PWD"</span></h5></li><li class="tsd-parameter"><h5 id="progress_bar"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PROGRESS_BAR</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PGB"</span></h5></li><li class="tsd-parameter"><h5 id="radio"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RADIO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RAD"</span></h5></li><li class="tsd-parameter"><h5 id="range"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RANGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RNG"</span></h5></li><li class="tsd-parameter"><h5 id="rating"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RATING</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RTG"</span></h5></li><li class="tsd-parameter"><h5 id="spinner"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SPINNER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"SPN"</span></h5></li><li class="tsd-parameter"><h5 id="switch"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SWITCH</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"SWT"</span></h5></li><li class="tsd-parameter"><h5 id="table"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TABLE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TBL"</span></h5></li><li class="tsd-parameter"><h5 id="text_field"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TEXT_FIELD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ITX"</span></h5></li><li class="tsd-parameter"><h5 id="time"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TIME</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TIM"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/86f7a0cad1ec2d8fec9cf4aa0ff516988be51a1e/src/types/data-structures/smeupDataTable.ts#L146">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:146</a></li><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/86f7a0cad1ec2d8fec9cf4aa0ff516988be51a1e/src/types/data-structures/smeupDataTable.ts#L189">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:189</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@sme.up/kokos-sdk-node</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="autocomplete"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">AUTOCOMPLETE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ACP"</span></h5></li><li class="tsd-parameter"><h5 id="boolean_button"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">BOOLEAN_BUTTON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BNB"</span></h5></li><li class="tsd-parameter"><h5 id="button_list"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">BUTTON_LIST</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BTN"</span></h5></li><li class="tsd-parameter"><h5 id="chart"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHART</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"GRA"</span></h5></li><li class="tsd-parameter"><h5 id="checkbox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHECKBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CHK"</span></h5></li><li class="tsd-parameter"><h5 id="chip"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CHIP</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CHI"</span></h5></li><li class="tsd-parameter"><h5 id="color_picker"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COLOR_PICKER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CLP"</span></h5></li><li class="tsd-parameter"><h5 id="combobox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COMBOBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CMB"</span></h5></li><li class="tsd-parameter"><h5 id="command_execute"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">COMMAND_EXECUTE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RUN"</span></h5></li><li class="tsd-parameter"><h5 id="date"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">DATE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CAL"</span></h5></li><li class="tsd-parameter"><h5 id="decode"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">DECODE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"DEC"</span></h5></li><li class="tsd-parameter"><h5 id="editor"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">EDITOR</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"EDT"</span></h5></li><li class="tsd-parameter"><h5 id="file_reader"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">FILE_READER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"FRE"</span></h5></li><li class="tsd-parameter"><h5 id="file_upload"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">FILE_UPLOAD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"FUP"</span></h5></li><li class="tsd-parameter"><h5 id="gauge"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">GAUGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"GAU"</span></h5></li><li class="tsd-parameter"><h5 id="icon"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">ICON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ICO"</span></h5></li><li class="tsd-parameter"><h5 id="image"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">IMAGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"IMG"</span></h5></li><li class="tsd-parameter"><h5 id="input_checkbox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_CHECKBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INC"</span></h5></li><li class="tsd-parameter"><h5 id="input_field"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_FIELD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INF"</span></h5></li><li class="tsd-parameter"><h5 id="input_number"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">INPUT_NUMBER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"INR"</span></h5></li><li class="tsd-parameter"><h5 id="knob"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">KNOB</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"KNB"</span></h5></li><li class="tsd-parameter"><h5 id="label"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">LABEL</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"LBL"</span></h5></li><li class="tsd-parameter"><h5 id="memo"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MEMO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"MEM"</span></h5></li><li class="tsd-parameter"><h5 id="multi_autocomplete"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MULTI_AUTOCOMPLETE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"AML"</span></h5></li><li class="tsd-parameter"><h5 id="multi_combobox"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">MULTI_COMBOBOX</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"CML"</span></h5></li><li class="tsd-parameter"><h5 id="object"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">OBJECT</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"OBJ"</span></h5></li><li class="tsd-parameter"><h5 id="one_button"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">ONE_BUTTON</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"BTO"</span></h5></li><li class="tsd-parameter"><h5 id="password"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PASSWORD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PWD"</span></h5></li><li class="tsd-parameter"><h5 id="progress_bar"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">PROGRESS_BAR</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"PGB"</span></h5></li><li class="tsd-parameter"><h5 id="radio"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RADIO</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RAD"</span></h5></li><li class="tsd-parameter"><h5 id="range"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RANGE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RNG"</span></h5></li><li class="tsd-parameter"><h5 id="rating"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">RATING</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"RTG"</span></h5></li><li class="tsd-parameter"><h5 id="spinner"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SPINNER</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"SPN"</span></h5></li><li class="tsd-parameter"><h5 id="switch"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">SWITCH</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"SWT"</span></h5></li><li class="tsd-parameter"><h5 id="table"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TABLE</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TBL"</span></h5></li><li class="tsd-parameter"><h5 id="text_field"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TEXT_FIELD</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"ITX"</span></h5></li><li class="tsd-parameter"><h5 id="time"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">TIME</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"TIM"</span></h5></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/c36c3bca99ffbd3011788eb13e8fe1fe740f8af9/src/types/data-structures/smeupDataTable.ts#L146">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:146</a></li><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/c36c3bca99ffbd3011788eb13e8fe1fe740f8af9/src/types/data-structures/smeupDataTable.ts#L189">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:189</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@sme.up/kokos-sdk-node</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/lib/caller/executeFun.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ApiVersion, } from "../types/data-structures/smeupDataStructure.js";
|
|
|
8
8
|
* @param version
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
export async function executeFun(fun, context, version = ApiVersion.
|
|
11
|
+
export async function executeFun(fun, context, version = ApiVersion.V2) {
|
|
12
12
|
return new Promise(async (resolve, reject) => {
|
|
13
13
|
const out = new DataStructureStream();
|
|
14
14
|
serviceCaller(fun, context, out, version)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import stream from "stream";
|
|
2
2
|
import { ExecutionContext, Fun } from "../types/general.js";
|
|
3
|
-
import { ApiVersion } from "../types/data-structures/smeupDataStructure.js";
|
|
4
3
|
/**
|
|
5
4
|
* Dispatches the execution of a function to the micro-executor service.
|
|
6
5
|
* @param handler The handler name.
|
|
@@ -9,4 +8,4 @@ import { ApiVersion } from "../types/data-structures/smeupDataStructure.js";
|
|
|
9
8
|
* @param out The OutputStream object.
|
|
10
9
|
* @throws Exception
|
|
11
10
|
*/
|
|
12
|
-
export declare function dispatch(handler: string, fun: Fun, context: ExecutionContext, out: stream.Writable
|
|
11
|
+
export declare function dispatch(handler: string, fun: Fun, context: ExecutionContext, out: stream.Writable): Promise<void>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SMEUP_MESSAGE_GRAVITY, } from "../types/data-structures/smeupDataStructure.js";
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
import { funToString } from "../utils/fun.js";
|
|
4
|
-
const EXECUTE_FUN_V1 = "/api/v1/executeFun";
|
|
5
4
|
const EXECUTE_FUN_V2 = "/api/v2/executeFun";
|
|
6
|
-
/**
|
|
7
|
-
* Determines the API path based on the provided version.
|
|
8
|
-
* @param version The API version, either "V1" or "V2".
|
|
9
|
-
* @returns The API path.
|
|
10
|
-
*/
|
|
11
|
-
const getPath = (version) => {
|
|
12
|
-
return version === ApiVersion.V1 ? EXECUTE_FUN_V1 : EXECUTE_FUN_V2;
|
|
13
|
-
};
|
|
14
5
|
/**
|
|
15
6
|
* Dispatches the execution of a function to the micro-executor service.
|
|
16
7
|
* @param handler The handler name.
|
|
@@ -19,10 +10,10 @@ const getPath = (version) => {
|
|
|
19
10
|
* @param out The OutputStream object.
|
|
20
11
|
* @throws Exception
|
|
21
12
|
*/
|
|
22
|
-
export async function dispatch(handler, fun, context, out
|
|
13
|
+
export async function dispatch(handler, fun, context, out) {
|
|
23
14
|
const handlerUrl = context?.app?.registry?.handlers?.[handler];
|
|
24
15
|
if (handlerUrl) {
|
|
25
|
-
const url = handlerUrl +
|
|
16
|
+
const url = handlerUrl + EXECUTE_FUN_V2;
|
|
26
17
|
const dto = {
|
|
27
18
|
fun: fun,
|
|
28
19
|
context: context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microExecutorServiceCaller.js","sourceRoot":"","sources":["../../src/caller/microExecutorServiceCaller.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"microExecutorServiceCaller.js","sourceRoot":"","sources":["../../src/caller/microExecutorServiceCaller.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,GAEtB,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,OAAe,EACf,GAAQ,EACR,OAAyB,EACzB,GAAoB;IAEpB,MAAM,UAAU,GAAG,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,UAAU,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,UAAU,GAAG,cAAc,CAAC;QACxC,MAAM,GAAG,GAAsB;YAC7B,GAAG,EAAE,GAAG;YACR,OAAO,EAAE,OAAO;SACjB,CAAC;QACF,MAAM,QAAQ,GAAsC,MAAM,KAAK,CAAC,IAAI,CAClE,GAAG,EACH,GAAG,EACH;YACE,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;SAChD,CACF,CAAC;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC7B,IAAI,IAAI,GAAG,GAAG,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,oBAAoB,GAAG,4BAA4B,IAAI,eAAe,QAAQ,CAAC,IAAI,EAAE,CACtF,CAAC;QACJ,CAAC;QACD,4BAA4B;QAC5B,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;YACvC,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAC7C,IAAI,OAAO,CAAC,OAAO,KAAK,qBAAqB,CAAC,KAAK,EAAE,CAAC;oBACpD,MAAM,IAAI,KAAK,CACb,qBAAqB,WAAW,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,EAAE,CAC5D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QACD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAChE,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,cAAc,CAAC,CAAC;IACpD,CAAC;AACH,CAAC"}
|
|
@@ -37,7 +37,7 @@ import { globalConfiguration } from "../configuration/configuration.js";
|
|
|
37
37
|
* @returns
|
|
38
38
|
* @throws ExecutionException
|
|
39
39
|
*/
|
|
40
|
-
export async function serviceCaller(fun, context, out, version = ApiVersion.
|
|
40
|
+
export async function serviceCaller(fun, context, out, version = ApiVersion.V2) {
|
|
41
41
|
// setup logger context
|
|
42
42
|
const loggerContext = {
|
|
43
43
|
fun: funToString(fun),
|
|
@@ -55,7 +55,7 @@ export async function serviceCaller(fun, context, out, version = ApiVersion.V1)
|
|
|
55
55
|
const handler = context?.app?.registry?.services?.[fun.service];
|
|
56
56
|
if (handler && handler !== globalConfiguration.microExecutorId) {
|
|
57
57
|
// dispatch to external service
|
|
58
|
-
await dispatch(handler, fun, context, out
|
|
58
|
+
await dispatch(handler, fun, context, out);
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
// handle internally
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceCaller.js","sourceRoot":"","sources":["../../src/caller/serviceCaller.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,MAAM,EAEN,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,GAAQ,EACR,OAAyB,EACzB,GAAoB,EACpB,UAAsB,UAAU,CAAC,EAAE;IAEnC,uBAAuB;IACvB,MAAM,aAAa,GAAkB;QACnC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC;QACrB,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;QACjE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,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lib/middlewares/schema").RunnableValidationChains<import("express-validator").ValidationChain>;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// validators/executeFunPayloadValidator.ts
|
|
2
|
+
import { checkSchema } from "express-validator";
|
|
3
|
+
export const executeFunPayloadValidator = checkSchema({
|
|
4
|
+
fun: {
|
|
5
|
+
in: ["body"],
|
|
6
|
+
isObject: true,
|
|
7
|
+
errorMessage: "fun must be an object",
|
|
8
|
+
},
|
|
9
|
+
"fun.component": {
|
|
10
|
+
in: ["body"],
|
|
11
|
+
isString: true,
|
|
12
|
+
errorMessage: "component must be a string",
|
|
13
|
+
},
|
|
14
|
+
"fun.service": {
|
|
15
|
+
in: ["body"],
|
|
16
|
+
isString: true,
|
|
17
|
+
errorMessage: "service must be a string",
|
|
18
|
+
},
|
|
19
|
+
"fun.function": {
|
|
20
|
+
in: ["body"],
|
|
21
|
+
isString: true,
|
|
22
|
+
errorMessage: "function must be a string",
|
|
23
|
+
},
|
|
24
|
+
// Optional nested FunObject fields
|
|
25
|
+
...["obj1", "obj2", "obj3", "obj4", "obj5", "obj6"].reduce((acc, objName) => {
|
|
26
|
+
acc[`fun.${objName}`] = {
|
|
27
|
+
in: ["body"],
|
|
28
|
+
optional: true,
|
|
29
|
+
isObject: true,
|
|
30
|
+
errorMessage: `${objName} must be an object if provided`,
|
|
31
|
+
};
|
|
32
|
+
acc[`fun.${objName}.t`] = {
|
|
33
|
+
in: ["body"],
|
|
34
|
+
optional: true,
|
|
35
|
+
isString: true,
|
|
36
|
+
errorMessage: `${objName}.t must be a string`,
|
|
37
|
+
};
|
|
38
|
+
acc[`fun.${objName}.p`] = {
|
|
39
|
+
in: ["body"],
|
|
40
|
+
optional: true,
|
|
41
|
+
isString: true,
|
|
42
|
+
errorMessage: `${objName}.p must be a string`,
|
|
43
|
+
};
|
|
44
|
+
acc[`fun.${objName}.k`] = {
|
|
45
|
+
in: ["body"],
|
|
46
|
+
optional: true,
|
|
47
|
+
isString: true,
|
|
48
|
+
errorMessage: `${objName}.k must be a string`,
|
|
49
|
+
};
|
|
50
|
+
return acc;
|
|
51
|
+
}, {}),
|
|
52
|
+
"fun.P": {
|
|
53
|
+
in: ["body"],
|
|
54
|
+
optional: true,
|
|
55
|
+
isString: true,
|
|
56
|
+
errorMessage: "P must be a string",
|
|
57
|
+
},
|
|
58
|
+
"fun.INPUT": {
|
|
59
|
+
in: ["body"],
|
|
60
|
+
optional: true,
|
|
61
|
+
isString: true,
|
|
62
|
+
errorMessage: "INPUT must be a string",
|
|
63
|
+
},
|
|
64
|
+
context: {
|
|
65
|
+
in: ["body"],
|
|
66
|
+
isObject: true,
|
|
67
|
+
errorMessage: "context must be an object",
|
|
68
|
+
},
|
|
69
|
+
// User fields (optional)
|
|
70
|
+
"context.user": {
|
|
71
|
+
in: ["body"],
|
|
72
|
+
optional: true,
|
|
73
|
+
isObject: true,
|
|
74
|
+
errorMessage: "user must be an object",
|
|
75
|
+
},
|
|
76
|
+
"context.user.sessionId": {
|
|
77
|
+
in: ["body"],
|
|
78
|
+
optional: true,
|
|
79
|
+
isString: true,
|
|
80
|
+
errorMessage: "user.sessionId must be a string",
|
|
81
|
+
},
|
|
82
|
+
"context.user.username": {
|
|
83
|
+
in: ["body"],
|
|
84
|
+
optional: true,
|
|
85
|
+
isString: true,
|
|
86
|
+
errorMessage: "user.username must be a string",
|
|
87
|
+
},
|
|
88
|
+
"context.user.app": {
|
|
89
|
+
in: ["body"],
|
|
90
|
+
optional: true,
|
|
91
|
+
isString: true,
|
|
92
|
+
errorMessage: "user.app must be a string",
|
|
93
|
+
},
|
|
94
|
+
"context.user.device": {
|
|
95
|
+
in: ["body"],
|
|
96
|
+
optional: true,
|
|
97
|
+
isString: true,
|
|
98
|
+
errorMessage: "user.device must be a string",
|
|
99
|
+
},
|
|
100
|
+
"context.user.expiresAt": {
|
|
101
|
+
in: ["body"],
|
|
102
|
+
optional: true,
|
|
103
|
+
isNumeric: true,
|
|
104
|
+
errorMessage: "user.expiresAt must be a number",
|
|
105
|
+
},
|
|
106
|
+
// App and Registry fields
|
|
107
|
+
"context.app": {
|
|
108
|
+
in: ["body"],
|
|
109
|
+
optional: true,
|
|
110
|
+
isObject: true,
|
|
111
|
+
errorMessage: "app must be an object",
|
|
112
|
+
},
|
|
113
|
+
"context.app.registry": {
|
|
114
|
+
in: ["body"],
|
|
115
|
+
optional: true,
|
|
116
|
+
isObject: true,
|
|
117
|
+
errorMessage: "registry must be an object",
|
|
118
|
+
},
|
|
119
|
+
"context.app.libraries": {
|
|
120
|
+
in: ["body"],
|
|
121
|
+
optional: true,
|
|
122
|
+
isObject: true,
|
|
123
|
+
errorMessage: "libraries must be an object",
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=executeFunPayloadValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeFunPayloadValidator.js","sourceRoot":"","sources":["../../../src/entrypoint/restapi/executeFunPayloadValidator.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAC;IACpD,GAAG,EAAE;QACH,EAAE,EAAE,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,uBAAuB;KACtC;IACD,eAAe,EAAE;QACf,EAAE,EAAE,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,4BAA4B;KAC3C;IACD,aAAa,EAAE;QACb,EAAE,EAAE,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,0BAA0B;KACzC;IACD,cAAc,EAAE;QACd,EAAE,EAAE,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,2BAA2B;KAC1C;IAED,mCAAmC;IACnC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EA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AAE,IAAI;QACd,YAAY,EAAE,6BAA6B;KAC5C;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import bodyParser from "body-parser";
|
|
3
|
-
import { plainToInstance } from "class-transformer";
|
|
4
|
-
import { validate } from "class-validator";
|
|
5
|
-
import { ValidationException } from "../../types/exceptions/validation.js";
|
|
6
|
-
import { ExecuteFunPayload, } from "../../types/general.js";
|
|
7
3
|
import { serviceCaller } from "../../caller/serviceCaller.js";
|
|
8
4
|
import { fileURLToPath } from "url";
|
|
9
5
|
import { dirname, normalize } from "path";
|
|
@@ -11,6 +7,9 @@ import stream from "stream";
|
|
|
11
7
|
import { ApiVersion, SMEUP_MESSAGE_GRAVITY, SMEUP_MESSAGE_MODE, } from "../../types/data-structures/smeupDataStructure.js";
|
|
12
8
|
import { init } from "../../configuration/configuration.js";
|
|
13
9
|
import { Format, LOGGER, Level, configureLogger } from "../../logger/logger.js";
|
|
10
|
+
import { validationResult, } from "express-validator";
|
|
11
|
+
import { executeFunPayloadValidator } from "./executeFunPayloadValidator.js";
|
|
12
|
+
import { ValidationException } from "../../types/exceptions/validation.js";
|
|
14
13
|
// constant
|
|
15
14
|
const __filename = fileURLToPath(import.meta.url);
|
|
16
15
|
const __dirname = dirname(__filename);
|
|
@@ -52,9 +51,9 @@ export function startServerWithCustomConfig(microExecutorId, defaultConfiguratio
|
|
|
52
51
|
/**
|
|
53
52
|
* /executeFun API
|
|
54
53
|
*/
|
|
55
|
-
app.use("/api/:version/executeFun", validationMiddleware(
|
|
54
|
+
app.use("/api/:version/executeFun", validationMiddleware(executeFunPayloadValidator), (req, res, next) => {
|
|
56
55
|
// get version
|
|
57
|
-
const version =
|
|
56
|
+
const version = ApiVersion.V2;
|
|
58
57
|
// get body
|
|
59
58
|
const { fun, context } = req.body;
|
|
60
59
|
// set status
|
|
@@ -105,26 +104,20 @@ export function startServerWithCustomConfig(microExecutorId, defaultConfiguratio
|
|
|
105
104
|
/**
|
|
106
105
|
* MIDDLEWARES
|
|
107
106
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
next(new ValidationException(message));
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
next();
|
|
126
|
-
}
|
|
127
|
-
});
|
|
107
|
+
function validationMiddleware(validators) {
|
|
108
|
+
return async (req, res, next) => {
|
|
109
|
+
for (const validator of validators) {
|
|
110
|
+
await validator.run(req);
|
|
111
|
+
}
|
|
112
|
+
const errors = validationResult(req);
|
|
113
|
+
if (!errors.isEmpty()) {
|
|
114
|
+
const message = errors
|
|
115
|
+
.array()
|
|
116
|
+
.map((error) => error.msg)
|
|
117
|
+
.join(", ");
|
|
118
|
+
next(new ValidationException(message));
|
|
119
|
+
}
|
|
120
|
+
next();
|
|
128
121
|
};
|
|
129
122
|
}
|
|
130
123
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restapi.js","sourceRoot":"","sources":["../../../src/entrypoint/restapi/restapi.ts"],"names":[],"mappings":"AAAA,OAAO,OAA4C,MAAM,SAAS,CAAC;AACnE,OAAO,UAAU,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"restapi.js","sourceRoot":"","sources":["../../../src/entrypoint/restapi/restapi.ts"],"names":[],"mappings":"AAAA,OAAO,OAA4C,MAAM,SAAS,CAAC;AACnE,OAAO,UAAU,MAAM,aAAa,CAAC;AAKrC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,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C,CAAC,KAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;qBAC1C,IAAI,CAAC,IAAI,CAAC,CAAC;gBACd,IAAI,CAAC,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;YACzC,CAAC;YACD,IAAI,EAAE,CAAC;QACT,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,SAAS,eAAe,CACtB,KAA2B,EAC3B,QAAiB,EACjB,QAAkB,EAClB,KAAmB;QAEnB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,GAAG,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,sBAAsB,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpB,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YAC3B,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,qBAAqB,CAAC,KAAK;oBACpC,OAAO,EAAE,OAAO;oBAChB,IAAI,EAAE,kBAAkB,CAAC,EAAE;iBAC5B;aACF;SACF,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
export * from "./types/general.js";
|
|
3
3
|
/** DATA STRUCTURES */
|
|
4
4
|
export * from "./types/data-structures/smeupDataStructure.js";
|
|
5
|
-
export * from "./types/data-structures/smeupObject.js";
|
|
6
|
-
export * from "./types/data-structures/smeupRawData.js";
|
|
7
5
|
export * from "./types/data-structures/smeupDataTable.js";
|
|
8
6
|
export * from "./types/data-structures/smeupDataTree.js";
|
|
9
7
|
/** ENTRYPOINT */
|
package/lib/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
export * from "./types/general.js";
|
|
3
3
|
/** DATA STRUCTURES */
|
|
4
4
|
export * from "./types/data-structures/smeupDataStructure.js";
|
|
5
|
-
export * from "./types/data-structures/smeupObject.js";
|
|
6
|
-
export * from "./types/data-structures/smeupRawData.js";
|
|
7
5
|
export * from "./types/data-structures/smeupDataTable.js";
|
|
8
6
|
export * from "./types/data-structures/smeupDataTree.js";
|
|
9
7
|
/** ENTRYPOINT */
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,cAAc,oBAAoB,CAAC;AAEnC,sBAAsB;AACtB,cAAc,+CAA+C,CAAC;AAC9D,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,cAAc,oBAAoB,CAAC;AAEnC,sBAAsB;AACtB,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AAEzD,iBAAiB;AACjB,cAAc,iCAAiC,CAAC;AAEhD,aAAa;AACb,cAAc,oBAAoB,CAAC;AAEnC,aAAa;AACb,cAAc,wBAAwB,CAAC;AAEvC,YAAY;AACZ,cAAc,qCAAqC,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -11,21 +11,14 @@ export interface SmeupDataStructure {
|
|
|
11
11
|
* Api version
|
|
12
12
|
*/
|
|
13
13
|
export declare enum ApiVersion {
|
|
14
|
-
|
|
15
|
-
V2 = 1
|
|
14
|
+
V2 = 0
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* SmeupDataStructure types
|
|
19
18
|
*/
|
|
20
19
|
export declare enum SmeupDataStructureType {
|
|
21
|
-
/** Smeup table (EXB) */
|
|
22
|
-
SmeupTable = "SmeupTable",
|
|
23
|
-
/** Smeup tree node (TRE) */
|
|
24
|
-
SmeupTree = "SmeupTreeNode",
|
|
25
20
|
/** Smeup feedback (FBK) */
|
|
26
21
|
SmeupFeedback = "SmeupFeedback",
|
|
27
|
-
/** Smeup Raw Data (EXD) */
|
|
28
|
-
SmeupRawData = "SmeupRawData",
|
|
29
22
|
/** SmeupDataTable (DTA) */
|
|
30
23
|
SmeupDataTable = "SmeupDataTable",
|
|
31
24
|
/** SmeupDataTree (DTR) */
|