@taxdao/fintax-mcp 0.2.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/README.md +220 -0
- package/dist/app/create-server.d.ts +18 -0
- package/dist/app/create-server.js +80 -0
- package/dist/app/create-server.js.map +1 -0
- package/dist/app/register-tools.d.ts +4 -0
- package/dist/app/register-tools.js +18 -0
- package/dist/app/register-tools.js.map +1 -0
- package/dist/audit/audit-context.d.ts +38 -0
- package/dist/audit/audit-context.js +167 -0
- package/dist/audit/audit-context.js.map +1 -0
- package/dist/audit/audit-sink.d.ts +20 -0
- package/dist/audit/audit-sink.js +6 -0
- package/dist/audit/audit-sink.js.map +1 -0
- package/dist/audit/file-audit-sink.d.ts +6 -0
- package/dist/audit/file-audit-sink.js +18 -0
- package/dist/audit/file-audit-sink.js.map +1 -0
- package/dist/auth/auth-session.d.ts +63 -0
- package/dist/auth/auth-session.js +226 -0
- package/dist/auth/auth-session.js.map +1 -0
- package/dist/auth/credentials.d.ts +6 -0
- package/dist/auth/credentials.js +12 -0
- package/dist/auth/credentials.js.map +1 -0
- package/dist/auth/org-token-provider.d.ts +15 -0
- package/dist/auth/org-token-provider.js +62 -0
- package/dist/auth/org-token-provider.js.map +1 -0
- package/dist/capabilities/capability.d.ts +100 -0
- package/dist/capabilities/capability.js +26 -0
- package/dist/capabilities/capability.js.map +1 -0
- package/dist/capabilities/create-capabilities.d.ts +2 -0
- package/dist/capabilities/create-capabilities.js +37 -0
- package/dist/capabilities/create-capabilities.js.map +1 -0
- package/dist/capabilities/define-capability.d.ts +39 -0
- package/dist/capabilities/define-capability.js +64 -0
- package/dist/capabilities/define-capability.js.map +1 -0
- package/dist/capabilities/definitions/accounting-balances.d.ts +4 -0
- package/dist/capabilities/definitions/accounting-balances.js +98 -0
- package/dist/capabilities/definitions/accounting-balances.js.map +1 -0
- package/dist/capabilities/definitions/accounting-context.d.ts +2 -0
- package/dist/capabilities/definitions/accounting-context.js +17 -0
- package/dist/capabilities/definitions/accounting-context.js.map +1 -0
- package/dist/capabilities/definitions/assets.d.ts +2 -0
- package/dist/capabilities/definitions/assets.js +367 -0
- package/dist/capabilities/definitions/assets.js.map +1 -0
- package/dist/capabilities/definitions/business-documents.d.ts +9 -0
- package/dist/capabilities/definitions/business-documents.js +386 -0
- package/dist/capabilities/definitions/business-documents.js.map +1 -0
- package/dist/capabilities/definitions/dashboard.d.ts +2 -0
- package/dist/capabilities/definitions/dashboard.js +153 -0
- package/dist/capabilities/definitions/dashboard.js.map +1 -0
- package/dist/capabilities/definitions/extended-operation-contracts.d.ts +597 -0
- package/dist/capabilities/definitions/extended-operation-contracts.js +1180 -0
- package/dist/capabilities/definitions/extended-operation-contracts.js.map +1 -0
- package/dist/capabilities/definitions/extended-operations.d.ts +2 -0
- package/dist/capabilities/definitions/extended-operations.js +699 -0
- package/dist/capabilities/definitions/extended-operations.js.map +1 -0
- package/dist/capabilities/definitions/financial-reports.d.ts +2 -0
- package/dist/capabilities/definitions/financial-reports.js +100 -0
- package/dist/capabilities/definitions/financial-reports.js.map +1 -0
- package/dist/capabilities/definitions/fnd-import.d.ts +34 -0
- package/dist/capabilities/definitions/fnd-import.js +282 -0
- package/dist/capabilities/definitions/fnd-import.js.map +1 -0
- package/dist/capabilities/definitions/fund-accounts.d.ts +2 -0
- package/dist/capabilities/definitions/fund-accounts.js +188 -0
- package/dist/capabilities/definitions/fund-accounts.js.map +1 -0
- package/dist/capabilities/definitions/fund-balances.d.ts +2 -0
- package/dist/capabilities/definitions/fund-balances.js +84 -0
- package/dist/capabilities/definitions/fund-balances.js.map +1 -0
- package/dist/capabilities/definitions/journals.d.ts +10 -0
- package/dist/capabilities/definitions/journals.js +224 -0
- package/dist/capabilities/definitions/journals.js.map +1 -0
- package/dist/capabilities/definitions/master-data.d.ts +2 -0
- package/dist/capabilities/definitions/master-data.js +451 -0
- package/dist/capabilities/definitions/master-data.js.map +1 -0
- package/dist/capabilities/definitions/pnl.d.ts +2 -0
- package/dist/capabilities/definitions/pnl.js +139 -0
- package/dist/capabilities/definitions/pnl.js.map +1 -0
- package/dist/capabilities/definitions/reference-data.d.ts +2 -0
- package/dist/capabilities/definitions/reference-data.js +169 -0
- package/dist/capabilities/definitions/reference-data.js.map +1 -0
- package/dist/capabilities/definitions/transaction-drafts.d.ts +2 -0
- package/dist/capabilities/definitions/transaction-drafts.js +157 -0
- package/dist/capabilities/definitions/transaction-drafts.js.map +1 -0
- package/dist/capabilities/definitions/transactions.d.ts +168 -0
- package/dist/capabilities/definitions/transactions.js +79 -0
- package/dist/capabilities/definitions/transactions.js.map +1 -0
- package/dist/capabilities/executor.d.ts +19 -0
- package/dist/capabilities/executor.js +134 -0
- package/dist/capabilities/executor.js.map +1 -0
- package/dist/capabilities/registry.d.ts +7 -0
- package/dist/capabilities/registry.js +51 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/clients/base-client.d.ts +5 -0
- package/dist/clients/base-client.js +13 -0
- package/dist/clients/base-client.js.map +1 -0
- package/dist/clients/http-client.d.ts +29 -0
- package/dist/clients/http-client.js +167 -0
- package/dist/clients/http-client.js.map +1 -0
- package/dist/clients/suite-client.d.ts +5 -0
- package/dist/clients/suite-client.js +5 -0
- package/dist/clients/suite-client.js.map +1 -0
- package/dist/concurrency/lock-manager.d.ts +4 -0
- package/dist/concurrency/lock-manager.js +23 -0
- package/dist/concurrency/lock-manager.js.map +1 -0
- package/dist/config/load-config.d.ts +2 -0
- package/dist/config/load-config.js +18 -0
- package/dist/config/load-config.js.map +1 -0
- package/dist/config/schema.d.ts +24 -0
- package/dist/config/schema.js +85 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/errors/fintax-error.d.ts +24 -0
- package/dist/errors/fintax-error.js +21 -0
- package/dist/errors/fintax-error.js.map +1 -0
- package/dist/errors/normalize-error.d.ts +3 -0
- package/dist/errors/normalize-error.js +67 -0
- package/dist/errors/normalize-error.js.map +1 -0
- package/dist/files/artifact-store.d.ts +17 -0
- package/dist/files/artifact-store.js +74 -0
- package/dist/files/artifact-store.js.map +1 -0
- package/dist/files/input-policy.d.ts +28 -0
- package/dist/files/input-policy.js +109 -0
- package/dist/files/input-policy.js.map +1 -0
- package/dist/files/roots-provider.d.ts +14 -0
- package/dist/files/roots-provider.js +47 -0
- package/dist/files/roots-provider.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/logger.d.ts +3 -0
- package/dist/logging/logger.js +13 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/policies/idempotency.d.ts +32 -0
- package/dist/policies/idempotency.js +155 -0
- package/dist/policies/idempotency.js.map +1 -0
- package/dist/policies/job-reference.d.ts +16 -0
- package/dist/policies/job-reference.js +62 -0
- package/dist/policies/job-reference.js.map +1 -0
- package/dist/policies/operation-plan.d.ts +27 -0
- package/dist/policies/operation-plan.js +99 -0
- package/dist/policies/operation-plan.js.map +1 -0
- package/dist/policies/redaction.d.ts +2 -0
- package/dist/policies/redaction.js +29 -0
- package/dist/policies/redaction.js.map +1 -0
- package/dist/policies/retry.d.ts +8 -0
- package/dist/policies/retry.js +19 -0
- package/dist/policies/retry.js.map +1 -0
- package/dist/responses/tool-response.d.ts +4 -0
- package/dist/responses/tool-response.js +24 -0
- package/dist/responses/tool-response.js.map +1 -0
- package/dist/schemas/common.d.ts +226 -0
- package/dist/schemas/common.js +133 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/domains/accounting-balances.d.ts +497 -0
- package/dist/schemas/domains/accounting-balances.js +226 -0
- package/dist/schemas/domains/accounting-balances.js.map +1 -0
- package/dist/schemas/domains/accounting-context.d.ts +118 -0
- package/dist/schemas/domains/accounting-context.js +54 -0
- package/dist/schemas/domains/accounting-context.js.map +1 -0
- package/dist/schemas/domains/assets.d.ts +2508 -0
- package/dist/schemas/domains/assets.js +960 -0
- package/dist/schemas/domains/assets.js.map +1 -0
- package/dist/schemas/domains/business-documents.d.ts +4406 -0
- package/dist/schemas/domains/business-documents.js +1153 -0
- package/dist/schemas/domains/business-documents.js.map +1 -0
- package/dist/schemas/domains/configuration.d.ts +518 -0
- package/dist/schemas/domains/configuration.js +504 -0
- package/dist/schemas/domains/configuration.js.map +1 -0
- package/dist/schemas/domains/dashboard.d.ts +339 -0
- package/dist/schemas/domains/dashboard.js +211 -0
- package/dist/schemas/domains/dashboard.js.map +1 -0
- package/dist/schemas/domains/extended-operation-results.d.ts +1588 -0
- package/dist/schemas/domains/extended-operation-results.js +275 -0
- package/dist/schemas/domains/extended-operation-results.js.map +1 -0
- package/dist/schemas/domains/extended-operations.d.ts +1061 -0
- package/dist/schemas/domains/extended-operations.js +567 -0
- package/dist/schemas/domains/extended-operations.js.map +1 -0
- package/dist/schemas/domains/extended-query-results.d.ts +1688 -0
- package/dist/schemas/domains/extended-query-results.js +337 -0
- package/dist/schemas/domains/extended-query-results.js.map +1 -0
- package/dist/schemas/domains/financial-reports.d.ts +540 -0
- package/dist/schemas/domains/financial-reports.js +206 -0
- package/dist/schemas/domains/financial-reports.js.map +1 -0
- package/dist/schemas/domains/fnd-import.d.ts +912 -0
- package/dist/schemas/domains/fnd-import.js +396 -0
- package/dist/schemas/domains/fnd-import.js.map +1 -0
- package/dist/schemas/domains/fund-accounts.d.ts +1092 -0
- package/dist/schemas/domains/fund-accounts.js +410 -0
- package/dist/schemas/domains/fund-accounts.js.map +1 -0
- package/dist/schemas/domains/fund-balances.d.ts +476 -0
- package/dist/schemas/domains/fund-balances.js +233 -0
- package/dist/schemas/domains/fund-balances.js.map +1 -0
- package/dist/schemas/domains/journals.d.ts +1619 -0
- package/dist/schemas/domains/journals.js +615 -0
- package/dist/schemas/domains/journals.js.map +1 -0
- package/dist/schemas/domains/master-data.d.ts +2010 -0
- package/dist/schemas/domains/master-data.js +799 -0
- package/dist/schemas/domains/master-data.js.map +1 -0
- package/dist/schemas/domains/pnl.d.ts +837 -0
- package/dist/schemas/domains/pnl.js +469 -0
- package/dist/schemas/domains/pnl.js.map +1 -0
- package/dist/schemas/domains/reference-data.d.ts +227 -0
- package/dist/schemas/domains/reference-data.js +144 -0
- package/dist/schemas/domains/reference-data.js.map +1 -0
- package/dist/schemas/domains/transaction-drafts.d.ts +903 -0
- package/dist/schemas/domains/transaction-drafts.js +242 -0
- package/dist/schemas/domains/transaction-drafts.js.map +1 -0
- package/dist/schemas/domains/transactions.d.ts +910 -0
- package/dist/schemas/domains/transactions.js +266 -0
- package/dist/schemas/domains/transactions.js.map +1 -0
- package/dist/schemas/primitives.d.ts +6 -0
- package/dist/schemas/primitives.js +11 -0
- package/dist/schemas/primitives.js.map +1 -0
- package/dist/schemas/public-input.d.ts +3 -0
- package/dist/schemas/public-input.js +524 -0
- package/dist/schemas/public-input.js.map +1 -0
- package/dist/tools/core-edit/idempotent-write.d.ts +23 -0
- package/dist/tools/core-edit/idempotent-write.js +58 -0
- package/dist/tools/core-edit/idempotent-write.js.map +1 -0
- package/dist/tools/core-edit/save-asset.d.ts +5 -0
- package/dist/tools/core-edit/save-asset.js +334 -0
- package/dist/tools/core-edit/save-asset.js.map +1 -0
- package/dist/tools/core-edit/save-business-document-draft.d.ts +2 -0
- package/dist/tools/core-edit/save-business-document-draft.js +128 -0
- package/dist/tools/core-edit/save-business-document-draft.js.map +1 -0
- package/dist/tools/core-edit/save-fund-account.d.ts +2 -0
- package/dist/tools/core-edit/save-fund-account.js +138 -0
- package/dist/tools/core-edit/save-fund-account.js.map +1 -0
- package/dist/tools/core-edit/save-journal-draft.d.ts +2 -0
- package/dist/tools/core-edit/save-journal-draft.js +122 -0
- package/dist/tools/core-edit/save-journal-draft.js.map +1 -0
- package/dist/tools/core-edit/save-master-data.d.ts +2 -0
- package/dist/tools/core-edit/save-master-data.js +153 -0
- package/dist/tools/core-edit/save-master-data.js.map +1 -0
- package/dist/tools/core-edit/save-transaction-draft.d.ts +2 -0
- package/dist/tools/core-edit/save-transaction-draft.js +128 -0
- package/dist/tools/core-edit/save-transaction-draft.js.map +1 -0
- package/dist/tools/core-read/export-business-documents.d.ts +2 -0
- package/dist/tools/core-read/export-business-documents.js +67 -0
- package/dist/tools/core-read/export-business-documents.js.map +1 -0
- package/dist/tools/core-read/export-journals.d.ts +2 -0
- package/dist/tools/core-read/export-journals.js +56 -0
- package/dist/tools/core-read/export-journals.js.map +1 -0
- package/dist/tools/core-read/export-transactions.d.ts +2 -0
- package/dist/tools/core-read/export-transactions.js +67 -0
- package/dist/tools/core-read/export-transactions.js.map +1 -0
- package/dist/tools/core-read/query-accounting-balances.d.ts +2 -0
- package/dist/tools/core-read/query-accounting-balances.js +135 -0
- package/dist/tools/core-read/query-accounting-balances.js.map +1 -0
- package/dist/tools/core-read/query-accounting-context.d.ts +2 -0
- package/dist/tools/core-read/query-accounting-context.js +76 -0
- package/dist/tools/core-read/query-accounting-context.js.map +1 -0
- package/dist/tools/core-read/query-assets.d.ts +2 -0
- package/dist/tools/core-read/query-assets.js +425 -0
- package/dist/tools/core-read/query-assets.js.map +1 -0
- package/dist/tools/core-read/query-business-documents.d.ts +9 -0
- package/dist/tools/core-read/query-business-documents.js +620 -0
- package/dist/tools/core-read/query-business-documents.js.map +1 -0
- package/dist/tools/core-read/query-dashboard.d.ts +2 -0
- package/dist/tools/core-read/query-dashboard.js +144 -0
- package/dist/tools/core-read/query-dashboard.js.map +1 -0
- package/dist/tools/core-read/query-financial-reports.d.ts +2 -0
- package/dist/tools/core-read/query-financial-reports.js +171 -0
- package/dist/tools/core-read/query-financial-reports.js.map +1 -0
- package/dist/tools/core-read/query-fund-accounts.d.ts +2 -0
- package/dist/tools/core-read/query-fund-accounts.js +140 -0
- package/dist/tools/core-read/query-fund-accounts.js.map +1 -0
- package/dist/tools/core-read/query-fund-balances.d.ts +2 -0
- package/dist/tools/core-read/query-fund-balances.js +150 -0
- package/dist/tools/core-read/query-fund-balances.js.map +1 -0
- package/dist/tools/core-read/query-journals.d.ts +2 -0
- package/dist/tools/core-read/query-journals.js +277 -0
- package/dist/tools/core-read/query-journals.js.map +1 -0
- package/dist/tools/core-read/query-master-data.d.ts +2 -0
- package/dist/tools/core-read/query-master-data.js +363 -0
- package/dist/tools/core-read/query-master-data.js.map +1 -0
- package/dist/tools/core-read/query-pnl.d.ts +2 -0
- package/dist/tools/core-read/query-pnl.js +244 -0
- package/dist/tools/core-read/query-pnl.js.map +1 -0
- package/dist/tools/core-read/query-reference-data.d.ts +2 -0
- package/dist/tools/core-read/query-reference-data.js +293 -0
- package/dist/tools/core-read/query-reference-data.js.map +1 -0
- package/dist/tools/core-read/query-transactions.d.ts +2 -0
- package/dist/tools/core-read/query-transactions.js +58 -0
- package/dist/tools/core-read/query-transactions.js.map +1 -0
- package/dist/tools/create-tools.d.ts +3 -0
- package/dist/tools/create-tools.js +88 -0
- package/dist/tools/create-tools.js.map +1 -0
- package/dist/tools/extended/asset-operation-tools.d.ts +9 -0
- package/dist/tools/extended/asset-operation-tools.js +419 -0
- package/dist/tools/extended/asset-operation-tools.js.map +1 -0
- package/dist/tools/extended/automation-tools.d.ts +7 -0
- package/dist/tools/extended/automation-tools.js +333 -0
- package/dist/tools/extended/automation-tools.js.map +1 -0
- package/dist/tools/extended/configuration-tools.d.ts +14 -0
- package/dist/tools/extended/configuration-tools.js +871 -0
- package/dist/tools/extended/configuration-tools.js.map +1 -0
- package/dist/tools/extended/period-end-tools.d.ts +11 -0
- package/dist/tools/extended/period-end-tools.js +480 -0
- package/dist/tools/extended/period-end-tools.js.map +1 -0
- package/dist/tools/extended/query-output.d.ts +2589 -0
- package/dist/tools/extended/query-output.js +610 -0
- package/dist/tools/extended/query-output.js.map +1 -0
- package/dist/tools/extended/tool-support.d.ts +56 -0
- package/dist/tools/extended/tool-support.js +198 -0
- package/dist/tools/extended/tool-support.js.map +1 -0
- package/dist/tools/extended/workflow-tools.d.ts +10 -0
- package/dist/tools/extended/workflow-tools.js +678 -0
- package/dist/tools/extended/workflow-tools.js.map +1 -0
- package/dist/tools/fnd-import/execute-import.d.ts +2 -0
- package/dist/tools/fnd-import/execute-import.js +201 -0
- package/dist/tools/fnd-import/execute-import.js.map +1 -0
- package/dist/tools/fnd-import/get-import-template.d.ts +2 -0
- package/dist/tools/fnd-import/get-import-template.js +66 -0
- package/dist/tools/fnd-import/get-import-template.js.map +1 -0
- package/dist/tools/fnd-import/get-job-status.d.ts +8 -0
- package/dist/tools/fnd-import/get-job-status.js +201 -0
- package/dist/tools/fnd-import/get-job-status.js.map +1 -0
- package/dist/tools/fnd-import/prepare-import.d.ts +31 -0
- package/dist/tools/fnd-import/prepare-import.js +214 -0
- package/dist/tools/fnd-import/prepare-import.js.map +1 -0
- package/dist/tools/fnd-import/public-import-result.d.ts +18 -0
- package/dist/tools/fnd-import/public-import-result.js +35 -0
- package/dist/tools/fnd-import/public-import-result.js.map +1 -0
- package/dist/tools/tool-definition.d.ts +45 -0
- package/dist/tools/tool-definition.js +11 -0
- package/dist/tools/tool-definition.js.map +1 -0
- package/dist/tools/tool-handler.d.ts +27 -0
- package/dist/tools/tool-handler.js +196 -0
- package/dist/tools/tool-handler.js.map +1 -0
- package/dist/tools/transaction-item.d.ts +225 -0
- package/dist/tools/transaction-item.js +109 -0
- package/dist/tools/transaction-item.js.map +1 -0
- package/dist/transport/draining-transport.d.ts +14 -0
- package/dist/transport/draining-transport.js +36 -0
- package/dist/transport/draining-transport.js.map +1 -0
- package/dist/transport/stdio.d.ts +2 -0
- package/dist/transport/stdio.js +5 -0
- package/dist/transport/stdio.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { FinTaxError } from '../../errors/fintax-error.js';
|
|
2
|
+
import { hashOperationValue } from '../../policies/operation-plan.js';
|
|
3
|
+
import { adjustAssetCostInputSchema, executePlannedInputSchema, operationPlanOutputSchema, prepareAssetImpairmentInputSchema, prepareAssetRetirementInputSchema, previewDepreciationInputSchema, previewDepreciationOutputSchema, } from '../../schemas/domains/extended-operations.js';
|
|
4
|
+
import { operationResultSchemas } from '../../schemas/domains/extended-operation-results.js';
|
|
5
|
+
import { executeIdempotentWrite } from '../core-edit/idempotent-write.js';
|
|
6
|
+
import { asRecord, executePlannedOperation, issueOperationPlan, operationResult, planSummary, requiredUpstreamArray, resultSummary, } from './tool-support.js';
|
|
7
|
+
const previewAnnotations = {
|
|
8
|
+
readOnlyHint: true,
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
idempotentHint: true,
|
|
11
|
+
openWorldHint: false,
|
|
12
|
+
};
|
|
13
|
+
const writeAnnotations = {
|
|
14
|
+
readOnlyHint: false,
|
|
15
|
+
destructiveHint: false,
|
|
16
|
+
idempotentHint: false,
|
|
17
|
+
openWorldHint: false,
|
|
18
|
+
};
|
|
19
|
+
function stringField(value, key) {
|
|
20
|
+
const field = asRecord(value)[key];
|
|
21
|
+
return typeof field === 'string' ? field : undefined;
|
|
22
|
+
}
|
|
23
|
+
function numberField(value, key) {
|
|
24
|
+
const field = asRecord(value)[key];
|
|
25
|
+
return typeof field === 'number' && Number.isInteger(field)
|
|
26
|
+
? field
|
|
27
|
+
: undefined;
|
|
28
|
+
}
|
|
29
|
+
function depreciationSnapshot(value) {
|
|
30
|
+
const record = asRecord(value);
|
|
31
|
+
const lines = requiredUpstreamArray(record.lines).map(asRecord);
|
|
32
|
+
const skipped = requiredUpstreamArray(record.skipped).map(asRecord);
|
|
33
|
+
const lockedOrgs = requiredUpstreamArray(record.locked_orgs).map(asRecord);
|
|
34
|
+
return {
|
|
35
|
+
asset_count: record.asset_count,
|
|
36
|
+
total_depr_amount: record.total_depr_amount,
|
|
37
|
+
lines: lines.map((line) => ({
|
|
38
|
+
asset_no: line.asset_no,
|
|
39
|
+
amount: line.amount,
|
|
40
|
+
})),
|
|
41
|
+
skipped: skipped.map((item) => ({
|
|
42
|
+
finance_id: item.finance_id,
|
|
43
|
+
reason: item.reason,
|
|
44
|
+
detail: item.detail ?? null,
|
|
45
|
+
})),
|
|
46
|
+
locked_orgs: lockedOrgs.map((item) => ({
|
|
47
|
+
org_id: item.org_id,
|
|
48
|
+
org_name: item.org_name,
|
|
49
|
+
affected_card_count: item.affected_card_count,
|
|
50
|
+
closed_ledgers: requiredUpstreamArray(item.closed_ledgers).map((ledger) => {
|
|
51
|
+
const record = asRecord(ledger);
|
|
52
|
+
return {
|
|
53
|
+
ledger_code: record.ledger_code,
|
|
54
|
+
ledger_name: record.ledger_name,
|
|
55
|
+
};
|
|
56
|
+
}),
|
|
57
|
+
})),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function depreciationPublicPreview(snapshot, ledgerId, period) {
|
|
61
|
+
const skippedByReason = new Map();
|
|
62
|
+
for (const item of requiredUpstreamArray(snapshot.skipped).map(asRecord)) {
|
|
63
|
+
const reason = item.reason;
|
|
64
|
+
if (typeof reason !== 'string') {
|
|
65
|
+
throw new FinTaxError('UPSTREAM_UNAVAILABLE', 'FinTax returned an incomplete business result', { retryable: false });
|
|
66
|
+
}
|
|
67
|
+
skippedByReason.set(reason, (skippedByReason.get(reason) ?? 0) + 1);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
ledger_id: ledgerId,
|
|
71
|
+
period,
|
|
72
|
+
asset_count: snapshot.asset_count,
|
|
73
|
+
total_depr_amount: snapshot.total_depr_amount,
|
|
74
|
+
skipped_by_reason: [...skippedByReason].map(([reason, assetCount]) => ({
|
|
75
|
+
reason,
|
|
76
|
+
asset_count: assetCount,
|
|
77
|
+
})),
|
|
78
|
+
locked_orgs: snapshot.locked_orgs,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function depreciationPlanSummary(output) {
|
|
82
|
+
const parsed = previewDepreciationOutputSchema.parse(output);
|
|
83
|
+
const skipped = parsed.data.preview.skipped_by_reason.reduce((total, item) => total + item.asset_count, 0);
|
|
84
|
+
return `The depreciation preview includes ${parsed.data.preview.asset_count} assets with a total amount of ${parsed.data.preview.total_depr_amount} and ${skipped} skipped assets; user confirmation is required before execution.`;
|
|
85
|
+
}
|
|
86
|
+
function assetActionSnapshot(value) {
|
|
87
|
+
const record = asRecord(value);
|
|
88
|
+
return {
|
|
89
|
+
finance_id: record.finance_id,
|
|
90
|
+
card_id: record.card_id,
|
|
91
|
+
asset_no: record.asset_no,
|
|
92
|
+
ledger_id: record.ledger_id,
|
|
93
|
+
total_quantity: record.total_quantity,
|
|
94
|
+
existing_qty: record.existing_qty,
|
|
95
|
+
current_cost: record.current_cost,
|
|
96
|
+
accum_depr: record.accum_depr,
|
|
97
|
+
accum_impair: record.accum_impair,
|
|
98
|
+
accum_retire: record.accum_retire,
|
|
99
|
+
impair_limit: record.impair_limit,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function depreciationResult(value) {
|
|
103
|
+
const record = asRecord(value);
|
|
104
|
+
return {
|
|
105
|
+
asset_count: record.asset_count,
|
|
106
|
+
total_depr_amount: record.total_depr_amount,
|
|
107
|
+
period_name: record.period_name,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function costAdjustmentResult(value) {
|
|
111
|
+
const record = asRecord(value);
|
|
112
|
+
return {
|
|
113
|
+
adjust_amount: record.adjust_amount,
|
|
114
|
+
source_detail_id: record.source_detail_id,
|
|
115
|
+
period_name: record.period_name,
|
|
116
|
+
current_cost: record.current_cost,
|
|
117
|
+
accum_depr: record.accum_depr,
|
|
118
|
+
nbv: record.nbv,
|
|
119
|
+
version: record.version,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function assetMovementResult(value) {
|
|
123
|
+
const record = asRecord(value);
|
|
124
|
+
return {
|
|
125
|
+
depr_detail_id: record.depr_detail_id,
|
|
126
|
+
movement_type: record.movement_type,
|
|
127
|
+
amount: record.amount,
|
|
128
|
+
...(record.movement_type === 'RETIRE' ? { quantity: record.quantity } : {}),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export const previewDepreciationTool = {
|
|
132
|
+
name: 'preview_depreciation',
|
|
133
|
+
title: 'Preview Asset Depreciation',
|
|
134
|
+
description: 'Calculate a depreciation preview for the specified organization, ledger, and YYYY-MM period and create a single-use execution plan without writing depreciation details. Call run_depreciation only after confirming the asset count, amount, and skipped items.',
|
|
135
|
+
risk: 'R0',
|
|
136
|
+
exposurePack: 'asset-ops',
|
|
137
|
+
capabilityIds: ['suite.fa.depreciation.preview'],
|
|
138
|
+
fileAccess: 'none',
|
|
139
|
+
inputSchema: previewDepreciationInputSchema,
|
|
140
|
+
outputSchema: previewDepreciationOutputSchema,
|
|
141
|
+
annotations: previewAnnotations,
|
|
142
|
+
async execute(rawInput, context) {
|
|
143
|
+
const input = previewDepreciationInputSchema.parse(rawInput);
|
|
144
|
+
const body = { ledger_id: input.ledger_id, period_name: input.period };
|
|
145
|
+
const preview = await context.callCapability('suite.fa.depreciation.preview', { body }, input.context.org_id);
|
|
146
|
+
const snapshot = depreciationSnapshot(preview);
|
|
147
|
+
const amount = stringField(snapshot, 'total_depr_amount');
|
|
148
|
+
const publicPreview = depreciationPublicPreview(snapshot, input.ledger_id, input.period);
|
|
149
|
+
return issueOperationPlan({
|
|
150
|
+
context,
|
|
151
|
+
executeTool: 'run_depreciation',
|
|
152
|
+
targetType: 'asset_depreciation',
|
|
153
|
+
targetIds: [input.ledger_id],
|
|
154
|
+
targetVersions: [],
|
|
155
|
+
orgId: input.context.org_id,
|
|
156
|
+
parameters: input,
|
|
157
|
+
preview: snapshot,
|
|
158
|
+
operation: 'fa.depreciation.preview',
|
|
159
|
+
...(amount === undefined ? {} : { amount }),
|
|
160
|
+
publicPreview,
|
|
161
|
+
outputSchema: previewDepreciationOutputSchema,
|
|
162
|
+
privatePayload: { body },
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
summarize: depreciationPlanSummary,
|
|
166
|
+
};
|
|
167
|
+
export const runDepreciationTool = {
|
|
168
|
+
name: 'run_depreciation',
|
|
169
|
+
title: 'Run Asset Depreciation',
|
|
170
|
+
description: 'Consume a user-confirmed plan issued by preview_depreciation and write the depreciation result for that ledger period. After a timeout, query asset movements before retrying.',
|
|
171
|
+
risk: 'R3',
|
|
172
|
+
exposurePack: 'asset-ops',
|
|
173
|
+
capabilityIds: ['suite.fa.depreciation.preview', 'suite.fa.depreciation.run'],
|
|
174
|
+
fileAccess: 'none',
|
|
175
|
+
inputSchema: executePlannedInputSchema,
|
|
176
|
+
outputSchema: operationResultSchemas.run_depreciation,
|
|
177
|
+
annotations: writeAnnotations,
|
|
178
|
+
async execute(rawInput, context) {
|
|
179
|
+
const input = executePlannedInputSchema.parse(rawInput);
|
|
180
|
+
const binding = context.operationPlans.inspect(input.operation_plan_id, input.confirmation_token, 'run_depreciation');
|
|
181
|
+
const periodName = asRecord(binding.payload?.body).period_name;
|
|
182
|
+
return context.withResourceLock(`depreciation:${binding.subject_id}`, () => executePlannedOperation({
|
|
183
|
+
toolName: 'run_depreciation',
|
|
184
|
+
operationPlanId: input.operation_plan_id,
|
|
185
|
+
confirmationToken: input.confirmation_token,
|
|
186
|
+
idempotencyKey: input.idempotency_key,
|
|
187
|
+
orgId: input.context.org_id,
|
|
188
|
+
capabilityId: 'suite.fa.depreciation.run',
|
|
189
|
+
context,
|
|
190
|
+
sourceOperation: 'fa.depreciation.run',
|
|
191
|
+
targetType: 'asset_depreciation',
|
|
192
|
+
outputSchema: operationResultSchemas.run_depreciation,
|
|
193
|
+
projectResult: depreciationResult,
|
|
194
|
+
recovery: {
|
|
195
|
+
tool: 'query_assets',
|
|
196
|
+
input: {
|
|
197
|
+
view: 'movement_history',
|
|
198
|
+
filters: {
|
|
199
|
+
ledger_id: binding.subject_id,
|
|
200
|
+
...(typeof periodName === 'string'
|
|
201
|
+
? { period_name: periodName }
|
|
202
|
+
: {}),
|
|
203
|
+
movement_types: ['DEPR'],
|
|
204
|
+
},
|
|
205
|
+
page: 1,
|
|
206
|
+
page_size: 100,
|
|
207
|
+
context: { org_id: input.context.org_id },
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
validatePlan: async (plan) => {
|
|
211
|
+
const preview = await context.callCapability('suite.fa.depreciation.preview', plan.payload ?? {}, input.context.org_id);
|
|
212
|
+
if (hashOperationValue(depreciationSnapshot(preview)) !==
|
|
213
|
+
plan.preview_hash) {
|
|
214
|
+
throw new FinTaxError('CONFIRMATION_REQUIRED', 'The depreciation preview changed; run the preview again');
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
buildCapabilityInput: (plan) => plan.payload ?? {},
|
|
218
|
+
}));
|
|
219
|
+
},
|
|
220
|
+
summarize: resultSummary,
|
|
221
|
+
};
|
|
222
|
+
export const adjustAssetCostTool = {
|
|
223
|
+
name: 'adjust_asset_cost',
|
|
224
|
+
title: 'Adjust Asset Cost',
|
|
225
|
+
description: 'Create one cost adjustment against the current version of an asset financial record and immediately write an asset movement. Use it only for a new cost explicitly confirmed by the user; do not use it for ordinary asset-draft editing or deleting cost records.',
|
|
226
|
+
risk: 'R2',
|
|
227
|
+
exposurePack: 'asset-ops',
|
|
228
|
+
capabilityIds: [
|
|
229
|
+
'suite.fa.cost_adjust.context',
|
|
230
|
+
'suite.fa.cost_adjust.submit',
|
|
231
|
+
],
|
|
232
|
+
fileAccess: 'none',
|
|
233
|
+
inputSchema: adjustAssetCostInputSchema,
|
|
234
|
+
outputSchema: operationResultSchemas.adjust_asset_cost,
|
|
235
|
+
annotations: writeAnnotations,
|
|
236
|
+
async execute(rawInput, context) {
|
|
237
|
+
const input = adjustAssetCostInputSchema.parse(rawInput);
|
|
238
|
+
return context.withResourceLock(`asset-finance:${input.finance_id}`, async () => {
|
|
239
|
+
const current = await context.callCapability('suite.fa.cost_adjust.context', { finance_id: input.finance_id }, input.context.org_id);
|
|
240
|
+
if (numberField(current, 'version') !== input.version) {
|
|
241
|
+
throw new FinTaxError('CONFLICT', 'The asset version changed; query it again before submitting the cost adjustment');
|
|
242
|
+
}
|
|
243
|
+
return executeIdempotentWrite({
|
|
244
|
+
toolName: 'adjust_asset_cost',
|
|
245
|
+
idempotencyKey: input.idempotency_key,
|
|
246
|
+
orgId: input.context.org_id,
|
|
247
|
+
fingerprintValue: input,
|
|
248
|
+
capabilityId: 'suite.fa.cost_adjust.submit',
|
|
249
|
+
capabilityInput: {
|
|
250
|
+
finance_id: input.finance_id,
|
|
251
|
+
body: {
|
|
252
|
+
new_cost: input.new_cost,
|
|
253
|
+
version: input.version,
|
|
254
|
+
remark: input.remark,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
context,
|
|
258
|
+
outputSchema: operationResultSchemas.adjust_asset_cost,
|
|
259
|
+
recovery: {
|
|
260
|
+
tool: 'query_assets',
|
|
261
|
+
input: {
|
|
262
|
+
view: 'finance',
|
|
263
|
+
finance_id: input.finance_id,
|
|
264
|
+
context: { org_id: input.context.org_id },
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
target: { field: 'finance_id', id: input.finance_id },
|
|
268
|
+
buildOutput: (result) => operationResult({
|
|
269
|
+
operation: 'adjust_asset_cost',
|
|
270
|
+
targetType: 'asset_cost',
|
|
271
|
+
targetIds: [input.finance_id],
|
|
272
|
+
result: costAdjustmentResult(result),
|
|
273
|
+
outputSchema: operationResultSchemas.adjust_asset_cost,
|
|
274
|
+
context,
|
|
275
|
+
sourceOperation: 'fa.cost_adjust.submit',
|
|
276
|
+
}),
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
summarize: resultSummary,
|
|
281
|
+
};
|
|
282
|
+
function prepareAssetAction(options) {
|
|
283
|
+
return {
|
|
284
|
+
name: options.name,
|
|
285
|
+
title: options.title,
|
|
286
|
+
description: options.description,
|
|
287
|
+
risk: 'R0',
|
|
288
|
+
exposurePack: 'asset-ops',
|
|
289
|
+
capabilityIds: ['suite.fa.impair_retire.context'],
|
|
290
|
+
fileAccess: 'none',
|
|
291
|
+
inputSchema: options.inputSchema,
|
|
292
|
+
outputSchema: operationPlanOutputSchema,
|
|
293
|
+
annotations: previewAnnotations,
|
|
294
|
+
async execute(rawInput, context) {
|
|
295
|
+
const input = options.inputSchema.parse(rawInput);
|
|
296
|
+
const rawSnapshot = await context.callCapability('suite.fa.impair_retire.context', { finance_id: input.finance_id }, input.context.org_id);
|
|
297
|
+
const snapshot = assetActionSnapshot(rawSnapshot);
|
|
298
|
+
const body = options.targetType === 'asset_impairment'
|
|
299
|
+
? {
|
|
300
|
+
biz_date: input.biz_date,
|
|
301
|
+
this_amount: input.amount,
|
|
302
|
+
remark: input.remark,
|
|
303
|
+
}
|
|
304
|
+
: {
|
|
305
|
+
biz_date: input.biz_date,
|
|
306
|
+
retire_qty: 'retire_quantity' in input ? input.retire_quantity : undefined,
|
|
307
|
+
this_amount: input.amount,
|
|
308
|
+
remark: input.remark,
|
|
309
|
+
};
|
|
310
|
+
return issueOperationPlan({
|
|
311
|
+
context,
|
|
312
|
+
executeTool: options.executeTool,
|
|
313
|
+
targetType: options.targetType,
|
|
314
|
+
targetIds: [input.finance_id],
|
|
315
|
+
targetVersions: [],
|
|
316
|
+
orgId: input.context.org_id,
|
|
317
|
+
parameters: input,
|
|
318
|
+
preview: snapshot,
|
|
319
|
+
operation: 'fa.impair_retire.context',
|
|
320
|
+
...(input.amount === undefined ? {} : { amount: input.amount }),
|
|
321
|
+
privatePayload: { finance_id: input.finance_id, body },
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
summarize: planSummary,
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
export const prepareAssetImpairmentTool = prepareAssetAction({
|
|
328
|
+
name: 'prepare_asset_impairment',
|
|
329
|
+
executeTool: 'execute_asset_impairment',
|
|
330
|
+
title: 'Prepare Asset Impairment',
|
|
331
|
+
description: 'Read the asset carrying amount, accumulated depreciation, and impairment limit, then bind the impairment date and amount into a single-use plan without executing impairment. Call execute_asset_impairment only after confirming the context summary.',
|
|
332
|
+
inputSchema: prepareAssetImpairmentInputSchema,
|
|
333
|
+
targetType: 'asset_impairment',
|
|
334
|
+
});
|
|
335
|
+
export const prepareAssetRetirementTool = prepareAssetAction({
|
|
336
|
+
name: 'prepare_asset_retirement',
|
|
337
|
+
executeTool: 'execute_asset_retirement',
|
|
338
|
+
title: 'Prepare Asset Retirement',
|
|
339
|
+
description: 'Read the asset quantity and carrying state, then bind the retirement date, quantity, and optional amount into a single-use plan without retiring the asset. Call execute_asset_retirement only after confirming the context summary.',
|
|
340
|
+
inputSchema: prepareAssetRetirementInputSchema,
|
|
341
|
+
targetType: 'asset_retirement',
|
|
342
|
+
});
|
|
343
|
+
function executeAssetAction(options) {
|
|
344
|
+
return {
|
|
345
|
+
name: options.name,
|
|
346
|
+
title: options.title,
|
|
347
|
+
description: options.description,
|
|
348
|
+
risk: 'R3',
|
|
349
|
+
exposurePack: 'asset-ops',
|
|
350
|
+
capabilityIds: ['suite.fa.impair_retire.context', options.capabilityId],
|
|
351
|
+
fileAccess: 'none',
|
|
352
|
+
inputSchema: executePlannedInputSchema,
|
|
353
|
+
outputSchema: options.outputSchema,
|
|
354
|
+
annotations: writeAnnotations,
|
|
355
|
+
async execute(rawInput, context) {
|
|
356
|
+
const input = executePlannedInputSchema.parse(rawInput);
|
|
357
|
+
const binding = context.operationPlans.inspect(input.operation_plan_id, input.confirmation_token, options.name);
|
|
358
|
+
return context.withResourceLock(`asset-finance:${binding.subject_id}`, () => executePlannedOperation({
|
|
359
|
+
toolName: options.name,
|
|
360
|
+
operationPlanId: input.operation_plan_id,
|
|
361
|
+
confirmationToken: input.confirmation_token,
|
|
362
|
+
idempotencyKey: input.idempotency_key,
|
|
363
|
+
orgId: input.context.org_id,
|
|
364
|
+
capabilityId: options.capabilityId,
|
|
365
|
+
context,
|
|
366
|
+
sourceOperation: options.sourceOperation,
|
|
367
|
+
targetType: options.targetType,
|
|
368
|
+
outputSchema: options.outputSchema,
|
|
369
|
+
projectResult: assetMovementResult,
|
|
370
|
+
recovery: {
|
|
371
|
+
tool: 'query_assets',
|
|
372
|
+
input: {
|
|
373
|
+
view: 'finance',
|
|
374
|
+
finance_id: binding.subject_id,
|
|
375
|
+
include: ['depreciation_details'],
|
|
376
|
+
context: { org_id: input.context.org_id },
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
validatePlan: async (plan) => {
|
|
380
|
+
const rawSnapshot = await context.callCapability('suite.fa.impair_retire.context', { finance_id: plan.payload?.finance_id }, input.context.org_id);
|
|
381
|
+
if (hashOperationValue(assetActionSnapshot(rawSnapshot)) !==
|
|
382
|
+
plan.preview_hash) {
|
|
383
|
+
throw new FinTaxError('CONFIRMATION_REQUIRED', 'The asset state changed; run the preparation step again');
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
buildCapabilityInput: (plan) => plan.payload ?? {},
|
|
387
|
+
}));
|
|
388
|
+
},
|
|
389
|
+
summarize: resultSummary,
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
export const executeAssetImpairmentTool = executeAssetAction({
|
|
393
|
+
name: 'execute_asset_impairment',
|
|
394
|
+
title: 'Execute Asset Impairment',
|
|
395
|
+
description: 'Consume a user-confirmed plan issued by prepare_asset_impairment and write the impairment movement. After a timeout, query asset details and movement history before retrying.',
|
|
396
|
+
capabilityId: 'suite.fa.impair.submit',
|
|
397
|
+
targetType: 'asset_impairment',
|
|
398
|
+
sourceOperation: 'fa.impair.submit',
|
|
399
|
+
outputSchema: operationResultSchemas.execute_asset_impairment,
|
|
400
|
+
});
|
|
401
|
+
export const executeAssetRetirementTool = executeAssetAction({
|
|
402
|
+
name: 'execute_asset_retirement',
|
|
403
|
+
title: 'Execute Asset Retirement',
|
|
404
|
+
description: 'Consume a user-confirmed plan issued by prepare_asset_retirement and write the retirement movement. It does not rebuild or delete retirements. After a timeout, do not retry blindly.',
|
|
405
|
+
capabilityId: 'suite.fa.retire.submit',
|
|
406
|
+
targetType: 'asset_retirement',
|
|
407
|
+
sourceOperation: 'fa.retire.submit',
|
|
408
|
+
outputSchema: operationResultSchemas.execute_asset_retirement,
|
|
409
|
+
});
|
|
410
|
+
export const assetOperationTools = [
|
|
411
|
+
previewDepreciationTool,
|
|
412
|
+
runDepreciationTool,
|
|
413
|
+
adjustAssetCostTool,
|
|
414
|
+
prepareAssetImpairmentTool,
|
|
415
|
+
executeAssetImpairmentTool,
|
|
416
|
+
prepareAssetRetirementTool,
|
|
417
|
+
executeAssetRetirementTool,
|
|
418
|
+
];
|
|
419
|
+
//# sourceMappingURL=asset-operation-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-operation-tools.js","sourceRoot":"","sources":["../../../src/tools/extended/asset-operation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EACL,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,kBAAkB,GAAG;IACzB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,KAAK;IACrB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,SAAS,WAAW,CAAC,KAAc,EAAE,GAAW;IAC9C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;IACnC,OAAO,OAAO,KAAK,K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LAAuL;IACzL,YAAY,EAAE,wBAAwB;IACtC,UAAU,EAAE,kBAAkB;IAC9B,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,sBAAsB,CAAC,wBAAwB;CAC9D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAA8B;IAC5D,uBAAuB;IACvB,mBAAmB;IACnB,mBAAmB;IACnB,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;CAC3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ToolDefinition } from '../tool-definition.js';
|
|
2
|
+
export declare const queryAccountingEventsTool: ToolDefinition;
|
|
3
|
+
export declare const prepareAccountingEventCollectionTool: ToolDefinition;
|
|
4
|
+
export declare const executeAccountingEventCollectionTool: ToolDefinition;
|
|
5
|
+
export declare const prepareAccountingFlowRunTool: ToolDefinition;
|
|
6
|
+
export declare const executeAccountingFlowTool: ToolDefinition;
|
|
7
|
+
export declare const automationTools: readonly ToolDefinition[];
|