@ffschrattenecker/tm1-mcp-server 6.0.0
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/CHANGELOG.md +1211 -0
- package/LICENSE +21 -0
- package/NOTICE +34 -0
- package/README.md +276 -0
- package/dist/config.d.ts +35 -0
- package/dist/config.js +238 -0
- package/dist/http-transport.d.ts +8 -0
- package/dist/http-transport.js +132 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +164 -0
- package/dist/lib/callgraph/callGraph.d.ts +124 -0
- package/dist/lib/callgraph/callGraph.js +334 -0
- package/dist/lib/callgraph/choreGraph.d.ts +23 -0
- package/dist/lib/callgraph/choreGraph.js +102 -0
- package/dist/lib/callgraph/dataFlow.d.ts +74 -0
- package/dist/lib/callgraph/dataFlow.js +271 -0
- package/dist/lib/callgraph/datasourceMembership.d.ts +31 -0
- package/dist/lib/callgraph/datasourceMembership.js +142 -0
- package/dist/lib/callgraph/lintTypes.d.ts +28 -0
- package/dist/lib/callgraph/lintTypes.js +2 -0
- package/dist/lib/callgraph/mdxMembers.d.ts +29 -0
- package/dist/lib/callgraph/mdxMembers.js +97 -0
- package/dist/lib/callgraph/referenceIndex.d.ts +179 -0
- package/dist/lib/callgraph/referenceIndex.js +584 -0
- package/dist/lib/callgraph/rulesLinter.d.ts +55 -0
- package/dist/lib/callgraph/rulesLinter.js +776 -0
- package/dist/lib/callgraph/rulesParser.d.ts +26 -0
- package/dist/lib/callgraph/rulesParser.js +71 -0
- package/dist/lib/callgraph/subsetUsage.d.ts +16 -0
- package/dist/lib/callgraph/subsetUsage.js +134 -0
- package/dist/lib/callgraph/tiParser.d.ts +21 -0
- package/dist/lib/callgraph/tiParser.js +672 -0
- package/dist/lib/callgraph/tiSignatures.d.ts +32 -0
- package/dist/lib/callgraph/tiSignatures.js +6185 -0
- package/dist/lib/callgraph/tm1-adapter.d.ts +32 -0
- package/dist/lib/callgraph/tm1-adapter.js +159 -0
- package/dist/lib/callgraph/types.d.ts +53 -0
- package/dist/lib/callgraph/types.js +2 -0
- package/dist/lib/callgraph/variableEnv.d.ts +86 -0
- package/dist/lib/callgraph/variableEnv.js +214 -0
- package/dist/lib/cell-address.d.ts +12 -0
- package/dist/lib/cell-address.js +71 -0
- package/dist/lib/complexity/antipatterns.d.ts +22 -0
- package/dist/lib/complexity/antipatterns.js +302 -0
- package/dist/lib/complexity/comment-classifier.d.ts +24 -0
- package/dist/lib/complexity/comment-classifier.js +43 -0
- package/dist/lib/complexity/cross-process.d.ts +78 -0
- package/dist/lib/complexity/cross-process.js +114 -0
- package/dist/lib/complexity/process-metrics.d.ts +78 -0
- package/dist/lib/complexity/process-metrics.js +278 -0
- package/dist/lib/complexity/rules-metrics.d.ts +31 -0
- package/dist/lib/complexity/rules-metrics.js +99 -0
- package/dist/lib/concurrency.d.ts +11 -0
- package/dist/lib/concurrency.js +27 -0
- package/dist/lib/control-name.d.ts +10 -0
- package/dist/lib/control-name.js +10 -0
- package/dist/lib/coordinate-error.d.ts +3 -0
- package/dist/lib/coordinate-error.js +29 -0
- package/dist/lib/credential-format.d.ts +23 -0
- package/dist/lib/credential-format.js +25 -0
- package/dist/lib/cube-stats/fetcher.d.ts +106 -0
- package/dist/lib/cube-stats/fetcher.js +194 -0
- package/dist/lib/feeders/brackets.d.ts +47 -0
- package/dist/lib/feeders/brackets.js +195 -0
- package/dist/lib/feeders/element-type-cache.d.ts +42 -0
- package/dist/lib/feeders/element-type-cache.js +86 -0
- package/dist/lib/feeders/static-heuristics.d.ts +101 -0
- package/dist/lib/feeders/static-heuristics.js +202 -0
- package/dist/lib/git-process.d.ts +67 -0
- package/dist/lib/git-process.js +243 -0
- package/dist/lib/mask-secrets.d.ts +10 -0
- package/dist/lib/mask-secrets.js +99 -0
- package/dist/lib/mdx.d.ts +3 -0
- package/dist/lib/mdx.js +13 -0
- package/dist/lib/naming/odata-filter.d.ts +15 -0
- package/dist/lib/naming/odata-filter.js +81 -0
- package/dist/lib/naming/rules.d.ts +34 -0
- package/dist/lib/naming/rules.js +215 -0
- package/dist/lib/pro-parser.d.ts +19 -0
- package/dist/lib/pro-parser.js +260 -0
- package/dist/lib/pro-serializer.d.ts +19 -0
- package/dist/lib/pro-serializer.js +170 -0
- package/dist/lib/process-parts-schema.d.ts +45 -0
- package/dist/lib/process-parts-schema.js +46 -0
- package/dist/lib/process-refs.d.ts +88 -0
- package/dist/lib/process-refs.js +441 -0
- package/dist/lib/rules-outline.d.ts +29 -0
- package/dist/lib/rules-outline.js +68 -0
- package/dist/lib/rules-patch.d.ts +6 -0
- package/dist/lib/rules-patch.js +59 -0
- package/dist/lib/safe-regex.d.ts +15 -0
- package/dist/lib/safe-regex.js +37 -0
- package/dist/lib/sample-cells.d.ts +48 -0
- package/dist/lib/sample-cells.js +146 -0
- package/dist/lib/slim-json-schema.d.ts +20 -0
- package/dist/lib/slim-json-schema.js +68 -0
- package/dist/lib/strip-comments.d.ts +23 -0
- package/dist/lib/strip-comments.js +61 -0
- package/dist/lib/tm1-events.d.ts +16 -0
- package/dist/lib/tm1-events.js +29 -0
- package/dist/lib/v12-compat/deprecated-ti.d.ts +17 -0
- package/dist/lib/v12-compat/deprecated-ti.js +257 -0
- package/dist/lib/v12-compat/scanner.d.ts +10 -0
- package/dist/lib/v12-compat/scanner.js +43 -0
- package/dist/lib/variables-ui-data.d.ts +26 -0
- package/dist/lib/variables-ui-data.js +77 -0
- package/dist/load-env.d.ts +2 -0
- package/dist/load-env.js +29 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.js +60 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.js +141 -0
- package/dist/resources/index.d.ts +5 -0
- package/dist/resources/index.js +237 -0
- package/dist/resources/list-handler.d.ts +40 -0
- package/dist/resources/list-handler.js +86 -0
- package/dist/resources/subscriptions.d.ts +19 -0
- package/dist/resources/subscriptions.js +80 -0
- package/dist/schemas/cells.d.ts +17 -0
- package/dist/schemas/cells.js +13 -0
- package/dist/schemas/common.d.ts +16 -0
- package/dist/schemas/common.js +14 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.js +23 -0
- package/dist/schemas/metadata.d.ts +70 -0
- package/dist/schemas/metadata.js +47 -0
- package/dist/schemas/monitoring.d.ts +95 -0
- package/dist/schemas/monitoring.js +69 -0
- package/dist/schemas/processes.d.ts +74 -0
- package/dist/schemas/processes.js +66 -0
- package/dist/schemas/scheduling.d.ts +13 -0
- package/dist/schemas/scheduling.js +13 -0
- package/dist/schemas/security.d.ts +19 -0
- package/dist/schemas/security.js +16 -0
- package/dist/schemas/subsets.d.ts +12 -0
- package/dist/schemas/subsets.js +12 -0
- package/dist/schemas/views.d.ts +9 -0
- package/dist/schemas/views.js +9 -0
- package/dist/session-manager.d.ts +79 -0
- package/dist/session-manager.js +281 -0
- package/dist/tm1-client/connection/profile.d.ts +13 -0
- package/dist/tm1-client/connection/profile.js +99 -0
- package/dist/tm1-client/dispatcher.d.ts +5 -0
- package/dist/tm1-client/dispatcher.js +31 -0
- package/dist/tm1-client/http.d.ts +81 -0
- package/dist/tm1-client/http.js +547 -0
- package/dist/tm1-client/services/batch-service.d.ts +123 -0
- package/dist/tm1-client/services/batch-service.js +455 -0
- package/dist/tm1-client/services/cell-service.d.ts +71 -0
- package/dist/tm1-client/services/cell-service.js +333 -0
- package/dist/tm1-client/services/cellset-transform.d.ts +26 -0
- package/dist/tm1-client/services/cellset-transform.js +80 -0
- package/dist/tm1-client/services/chore-service.d.ts +68 -0
- package/dist/tm1-client/services/chore-service.js +179 -0
- package/dist/tm1-client/services/chore-status.d.ts +11 -0
- package/dist/tm1-client/services/chore-status.js +127 -0
- package/dist/tm1-client/services/cube-service.d.ts +134 -0
- package/dist/tm1-client/services/cube-service.js +294 -0
- package/dist/tm1-client/services/dimension-service.d.ts +118 -0
- package/dist/tm1-client/services/dimension-service.js +249 -0
- package/dist/tm1-client/services/element-service.d.ts +245 -0
- package/dist/tm1-client/services/element-service.js +809 -0
- package/dist/tm1-client/services/fallback.d.ts +44 -0
- package/dist/tm1-client/services/fallback.js +72 -0
- package/dist/tm1-client/services/file-service.d.ts +53 -0
- package/dist/tm1-client/services/file-service.js +218 -0
- package/dist/tm1-client/services/hierarchy-service.d.ts +129 -0
- package/dist/tm1-client/services/hierarchy-service.js +332 -0
- package/dist/tm1-client/services/monitoring-service.d.ts +34 -0
- package/dist/tm1-client/services/monitoring-service.js +123 -0
- package/dist/tm1-client/services/odata-page.d.ts +71 -0
- package/dist/tm1-client/services/odata-page.js +87 -0
- package/dist/tm1-client/services/process-service.d.ts +278 -0
- package/dist/tm1-client/services/process-service.js +874 -0
- package/dist/tm1-client/services/process-status.d.ts +21 -0
- package/dist/tm1-client/services/process-status.js +89 -0
- package/dist/tm1-client/services/security-service.d.ts +50 -0
- package/dist/tm1-client/services/security-service.js +93 -0
- package/dist/tm1-client/services/server-service.d.ts +116 -0
- package/dist/tm1-client/services/server-service.js +504 -0
- package/dist/tm1-client/services/subset-service.d.ts +37 -0
- package/dist/tm1-client/services/subset-service.js +122 -0
- package/dist/tm1-client/services/view-service.d.ts +46 -0
- package/dist/tm1-client/services/view-service.js +287 -0
- package/dist/tm1-client.d.ts +56 -0
- package/dist/tm1-client.js +126 -0
- package/dist/tools/analysis/analyze-callgraph.d.ts +28 -0
- package/dist/tools/analysis/analyze-callgraph.js +350 -0
- package/dist/tools/analysis/analyze-chore-graph.d.ts +2 -0
- package/dist/tools/analysis/analyze-chore-graph.js +148 -0
- package/dist/tools/analysis/analyze-object-usage.d.ts +2 -0
- package/dist/tools/analysis/analyze-object-usage.js +143 -0
- package/dist/tools/analysis/audit-complexity.d.ts +2 -0
- package/dist/tools/analysis/audit-complexity.js +255 -0
- package/dist/tools/analysis/audit-feeders.d.ts +2 -0
- package/dist/tools/analysis/audit-feeders.js +417 -0
- package/dist/tools/analysis/audit-naming.d.ts +2 -0
- package/dist/tools/analysis/audit-naming.js +379 -0
- package/dist/tools/analysis/check-v12-readiness.d.ts +2 -0
- package/dist/tools/analysis/check-v12-readiness.js +136 -0
- package/dist/tools/analysis/find-orphan-dimensions.d.ts +2 -0
- package/dist/tools/analysis/find-orphan-dimensions.js +55 -0
- package/dist/tools/analysis/invalidate-callgraph-cache.d.ts +2 -0
- package/dist/tools/analysis/invalidate-callgraph-cache.js +40 -0
- package/dist/tools/analysis/trace-data-flow.d.ts +2 -0
- package/dist/tools/analysis/trace-data-flow.js +138 -0
- package/dist/tools/annotations.d.ts +12 -0
- package/dist/tools/annotations.js +61 -0
- package/dist/tools/celldata/check-feeders.d.ts +2 -0
- package/dist/tools/celldata/check-feeders.js +48 -0
- package/dist/tools/celldata/check-writable-coords.d.ts +2 -0
- package/dist/tools/celldata/check-writable-coords.js +126 -0
- package/dist/tools/celldata/execute-mdx.d.ts +17 -0
- package/dist/tools/celldata/execute-mdx.js +126 -0
- package/dist/tools/celldata/get-cell-value.d.ts +2 -0
- package/dist/tools/celldata/get-cell-value.js +30 -0
- package/dist/tools/celldata/get-view-definition.d.ts +2 -0
- package/dist/tools/celldata/get-view-definition.js +29 -0
- package/dist/tools/celldata/get-view.d.ts +2 -0
- package/dist/tools/celldata/get-view.js +55 -0
- package/dist/tools/celldata/sample-cells.d.ts +2 -0
- package/dist/tools/celldata/sample-cells.js +101 -0
- package/dist/tools/celldata/trace-cell-calculation.d.ts +2 -0
- package/dist/tools/celldata/trace-cell-calculation.js +53 -0
- package/dist/tools/celldata/trace-feeders.d.ts +2 -0
- package/dist/tools/celldata/trace-feeders.js +44 -0
- package/dist/tools/celldata/write-cells.d.ts +2 -0
- package/dist/tools/celldata/write-cells.js +65 -0
- package/dist/tools/confirm.d.ts +10 -0
- package/dist/tools/confirm.js +64 -0
- package/dist/tools/define-tool.d.ts +51 -0
- package/dist/tools/define-tool.js +49 -0
- package/dist/tools/dimension-management/bulk-upsert-elements.d.ts +2 -0
- package/dist/tools/dimension-management/bulk-upsert-elements.js +103 -0
- package/dist/tools/dimension-management/create-dimension.d.ts +2 -0
- package/dist/tools/dimension-management/create-dimension.js +22 -0
- package/dist/tools/dimension-management/create-element-attribute.d.ts +2 -0
- package/dist/tools/dimension-management/create-element-attribute.js +26 -0
- package/dist/tools/dimension-management/create-element.d.ts +2 -0
- package/dist/tools/dimension-management/create-element.js +31 -0
- package/dist/tools/dimension-management/create-hierarchy.d.ts +2 -0
- package/dist/tools/dimension-management/create-hierarchy.js +22 -0
- package/dist/tools/dimension-management/delete-dimension.d.ts +2 -0
- package/dist/tools/dimension-management/delete-dimension.js +25 -0
- package/dist/tools/dimension-management/delete-element.d.ts +2 -0
- package/dist/tools/dimension-management/delete-element.js +26 -0
- package/dist/tools/dimension-management/delete-elements.d.ts +2 -0
- package/dist/tools/dimension-management/delete-elements.js +44 -0
- package/dist/tools/dimension-management/delete-hierarchy.d.ts +2 -0
- package/dist/tools/dimension-management/delete-hierarchy.js +35 -0
- package/dist/tools/dimension-management/get-element-attribute-values.d.ts +2 -0
- package/dist/tools/dimension-management/get-element-attribute-values.js +77 -0
- package/dist/tools/dimension-management/list-element-attributes.d.ts +2 -0
- package/dist/tools/dimension-management/list-element-attributes.js +31 -0
- package/dist/tools/dimension-management/move-element.d.ts +2 -0
- package/dist/tools/dimension-management/move-element.js +28 -0
- package/dist/tools/dimension-management/update-element-attribute-value.d.ts +2 -0
- package/dist/tools/dimension-management/update-element-attribute-value.js +80 -0
- package/dist/tools/dimension-management/update-element.d.ts +2 -0
- package/dist/tools/dimension-management/update-element.js +35 -0
- package/dist/tools/error-format.d.ts +22 -0
- package/dist/tools/error-format.js +130 -0
- package/dist/tools/fileops/delete-file.d.ts +2 -0
- package/dist/tools/fileops/delete-file.js +32 -0
- package/dist/tools/fileops/get-file-content.d.ts +2 -0
- package/dist/tools/fileops/get-file-content.js +76 -0
- package/dist/tools/fileops/list-files.d.ts +2 -0
- package/dist/tools/fileops/list-files.js +43 -0
- package/dist/tools/fileops/search-files.d.ts +2 -0
- package/dist/tools/fileops/search-files.js +76 -0
- package/dist/tools/fileops/upload-file.d.ts +2 -0
- package/dist/tools/fileops/upload-file.js +69 -0
- package/dist/tools/format.d.ts +57 -0
- package/dist/tools/format.js +157 -0
- package/dist/tools/hierarchy.d.ts +6 -0
- package/dist/tools/hierarchy.js +27 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.js +263 -0
- package/dist/tools/local-file.d.ts +16 -0
- package/dist/tools/local-file.js +88 -0
- package/dist/tools/metadata/get-ancestors.d.ts +2 -0
- package/dist/tools/metadata/get-ancestors.js +36 -0
- package/dist/tools/metadata/get-descendants.d.ts +2 -0
- package/dist/tools/metadata/get-descendants.js +64 -0
- package/dist/tools/metadata/get-hierarchy.d.ts +2 -0
- package/dist/tools/metadata/get-hierarchy.js +130 -0
- package/dist/tools/metadata/list-chores.d.ts +2 -0
- package/dist/tools/metadata/list-chores.js +62 -0
- package/dist/tools/metadata/list-cubes.d.ts +2 -0
- package/dist/tools/metadata/list-cubes.js +128 -0
- package/dist/tools/metadata/list-dimensions.d.ts +2 -0
- package/dist/tools/metadata/list-dimensions.js +131 -0
- package/dist/tools/metadata/list-processes-grouped.d.ts +2 -0
- package/dist/tools/metadata/list-processes-grouped.js +96 -0
- package/dist/tools/metadata/list-processes.d.ts +2 -0
- package/dist/tools/metadata/list-processes.js +108 -0
- package/dist/tools/metadata/resolve-default-members.d.ts +2 -0
- package/dist/tools/metadata/resolve-default-members.js +46 -0
- package/dist/tools/model-building/check-cube-rule.d.ts +2 -0
- package/dist/tools/model-building/check-cube-rule.js +51 -0
- package/dist/tools/model-building/clear-cube.d.ts +2 -0
- package/dist/tools/model-building/clear-cube.js +46 -0
- package/dist/tools/model-building/create-cube.d.ts +2 -0
- package/dist/tools/model-building/create-cube.js +34 -0
- package/dist/tools/model-building/delete-cube.d.ts +2 -0
- package/dist/tools/model-building/delete-cube.js +27 -0
- package/dist/tools/model-building/get-all-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/get-all-cube-rules.js +149 -0
- package/dist/tools/model-building/get-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/get-cube-rules.js +69 -0
- package/dist/tools/model-building/rules-source.d.ts +21 -0
- package/dist/tools/model-building/rules-source.js +49 -0
- package/dist/tools/model-building/search-rules.d.ts +2 -0
- package/dist/tools/model-building/search-rules.js +132 -0
- package/dist/tools/model-building/set-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/set-cube-rules.js +81 -0
- package/dist/tools/model-building/unload-cube.d.ts +2 -0
- package/dist/tools/model-building/unload-cube.js +23 -0
- package/dist/tools/operations/diagnose-process-error.d.ts +2 -0
- package/dist/tools/operations/diagnose-process-error.js +178 -0
- package/dist/tools/operations/error-log-helpers.d.ts +25 -0
- package/dist/tools/operations/error-log-helpers.js +57 -0
- package/dist/tools/operations/get-audit-log.d.ts +2 -0
- package/dist/tools/operations/get-audit-log.js +70 -0
- package/dist/tools/operations/get-cube-stats.d.ts +2 -0
- package/dist/tools/operations/get-cube-stats.js +107 -0
- package/dist/tools/operations/get-error-log-content.d.ts +2 -0
- package/dist/tools/operations/get-error-log-content.js +164 -0
- package/dist/tools/operations/get-jobs.d.ts +3 -0
- package/dist/tools/operations/get-jobs.js +51 -0
- package/dist/tools/operations/get-message-log.d.ts +2 -0
- package/dist/tools/operations/get-message-log.js +63 -0
- package/dist/tools/operations/get-server-info.d.ts +2 -0
- package/dist/tools/operations/get-server-info.js +180 -0
- package/dist/tools/operations/get-server-state.d.ts +2 -0
- package/dist/tools/operations/get-server-state.js +129 -0
- package/dist/tools/operations/get-sessions.d.ts +2 -0
- package/dist/tools/operations/get-sessions.js +76 -0
- package/dist/tools/operations/get-threads.d.ts +3 -0
- package/dist/tools/operations/get-threads.js +50 -0
- package/dist/tools/operations/get-transaction-log.d.ts +2 -0
- package/dist/tools/operations/get-transaction-log.js +63 -0
- package/dist/tools/operations/list-error-logs.d.ts +8 -0
- package/dist/tools/operations/list-error-logs.js +157 -0
- package/dist/tools/operations/save-data.d.ts +2 -0
- package/dist/tools/operations/save-data.js +50 -0
- package/dist/tools/pagination.d.ts +32 -0
- package/dist/tools/pagination.js +116 -0
- package/dist/tools/scheduling/create-chore.d.ts +2 -0
- package/dist/tools/scheduling/create-chore.js +93 -0
- package/dist/tools/scheduling/delete-chore.d.ts +2 -0
- package/dist/tools/scheduling/delete-chore.js +22 -0
- package/dist/tools/scheduling/execute-chore.d.ts +2 -0
- package/dist/tools/scheduling/execute-chore.js +52 -0
- package/dist/tools/scheduling/toggle-chore.d.ts +2 -0
- package/dist/tools/scheduling/toggle-chore.js +22 -0
- package/dist/tools/scheduling/update-chore.d.ts +2 -0
- package/dist/tools/scheduling/update-chore.js +71 -0
- package/dist/tools/schemas/common.d.ts +10 -0
- package/dist/tools/schemas/common.js +23 -0
- package/dist/tools/schemas/items-analysis.d.ts +394 -0
- package/dist/tools/schemas/items-analysis.js +419 -0
- package/dist/tools/schemas/items-cells.d.ts +70 -0
- package/dist/tools/schemas/items-cells.js +65 -0
- package/dist/tools/schemas/items-common.d.ts +18 -0
- package/dist/tools/schemas/items-common.js +39 -0
- package/dist/tools/schemas/items-fileops.d.ts +11 -0
- package/dist/tools/schemas/items-fileops.js +13 -0
- package/dist/tools/schemas/items-metadata.d.ts +262 -0
- package/dist/tools/schemas/items-metadata.js +184 -0
- package/dist/tools/schemas/items-monitoring.d.ts +79 -0
- package/dist/tools/schemas/items-monitoring.js +78 -0
- package/dist/tools/schemas/items-processes.d.ts +279 -0
- package/dist/tools/schemas/items-processes.js +235 -0
- package/dist/tools/schemas/items-scheduling.d.ts +25 -0
- package/dist/tools/schemas/items-scheduling.js +26 -0
- package/dist/tools/schemas/items-security.d.ts +19 -0
- package/dist/tools/schemas/items-security.js +12 -0
- package/dist/tools/schemas/items-subsets.d.ts +2 -0
- package/dist/tools/schemas/items-subsets.js +4 -0
- package/dist/tools/schemas/items-views.d.ts +38 -0
- package/dist/tools/schemas/items-views.js +26 -0
- package/dist/tools/schemas/items.d.ts +12 -0
- package/dist/tools/schemas/items.js +23 -0
- package/dist/tools/schemas/markdown-capable.d.ts +21 -0
- package/dist/tools/schemas/markdown-capable.js +58 -0
- package/dist/tools/schemas/output-schema.d.ts +24 -0
- package/dist/tools/schemas/output-schema.js +25 -0
- package/dist/tools/security/assign-client-group.d.ts +2 -0
- package/dist/tools/security/assign-client-group.js +20 -0
- package/dist/tools/security/create-client.d.ts +2 -0
- package/dist/tools/security/create-client.js +28 -0
- package/dist/tools/security/delete-client.d.ts +2 -0
- package/dist/tools/security/delete-client.js +22 -0
- package/dist/tools/security/get-client.d.ts +2 -0
- package/dist/tools/security/get-client.js +20 -0
- package/dist/tools/security/list-clients.d.ts +2 -0
- package/dist/tools/security/list-clients.js +86 -0
- package/dist/tools/security/list-groups.d.ts +2 -0
- package/dist/tools/security/list-groups.js +43 -0
- package/dist/tools/security/remove-client-group.d.ts +2 -0
- package/dist/tools/security/remove-client-group.js +27 -0
- package/dist/tools/security/update-client.d.ts +2 -0
- package/dist/tools/security/update-client.js +22 -0
- package/dist/tools/subsets/create-subset.d.ts +2 -0
- package/dist/tools/subsets/create-subset.js +44 -0
- package/dist/tools/subsets/delete-subset.d.ts +2 -0
- package/dist/tools/subsets/delete-subset.js +26 -0
- package/dist/tools/subsets/get-subset.d.ts +2 -0
- package/dist/tools/subsets/get-subset.js +29 -0
- package/dist/tools/subsets/list-subsets.d.ts +2 -0
- package/dist/tools/subsets/list-subsets.js +36 -0
- package/dist/tools/subsets/update-subset.d.ts +2 -0
- package/dist/tools/subsets/update-subset.js +33 -0
- package/dist/tools/ti-development/check-process-code.d.ts +2 -0
- package/dist/tools/ti-development/check-process-code.js +96 -0
- package/dist/tools/ti-development/compile-process.d.ts +2 -0
- package/dist/tools/ti-development/compile-process.js +32 -0
- package/dist/tools/ti-development/copy-process.d.ts +2 -0
- package/dist/tools/ti-development/copy-process.js +32 -0
- package/dist/tools/ti-development/delete-process.d.ts +2 -0
- package/dist/tools/ti-development/delete-process.js +26 -0
- package/dist/tools/ti-development/diff-process-with-file.d.ts +2 -0
- package/dist/tools/ti-development/diff-process-with-file.js +208 -0
- package/dist/tools/ti-development/diff-processes.d.ts +2 -0
- package/dist/tools/ti-development/diff-processes.js +312 -0
- package/dist/tools/ti-development/execute-process.d.ts +8 -0
- package/dist/tools/ti-development/execute-process.js +109 -0
- package/dist/tools/ti-development/export-process-to-git.d.ts +2 -0
- package/dist/tools/ti-development/export-process-to-git.js +113 -0
- package/dist/tools/ti-development/export-process-to-pro.d.ts +2 -0
- package/dist/tools/ti-development/export-process-to-pro.js +117 -0
- package/dist/tools/ti-development/get-all-processes-code.d.ts +2 -0
- package/dist/tools/ti-development/get-all-processes-code.js +131 -0
- package/dist/tools/ti-development/get-process-code.d.ts +2 -0
- package/dist/tools/ti-development/get-process-code.js +100 -0
- package/dist/tools/ti-development/get-process-datasource.d.ts +2 -0
- package/dist/tools/ti-development/get-process-datasource.js +20 -0
- package/dist/tools/ti-development/get-process-parameters.d.ts +2 -0
- package/dist/tools/ti-development/get-process-parameters.js +25 -0
- package/dist/tools/ti-development/get-process-variables.d.ts +2 -0
- package/dist/tools/ti-development/get-process-variables.js +38 -0
- package/dist/tools/ti-development/get-process.d.ts +2 -0
- package/dist/tools/ti-development/get-process.js +163 -0
- package/dist/tools/ti-development/import-pro-file.d.ts +2 -0
- package/dist/tools/ti-development/import-pro-file.js +153 -0
- package/dist/tools/ti-development/import-process-from-git.d.ts +2 -0
- package/dist/tools/ti-development/import-process-from-git.js +198 -0
- package/dist/tools/ti-development/install-pro-bundle.d.ts +2 -0
- package/dist/tools/ti-development/install-pro-bundle.js +288 -0
- package/dist/tools/ti-development/preflight.d.ts +39 -0
- package/dist/tools/ti-development/preflight.js +56 -0
- package/dist/tools/ti-development/process-backup.d.ts +29 -0
- package/dist/tools/ti-development/process-backup.js +118 -0
- package/dist/tools/ti-development/search-code.d.ts +2 -0
- package/dist/tools/ti-development/search-code.js +208 -0
- package/dist/tools/ti-development/upsert-process.d.ts +2 -0
- package/dist/tools/ti-development/upsert-process.js +167 -0
- package/dist/tools/ti-development/validate-process-refs.d.ts +2 -0
- package/dist/tools/ti-development/validate-process-refs.js +73 -0
- package/dist/tools/views/create-mdx-view.d.ts +2 -0
- package/dist/tools/views/create-mdx-view.js +21 -0
- package/dist/tools/views/create-native-view.d.ts +2 -0
- package/dist/tools/views/create-native-view.js +81 -0
- package/dist/tools/views/delete-view.d.ts +2 -0
- package/dist/tools/views/delete-view.js +23 -0
- package/dist/tools/views/list-views.d.ts +2 -0
- package/dist/tools/views/list-views.js +32 -0
- package/dist/tools/with-annotations.d.ts +6 -0
- package/dist/tools/with-annotations.js +339 -0
- package/dist/types.d.ts +409 -0
- package/dist/types.js +91 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +18 -0
- package/package.json +107 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Metadata domain: element statistics and per-element attribute values.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { CellValueSchema, ELEMENT_TYPE } from "./common.js";
|
|
4
|
+
export const CubeSchema = z.object({
|
|
5
|
+
name: z.string(),
|
|
6
|
+
dimensions: z.array(z.string()),
|
|
7
|
+
hasRules: z.boolean().optional(),
|
|
8
|
+
});
|
|
9
|
+
export const ElementStatsSchema = z.object({
|
|
10
|
+
total: z.number().int(),
|
|
11
|
+
numeric: z.number().int(),
|
|
12
|
+
consolidated: z.number().int(),
|
|
13
|
+
string: z.number().int(),
|
|
14
|
+
maxLevel: z.number().int(),
|
|
15
|
+
});
|
|
16
|
+
export const ElementAttributeValueSchema = z.object({
|
|
17
|
+
elementName: z.string(),
|
|
18
|
+
attributeName: z.string(),
|
|
19
|
+
value: CellValueSchema,
|
|
20
|
+
});
|
|
21
|
+
export const DimensionSchema = z.object({
|
|
22
|
+
name: z.string(),
|
|
23
|
+
hierarchies: z.array(z.string()),
|
|
24
|
+
// Populated only when getDimensions({includeElementCount: true}) is called.
|
|
25
|
+
// Map hierarchyName → element total.
|
|
26
|
+
elementCounts: z.record(z.string(), z.number().int()).optional(),
|
|
27
|
+
// Populated only when getDimensions({includeElementStats: true}) is called.
|
|
28
|
+
// Map hierarchyName → Type breakdown (N/C/S) + maxLevel.
|
|
29
|
+
elementStats: z.record(z.string(), ElementStatsSchema).optional(),
|
|
30
|
+
// Populated only when includeLastUpdated is asked for. Naive-local ISO
|
|
31
|
+
// (no Z) decoded from }DimensionProperties.LAST_TIME_UPDATED — a
|
|
32
|
+
// schema-change stamp. null when the dimension has no stamp.
|
|
33
|
+
lastUpdated: z.string().nullable().optional(),
|
|
34
|
+
});
|
|
35
|
+
export const HierarchyElementSchema = z.object({
|
|
36
|
+
name: z.string(),
|
|
37
|
+
type: ELEMENT_TYPE,
|
|
38
|
+
level: z.number().int(),
|
|
39
|
+
parents: z.array(z.string()),
|
|
40
|
+
children: z.array(z.object({ name: z.string(), weight: z.number() })),
|
|
41
|
+
});
|
|
42
|
+
export const HierarchySchema = z.object({
|
|
43
|
+
name: z.string(),
|
|
44
|
+
dimensionName: z.string(),
|
|
45
|
+
elements: z.array(HierarchyElementSchema),
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=metadata.js.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ThreadSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
type: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
state: z.ZodString;
|
|
7
|
+
function: z.ZodString;
|
|
8
|
+
objectName: z.ZodString;
|
|
9
|
+
elapsedTime: z.ZodOptional<z.ZodString>;
|
|
10
|
+
objectType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
waitTime: z.ZodOptional<z.ZodString>;
|
|
12
|
+
info: z.ZodOptional<z.ZodString>;
|
|
13
|
+
context: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type Thread = z.infer<typeof ThreadSchema>;
|
|
16
|
+
export declare const SessionSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
user: z.ZodString;
|
|
19
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNumber;
|
|
22
|
+
type: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
state: z.ZodString;
|
|
25
|
+
function: z.ZodString;
|
|
26
|
+
objectName: z.ZodString;
|
|
27
|
+
elapsedTime: z.ZodOptional<z.ZodString>;
|
|
28
|
+
objectType: z.ZodOptional<z.ZodString>;
|
|
29
|
+
waitTime: z.ZodOptional<z.ZodString>;
|
|
30
|
+
info: z.ZodOptional<z.ZodString>;
|
|
31
|
+
context: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type Session = z.infer<typeof SessionSchema>;
|
|
35
|
+
export declare const JobSessionSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
context: z.ZodOptional<z.ZodString>;
|
|
38
|
+
user: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type JobSession = z.infer<typeof JobSessionSchema>;
|
|
41
|
+
export declare const JobWaitingOnSchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
description: z.ZodString;
|
|
44
|
+
state: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type JobWaitingOn = z.infer<typeof JobWaitingOnSchema>;
|
|
47
|
+
export declare const JobSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
description: z.ZodString;
|
|
50
|
+
state: z.ZodString;
|
|
51
|
+
elapsedTime: z.ZodOptional<z.ZodString>;
|
|
52
|
+
waitTime: z.ZodOptional<z.ZodString>;
|
|
53
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
context: z.ZodOptional<z.ZodString>;
|
|
56
|
+
user: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
waitingOn: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
description: z.ZodString;
|
|
61
|
+
state: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type Job = z.infer<typeof JobSchema>;
|
|
65
|
+
export declare const MessageLogEntrySchema: z.ZodObject<{
|
|
66
|
+
timestamp: z.ZodString;
|
|
67
|
+
level: z.ZodString;
|
|
68
|
+
message: z.ZodString;
|
|
69
|
+
errorFile: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type MessageLogEntry = z.infer<typeof MessageLogEntrySchema>;
|
|
72
|
+
export declare const TransactionLogEntrySchema: z.ZodObject<{
|
|
73
|
+
timestamp: z.ZodString;
|
|
74
|
+
user: z.ZodString;
|
|
75
|
+
cubeName: z.ZodString;
|
|
76
|
+
elements: z.ZodArray<z.ZodString>;
|
|
77
|
+
oldValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
78
|
+
newValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type TransactionLogEntry = z.infer<typeof TransactionLogEntrySchema>;
|
|
81
|
+
export declare const AuditLogDetailSchema: z.ZodObject<{
|
|
82
|
+
id: z.ZodNumber;
|
|
83
|
+
timestamp: z.ZodString;
|
|
84
|
+
user: z.ZodString;
|
|
85
|
+
description: z.ZodString;
|
|
86
|
+
objectType: z.ZodString;
|
|
87
|
+
objectName: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type AuditLogDetail = z.infer<typeof AuditLogDetailSchema>;
|
|
90
|
+
export declare const ErrorLogFileSchema: z.ZodObject<{
|
|
91
|
+
filename: z.ZodString;
|
|
92
|
+
lastUpdated: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type ErrorLogFile = z.infer<typeof ErrorLogFileSchema>;
|
|
95
|
+
//# sourceMappingURL=monitoring.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Monitoring domain: threads (v11), jobs (v12), sessions and the log entries.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { CellValueSchema } from "./common.js";
|
|
4
|
+
export const ThreadSchema = z.object({
|
|
5
|
+
id: z.number(),
|
|
6
|
+
type: z.string(),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
state: z.string(),
|
|
9
|
+
function: z.string(),
|
|
10
|
+
objectName: z.string(),
|
|
11
|
+
elapsedTime: z.string().optional(),
|
|
12
|
+
objectType: z.string().optional(),
|
|
13
|
+
waitTime: z.string().optional(),
|
|
14
|
+
info: z.string().optional(),
|
|
15
|
+
context: z.string().optional(),
|
|
16
|
+
});
|
|
17
|
+
export const SessionSchema = z.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
user: z.string(),
|
|
20
|
+
active: z.boolean().optional(),
|
|
21
|
+
threads: z.array(ThreadSchema),
|
|
22
|
+
});
|
|
23
|
+
export const JobSessionSchema = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
context: z.string().optional(),
|
|
26
|
+
user: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
export const JobWaitingOnSchema = z.object({
|
|
29
|
+
id: z.string(),
|
|
30
|
+
description: z.string(),
|
|
31
|
+
state: z.string(),
|
|
32
|
+
});
|
|
33
|
+
export const JobSchema = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
description: z.string(),
|
|
36
|
+
state: z.string(),
|
|
37
|
+
elapsedTime: z.string().optional(),
|
|
38
|
+
waitTime: z.string().optional(),
|
|
39
|
+
session: JobSessionSchema.optional(),
|
|
40
|
+
waitingOn: z.array(JobWaitingOnSchema).optional(),
|
|
41
|
+
});
|
|
42
|
+
export const MessageLogEntrySchema = z.object({
|
|
43
|
+
timestamp: z.string(),
|
|
44
|
+
level: z.string(),
|
|
45
|
+
message: z.string(),
|
|
46
|
+
/** TI error file referenced in `message`, parsed out for direct fetch. */
|
|
47
|
+
errorFile: z.string().optional(),
|
|
48
|
+
});
|
|
49
|
+
export const TransactionLogEntrySchema = z.object({
|
|
50
|
+
timestamp: z.string(),
|
|
51
|
+
user: z.string(),
|
|
52
|
+
cubeName: z.string(),
|
|
53
|
+
elements: z.array(z.string()),
|
|
54
|
+
oldValue: CellValueSchema,
|
|
55
|
+
newValue: CellValueSchema,
|
|
56
|
+
});
|
|
57
|
+
export const AuditLogDetailSchema = z.object({
|
|
58
|
+
id: z.number().int(),
|
|
59
|
+
timestamp: z.string(),
|
|
60
|
+
user: z.string(),
|
|
61
|
+
description: z.string(),
|
|
62
|
+
objectType: z.string(),
|
|
63
|
+
objectName: z.string(),
|
|
64
|
+
});
|
|
65
|
+
export const ErrorLogFileSchema = z.object({
|
|
66
|
+
filename: z.string(),
|
|
67
|
+
lastUpdated: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=monitoring.js.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ProcessParameterSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
type: z.ZodEnum<{
|
|
5
|
+
Numeric: "Numeric";
|
|
6
|
+
String: "String";
|
|
7
|
+
}>;
|
|
8
|
+
defaultValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
9
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type ProcessParameter = z.infer<typeof ProcessParameterSchema>;
|
|
12
|
+
export declare const ProcessVariableSchema: z.ZodObject<{
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
type: z.ZodEnum<{
|
|
15
|
+
Numeric: "Numeric";
|
|
16
|
+
String: "String";
|
|
17
|
+
}>;
|
|
18
|
+
position: z.ZodNumber;
|
|
19
|
+
startByte: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
endByte: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type ProcessVariable = z.infer<typeof ProcessVariableSchema>;
|
|
23
|
+
export declare const IgnoredColumnSchema: z.ZodObject<{
|
|
24
|
+
position: z.ZodNumber;
|
|
25
|
+
name: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type IgnoredColumn = z.infer<typeof IgnoredColumnSchema>;
|
|
28
|
+
export declare const VariablesUIDataSchema: z.ZodArray<z.ZodString>;
|
|
29
|
+
export declare const ProcessSchema: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
type: z.ZodEnum<{
|
|
34
|
+
Numeric: "Numeric";
|
|
35
|
+
String: "String";
|
|
36
|
+
}>;
|
|
37
|
+
defaultValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
38
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type Process = z.infer<typeof ProcessSchema>;
|
|
42
|
+
export declare const ProcessCodeSchema: z.ZodObject<{
|
|
43
|
+
prolog: z.ZodString;
|
|
44
|
+
metadata: z.ZodString;
|
|
45
|
+
data: z.ZodString;
|
|
46
|
+
epilog: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type ProcessCode = z.infer<typeof ProcessCodeSchema>;
|
|
49
|
+
export declare const DataSourceSchema: z.ZodObject<{
|
|
50
|
+
type: z.ZodEnum<{
|
|
51
|
+
None: "None";
|
|
52
|
+
TM1CubeView: "TM1CubeView";
|
|
53
|
+
TM1DimensionSubset: "TM1DimensionSubset";
|
|
54
|
+
ASCII: "ASCII";
|
|
55
|
+
ODBC: "ODBC";
|
|
56
|
+
TM1Process: "TM1Process";
|
|
57
|
+
}>;
|
|
58
|
+
dataSourceNameForServer: z.ZodOptional<z.ZodString>;
|
|
59
|
+
dataSourceNameForClient: z.ZodOptional<z.ZodString>;
|
|
60
|
+
asciiDelimiterType: z.ZodOptional<z.ZodString>;
|
|
61
|
+
asciiDelimiterChar: z.ZodOptional<z.ZodString>;
|
|
62
|
+
asciiQuoteCharacter: z.ZodOptional<z.ZodString>;
|
|
63
|
+
asciiHeaderRecords: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
asciiDecimalSeparator: z.ZodOptional<z.ZodString>;
|
|
65
|
+
asciiThousandSeparator: z.ZodOptional<z.ZodString>;
|
|
66
|
+
usesUnicode: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
68
|
+
password: z.ZodOptional<z.ZodString>;
|
|
69
|
+
query: z.ZodOptional<z.ZodString>;
|
|
70
|
+
view: z.ZodOptional<z.ZodString>;
|
|
71
|
+
subset: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type DataSource = z.infer<typeof DataSourceSchema>;
|
|
74
|
+
//# sourceMappingURL=processes.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// TI process domain: parameter and variable declarations.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { PARAM_TYPE } from "./common.js";
|
|
4
|
+
export const ProcessParameterSchema = z.object({
|
|
5
|
+
name: z.string(),
|
|
6
|
+
type: PARAM_TYPE,
|
|
7
|
+
defaultValue: z.union([z.string(), z.number()]),
|
|
8
|
+
prompt: z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
export const ProcessVariableSchema = z.object({
|
|
11
|
+
name: z.string(),
|
|
12
|
+
type: PARAM_TYPE,
|
|
13
|
+
position: z.number().int(),
|
|
14
|
+
startByte: z.number().int().optional(),
|
|
15
|
+
endByte: z.number().int().optional(),
|
|
16
|
+
});
|
|
17
|
+
// A datasource column set to "Ignore" carries no variable, so it is absent from
|
|
18
|
+
// `Variables` — it only shows up in `VariablesUIData`. See
|
|
19
|
+
// src/lib/variables-ui-data.ts for the encoding and how it was measured.
|
|
20
|
+
export const IgnoredColumnSchema = z.object({
|
|
21
|
+
position: z.number().int(),
|
|
22
|
+
name: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
// Raw `Process.VariablesUIData`: one entry per datasource column, ignored ones
|
|
25
|
+
// included. Carried verbatim so nothing measured-but-unmodelled is dropped.
|
|
26
|
+
export const VariablesUIDataSchema = z.array(z.string());
|
|
27
|
+
export const ProcessSchema = z.object({
|
|
28
|
+
name: z.string(),
|
|
29
|
+
parameters: z.array(ProcessParameterSchema),
|
|
30
|
+
});
|
|
31
|
+
export const ProcessCodeSchema = z.object({
|
|
32
|
+
prolog: z.string(),
|
|
33
|
+
metadata: z.string(),
|
|
34
|
+
data: z.string(),
|
|
35
|
+
epilog: z.string(),
|
|
36
|
+
});
|
|
37
|
+
// TI datasource. Field set measured against 11.8.02900.8 (29 real ODBC
|
|
38
|
+
// sources) — `ProcessDataSource` is declared OpenType in $metadata, so the
|
|
39
|
+
// server accepts unknown properties and hands them back only sometimes. Two
|
|
40
|
+
// fields that were never real (`oDBCConnection`, and `lockType` on the thread
|
|
41
|
+
// shape) lived here for months precisely because this shape existed twice.
|
|
42
|
+
export const DataSourceSchema = z.object({
|
|
43
|
+
type: z.enum([
|
|
44
|
+
"None",
|
|
45
|
+
"TM1CubeView",
|
|
46
|
+
"TM1DimensionSubset",
|
|
47
|
+
"ASCII",
|
|
48
|
+
"ODBC",
|
|
49
|
+
"TM1Process",
|
|
50
|
+
]),
|
|
51
|
+
dataSourceNameForServer: z.string().optional(),
|
|
52
|
+
dataSourceNameForClient: z.string().optional(),
|
|
53
|
+
asciiDelimiterType: z.string().optional(),
|
|
54
|
+
asciiDelimiterChar: z.string().optional(),
|
|
55
|
+
asciiQuoteCharacter: z.string().optional(),
|
|
56
|
+
asciiHeaderRecords: z.number().int().optional(),
|
|
57
|
+
asciiDecimalSeparator: z.string().optional(),
|
|
58
|
+
asciiThousandSeparator: z.string().optional(),
|
|
59
|
+
usesUnicode: z.boolean().optional(),
|
|
60
|
+
userName: z.string().optional(),
|
|
61
|
+
password: z.string().optional(),
|
|
62
|
+
query: z.string().optional(),
|
|
63
|
+
view: z.string().optional(),
|
|
64
|
+
subset: z.string().optional(),
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=processes.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ChoreSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
active: z.ZodBoolean;
|
|
5
|
+
startTime: z.ZodString;
|
|
6
|
+
frequency: z.ZodString;
|
|
7
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type Chore = z.infer<typeof ChoreSchema>;
|
|
13
|
+
//# sourceMappingURL=scheduling.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Chore domain.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const ChoreSchema = z.object({
|
|
4
|
+
name: z.string(),
|
|
5
|
+
active: z.boolean(),
|
|
6
|
+
startTime: z.string(),
|
|
7
|
+
frequency: z.string(),
|
|
8
|
+
processes: z.array(z.object({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
parameters: z.record(z.string(), z.union([z.string(), z.number()])),
|
|
11
|
+
})),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=scheduling.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ClientSchema: z.ZodObject<{
|
|
3
|
+
Name: z.ZodString;
|
|
4
|
+
FriendlyName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
Enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
Groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
Name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type Client = z.infer<typeof ClientSchema>;
|
|
12
|
+
export declare const GroupSchema: z.ZodObject<{
|
|
13
|
+
Name: z.ZodString;
|
|
14
|
+
Clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
Name: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type Group = z.infer<typeof GroupSchema>;
|
|
19
|
+
//# sourceMappingURL=security.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Security domain. TM1 returns these entities with OData PascalCase keys, and
|
|
2
|
+
// the tool layer passes them through unchanged rather than renaming a shape
|
|
3
|
+
// callers may already match on.
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
export const ClientSchema = z.object({
|
|
6
|
+
Name: z.string(),
|
|
7
|
+
FriendlyName: z.string().optional(),
|
|
8
|
+
Type: z.string().optional(),
|
|
9
|
+
Enabled: z.boolean().optional(),
|
|
10
|
+
Groups: z.array(z.object({ Name: z.string() })).optional(),
|
|
11
|
+
});
|
|
12
|
+
export const GroupSchema = z.object({
|
|
13
|
+
Name: z.string(),
|
|
14
|
+
Clients: z.array(z.object({ Name: z.string() })).optional(),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=security.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SubsetSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
dimensionName: z.ZodString;
|
|
5
|
+
hierarchyName: z.ZodString;
|
|
6
|
+
private: z.ZodBoolean;
|
|
7
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
8
|
+
elements: z.ZodArray<z.ZodString>;
|
|
9
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type Subset = z.infer<typeof SubsetSchema>;
|
|
12
|
+
//# sourceMappingURL=subsets.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Subset domain.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const SubsetSchema = z.object({
|
|
4
|
+
name: z.string(),
|
|
5
|
+
dimensionName: z.string(),
|
|
6
|
+
hierarchyName: z.string(),
|
|
7
|
+
private: z.boolean(),
|
|
8
|
+
expression: z.string().optional(),
|
|
9
|
+
elements: z.array(z.string()),
|
|
10
|
+
alias: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=subsets.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ViewAxisSubsetRefSchema: z.ZodObject<{
|
|
3
|
+
dimensionName: z.ZodOptional<z.ZodString>;
|
|
4
|
+
hierarchyName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
subsetName: z.ZodOptional<z.ZodString>;
|
|
6
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ViewAxisSubsetRef = z.infer<typeof ViewAxisSubsetRefSchema>;
|
|
9
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// View domain: the dimension/subset reference shared by axes and titles.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const ViewAxisSubsetRefSchema = z.object({
|
|
4
|
+
dimensionName: z.string().optional(),
|
|
5
|
+
hierarchyName: z.string().optional(),
|
|
6
|
+
subsetName: z.string().optional(),
|
|
7
|
+
expression: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=views.js.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { TM1Config } from "./config.js";
|
|
2
|
+
import type pino from "pino";
|
|
3
|
+
export declare class TimeoutError extends Error {
|
|
4
|
+
readonly timeoutMs: number;
|
|
5
|
+
constructor(label: string, timeoutMs: number);
|
|
6
|
+
}
|
|
7
|
+
export declare class SessionManager {
|
|
8
|
+
private sessionCookie;
|
|
9
|
+
private authInFlight;
|
|
10
|
+
private keepAliveTimer;
|
|
11
|
+
private readonly config;
|
|
12
|
+
private readonly logger;
|
|
13
|
+
private readonly profile;
|
|
14
|
+
constructor(config: TM1Config, logger?: pino.Logger);
|
|
15
|
+
/**
|
|
16
|
+
* Authenticate against TM1. The auth scheme (Basic / CAMNamespace /
|
|
17
|
+
* CAMPassport for v11, or the configured v12 auth mode) is selected by
|
|
18
|
+
* config — see ConnectionProfile.buildLoginRequest in
|
|
19
|
+
* tm1-client/connection/profile.ts.
|
|
20
|
+
*
|
|
21
|
+
* Concurrent callers share a single in-flight login. The HTTP transport
|
|
22
|
+
* re-authenticates directly from its 401 handler (http.ts), so two requests
|
|
23
|
+
* whose sessions expire at the same time both land here; without this dedup
|
|
24
|
+
* each opens a fresh TM1 session and the second login's cookie clobbers the
|
|
25
|
+
* first, leaving the first request retrying with a now-stale cookie (the
|
|
26
|
+
* "thundering herd on session expiry" race). All re-auth paths — ensureSession,
|
|
27
|
+
* keepAlive, and the transport 401 retry — funnel through this guard.
|
|
28
|
+
*
|
|
29
|
+
* `staleCookie` (optional): the cookie the caller was using when it decided to
|
|
30
|
+
* re-auth. If another caller has ALREADY rotated the session since then
|
|
31
|
+
* (current cookie ≠ stale, and non-null), this returns the fresh cookie
|
|
32
|
+
* without a logout+login. Without this, a delayed 401 carrying an
|
|
33
|
+
* already-replaced cookie would tear down the healthy session that concurrent
|
|
34
|
+
* requests are using — the "staggered-401 re-auth churn" cascade.
|
|
35
|
+
*/
|
|
36
|
+
authenticate(staleCookie?: string): Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Perform the actual login round-trip. The request (URL, method, headers,
|
|
39
|
+
* body) comes from the connection profile — v11 GETs
|
|
40
|
+
* /api/v1/Configuration/ProductVersion, v12 POSTs /{instance}/auth/v1/session.
|
|
41
|
+
* Extracts TM1SessionId cookie from the response.
|
|
42
|
+
*/
|
|
43
|
+
private doAuthenticate;
|
|
44
|
+
/**
|
|
45
|
+
* Send a keep-alive request to maintain the active session.
|
|
46
|
+
* GET /api/v1/ActiveSession with the session cookie.
|
|
47
|
+
* On 401, triggers re-authentication.
|
|
48
|
+
*/
|
|
49
|
+
keepAlive(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Ensure an active session exists. If no session cookie is present,
|
|
52
|
+
* authenticate first. Returns the session cookie.
|
|
53
|
+
*/
|
|
54
|
+
ensureSession(): Promise<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Start periodic keep-alive requests at the configured interval.
|
|
57
|
+
*/
|
|
58
|
+
startKeepAlive(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Stop the periodic keep-alive timer.
|
|
61
|
+
*/
|
|
62
|
+
stopKeepAlive(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Check whether a session cookie is currently held.
|
|
65
|
+
*/
|
|
66
|
+
isSessionActive(): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Logout from TM1 by deleting the active session.
|
|
69
|
+
* DELETE /api/v1/ActiveSession
|
|
70
|
+
*/
|
|
71
|
+
logout(): Promise<void>;
|
|
72
|
+
/** Human-readable auth mode for logging (never logs the credential itself). */
|
|
73
|
+
private authMode;
|
|
74
|
+
/**
|
|
75
|
+
* Extract TM1SessionId Set-Cookie response headers.
|
|
76
|
+
*/
|
|
77
|
+
private extractSessionCookie;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=session-manager.d.ts.map
|