@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,245 @@
|
|
|
1
|
+
import { TM1Error } from "../../types.js";
|
|
2
|
+
import type { CellValue, ElementAttributeValue, ElementCreate, ElementUpdate } from "../../types.js";
|
|
3
|
+
import type { TM1HttpClient } from "../http.js";
|
|
4
|
+
import type { BatchService } from "./batch-service.js";
|
|
5
|
+
import type { CellService } from "./cell-service.js";
|
|
6
|
+
/** Read-only preview of {@link ElementService.bulkUpsert}. */
|
|
7
|
+
export interface BulkUpsertPlan {
|
|
8
|
+
creates: string[];
|
|
9
|
+
updates: string[];
|
|
10
|
+
typeChanges: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
}>;
|
|
15
|
+
/** Existing children a components list would drop, per consolidation. */
|
|
16
|
+
removals: Array<{
|
|
17
|
+
parent: string;
|
|
18
|
+
children: string[];
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
/** Outcome of one element in {@link ElementService.deleteMany}. */
|
|
22
|
+
export interface ElementDeleteResult {
|
|
23
|
+
elementName: string;
|
|
24
|
+
deleted: boolean;
|
|
25
|
+
error?: {
|
|
26
|
+
code: string;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare function isAlreadyExists(err: TM1Error): boolean;
|
|
31
|
+
export declare class ElementService {
|
|
32
|
+
private readonly http;
|
|
33
|
+
private readonly cells;
|
|
34
|
+
private readonly batch?;
|
|
35
|
+
constructor(http: TM1HttpClient, cells: CellService, batch?: BatchService | undefined);
|
|
36
|
+
/**
|
|
37
|
+
* Create an element in a hierarchy. Consolidated elements may include
|
|
38
|
+
* Components inline; their target elements must already exist.
|
|
39
|
+
* POST /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Set edge weights that differ from TM1's default.
|
|
43
|
+
*
|
|
44
|
+
* TM1 accepts `Weight` inside a Components link payload and ignores it: the
|
|
45
|
+
* edge is created with weight 1 whatever the body said. Verified live — a
|
|
46
|
+
* consolidation created with weight -1 read back as 1 from the Edges
|
|
47
|
+
* collection itself, so no reader could have recovered the intent. The
|
|
48
|
+
* weight lives on the Edge entity and has to be PATCHed once the link
|
|
49
|
+
* exists.
|
|
50
|
+
*
|
|
51
|
+
* Only deviating weights cost a request: consolidations are overwhelmingly
|
|
52
|
+
* all-1, and a PATCH that sets 1 to 1 is a round trip for nothing.
|
|
53
|
+
*/
|
|
54
|
+
private applyEdgeWeights;
|
|
55
|
+
/**
|
|
56
|
+
* Does an element resolve in a hierarchy the way TI would resolve it?
|
|
57
|
+
* The key lookup is TM1's own name resolution: case- and space-insensitive,
|
|
58
|
+
* and it accepts an alias (verified on 11.8.03500: 'northamerica' and the
|
|
59
|
+
* alias 'NA' both resolve 'North America'). 404 → false; anything else,
|
|
60
|
+
* including a denial, is rethrown — "you may not look" is not "missing".
|
|
61
|
+
* GET /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements('{e}')?$select=Name
|
|
62
|
+
*/
|
|
63
|
+
exists(dimensionName: string, hierarchyName: string, elementName: string): Promise<boolean>;
|
|
64
|
+
create(dimensionName: string, hierarchyName: string, element: ElementCreate): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Update an existing element (rename, type change, replace components).
|
|
67
|
+
* PATCH /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements('{name}')
|
|
68
|
+
*/
|
|
69
|
+
update(dimensionName: string, hierarchyName: string, elementName: string, update: ElementUpdate): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete an element. May fail if the element is referenced in rules.
|
|
72
|
+
* DELETE /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements('{name}')
|
|
73
|
+
*/
|
|
74
|
+
delete(dimensionName: string, hierarchyName: string, elementName: string): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* What a bulkUpsert of `elements` would do, read-only: which elements it
|
|
77
|
+
* creates, which it updates, which change type in place (a Numeric ->
|
|
78
|
+
* Consolidated/String conversion discards leaf data), and which existing
|
|
79
|
+
* children a `components` list would drop — components REPLACE the child
|
|
80
|
+
* set, they do not append.
|
|
81
|
+
*
|
|
82
|
+
* Computed BEFORE any write on purpose: bulkUpsert's $batch pass commits its
|
|
83
|
+
* creates as it goes (TM1's $batch is non-atomic), so a plan worked out
|
|
84
|
+
* afterwards could only report damage, not prevent it.
|
|
85
|
+
*
|
|
86
|
+
* One filtered read per 40 names — `Elements?$filter=Name eq … or …` with
|
|
87
|
+
* the edges expanded — instead of loading the hierarchy.
|
|
88
|
+
*/
|
|
89
|
+
planBulkUpsert(dimensionName: string, hierarchyName: string, elements: ElementCreate[]): Promise<BulkUpsertPlan>;
|
|
90
|
+
/**
|
|
91
|
+
* Delete many elements of one hierarchy. Through `$batch` when the server
|
|
92
|
+
* has it (one DELETE sub-request per element, chunked by BatchService), else
|
|
93
|
+
* per request with bounded concurrency.
|
|
94
|
+
*
|
|
95
|
+
* Never all-or-nothing: TM1's `$batch` is non-atomic, so each element gets
|
|
96
|
+
* its own result and one missing name does not stop the rest. A systemic
|
|
97
|
+
* failure (auth, transport) still aborts the call.
|
|
98
|
+
*
|
|
99
|
+
* Falling back after BatchUnsupportedError is safe: that error is only raised
|
|
100
|
+
* before the first successful batch on the connection. Should a refused
|
|
101
|
+
* envelope still have removed some elements, their per-request replay
|
|
102
|
+
* reports NOT_FOUND instead of claiming a second delete.
|
|
103
|
+
*/
|
|
104
|
+
deleteMany(dimensionName: string, hierarchyName: string, elementNames: string[]): Promise<ElementDeleteResult[]>;
|
|
105
|
+
/**
|
|
106
|
+
* Scan element names in a hierarchy with a hard cap, paginating server-side.
|
|
107
|
+
*
|
|
108
|
+
* A single bulk Elements fetch can exceed V8's max string length on large
|
|
109
|
+
* dimensions (response.text() buffers the whole body into one string), so
|
|
110
|
+
* this probes the total via $count on the first page, then pages by
|
|
111
|
+
* `pageSize` until either `maxScan` names are collected or the hierarchy is
|
|
112
|
+
* exhausted. Callers learn the true `total` and whether the scan was
|
|
113
|
+
* `truncated` — never a silent skip. Owns the V8-string-limit workaround so
|
|
114
|
+
* tools don't reimplement raw OData paging.
|
|
115
|
+
*
|
|
116
|
+
* `opts.filter` narrows the scan to names matching an OData predicate, and
|
|
117
|
+
* changes what the numbers mean: the server then evaluates every element and
|
|
118
|
+
* returns only the matches, so `scanned` becomes the hierarchy total (the
|
|
119
|
+
* server checked all of it) and `truncated` reports a capped MATCH set
|
|
120
|
+
* rather than a partial walk. That is the difference between an audit that
|
|
121
|
+
* examines the first 100k names and one that examines the dimension —
|
|
122
|
+
* see src/lib/naming/odata-filter.ts.
|
|
123
|
+
*
|
|
124
|
+
* GET /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements?$select=Name
|
|
125
|
+
*/
|
|
126
|
+
scanElementNames(dimensionName: string, hierarchyName: string, opts: {
|
|
127
|
+
pageSize: number;
|
|
128
|
+
maxScan: number;
|
|
129
|
+
filter?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Hierarchy size, when the caller already knows it. With a filter the
|
|
132
|
+
* response counts MATCHES, so the scope figure would otherwise cost an
|
|
133
|
+
* extra request per hierarchy — and the dimension listing can carry it
|
|
134
|
+
* for free via a nested $count.
|
|
135
|
+
*/
|
|
136
|
+
scopeTotal?: number;
|
|
137
|
+
}): Promise<{
|
|
138
|
+
names: string[];
|
|
139
|
+
total: number;
|
|
140
|
+
scanned: number;
|
|
141
|
+
truncated: boolean;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* Add an element as a component of a new parent.
|
|
145
|
+
* POST /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements('{newParent}')/Components
|
|
146
|
+
*/
|
|
147
|
+
move(dimensionName: string, hierarchyName: string, elementName: string, newParent: string, weight?: number): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Bulk upsert elements into a hierarchy. Two-pass to ensure leaves exist
|
|
150
|
+
* before consolidations reference them: pass 1 creates/upserts every element
|
|
151
|
+
* (PATCH on 409), pass 2 sets Components for Consolidated elements.
|
|
152
|
+
* POST/PATCH /api/v1/Dimensions('{d}')/Hierarchies('{h}')/Elements(...)
|
|
153
|
+
*
|
|
154
|
+
* Prefers OData `$batch` (a handful of round-trips) and falls back to the
|
|
155
|
+
* per-request fan-out when the server has no `$batch` endpoint. Both paths
|
|
156
|
+
* produce the identical result and the identical throw-on-any-failure
|
|
157
|
+
* contract; only the number of HTTP calls differs.
|
|
158
|
+
*/
|
|
159
|
+
bulkUpsert(dimensionName: string, hierarchyName: string, elements: ElementCreate[]): Promise<{
|
|
160
|
+
typeChanges: Array<{
|
|
161
|
+
name: string;
|
|
162
|
+
from: string;
|
|
163
|
+
to: string;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* `$batch` implementation of bulkUpsert: four PASSES regardless of element
|
|
168
|
+
* count — create-all, read-type-of-the-ones-that-existed,
|
|
169
|
+
* patch-the-types-that-differ, then the consolidation Components patches.
|
|
170
|
+
* Each pass is chunked inside BatchService by request count AND serialized
|
|
171
|
+
* size, so N elements cost roughly 4 * ceil(N/200) calls instead of N —
|
|
172
|
+
* more when the sub-requests are large enough to hit the byte budget first.
|
|
173
|
+
*/
|
|
174
|
+
private bulkUpsertViaBatch;
|
|
175
|
+
/**
|
|
176
|
+
* Per-request fallback for bulkUpsert, used when the server has no `$batch`.
|
|
177
|
+
* Fans the calls out with bounded concurrency.
|
|
178
|
+
*/
|
|
179
|
+
private bulkUpsertPerRequest;
|
|
180
|
+
/**
|
|
181
|
+
* List element-attribute definitions for a hierarchy.
|
|
182
|
+
* GET /api/v1/Dimensions('{d}')/Hierarchies('{h}')/ElementAttributes
|
|
183
|
+
*/
|
|
184
|
+
listAttributes(dimensionName: string, hierarchyName: string): Promise<Array<{
|
|
185
|
+
name: string;
|
|
186
|
+
type: "Numeric" | "String" | "Alias";
|
|
187
|
+
}>>;
|
|
188
|
+
/**
|
|
189
|
+
* Define a new element attribute on a hierarchy. Prefer TI prolog
|
|
190
|
+
* (DimensionElementInsert on `}ElementAttributes_{dim}`) for reproducible
|
|
191
|
+
* deployments — this REST path is for ad-hoc / debugging use.
|
|
192
|
+
* POST /api/v1/Dimensions('{d}')/Hierarchies('{h}')/ElementAttributes
|
|
193
|
+
*/
|
|
194
|
+
createAttribute(dimensionName: string, hierarchyName: string, attributeName: string, attributeType: "Numeric" | "String" | "Alias"): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* Read all attribute values for one element via MDX on
|
|
197
|
+
* `}ElementAttributes_{Dim}`. Routes through CellService.executeMdx for the
|
|
198
|
+
* cellset round-trip.
|
|
199
|
+
*/
|
|
200
|
+
getAttributeValues(dimensionName: string, elementName: string): Promise<ElementAttributeValue[]>;
|
|
201
|
+
/**
|
|
202
|
+
* Attribute values for a window of elements — every element of the
|
|
203
|
+
* dimension's default hierarchy, name-sorted, `limit` at a time. One MDX
|
|
204
|
+
* against `}ElementAttributes_{Dim}` with the window pushed into the row set
|
|
205
|
+
* (`SUBSET(TM1SORT(TM1SUBSETALL(...)))`), so the query text stays short no
|
|
206
|
+
* matter how many elements a page holds — TM1's request entity limit can be
|
|
207
|
+
* as low as 32 KB. `total` comes from `$count` on the Elements collection.
|
|
208
|
+
*
|
|
209
|
+
* `attributeNames` narrows the columns; omitted, every attribute is read.
|
|
210
|
+
*/
|
|
211
|
+
getAttributeValuesPage(dimensionName: string, opts: {
|
|
212
|
+
offset: number;
|
|
213
|
+
limit: number;
|
|
214
|
+
attributeNames?: string[];
|
|
215
|
+
}): Promise<{
|
|
216
|
+
total: number;
|
|
217
|
+
items: Array<{
|
|
218
|
+
elementName: string;
|
|
219
|
+
values: Record<string, CellValue>;
|
|
220
|
+
}>;
|
|
221
|
+
}>;
|
|
222
|
+
/**
|
|
223
|
+
* Set a single attribute value. See {@link updateAttributeValues}.
|
|
224
|
+
*/
|
|
225
|
+
updateAttributeValue(dimensionName: string, elementName: string, attributeName: string, value: number | string): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* Set attribute values by writing to the `}ElementAttributes_{Dim}` control
|
|
228
|
+
* cube — every update in ONE cellset write (CellService.writeCells).
|
|
229
|
+
*
|
|
230
|
+
* Values are coerced to the attribute's type, looked up once: a Numeric
|
|
231
|
+
* attribute takes a number or a numeric string (`"12.5"`), String and Alias
|
|
232
|
+
* attributes take the value as text. An unknown attribute or a non-numeric
|
|
233
|
+
* value for a Numeric attribute is a VALIDATION_ERROR that names it, raised
|
|
234
|
+
* before anything is written.
|
|
235
|
+
*
|
|
236
|
+
* Prefer TI processes (CellPutS / AttrPutS) for reproducible deployments;
|
|
237
|
+
* this REST-direct path is for ad-hoc / debugging use.
|
|
238
|
+
*/
|
|
239
|
+
updateAttributeValues(dimensionName: string, updates: Array<{
|
|
240
|
+
elementName: string;
|
|
241
|
+
attributeName: string;
|
|
242
|
+
value: number | string;
|
|
243
|
+
}>): Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=element-service.d.ts.map
|