@sme.up/kokos-sdk-node 2.3.0 → 3.0.0-SNAPSHOT
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/highlight.css +56 -0
- package/docs/assets/main.js +2 -2
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/App.html +2 -2
- package/docs/classes/BatchContext.html +2 -2
- package/docs/classes/EntityOav.html +2 -2
- package/docs/classes/EntitySlice.html +2 -2
- package/docs/classes/ErrorWithStatus.html +28 -10
- 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 +8 -8
- package/docs/classes/Registry.html +2 -2
- package/docs/classes/SmeupDataStructureWriter.html +6 -5
- package/docs/classes/SourceLibrary.html +2 -2
- package/docs/classes/User.html +2 -2
- package/docs/enums/ApiVersion.html +2 -2
- package/docs/enums/DynamismEvents.html +2 -2
- package/docs/enums/Format.html +2 -2
- package/docs/enums/FunStatus.html +2 -2
- package/docs/enums/Level.html +2 -2
- package/docs/enums/LoadType.html +2 -2
- package/docs/enums/SectionTypes.html +2 -2
- package/docs/enums/Shapes.html +2 -2
- package/docs/enums/SmeupDataStructureType.html +5 -5
- package/docs/enums/SmeupLayoutSectionType.html +2 -2
- package/docs/enums/ToolbarState.html +2 -2
- package/docs/enums/YesNo.html +2 -2
- package/docs/functions/clearLoggerContext.html +1 -1
- package/docs/functions/closeEventUtils.html +1 -1
- package/docs/functions/configureLogger.html +1 -1
- package/docs/functions/createLoggerContext.html +1 -1
- package/docs/functions/executeFun.html +1 -1
- 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 +5 -5
- package/docs/functions/parseFieldValues.html +2 -2
- package/docs/functions/parseKeyValueBetweenBrackets.html +1 -1
- package/docs/functions/parseUpdatePayload.html +1 -1
- package/docs/functions/parseUpdatePayloadMultipleRows.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/submitBusinessEvent.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/interfaces/ComponentOptions.html +2 -2
- package/docs/interfaces/DebugInfo.html +2 -2
- package/docs/interfaces/DocumentDatabaseDataSource.html +2 -2
- package/docs/interfaces/IKokosEntityDAOService.html +2 -2
- package/docs/interfaces/IKokosInputPanelService.html +2 -2
- package/docs/interfaces/KokosEntityDAOServiceMethods.html +7 -7
- package/docs/interfaces/KokosInputPanelServiceMethods.html +6 -6
- 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/RawDynamism.html +7 -7
- package/docs/interfaces/SmeupAction.html +2 -2
- package/docs/interfaces/SmeupBusinessEvent.html +2 -2
- package/docs/interfaces/SmeupDataCell.html +2 -2
- package/docs/interfaces/SmeupDataColumn.html +3 -2
- package/docs/interfaces/SmeupDataNode.html +2 -2
- 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 +2 -2
- package/docs/interfaces/SmeupLayoutSection.html +2 -2
- package/docs/interfaces/SmeupMessage.html +2 -2
- package/docs/interfaces/SmeupSch.html +3 -3
- package/docs/interfaces/SmeupSchComponent.html +2 -2
- package/docs/interfaces/SmeupSchSection.html +2 -2
- package/docs/interfaces/SmeupSetup.html +2 -2
- package/docs/interfaces/SmeupStyle.html +2 -2
- package/docs/interfaces/SmeupStyleOptions.html +2 -2
- package/docs/interfaces/SmeupVariable.html +2 -2
- package/docs/interfaces/UpdateResult.html +2 -2
- package/docs/modules.html +1 -1
- package/docs/types/SmeupDataCellInputSettingsKeys.html +1 -1
- package/docs/types/SmeupDataCellInputSettingsValue.html +1 -1
- package/docs/types/SmeupDataCellShapes.html +1 -1
- package/docs/types/SmeupMessageGravity.html +1 -1
- package/docs/types/SmeupSetupBase.html +1 -1
- package/docs/types/SmeupVariableType.html +1 -1
- package/docs/variables/DEFAULT_TTL.html +1 -1
- package/docs/variables/LOGGER.html +1 -1
- package/docs/variables/SMEUP_ACTION_TYPE.html +1 -1
- package/docs/variables/SMEUP_DATA_CELL_INPUT_SETTINGS_KEYS.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 +9 -6
- package/lib/caller/executeFun.js.map +1 -1
- package/lib/caller/microExecutorServiceCaller.js +13 -7
- package/lib/caller/microExecutorServiceCaller.js.map +1 -1
- package/lib/caller/serviceCaller.js +43 -78
- package/lib/caller/serviceCaller.js.map +1 -1
- package/lib/configuration/configuration.js +28 -20
- package/lib/configuration/configuration.js.map +1 -1
- package/lib/entrypoint/restapi/executeFunPayloadValidator.js +5 -3
- package/lib/entrypoint/restapi/executeFunPayloadValidator.js.map +1 -1
- package/lib/entrypoint/restapi/index.js +4 -2
- package/lib/entrypoint/restapi/index.js.map +1 -1
- package/lib/entrypoint/restapi/restapi.js +50 -47
- package/lib/entrypoint/restapi/restapi.js.map +1 -1
- package/lib/events/eventUtils.js +16 -11
- package/lib/events/eventUtils.js.map +1 -1
- package/lib/events/rabbitmq.js +26 -16
- package/lib/events/rabbitmq.js.map +1 -1
- package/lib/index.js +32 -16
- package/lib/index.js.map +1 -1
- package/lib/logger/logger.js +21 -12
- package/lib/logger/logger.js.map +1 -1
- package/lib/services/JS_00_01.js +17 -15
- package/lib/services/JS_00_01.js.map +1 -1
- package/lib/services/JS_00_02.js +3 -1
- package/lib/services/JS_00_02.js.map +1 -1
- package/lib/types/component.js +7 -4
- package/lib/types/component.js.map +1 -1
- package/lib/types/data-structures/smeupDataStructure.js +16 -12
- package/lib/types/data-structures/smeupDataStructure.js.map +1 -1
- package/lib/types/data-structures/smeupDataTable.js +4 -1
- package/lib/types/data-structures/smeupDataTable.js.map +1 -1
- package/lib/types/data-structures/smeupDataTree.js +2 -1
- package/lib/types/data-structures/smeupSch.js +5 -2
- package/lib/types/data-structures/smeupSch.js.map +1 -1
- package/lib/types/dynamism.js +7 -4
- package/lib/types/dynamism.js.map +1 -1
- package/lib/types/exceptions/application.js +5 -3
- package/lib/types/exceptions/application.js.map +1 -1
- package/lib/types/exceptions/validation.js +6 -2
- package/lib/types/exceptions/validation.js.map +1 -1
- package/lib/types/general.js +33 -61
- package/lib/types/general.js.map +1 -1
- package/lib/types/helpers.js +7 -4
- package/lib/types/helpers.js.map +1 -1
- package/lib/utils/batchUtils.js +23 -17
- package/lib/utils/batchUtils.js.map +1 -1
- package/lib/utils/cells.js +16 -7
- package/lib/utils/cells.js.map +1 -1
- package/lib/utils/dataStructureStream.js +7 -3
- package/lib/utils/dataStructureStream.js.map +1 -1
- package/lib/utils/fun.js +10 -5
- package/lib/utils/fun.js.map +1 -1
- package/lib/utils/path.js +12 -6
- package/lib/utils/path.js.map +1 -1
- package/lib/utils/regex.js +22 -18
- package/lib/utils/regex.js.map +1 -1
- package/lib/utils/smeupDataStructureWriter.js +48 -36
- package/lib/utils/smeupDataStructureWriter.js.map +1 -1
- package/package.json +9 -13
- package/tsconfig.json +15 -27
- package/docs/interfaces/SmeupDataCellOption.html +0 -4
- package/lib/caller/executeFun.d.ts +0 -10
- package/lib/caller/microExecutorServiceCaller.d.ts +0 -11
- package/lib/caller/serviceCaller.d.ts +0 -33
- package/lib/configuration/configuration.d.ts +0 -13
- package/lib/entrypoint/restapi/executeFunPayloadValidator.d.ts +0 -1
- package/lib/entrypoint/restapi/index.d.ts +0 -1
- package/lib/entrypoint/restapi/restapi.d.ts +0 -3
- package/lib/events/eventUtils.d.ts +0 -12
- package/lib/events/rabbitmq.d.ts +0 -21
- package/lib/index.d.ts +0 -22
- package/lib/logger/logger.d.ts +0 -26
- package/lib/services/JS_00_01.d.ts +0 -3
- package/lib/services/JS_00_02.d.ts +0 -11
- package/lib/types/component.d.ts +0 -53
- package/lib/types/data-structures/smeupDataStructure.d.ts +0 -215
- package/lib/types/data-structures/smeupDataTable.d.ts +0 -116
- package/lib/types/data-structures/smeupDataTree.d.ts +0 -13
- package/lib/types/data-structures/smeupSch.d.ts +0 -72
- package/lib/types/dynamism.d.ts +0 -45
- package/lib/types/exceptions/application.d.ts +0 -8
- package/lib/types/exceptions/validation.d.ts +0 -7
- package/lib/types/general.d.ts +0 -221
- package/lib/types/helpers.d.ts +0 -9
- package/lib/utils/batchUtils.d.ts +0 -6
- package/lib/utils/cells.d.ts +0 -8
- package/lib/utils/dataStructureStream.d.ts +0 -8
- package/lib/utils/fun.d.ts +0 -4
- package/lib/utils/path.d.ts +0 -5
- package/lib/utils/regex.d.ts +0 -48
- package/lib/utils/smeupDataStructureWriter.d.ts +0 -49
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/kokos-sdk-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-SNAPSHOT",
|
|
4
4
|
"description": "Kokos SDK Node.js",
|
|
5
5
|
"author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",
|
|
6
|
-
"type": "
|
|
7
|
-
"
|
|
8
|
-
"module": "./lib/index.js",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"main": "./lib/index.js",
|
|
9
8
|
"typings": "./lib/index.d.ts",
|
|
10
9
|
"files": [
|
|
11
10
|
"lib/",
|
|
@@ -16,17 +15,14 @@
|
|
|
16
15
|
],
|
|
17
16
|
"scripts": {
|
|
18
17
|
"clean": "rimraf lib && rimraf docs",
|
|
19
|
-
"test": "
|
|
18
|
+
"test": "jest",
|
|
20
19
|
"build": "npm run clean && tsc && npm run docs",
|
|
21
|
-
"start": "
|
|
22
|
-
"dev": "
|
|
20
|
+
"start": "node ./lib/entrypoint/restapi/index.js",
|
|
21
|
+
"dev": "nodemon --watch src --ext ts --exec ts-node ./src/entrypoint/restapi/index.ts",
|
|
23
22
|
"docs": "npx typedoc --out docs src/",
|
|
24
23
|
"snapshot": "node scripts/npm-snapshot.js",
|
|
25
|
-
"publish:snapshot": "npm run snapshot && npm run build && npm publish",
|
|
26
|
-
"publish:release": "npm run build && npm publish"
|
|
27
|
-
"test:win": "SET NODE_ENV=test&&jest",
|
|
28
|
-
"start:win": "SET NODE_ENV=production&&node ./lib/entrypoint/restapi/index.js",
|
|
29
|
-
"dev:win": "SET NODE_ENV=development&&nodemon --watch './**/*.ts' --exec node --experimental-specifier-resolution=node --loader ts-node/esm ./src/entrypoint/restapi/index.ts"
|
|
24
|
+
"publish:snapshot": "npm run snapshot && npm run build && npm publish --tag snapshot",
|
|
25
|
+
"publish:release": "npm run build && npm publish"
|
|
30
26
|
},
|
|
31
27
|
"repository": {
|
|
32
28
|
"type": "git",
|
|
@@ -55,7 +51,7 @@
|
|
|
55
51
|
"@types/express": "^5.0.2",
|
|
56
52
|
"@types/jest": "^29.5.14",
|
|
57
53
|
"@types/js-yaml": "^4.0.9",
|
|
58
|
-
"@types/node": "^
|
|
54
|
+
"@types/node": "^24.4.0",
|
|
59
55
|
"jest": "^29.7.0",
|
|
60
56
|
"ts-jest": "^29.3.4"
|
|
61
57
|
},
|
package/tsconfig.json
CHANGED
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"typeRoots": ["./node_modules/@types"]
|
|
19
|
-
},
|
|
20
|
-
"include": [
|
|
21
|
-
"src/**/*.ts"
|
|
22
|
-
, "src/services/JS_00_02.js" ],
|
|
23
|
-
"exclude": [
|
|
24
|
-
"node_modules",
|
|
25
|
-
"lib",
|
|
26
|
-
"**/*.test.ts"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"lib": ["ES2020"],
|
|
6
|
+
"outDir": "lib",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"noImplicitAny": true,
|
|
12
|
+
"allowJs": true,
|
|
13
|
+
"sourceMap": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src"]
|
|
16
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
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>SmeupDataCellOption | @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">SmeupDataCellOption</a></li></ul><h1>Interface SmeupDataCellOption</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Represents the single option of the cell</p>
|
|
2
|
-
</div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">SmeupDataCellOption</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#id">id</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#label">label</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/a9939d513f85f4323d19f81aee5b57366ab77142/src/types/data-structures/smeupDataTable.ts#L77">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:77</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#id" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>id</span></a>
|
|
3
|
-
<a href="#label" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>label</span></a>
|
|
4
|
-
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="id"><span>id</span><a href="#id" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/a9939d513f85f4323d19f81aee5b57366ab77142/src/types/data-structures/smeupDataTable.ts#L78">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:78</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="label"><span>label</span><a href="#label" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">label</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/smeup/kokos-sdk-node/blob/a9939d513f85f4323d19f81aee5b57366ab77142/src/types/data-structures/smeupDataTable.ts#L79">work/kokos-sdk-node/kokos-sdk-node/src/types/data-structures/smeupDataTable.ts:79</a></li></ul></aside></section></section></details></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><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#id"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>id</span></a><a href="#label"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>label</span></a></div></details></div></details></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,10 +0,0 @@
|
|
|
1
|
-
import { ExecutionContext, Fun } from "../types/general.js";
|
|
2
|
-
import { ApiVersion, SmeupDataStructure } from "../types/data-structures/smeupDataStructure.js";
|
|
3
|
-
/**
|
|
4
|
-
* Execute FUN. If FUN can't be handled internally, it is delegated to another micro-executor.
|
|
5
|
-
* @param fun
|
|
6
|
-
* @param context
|
|
7
|
-
* @param version
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare function executeFun<T extends SmeupDataStructure>(fun: Fun, context: ExecutionContext, version?: ApiVersion): Promise<T>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import stream from "stream";
|
|
2
|
-
import { ExecutionContext, Fun } from "../types/general.js";
|
|
3
|
-
/**
|
|
4
|
-
* Dispatches the execution of a function to the micro-executor service.
|
|
5
|
-
* @param handler The handler name.
|
|
6
|
-
* @param fun The Fun object.
|
|
7
|
-
* @param context The ExecutionContext object.
|
|
8
|
-
* @param out The OutputStream object.
|
|
9
|
-
* @throws Exception
|
|
10
|
-
*/
|
|
11
|
-
export declare function dispatch(handler: string, fun: Fun, context: ExecutionContext, out: stream.Writable, async?: boolean): Promise<void>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ExecutionContext, Fun } from "../types/general.js";
|
|
2
|
-
import stream from "stream";
|
|
3
|
-
import { ApiVersion } from "../types/data-structures/smeupDataStructure.js";
|
|
4
|
-
/**
|
|
5
|
-
* PROJECT FILE SYSTEM
|
|
6
|
-
*
|
|
7
|
-
* implementation project
|
|
8
|
-
* node_modules
|
|
9
|
-
* @sme.up
|
|
10
|
-
* kokos-template-node
|
|
11
|
-
* lib
|
|
12
|
-
* caller
|
|
13
|
-
* serviceCaller.js
|
|
14
|
-
*
|
|
15
|
-
* src
|
|
16
|
-
* services
|
|
17
|
-
* [SOURCES_SERVICES (.ts)]
|
|
18
|
-
*
|
|
19
|
-
* dist
|
|
20
|
-
* services
|
|
21
|
-
* [COMPILED_SERVICES (.js)]
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Service Caller
|
|
25
|
-
* Thows ExecutionException if
|
|
26
|
-
* - service not found
|
|
27
|
-
* - method not found
|
|
28
|
-
* @param fun
|
|
29
|
-
* @param context
|
|
30
|
-
* @returns
|
|
31
|
-
* @throws ExecutionException
|
|
32
|
-
*/
|
|
33
|
-
export declare function serviceCaller(fun: Fun, context: ExecutionContext, out: stream.Writable, version?: ApiVersion, async?: boolean): Promise<void>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DocumentDatabaseDataSource, MicroExecutorConfiguration } from "../types/general.js";
|
|
2
|
-
export declare const globalConfiguration: {
|
|
3
|
-
microExecutorId: string;
|
|
4
|
-
documentDBDataSource: DocumentDatabaseDataSource;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Init micro executor configuration
|
|
8
|
-
* @param microExecutorId
|
|
9
|
-
* @param defatultConfigurationClass
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
export declare function init<T extends MicroExecutorConfiguration>(microExecutorId: string, defatultConfigurationClass: T): T;
|
|
13
|
-
export declare function getStandardDocumentDBDataSource(): DocumentDatabaseDataSource;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const executeFunPayloadValidator: import("express-validator/lib/middlewares/schema").RunnableValidationChains<import("express-validator").ValidationChain>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { MicroExecutorConfiguration } from "../../types/general.js";
|
|
2
|
-
export declare function startServer(microExecutorId: string): void;
|
|
3
|
-
export declare function startServerWithCustomConfig<T extends MicroExecutorConfiguration>(microExecutorId: string, defaultConfigurationClass: T, callback?: (configuration: T) => void): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_TTL = 30000;
|
|
2
|
-
export interface SmeupBusinessEvent {
|
|
3
|
-
event_type: string;
|
|
4
|
-
env: string;
|
|
5
|
-
user: string;
|
|
6
|
-
timestamp: number;
|
|
7
|
-
class: string;
|
|
8
|
-
object: string;
|
|
9
|
-
data: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const submitBusinessEvent: (event: SmeupBusinessEvent) => Promise<void>;
|
|
12
|
-
export declare const closeEventUtils: () => Promise<void>;
|
package/lib/events/rabbitmq.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ChannelModel, Channel } from 'amqplib';
|
|
2
|
-
export declare const SMEUP_EXCHANGE_EVT = "smeupEvtExchange";
|
|
3
|
-
export declare const SMEUP_EXCHANGE_CMD = "smeupCmdExchange";
|
|
4
|
-
export declare const SMEUP_EXCHANGE_BUSINESS_EVT = "smeupBusinessEvtExchange";
|
|
5
|
-
export declare const BUSINESS_EVT_QUEUE_NAME = "BUSINESS_EVT_QUEUE";
|
|
6
|
-
export declare const SENDER_PREFIX = "CMD-";
|
|
7
|
-
export declare const SUFFIX_ROUTING_KEY = ".in";
|
|
8
|
-
export declare const SUFFIX_CONSUMER_TAG = ".tag";
|
|
9
|
-
export declare const MAX_CONNECTION_RETRY = 5;
|
|
10
|
-
export interface RabbitMQConnection {
|
|
11
|
-
connection: ChannelModel;
|
|
12
|
-
channel: Channel;
|
|
13
|
-
}
|
|
14
|
-
export interface QueueOptions {
|
|
15
|
-
ttl: number;
|
|
16
|
-
qos?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare const generateConnection: () => Promise<ChannelModel>;
|
|
19
|
-
export declare const createChannelWithExchange: (connection: ChannelModel, exchange: string) => Promise<Channel>;
|
|
20
|
-
export declare const createChannelWithQueue: (connection: ChannelModel, exchange: string, queueName: string, options: QueueOptions) => Promise<Channel>;
|
|
21
|
-
export declare const closeConnection: (connection: ChannelModel, channel?: Channel) => Promise<void>;
|
package/lib/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** TYPES */
|
|
2
|
-
export * from "./types/general.js";
|
|
3
|
-
export * from "./types/component.js";
|
|
4
|
-
export * from "./types/dynamism.js";
|
|
5
|
-
export * from "./types/helpers.js";
|
|
6
|
-
/** DATA STRUCTURES */
|
|
7
|
-
export * from "./types/data-structures/smeupDataStructure.js";
|
|
8
|
-
export * from "./types/data-structures/smeupDataTable.js";
|
|
9
|
-
export * from "./types/data-structures/smeupDataTree.js";
|
|
10
|
-
export * from "./types/data-structures/smeupSch.js";
|
|
11
|
-
/** ENTRYPOINT */
|
|
12
|
-
export * from "./entrypoint/restapi/restapi.js";
|
|
13
|
-
/** LOGGER */
|
|
14
|
-
export * from "./logger/logger.js";
|
|
15
|
-
/** CALLER */
|
|
16
|
-
export * from "./caller/executeFun.js";
|
|
17
|
-
/** UTILS */
|
|
18
|
-
export * from "./utils/smeupDataStructureWriter.js";
|
|
19
|
-
export * from "./utils/regex.js";
|
|
20
|
-
export * from "./utils/fun.js";
|
|
21
|
-
export * from "./utils/cells.js";
|
|
22
|
-
export * from "./events/eventUtils.js";
|
package/lib/logger/logger.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface LoggerContext {
|
|
2
|
-
fun: string;
|
|
3
|
-
sessionId: string;
|
|
4
|
-
user: string;
|
|
5
|
-
app: string;
|
|
6
|
-
}
|
|
7
|
-
export declare enum Level {
|
|
8
|
-
INFO = "INFO",
|
|
9
|
-
DEBUG = "DEBUG",
|
|
10
|
-
ERROR = "ERROR"
|
|
11
|
-
}
|
|
12
|
-
export declare enum Format {
|
|
13
|
-
JSON = "JSON",
|
|
14
|
-
TXT = "TXT"
|
|
15
|
-
}
|
|
16
|
-
export declare const configureLogger: (level?: Level, format?: Format) => void;
|
|
17
|
-
export declare const createLoggerContext: (context: LoggerContext) => void;
|
|
18
|
-
export declare const clearLoggerContext: () => void;
|
|
19
|
-
declare class Logger {
|
|
20
|
-
info(message: string): void;
|
|
21
|
-
debug(message: string): void;
|
|
22
|
-
error(error: Error): void;
|
|
23
|
-
private _log;
|
|
24
|
-
}
|
|
25
|
-
export declare const LOGGER: Logger;
|
|
26
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export default JS_00_01;
|
|
2
|
-
declare namespace JS_00_01 {
|
|
3
|
-
let methods: {
|
|
4
|
-
"GET.TRE": typeof getTree;
|
|
5
|
-
"GET.EXB": typeof getTable;
|
|
6
|
-
"THR.ERR": typeof throwError;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
declare function getTree(_fun: any, _context: any, printer: any): Promise<void>;
|
|
10
|
-
declare function getTable(_fun: any, _context: any, printer: any): Promise<void>;
|
|
11
|
-
declare function throwError(_fun: any, _context: any, _printer: any): Promise<void>;
|
package/lib/types/component.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported shapes.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Shapes {
|
|
5
|
-
ACC = "ACC",
|
|
6
|
-
ACT = "ACT",
|
|
7
|
-
ATM = "ATM",
|
|
8
|
-
BOX = "BOX",
|
|
9
|
-
BTN = "BTN",
|
|
10
|
-
CAL = "CAL",
|
|
11
|
-
CHA = "CHA",// = EXA
|
|
12
|
-
DFT = "DFT",
|
|
13
|
-
DYN = "DYN",
|
|
14
|
-
DSH = "DSH",
|
|
15
|
-
EML = "EML",
|
|
16
|
-
EXA = "EXA",// = CHA
|
|
17
|
-
EXB = "EXB",// = MAT
|
|
18
|
-
EXD = "EXD",// = SCH
|
|
19
|
-
EXU = "EXU",
|
|
20
|
-
FBK = "FBK",
|
|
21
|
-
FLD = "FLD",
|
|
22
|
-
FOR = "FOR",
|
|
23
|
-
GNT = "GNT",
|
|
24
|
-
HTM = "HTM",
|
|
25
|
-
IML = "IML",
|
|
26
|
-
IMG = "IMG",
|
|
27
|
-
INT = "INT",
|
|
28
|
-
INP = "INP",
|
|
29
|
-
JSO = "JSO",
|
|
30
|
-
LAB = "LAB",
|
|
31
|
-
MAT = "MAT",// = EXB
|
|
32
|
-
PLN = "PLN",
|
|
33
|
-
PDF = "PDF",
|
|
34
|
-
SCH = "SCH",// = EXD
|
|
35
|
-
SPL = "SPL",
|
|
36
|
-
TED = "TED",
|
|
37
|
-
TRE = "TRE",
|
|
38
|
-
TXT = "TXT",
|
|
39
|
-
CND = "CND",
|
|
40
|
-
UNK = "UNK",
|
|
41
|
-
OGN = "OGN"
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* ToolbarState Info.
|
|
45
|
-
*/
|
|
46
|
-
export declare enum ToolbarState {
|
|
47
|
-
EXPANDED = "Expanded",
|
|
48
|
-
COLLAPSED = "Collapsed",
|
|
49
|
-
INVISIBLE = "Invisible"
|
|
50
|
-
}
|
|
51
|
-
export interface ComponentOptions extends Record<string, string> {
|
|
52
|
-
Name: string;
|
|
53
|
-
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { ComponentOptions, Shapes } from "../component.js";
|
|
2
|
-
import { Fun } from "../general.js";
|
|
3
|
-
import { SmeupDataCell } from "./smeupDataTable.js";
|
|
4
|
-
import { SmeupDataNode } from "./smeupDataTree.js";
|
|
5
|
-
/**
|
|
6
|
-
* Smeup data structure
|
|
7
|
-
*/
|
|
8
|
-
export interface SmeupDataStructure {
|
|
9
|
-
type: SmeupDataStructureType;
|
|
10
|
-
messages?: SmeupMessage[];
|
|
11
|
-
variables?: SmeupVariable[];
|
|
12
|
-
buttons?: SmeupDataNode[];
|
|
13
|
-
actions?: SmeupAction[];
|
|
14
|
-
setup?: SmeupSetup;
|
|
15
|
-
debugInfo?: DebugInfo;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Api version
|
|
19
|
-
*/
|
|
20
|
-
export declare enum ApiVersion {
|
|
21
|
-
V2 = 0
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* SmeupDataStructure types
|
|
25
|
-
*/
|
|
26
|
-
export declare enum SmeupDataStructureType {
|
|
27
|
-
/** Smeup feedback (FBK) */
|
|
28
|
-
SmeupFeedback = "SmeupFeedback",
|
|
29
|
-
/** SmeupDataTable (DTA) */
|
|
30
|
-
SmeupDataTable = "SmeupDataTable",
|
|
31
|
-
/** SmeupDataTree (DTR) */
|
|
32
|
-
SmeupDataTree = "SmeupDataTree",
|
|
33
|
-
/** SmeupSch */
|
|
34
|
-
SmeupScheda = "SmeupSch"
|
|
35
|
-
}
|
|
36
|
-
export declare function getSmeupDataStructureType(fun: Fun, version: ApiVersion): SmeupDataStructureType;
|
|
37
|
-
/**
|
|
38
|
-
* Smeup data structure
|
|
39
|
-
*/
|
|
40
|
-
export interface SmeupFeedback extends SmeupDataStructure {
|
|
41
|
-
type: SmeupDataStructureType.SmeupFeedback;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* SmeupMessage type
|
|
45
|
-
*/
|
|
46
|
-
export interface SmeupMessage {
|
|
47
|
-
gravity: SmeupMessageGravity;
|
|
48
|
-
message: string;
|
|
49
|
-
mode: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* SmeupMessage Gravity
|
|
53
|
-
*/
|
|
54
|
-
export declare const SMEUP_MESSAGE_GRAVITY: {
|
|
55
|
-
readonly INFO: "INFO";
|
|
56
|
-
readonly ERROR: "ERROR";
|
|
57
|
-
readonly WARNING: "WARNING";
|
|
58
|
-
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
59
|
-
};
|
|
60
|
-
export type SmeupMessageGravity = (typeof SMEUP_MESSAGE_GRAVITY)[keyof typeof SMEUP_MESSAGE_GRAVITY];
|
|
61
|
-
/**
|
|
62
|
-
* SmeupMessage Mode
|
|
63
|
-
*/
|
|
64
|
-
export declare const SMEUP_MESSAGE_MODE: {
|
|
65
|
-
readonly PM: "PM";
|
|
66
|
-
readonly PN: "PN";
|
|
67
|
-
readonly TN: "TN";
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* SmeupVariable
|
|
71
|
-
*/
|
|
72
|
-
export interface SmeupVariable {
|
|
73
|
-
name: string;
|
|
74
|
-
value: string;
|
|
75
|
-
type?: SmeupVariableType;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* SmeupVariableType
|
|
79
|
-
*/
|
|
80
|
-
export declare const SMEUP_VARIABLE_TYPE: {
|
|
81
|
-
readonly SEC: "sec";
|
|
82
|
-
readonly SCH: "sch";
|
|
83
|
-
readonly SSC: "ssc";
|
|
84
|
-
readonly LOO: "loo";
|
|
85
|
-
};
|
|
86
|
-
export type SmeupVariableType = (typeof SMEUP_VARIABLE_TYPE)[keyof typeof SMEUP_VARIABLE_TYPE];
|
|
87
|
-
/**
|
|
88
|
-
* SmeupAction
|
|
89
|
-
*/
|
|
90
|
-
export interface SmeupAction {
|
|
91
|
-
exec?: string;
|
|
92
|
-
parameter?: string;
|
|
93
|
-
type?: SmeupActionType;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* SmeupActionType
|
|
97
|
-
*/
|
|
98
|
-
export declare const SMEUP_ACTION_TYPE: {
|
|
99
|
-
readonly CLOSE: "CLOSE";
|
|
100
|
-
readonly CLOSEW: "CLOSEW";
|
|
101
|
-
readonly DYNAMIC: "DYNAMIC";
|
|
102
|
-
readonly DINAMIC: "DINAMIC";
|
|
103
|
-
readonly EXECUTE: "EXECUTE";
|
|
104
|
-
readonly LOAD: "LOAD";
|
|
105
|
-
readonly RELOAD: "RELOAD";
|
|
106
|
-
readonly UPDATE: "UPDATE";
|
|
107
|
-
readonly EXIT: "EXIT";
|
|
108
|
-
readonly REFRESH: "REFRESH";
|
|
109
|
-
readonly HARDREFRESH: "HARDREFRESH";
|
|
110
|
-
readonly POPUP: "POPUP";
|
|
111
|
-
readonly RETURNVALUE: "RETURNVALUE";
|
|
112
|
-
};
|
|
113
|
-
type SmeupActionType = (typeof SMEUP_ACTION_TYPE)[keyof typeof SMEUP_ACTION_TYPE];
|
|
114
|
-
/**
|
|
115
|
-
* Smeup Data Cell Input Settings Keys
|
|
116
|
-
*/
|
|
117
|
-
export declare const SMEUP_DATA_CELL_INPUT_SETTINGS_KEYS: {
|
|
118
|
-
readonly MANDATORY: {
|
|
119
|
-
readonly key: "mandatory";
|
|
120
|
-
readonly type: "boolean";
|
|
121
|
-
};
|
|
122
|
-
readonly CHECK_VALUE_ON_EXIT: {
|
|
123
|
-
readonly key: "checkValueOnExit";
|
|
124
|
-
readonly type: "boolean";
|
|
125
|
-
};
|
|
126
|
-
readonly CHECK_OBJECT: {
|
|
127
|
-
readonly key: "checkObject";
|
|
128
|
-
readonly type: "boolean";
|
|
129
|
-
};
|
|
130
|
-
readonly FORCE_UPPERCASE: {
|
|
131
|
-
readonly key: "forceUppercase";
|
|
132
|
-
readonly type: "boolean";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
export type SmeupDataCellInputSettingsKeys = keyof typeof SMEUP_DATA_CELL_INPUT_SETTINGS_KEYS;
|
|
136
|
-
export type SmeupDataCellInputSettingsValue = (typeof SMEUP_DATA_CELL_INPUT_SETTINGS_KEYS)[SmeupDataCellInputSettingsKeys];
|
|
137
|
-
export interface DebugInfo {
|
|
138
|
-
executionTime_ms: number;
|
|
139
|
-
initialTimestamp: string;
|
|
140
|
-
finalTimestamp: string;
|
|
141
|
-
runtime: {
|
|
142
|
-
[index: string]: string;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* LAYOUT
|
|
147
|
-
* Represent the layout of the fields in a form and the adjuntive informations
|
|
148
|
-
*/
|
|
149
|
-
export interface SmeupLayout {
|
|
150
|
-
horizontal?: boolean;
|
|
151
|
-
absolute?: boolean;
|
|
152
|
-
sections?: SmeupLayoutSection[];
|
|
153
|
-
sectionsType?: SmeupLayoutSectionType;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Represent a layout section
|
|
157
|
-
*/
|
|
158
|
-
export interface SmeupLayoutSection {
|
|
159
|
-
id?: string;
|
|
160
|
-
content?: SmeupLayoutField[];
|
|
161
|
-
sections?: SmeupLayoutSection[];
|
|
162
|
-
dim?: string;
|
|
163
|
-
collapsible?: boolean;
|
|
164
|
-
horizontal?: boolean;
|
|
165
|
-
icon?: string;
|
|
166
|
-
sectionsType?: SmeupLayoutSectionType;
|
|
167
|
-
styleName?: string;
|
|
168
|
-
gridCols?: number;
|
|
169
|
-
gridRows?: number;
|
|
170
|
-
gap?: number;
|
|
171
|
-
title?: string;
|
|
172
|
-
absoluteColumn?: number;
|
|
173
|
-
absoluteWidth?: number;
|
|
174
|
-
absoluteRow?: number;
|
|
175
|
-
absoluteHeight?: number;
|
|
176
|
-
columns?: string;
|
|
177
|
-
}
|
|
178
|
-
export declare enum SmeupLayoutSectionType {
|
|
179
|
-
TAB = "tab"
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Represent the presentation information of a field in a form
|
|
183
|
-
*/
|
|
184
|
-
export interface SmeupLayoutField extends SmeupDataCell {
|
|
185
|
-
id: string;
|
|
186
|
-
title?: string;
|
|
187
|
-
visible?: boolean;
|
|
188
|
-
colSpan?: number;
|
|
189
|
-
colStart?: number;
|
|
190
|
-
colEnd?: number;
|
|
191
|
-
rowSpan?: number;
|
|
192
|
-
rowStart?: number;
|
|
193
|
-
rowEnd?: number;
|
|
194
|
-
absoluteColumn?: number;
|
|
195
|
-
absoluteRow?: number;
|
|
196
|
-
absoluteLength?: number;
|
|
197
|
-
absoluteHeight?: number;
|
|
198
|
-
useAs?: string;
|
|
199
|
-
}
|
|
200
|
-
export type SmeupSetupBase<T extends ComponentOptions = ComponentOptions> = {
|
|
201
|
-
[key in Shapes]?: T[];
|
|
202
|
-
};
|
|
203
|
-
export interface SmeupSetup<T extends ComponentOptions = ComponentOptions> {
|
|
204
|
-
title?: string;
|
|
205
|
-
options?: SmeupSetupBase<T>;
|
|
206
|
-
userSetups?: boolean;
|
|
207
|
-
context?: string;
|
|
208
|
-
commands?: Array<SmeupDataNode>;
|
|
209
|
-
operations?: {
|
|
210
|
-
insert?: boolean;
|
|
211
|
-
delete?: boolean;
|
|
212
|
-
update?: boolean;
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
export {};
|