@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,21 @@
|
|
|
1
|
+
import type { ProcessResult } from "../../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Turn TM1's `ProcessExecuteStatusCode` into a `ProcessResult`.
|
|
4
|
+
*
|
|
5
|
+
* Two fail-open readings this closes, and they are mirror images:
|
|
6
|
+
*
|
|
7
|
+
* 1. An ABSENT status code is not success (T-4). The old
|
|
8
|
+
* `?? "CompletedSuccessfully"` meant a 200 with an empty body, or a body
|
|
9
|
+
* without the field, reached the caller as a clean run.
|
|
10
|
+
* 2. A present-but-not-`CompletedSuccessfully` code is not a flat failure.
|
|
11
|
+
* Collapsing all five remaining members into `failed` told a caller that
|
|
12
|
+
* an `ItemReject`ed run had failed when its writes were already committed —
|
|
13
|
+
* an invitation to re-run a process that has posted its data once.
|
|
14
|
+
*
|
|
15
|
+
* An UNRECOGNISED code (a seventh member in some future TM1, or a server
|
|
16
|
+
* spelling we have never seen) is `indeterminate`, never a guess: the whole
|
|
17
|
+
* point of the split is that the groups carry measured commit semantics, and
|
|
18
|
+
* an unknown code has none.
|
|
19
|
+
*/
|
|
20
|
+
export declare function classifyExecution(statusCode: string | undefined, errorLogFile: string | undefined): ProcessResult;
|
|
21
|
+
//# sourceMappingURL=process-status.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Classification of TM1's `ProcessExecuteStatusCode` — shared by every path
|
|
2
|
+
// that runs a TI and has to say what it did: ProcessService.execute,
|
|
3
|
+
// ProcessService.saveData and CubeService's 11.x clear-via-TI fallback.
|
|
4
|
+
//
|
|
5
|
+
// See the `ProcessOutcome` doc in src/types.ts for the measurement table this
|
|
6
|
+
// mapping comes from. The short version: the question a caller actually has is
|
|
7
|
+
// "was anything committed", and TM1's six status codes answer it in three ways.
|
|
8
|
+
import { PROCESS_STATUS_UNKNOWN } from "../../types.js";
|
|
9
|
+
/**
|
|
10
|
+
* Status codes for runs that COMMITTED what they wrote before ending badly.
|
|
11
|
+
* All three measured on 11.8: a marker cell written in the Prolog survived.
|
|
12
|
+
*
|
|
13
|
+
* `CompletedWithMessages` = ItemReject, `QuitCalled` = ProcessQuit.
|
|
14
|
+
* `HasMinorErrors` normally comes from per-record failures in the Metadata/Data
|
|
15
|
+
* tabs and so needs a data source; it was measured here without one, by writing
|
|
16
|
+
* to a consolidated element from the Prolog.
|
|
17
|
+
*/
|
|
18
|
+
const COMMITTED_STATUSES = new Set([
|
|
19
|
+
"HasMinorErrors",
|
|
20
|
+
"QuitCalled",
|
|
21
|
+
"CompletedWithMessages",
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* Status codes for runs whose writes were DISCARDED. Both measured on 11.8:
|
|
25
|
+
* the marker cell was gone afterwards.
|
|
26
|
+
*/
|
|
27
|
+
const ROLLED_BACK_STATUSES = new Set([
|
|
28
|
+
"Aborted",
|
|
29
|
+
"RollbackCalled",
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* Turn TM1's `ProcessExecuteStatusCode` into a `ProcessResult`.
|
|
33
|
+
*
|
|
34
|
+
* Two fail-open readings this closes, and they are mirror images:
|
|
35
|
+
*
|
|
36
|
+
* 1. An ABSENT status code is not success (T-4). The old
|
|
37
|
+
* `?? "CompletedSuccessfully"` meant a 200 with an empty body, or a body
|
|
38
|
+
* without the field, reached the caller as a clean run.
|
|
39
|
+
* 2. A present-but-not-`CompletedSuccessfully` code is not a flat failure.
|
|
40
|
+
* Collapsing all five remaining members into `failed` told a caller that
|
|
41
|
+
* an `ItemReject`ed run had failed when its writes were already committed —
|
|
42
|
+
* an invitation to re-run a process that has posted its data once.
|
|
43
|
+
*
|
|
44
|
+
* An UNRECOGNISED code (a seventh member in some future TM1, or a server
|
|
45
|
+
* spelling we have never seen) is `indeterminate`, never a guess: the whole
|
|
46
|
+
* point of the split is that the groups carry measured commit semantics, and
|
|
47
|
+
* an unknown code has none.
|
|
48
|
+
*/
|
|
49
|
+
export function classifyExecution(statusCode, errorLogFile) {
|
|
50
|
+
if (statusCode === undefined || statusCode === "") {
|
|
51
|
+
return {
|
|
52
|
+
success: false,
|
|
53
|
+
outcome: "indeterminate",
|
|
54
|
+
processErrorStatus: PROCESS_STATUS_UNKNOWN,
|
|
55
|
+
errorLogFile,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (statusCode === "CompletedSuccessfully") {
|
|
59
|
+
return {
|
|
60
|
+
success: true,
|
|
61
|
+
outcome: "succeeded",
|
|
62
|
+
processErrorStatus: "CompletedSuccessfully",
|
|
63
|
+
errorLogFile,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (COMMITTED_STATUSES.has(statusCode)) {
|
|
67
|
+
return {
|
|
68
|
+
success: false,
|
|
69
|
+
outcome: "completed_with_errors",
|
|
70
|
+
processErrorStatus: statusCode,
|
|
71
|
+
errorLogFile,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (ROLLED_BACK_STATUSES.has(statusCode)) {
|
|
75
|
+
return {
|
|
76
|
+
success: false,
|
|
77
|
+
outcome: "rolled_back",
|
|
78
|
+
processErrorStatus: statusCode,
|
|
79
|
+
errorLogFile,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
success: false,
|
|
84
|
+
outcome: "indeterminate",
|
|
85
|
+
processErrorStatus: `${statusCode}: unrecognised ProcessExecuteStatusCode — this build does not know whether a run ending this way commits its changes. Verify server state (error logs, target cube) before re-running.`,
|
|
86
|
+
errorLogFile,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=process-status.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Client, ClientCreate, ClientUpdate, Group } from "../../types.js";
|
|
2
|
+
import type { TM1HttpClient } from "../http.js";
|
|
3
|
+
export declare class SecurityService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: TM1HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List TM1 users (clients) with their group memberships.
|
|
8
|
+
* GET /api/v1/Users?$expand=Groups
|
|
9
|
+
*/
|
|
10
|
+
listClients(): Promise<Client[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a single user (client) with their groups.
|
|
13
|
+
* GET /api/v1/Users('{name}')
|
|
14
|
+
*/
|
|
15
|
+
getClient(name: string): Promise<Client>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a new user (client). Optionally seeds groups.
|
|
18
|
+
* POST /api/v1/Users
|
|
19
|
+
*/
|
|
20
|
+
createClient(payload: ClientCreate): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Partial update of a user (password / friendlyName / enabled).
|
|
23
|
+
* PATCH /api/v1/Users('{name}')
|
|
24
|
+
*/
|
|
25
|
+
updateClient(name: string, payload: ClientUpdate): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete a user (client).
|
|
28
|
+
* DELETE /api/v1/Users('{name}')
|
|
29
|
+
*/
|
|
30
|
+
deleteClient(name: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* List all security groups with member users.
|
|
33
|
+
* TM1 REST exposes Group members under the `Users` navigation property
|
|
34
|
+
* (NOT `Clients`, despite TM1's user-facing "Client" terminology). Verified
|
|
35
|
+
* on TM1 v11.8 — `$expand=Clients` returns HTTP 400.
|
|
36
|
+
* GET /api/v1/Groups?$expand=Users($select=Name)
|
|
37
|
+
*/
|
|
38
|
+
listGroups(): Promise<Group[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Assign a user to a group.
|
|
41
|
+
* tm1py pattern: PATCH /Users('x') with Name + Groups@odata.bind.
|
|
42
|
+
*/
|
|
43
|
+
assignClientGroup(clientName: string, groupName: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Remove a user from a group.
|
|
46
|
+
* tm1py pattern: DELETE /Users('x')/Groups?$id=Groups('y').
|
|
47
|
+
*/
|
|
48
|
+
removeClientGroup(clientName: string, groupName: string): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=security-service.d.ts.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// OData key encoder: double ' per OData literal rules, then percent-encode.
|
|
2
|
+
const enc = (s) => encodeURIComponent(String(s).replace(/'/g, "''"));
|
|
3
|
+
export class SecurityService {
|
|
4
|
+
http;
|
|
5
|
+
constructor(http) {
|
|
6
|
+
this.http = http;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* List TM1 users (clients) with their group memberships.
|
|
10
|
+
* GET /api/v1/Users?$expand=Groups
|
|
11
|
+
*/
|
|
12
|
+
async listClients() {
|
|
13
|
+
const res = await this.http.request("GET", "/api/v1/Users?$select=Name,FriendlyName,Type,Enabled&$expand=Groups");
|
|
14
|
+
return res.value;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get a single user (client) with their groups.
|
|
18
|
+
* GET /api/v1/Users('{name}')
|
|
19
|
+
*/
|
|
20
|
+
async getClient(name) {
|
|
21
|
+
return this.http.request("GET", `/api/v1/Users('${enc(name)}')?$select=Name,FriendlyName,Type,Enabled&$expand=Groups`);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a new user (client). Optionally seeds groups.
|
|
25
|
+
* POST /api/v1/Users
|
|
26
|
+
*/
|
|
27
|
+
async createClient(payload) {
|
|
28
|
+
const body = {
|
|
29
|
+
Name: payload.name,
|
|
30
|
+
};
|
|
31
|
+
if (payload.password !== undefined)
|
|
32
|
+
body.Password = payload.password;
|
|
33
|
+
if (payload.friendlyName !== undefined)
|
|
34
|
+
body.FriendlyName = payload.friendlyName;
|
|
35
|
+
if (payload.groups !== undefined) {
|
|
36
|
+
body["Groups@odata.bind"] = payload.groups.map((g) => `Groups('${enc(g)}')`);
|
|
37
|
+
}
|
|
38
|
+
await this.http.request("POST", "/api/v1/Users", body);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Partial update of a user (password / friendlyName / enabled).
|
|
42
|
+
* PATCH /api/v1/Users('{name}')
|
|
43
|
+
*/
|
|
44
|
+
async updateClient(name, payload) {
|
|
45
|
+
const body = {};
|
|
46
|
+
if (payload.password !== undefined)
|
|
47
|
+
body.Password = payload.password;
|
|
48
|
+
if (payload.friendlyName !== undefined)
|
|
49
|
+
body.FriendlyName = payload.friendlyName;
|
|
50
|
+
if (payload.enabled !== undefined)
|
|
51
|
+
body.Enabled = payload.enabled;
|
|
52
|
+
await this.http.request("PATCH", `/api/v1/Users('${enc(name)}')`, body);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Delete a user (client).
|
|
56
|
+
* DELETE /api/v1/Users('{name}')
|
|
57
|
+
*/
|
|
58
|
+
async deleteClient(name) {
|
|
59
|
+
await this.http.request("DELETE", `/api/v1/Users('${enc(name)}')`);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* List all security groups with member users.
|
|
63
|
+
* TM1 REST exposes Group members under the `Users` navigation property
|
|
64
|
+
* (NOT `Clients`, despite TM1's user-facing "Client" terminology). Verified
|
|
65
|
+
* on TM1 v11.8 — `$expand=Clients` returns HTTP 400.
|
|
66
|
+
* GET /api/v1/Groups?$expand=Users($select=Name)
|
|
67
|
+
*/
|
|
68
|
+
async listGroups() {
|
|
69
|
+
const res = await this.http.request("GET", "/api/v1/Groups?$expand=Users($select=Name)");
|
|
70
|
+
return res.value.map((g) => ({
|
|
71
|
+
Name: g.Name,
|
|
72
|
+
Clients: g.Users ?? [],
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Assign a user to a group.
|
|
77
|
+
* tm1py pattern: PATCH /Users('x') with Name + Groups@odata.bind.
|
|
78
|
+
*/
|
|
79
|
+
async assignClientGroup(clientName, groupName) {
|
|
80
|
+
await this.http.request("PATCH", `/api/v1/Users('${enc(clientName)}')`, {
|
|
81
|
+
Name: clientName,
|
|
82
|
+
"Groups@odata.bind": [`Groups('${enc(groupName)}')`],
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Remove a user from a group.
|
|
87
|
+
* tm1py pattern: DELETE /Users('x')/Groups?$id=Groups('y').
|
|
88
|
+
*/
|
|
89
|
+
async removeClientGroup(clientName, groupName) {
|
|
90
|
+
await this.http.request("DELETE", `/api/v1/Users('${enc(clientName)}')/Groups?$id=Groups('${enc(groupName)}')`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=security-service.js.map
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { AuditLogEntry, ErrorLogFile, MessageLogEntry, ServerInfo, TransactionLogResult } from "../../types.js";
|
|
2
|
+
import type { TM1HttpClient } from "../http.js";
|
|
3
|
+
/**
|
|
4
|
+
* Pull the TM1 error log filename out of a message-log entry's free text, so it
|
|
5
|
+
* can be fed straight into `tm1_get_error_log_content(filename=…)`. Returns the
|
|
6
|
+
* exact filename (no surrounding brackets) or undefined when none is mentioned.
|
|
7
|
+
*/
|
|
8
|
+
export declare function extractErrorFile(message: string): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Normalize a user timestamp into an OData v4 DateTimeOffset literal for a
|
|
11
|
+
* TM1 $filter. TM1 rejects a bare `2026-06-08T00:00:00` ("Syntax error … near
|
|
12
|
+
* -06") — the value MUST carry a timezone. Verified against TM1 11.8: only the
|
|
13
|
+
* `Z`-suffixed (or ±hh:mm-offset) form parses. Date-only input expands to
|
|
14
|
+
* start-of-day UTC; a zoneless datetime gets a `Z`; an already-zoned value is
|
|
15
|
+
* left untouched.
|
|
16
|
+
*/
|
|
17
|
+
export declare function toOdataDateTime(input: string): string;
|
|
18
|
+
export declare class ServerService {
|
|
19
|
+
private readonly http;
|
|
20
|
+
constructor(http: TM1HttpClient);
|
|
21
|
+
/**
|
|
22
|
+
* Fetch TM1 server configuration. Merges /Configuration and
|
|
23
|
+
* /ActiveConfiguration; tolerates ActiveConfiguration being absent on
|
|
24
|
+
* older builds.
|
|
25
|
+
*/
|
|
26
|
+
getInfo(): Promise<ServerInfo>;
|
|
27
|
+
/**
|
|
28
|
+
* Get recent TM1 server message log entries (newest first).
|
|
29
|
+
*
|
|
30
|
+
* The text/level/time filters are pushed to the server via `$filter` so a
|
|
31
|
+
* match OLDER than the `top`-row window is still found — filtering only the
|
|
32
|
+
* newest `top` rows client-side produced false negatives ("no error found")
|
|
33
|
+
* whenever the matching entry had scrolled past that window. TM1 v11 supports
|
|
34
|
+
* OData `contains`/`tolower`/`eq`/`ge`/`le` on the MessageLogEntries set.
|
|
35
|
+
*
|
|
36
|
+
* Text match is case-insensitive (tolower on both sides) to preserve the prior
|
|
37
|
+
* client-side `.toLowerCase().includes()` contract. If the server rejects the
|
|
38
|
+
* filtered query (older/limited builds without full string-function support),
|
|
39
|
+
* we fall back to fetching the newest `top` rows and filtering in-process —
|
|
40
|
+
* the same best-effort path as before, so the tool degrades rather than errors.
|
|
41
|
+
*
|
|
42
|
+
* GET /api/v1/MessageLogEntries?$orderby=TimeStamp desc&$top={top}[&$filter=…]
|
|
43
|
+
*/
|
|
44
|
+
getMessageLog(opts?: {
|
|
45
|
+
top?: number | undefined;
|
|
46
|
+
filter?: string | undefined;
|
|
47
|
+
level?: string | undefined;
|
|
48
|
+
logger?: string | undefined;
|
|
49
|
+
since?: string | undefined;
|
|
50
|
+
until?: string | undefined;
|
|
51
|
+
}): Promise<MessageLogEntry[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Fetch recent TM1 audit log entries (metadata/security changes), newest
|
|
54
|
+
* first. Requires AuditLogOn=T in tm1s.cfg — with auditing disabled the
|
|
55
|
+
* entity set is empty.
|
|
56
|
+
* GET /api/v1/AuditLogEntries
|
|
57
|
+
*/
|
|
58
|
+
getAuditLog(opts: {
|
|
59
|
+
top?: number | undefined;
|
|
60
|
+
user?: string | undefined;
|
|
61
|
+
objectType?: string | undefined;
|
|
62
|
+
objectName?: string | undefined;
|
|
63
|
+
since?: string | undefined;
|
|
64
|
+
until?: string | undefined;
|
|
65
|
+
includeDetails?: boolean | undefined;
|
|
66
|
+
}): Promise<AuditLogEntry[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Fetch recent TM1 transaction log entries (cell writes).
|
|
69
|
+
* GET /api/v1/TransactionLogEntries
|
|
70
|
+
*/
|
|
71
|
+
getTransactionLog(opts: {
|
|
72
|
+
top?: number | undefined;
|
|
73
|
+
cubeName?: string | undefined;
|
|
74
|
+
user?: string | undefined;
|
|
75
|
+
since?: string | undefined;
|
|
76
|
+
until?: string | undefined;
|
|
77
|
+
}): Promise<TransactionLogResult>;
|
|
78
|
+
/**
|
|
79
|
+
* Single bounded TransactionLogEntries query. Runs once (retry disabled) under
|
|
80
|
+
* a dedicated timeout: the endpoint is deterministically slow, so a timeout
|
|
81
|
+
* means "range too large", not a transient blip. Our own timeout (the
|
|
82
|
+
* controller abort) and other non-systemic failures become an actionable
|
|
83
|
+
* "narrow the range" error; systemic transport/auth failures propagate
|
|
84
|
+
* unmasked and permission denials surface as-is.
|
|
85
|
+
*/
|
|
86
|
+
private queryTransactionLog;
|
|
87
|
+
/**
|
|
88
|
+
* Cheap reachability/permission probe for the transaction log. A bare
|
|
89
|
+
* `$top=1` (no $orderby/$filter) returns at most one row so TM1 can short-
|
|
90
|
+
* circuit; a dedicated short-timeout AbortController caps the wait. That
|
|
91
|
+
* timeout (and other non-systemic failures) becomes an actionable TM1_ERROR;
|
|
92
|
+
* permission denials surface as-is and systemic transport/auth failures
|
|
93
|
+
* (e.g. CONNECTION_FAILED) propagate unmasked.
|
|
94
|
+
*/
|
|
95
|
+
private probeTransactionLog;
|
|
96
|
+
/**
|
|
97
|
+
* List TI process error log files.
|
|
98
|
+
*
|
|
99
|
+
* TM1 v11 OData exposes only `Filename` on this entity set (no LastUpdated /
|
|
100
|
+
* $select / $orderby support). Sorting is filename-descending — filenames
|
|
101
|
+
* embed a yyyymmddhhmmss timestamp, so lexical desc sort matches
|
|
102
|
+
* chronological newest-first. Filters (processName, since, top) are applied
|
|
103
|
+
* client-side.
|
|
104
|
+
*/
|
|
105
|
+
listErrorLogFiles(opts?: {
|
|
106
|
+
processName?: string | undefined;
|
|
107
|
+
since?: string | undefined;
|
|
108
|
+
top?: number | undefined;
|
|
109
|
+
}): Promise<ErrorLogFile[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Fetch the raw text content of a single TI error log file.
|
|
112
|
+
* GET /api/v1/ErrorLogFiles('<filename>')/Content
|
|
113
|
+
*/
|
|
114
|
+
getErrorLogContent(filename: string): Promise<string>;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=server-service.d.ts.map
|