@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,278 @@
|
|
|
1
|
+
import type { CompileResult, DataSource, IgnoredColumn, Process, ProcessCheckInput, ProcessCode, ProcessParameter, ProcessResult, ProcessVariable } from "../../types.js";
|
|
2
|
+
import type { RequestOptions, TM1HttpClient } from "../http.js";
|
|
3
|
+
import { type NameFilterOpts, type Paged, type PageOpts } from "./odata-page.js";
|
|
4
|
+
/** Variables of a process together with the datasource columns it ignores. */
|
|
5
|
+
export interface ProcessVariableLayout {
|
|
6
|
+
variables: ProcessVariable[];
|
|
7
|
+
/** Columns set to "Ignore"; empty when the process has none. */
|
|
8
|
+
ignoredColumns: IgnoredColumn[];
|
|
9
|
+
/** Raw `VariablesUIData`, for callers that write it back unchanged. */
|
|
10
|
+
variablesUIData?: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessListOpts extends NameFilterOpts {
|
|
13
|
+
/** Set to slice server-side. Only legal when every active filter is in NameFilterOpts. */
|
|
14
|
+
page?: PageOpts;
|
|
15
|
+
}
|
|
16
|
+
export declare class ProcessService {
|
|
17
|
+
private readonly http;
|
|
18
|
+
/**
|
|
19
|
+
* Index into `CALLGRAPH_QUERY_SHAPES` that this connection answered, or
|
|
20
|
+
* `null` while unprobed — the same tri-state verdict `BatchService.supported`
|
|
21
|
+
* keeps, for the same reason. Probing costs up to four full `/Processes`
|
|
22
|
+
* scans, so it must be paid once per connection and not once per callgraph
|
|
23
|
+
* build (P7).
|
|
24
|
+
*/
|
|
25
|
+
private callgraphShape;
|
|
26
|
+
constructor(http: TM1HttpClient);
|
|
27
|
+
/**
|
|
28
|
+
* List all TI processes with their parameters. Falls back to
|
|
29
|
+
* Name-only when v11 rejects the inline Parameters select.
|
|
30
|
+
* GET /api/v1/Processes?$select=Name,Parameters
|
|
31
|
+
*/
|
|
32
|
+
list(): Promise<Process[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Paged variant: with `page` set the slice happens server-side
|
|
35
|
+
* (`$orderby=Name&$top&$skip&$count=true`) and the return carries the
|
|
36
|
+
* post-`$filter` total. `total` is undefined if the server omitted
|
|
37
|
+
* `@odata.count` — fall back to an unpaged fetch then.
|
|
38
|
+
*/
|
|
39
|
+
list(opts: ProcessListOpts & {
|
|
40
|
+
page: PageOpts;
|
|
41
|
+
}): Promise<Paged<Process>>;
|
|
42
|
+
/**
|
|
43
|
+
* Execute a TI process with optional parameters. opts.timeoutMs overrides
|
|
44
|
+
* the 30s default for long-running TI runs.
|
|
45
|
+
* POST /api/v1/Processes('{name}')/tm1.ExecuteWithReturn?$expand=ErrorLogFile
|
|
46
|
+
*/
|
|
47
|
+
execute(processName: string, params?: Record<string, string | number>, opts?: RequestOptions): Promise<ProcessResult>;
|
|
48
|
+
/**
|
|
49
|
+
* Persist in-memory cube data to disk — SaveDataAll (all cubes) or
|
|
50
|
+
* CubeSaveData (single cube). The REST API exposes no native SaveData
|
|
51
|
+
* action ($metadata verified), so this routes through the service-root
|
|
52
|
+
* ExecuteProcessWithReturn (available since 11.3) with an unbound TI
|
|
53
|
+
* process — no persistent process object is created. v11-only: both TI
|
|
54
|
+
* functions are removed in v12 (cloud engine persists automatically).
|
|
55
|
+
* POST /api/v1/ExecuteProcessWithReturn
|
|
56
|
+
*/
|
|
57
|
+
saveData(cubeName?: string, opts?: RequestOptions): Promise<ProcessResult>;
|
|
58
|
+
/**
|
|
59
|
+
* Get the parameters of a TI process.
|
|
60
|
+
* GET /api/v1/Processes('{name}')/Parameters
|
|
61
|
+
*/
|
|
62
|
+
getParameters(processName: string): Promise<ProcessParameter[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a new empty TI process.
|
|
65
|
+
* POST /api/v1/Processes with body {"Name": "..."}
|
|
66
|
+
* Throws CONFLICT (409) if a process with the same name already exists.
|
|
67
|
+
*/
|
|
68
|
+
create(name: string): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Cheap existence probe: a single GET with $select=Name (404 → false)
|
|
71
|
+
* instead of list(), which pulls every process plus its parameters just to
|
|
72
|
+
* check one name. Rethrows anything that isn't NOT_FOUND.
|
|
73
|
+
*/
|
|
74
|
+
exists(name: string): Promise<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Copy a TI process to a new name. Strips read-only / server-managed fields
|
|
77
|
+
* before re-POSTing to avoid TM1 rejecting the body.
|
|
78
|
+
*/
|
|
79
|
+
copy(sourceName: string, targetName: string): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* The two UI-only properties TM1 stores but does not declare: `UIData`
|
|
82
|
+
* (Architect cube/data action settings) and `VariablesUIData` (per-column
|
|
83
|
+
* state, including which columns are ignored). Both have to be named in
|
|
84
|
+
* `$select`; a server that rejects the query shape yields an empty result
|
|
85
|
+
* rather than an error, since neither is required to use the process.
|
|
86
|
+
*/
|
|
87
|
+
getUIData(processName: string): Promise<{
|
|
88
|
+
uiData?: string;
|
|
89
|
+
variablesUIData?: string[];
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Run the callgraph fetch against the query shape this connection accepts,
|
|
93
|
+
* discovering it on first use.
|
|
94
|
+
*
|
|
95
|
+
* The discovery loop used to catch EVERY error and move on to the next,
|
|
96
|
+
* broader query. That turned an expired session, a request timeout or a
|
|
97
|
+
* security denial into three more full-collection scans (~4 × 30 s worst
|
|
98
|
+
* case, P7) and — worse — let a later shape that happened to answer mask the
|
|
99
|
+
* real first error (K6/T-9). Two guards now bound it:
|
|
100
|
+
*
|
|
101
|
+
* - `rethrowIfSystemicOrDenied` — transport/auth/timeout failures and
|
|
102
|
+
* permission denials leave immediately. A denial in particular must never
|
|
103
|
+
* become an empty process list: the callgraph would cache "this model has
|
|
104
|
+
* no processes" as truth.
|
|
105
|
+
* - `isUnsupportedQueryShape` — of what is left, only TM1 refusing the
|
|
106
|
+
* query shape justifies asking again in another form.
|
|
107
|
+
*/
|
|
108
|
+
private fetchCallgraphBody;
|
|
109
|
+
/**
|
|
110
|
+
* Fetch every TI process with code AND parameter metadata for callgraph
|
|
111
|
+
* indexing. Single round trip once the connection's usable OData query shape
|
|
112
|
+
* is known — see `fetchCallgraphBody` for the discovery rules.
|
|
113
|
+
*/
|
|
114
|
+
fetchForCallgraph(includeControl?: boolean): Promise<Array<{
|
|
115
|
+
name: string;
|
|
116
|
+
prolog: string;
|
|
117
|
+
metadata: string;
|
|
118
|
+
data: string;
|
|
119
|
+
epilog: string;
|
|
120
|
+
parameters: string[];
|
|
121
|
+
parameterDefaults: Map<string, string>;
|
|
122
|
+
}>>;
|
|
123
|
+
/**
|
|
124
|
+
* Bulk-fetch code for every TI process in a single round trip.
|
|
125
|
+
* GET /api/v1/Processes?$select=Name,PrologProcedure,...
|
|
126
|
+
* Control processes (Name starts with `}`) excluded unless includeControl=true.
|
|
127
|
+
*
|
|
128
|
+
* With `top` set the cap is pushed server-side ($top + $orderby=Name for
|
|
129
|
+
* stable ordering + $count=true) and the return carries the server-side
|
|
130
|
+
* total matching the filter so callers can report truncation honestly.
|
|
131
|
+
*/
|
|
132
|
+
getAllCode(includeControl?: boolean): Promise<Array<ProcessCode & {
|
|
133
|
+
name: string;
|
|
134
|
+
hasSecurityAccess: boolean;
|
|
135
|
+
}>>;
|
|
136
|
+
getAllCode(includeControl: boolean, top: number): Promise<{
|
|
137
|
+
items: Array<ProcessCode & {
|
|
138
|
+
name: string;
|
|
139
|
+
hasSecurityAccess: boolean;
|
|
140
|
+
}>;
|
|
141
|
+
/** Server-side total ($count=true); undefined when the server omitted @odata.count. */
|
|
142
|
+
total: number | undefined;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Get the code of all four tabs of a TI process.
|
|
146
|
+
* GET /api/v1/Processes('{name}')
|
|
147
|
+
*/
|
|
148
|
+
getCode(processName: string): Promise<ProcessCode>;
|
|
149
|
+
/**
|
|
150
|
+
* Read deploy-relevant entity metadata not covered by getCode/params/
|
|
151
|
+
* vars/datasource. Currently only HasSecurityAccess (functional elevation).
|
|
152
|
+
* GET /api/v1/Processes('{name}')?$select=HasSecurityAccess
|
|
153
|
+
*/
|
|
154
|
+
getDeployMeta(processName: string): Promise<{
|
|
155
|
+
hasSecurityAccess: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* Update one or more code tabs of a TI process (partial update).
|
|
159
|
+
* PATCH /api/v1/Processes('{name}') with only the tabs to update.
|
|
160
|
+
*/
|
|
161
|
+
updateCode(processName: string, code: Partial<ProcessCode>): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Read the whole process code as TM1's native `#region <Tab>` / `#endregion`
|
|
164
|
+
* blob. GET /api/v1/Processes('{name}')/Code/$value (text/plain). Empty tabs
|
|
165
|
+
* are omitted by the server; newlines are CRLF.
|
|
166
|
+
*/
|
|
167
|
+
getCodeBlob(processName: string): Promise<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Write the whole process code from a native `#region` blob. PATCH
|
|
170
|
+
* /api/v1/Processes('{name}') { Code }. The server parses the region markers
|
|
171
|
+
* and does a FULL replace of all four tabs — tabs whose region is absent are
|
|
172
|
+
* cleared. `$value` PUT is not supported by TM1, so this JSON PATCH is the
|
|
173
|
+
* only write path.
|
|
174
|
+
*/
|
|
175
|
+
updateCodeBlob(processName: string, blob: string): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Set HasSecurityAccess flag on process.
|
|
178
|
+
* PATCH /api/v1/Processes('{name}') { HasSecurityAccess }.
|
|
179
|
+
*/
|
|
180
|
+
updateSecurityAccess(processName: string, hasSecurityAccess: boolean): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Get the data source configuration of a TI process.
|
|
183
|
+
* GET /api/v1/Processes('{name}') and extract the DataSource field.
|
|
184
|
+
*/
|
|
185
|
+
/**
|
|
186
|
+
* Read a process datasource. The ODBC password is redacted by default so it
|
|
187
|
+
* cannot reach the caller or the model; `includeSecrets` returns it verbatim
|
|
188
|
+
* and is meant for export paths that write straight to a file.
|
|
189
|
+
*
|
|
190
|
+
* Measured on 11.8: the value on the wire is a server-bound ciphertext
|
|
191
|
+
* (`W0br…==`) that TM1 stores unchanged when written back, so it survives a
|
|
192
|
+
* round trip on the same instance but decrypts to nothing on another one.
|
|
193
|
+
* TM1 v12 returns the password in plain text.
|
|
194
|
+
*/
|
|
195
|
+
getDataSource(processName: string, opts?: {
|
|
196
|
+
includeSecrets?: boolean;
|
|
197
|
+
}): Promise<DataSource>;
|
|
198
|
+
/**
|
|
199
|
+
* Bulk-fetch the datasource of every process in one OData call, projected to
|
|
200
|
+
* the few fields data-flow analysis needs (type + source object). Credentials
|
|
201
|
+
* are never selected. Used by tm1_trace_data_flow to detect view-sourced reads
|
|
202
|
+
* that leave no CellGet in the code and so never reach the reference index.
|
|
203
|
+
* GET /api/v1/Processes?$select=Name,DataSource
|
|
204
|
+
*/
|
|
205
|
+
listDataSources(includeControl?: boolean): Promise<Array<{
|
|
206
|
+
name: string;
|
|
207
|
+
type: string;
|
|
208
|
+
sourceName?: string;
|
|
209
|
+
view?: string;
|
|
210
|
+
subset?: string;
|
|
211
|
+
}>>;
|
|
212
|
+
/**
|
|
213
|
+
* Update the data source configuration of a TI process.
|
|
214
|
+
* PATCH /api/v1/Processes('{name}') with DataSource object.
|
|
215
|
+
*/
|
|
216
|
+
updateDataSource(processName: string, dataSource: DataSource): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Get the variables (column-mapped names) of a TI process.
|
|
219
|
+
* GET /api/v1/Processes('{name}')/Variables
|
|
220
|
+
*/
|
|
221
|
+
getVariables(processName: string): Promise<ProcessVariable[]>;
|
|
222
|
+
/**
|
|
223
|
+
* Variables PLUS the columns the process ignores, in one request.
|
|
224
|
+
*
|
|
225
|
+
* `Variables` alone is an incomplete picture of the datasource: a column set
|
|
226
|
+
* to "Ignore" carries no variable and is simply absent from the list, which
|
|
227
|
+
* is why the remaining positions have gaps. The ignore flag lives in
|
|
228
|
+
* `VariablesUIData` — one entry per source column, undeclared in $metadata on
|
|
229
|
+
* both versions, so it must be named in `$select`.
|
|
230
|
+
*
|
|
231
|
+
* GET /api/v1/Processes('{name}')?$select=Variables,VariablesUIData
|
|
232
|
+
*/
|
|
233
|
+
getVariableLayout(processName: string): Promise<ProcessVariableLayout>;
|
|
234
|
+
/**
|
|
235
|
+
* Variables of every process, in ONE request.
|
|
236
|
+
*
|
|
237
|
+
* `Variables` is a complex-typed property, not a navigation collection, so
|
|
238
|
+
* the process list can carry it directly — no `$expand`, and no follow-up
|
|
239
|
+
* call per process. `getVariables` above answers the same question for a
|
|
240
|
+
* single process and stays the right tool when that is all you need.
|
|
241
|
+
*
|
|
242
|
+
* The difference is not cosmetic: asking per process costs one round trip
|
|
243
|
+
* each, which on a 221-process model measured as 221 extra requests against
|
|
244
|
+
* a single 147 KB one. Whole-model analyses (audit_complexity) use this.
|
|
245
|
+
*
|
|
246
|
+
* GET /api/v1/Processes?$select=Name,Variables
|
|
247
|
+
*/
|
|
248
|
+
getAllVariables(includeControl?: boolean): Promise<Map<string, ProcessVariable[]>>;
|
|
249
|
+
/**
|
|
250
|
+
* Update the variables of a TI process (column-name mapping for ASCII/ODBC sources).
|
|
251
|
+
* Required after setting an ASCII DataSource.
|
|
252
|
+
* PATCH /api/v1/Processes('{name}') with Variables array.
|
|
253
|
+
*/
|
|
254
|
+
updateVariables(processName: string, vars: ProcessVariable[], variablesUIData?: string[]): Promise<void>;
|
|
255
|
+
/**
|
|
256
|
+
* Update the parameters of a TI process.
|
|
257
|
+
* PATCH /api/v1/Processes('{name}') with Parameters array.
|
|
258
|
+
*/
|
|
259
|
+
updateParameters(processName: string, params: ProcessParameter[]): Promise<void>;
|
|
260
|
+
/**
|
|
261
|
+
* Delete a TI process.
|
|
262
|
+
* DELETE /api/v1/Processes('{name}')
|
|
263
|
+
*/
|
|
264
|
+
delete(processName: string): Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* Compile a saved TI process to check syntax without executing it.
|
|
267
|
+
* POST /api/v1/Processes('{name}')/tm1.Compile
|
|
268
|
+
*/
|
|
269
|
+
compile(processName: string): Promise<CompileResult>;
|
|
270
|
+
/**
|
|
271
|
+
* Validate a TI process WITHOUT saving it on the server. Mirrors tm1py's
|
|
272
|
+
* compile_process_with_body. Returns CompileResult identical to compile()
|
|
273
|
+
* for callers that already handle that shape.
|
|
274
|
+
* POST /api/v1/CompileProcess body { Process: <full process body> }
|
|
275
|
+
*/
|
|
276
|
+
check(input: ProcessCheckInput): Promise<CompileResult>;
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=process-service.d.ts.map
|