@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.
Files changed (341) hide show
  1. package/README.md +220 -0
  2. package/dist/app/create-server.d.ts +18 -0
  3. package/dist/app/create-server.js +80 -0
  4. package/dist/app/create-server.js.map +1 -0
  5. package/dist/app/register-tools.d.ts +4 -0
  6. package/dist/app/register-tools.js +18 -0
  7. package/dist/app/register-tools.js.map +1 -0
  8. package/dist/audit/audit-context.d.ts +38 -0
  9. package/dist/audit/audit-context.js +167 -0
  10. package/dist/audit/audit-context.js.map +1 -0
  11. package/dist/audit/audit-sink.d.ts +20 -0
  12. package/dist/audit/audit-sink.js +6 -0
  13. package/dist/audit/audit-sink.js.map +1 -0
  14. package/dist/audit/file-audit-sink.d.ts +6 -0
  15. package/dist/audit/file-audit-sink.js +18 -0
  16. package/dist/audit/file-audit-sink.js.map +1 -0
  17. package/dist/auth/auth-session.d.ts +63 -0
  18. package/dist/auth/auth-session.js +226 -0
  19. package/dist/auth/auth-session.js.map +1 -0
  20. package/dist/auth/credentials.d.ts +6 -0
  21. package/dist/auth/credentials.js +12 -0
  22. package/dist/auth/credentials.js.map +1 -0
  23. package/dist/auth/org-token-provider.d.ts +15 -0
  24. package/dist/auth/org-token-provider.js +62 -0
  25. package/dist/auth/org-token-provider.js.map +1 -0
  26. package/dist/capabilities/capability.d.ts +100 -0
  27. package/dist/capabilities/capability.js +26 -0
  28. package/dist/capabilities/capability.js.map +1 -0
  29. package/dist/capabilities/create-capabilities.d.ts +2 -0
  30. package/dist/capabilities/create-capabilities.js +37 -0
  31. package/dist/capabilities/create-capabilities.js.map +1 -0
  32. package/dist/capabilities/define-capability.d.ts +39 -0
  33. package/dist/capabilities/define-capability.js +64 -0
  34. package/dist/capabilities/define-capability.js.map +1 -0
  35. package/dist/capabilities/definitions/accounting-balances.d.ts +4 -0
  36. package/dist/capabilities/definitions/accounting-balances.js +98 -0
  37. package/dist/capabilities/definitions/accounting-balances.js.map +1 -0
  38. package/dist/capabilities/definitions/accounting-context.d.ts +2 -0
  39. package/dist/capabilities/definitions/accounting-context.js +17 -0
  40. package/dist/capabilities/definitions/accounting-context.js.map +1 -0
  41. package/dist/capabilities/definitions/assets.d.ts +2 -0
  42. package/dist/capabilities/definitions/assets.js +367 -0
  43. package/dist/capabilities/definitions/assets.js.map +1 -0
  44. package/dist/capabilities/definitions/business-documents.d.ts +9 -0
  45. package/dist/capabilities/definitions/business-documents.js +386 -0
  46. package/dist/capabilities/definitions/business-documents.js.map +1 -0
  47. package/dist/capabilities/definitions/dashboard.d.ts +2 -0
  48. package/dist/capabilities/definitions/dashboard.js +153 -0
  49. package/dist/capabilities/definitions/dashboard.js.map +1 -0
  50. package/dist/capabilities/definitions/extended-operation-contracts.d.ts +597 -0
  51. package/dist/capabilities/definitions/extended-operation-contracts.js +1180 -0
  52. package/dist/capabilities/definitions/extended-operation-contracts.js.map +1 -0
  53. package/dist/capabilities/definitions/extended-operations.d.ts +2 -0
  54. package/dist/capabilities/definitions/extended-operations.js +699 -0
  55. package/dist/capabilities/definitions/extended-operations.js.map +1 -0
  56. package/dist/capabilities/definitions/financial-reports.d.ts +2 -0
  57. package/dist/capabilities/definitions/financial-reports.js +100 -0
  58. package/dist/capabilities/definitions/financial-reports.js.map +1 -0
  59. package/dist/capabilities/definitions/fnd-import.d.ts +34 -0
  60. package/dist/capabilities/definitions/fnd-import.js +282 -0
  61. package/dist/capabilities/definitions/fnd-import.js.map +1 -0
  62. package/dist/capabilities/definitions/fund-accounts.d.ts +2 -0
  63. package/dist/capabilities/definitions/fund-accounts.js +188 -0
  64. package/dist/capabilities/definitions/fund-accounts.js.map +1 -0
  65. package/dist/capabilities/definitions/fund-balances.d.ts +2 -0
  66. package/dist/capabilities/definitions/fund-balances.js +84 -0
  67. package/dist/capabilities/definitions/fund-balances.js.map +1 -0
  68. package/dist/capabilities/definitions/journals.d.ts +10 -0
  69. package/dist/capabilities/definitions/journals.js +224 -0
  70. package/dist/capabilities/definitions/journals.js.map +1 -0
  71. package/dist/capabilities/definitions/master-data.d.ts +2 -0
  72. package/dist/capabilities/definitions/master-data.js +451 -0
  73. package/dist/capabilities/definitions/master-data.js.map +1 -0
  74. package/dist/capabilities/definitions/pnl.d.ts +2 -0
  75. package/dist/capabilities/definitions/pnl.js +139 -0
  76. package/dist/capabilities/definitions/pnl.js.map +1 -0
  77. package/dist/capabilities/definitions/reference-data.d.ts +2 -0
  78. package/dist/capabilities/definitions/reference-data.js +169 -0
  79. package/dist/capabilities/definitions/reference-data.js.map +1 -0
  80. package/dist/capabilities/definitions/transaction-drafts.d.ts +2 -0
  81. package/dist/capabilities/definitions/transaction-drafts.js +157 -0
  82. package/dist/capabilities/definitions/transaction-drafts.js.map +1 -0
  83. package/dist/capabilities/definitions/transactions.d.ts +168 -0
  84. package/dist/capabilities/definitions/transactions.js +79 -0
  85. package/dist/capabilities/definitions/transactions.js.map +1 -0
  86. package/dist/capabilities/executor.d.ts +19 -0
  87. package/dist/capabilities/executor.js +134 -0
  88. package/dist/capabilities/executor.js.map +1 -0
  89. package/dist/capabilities/registry.d.ts +7 -0
  90. package/dist/capabilities/registry.js +51 -0
  91. package/dist/capabilities/registry.js.map +1 -0
  92. package/dist/clients/base-client.d.ts +5 -0
  93. package/dist/clients/base-client.js +13 -0
  94. package/dist/clients/base-client.js.map +1 -0
  95. package/dist/clients/http-client.d.ts +29 -0
  96. package/dist/clients/http-client.js +167 -0
  97. package/dist/clients/http-client.js.map +1 -0
  98. package/dist/clients/suite-client.d.ts +5 -0
  99. package/dist/clients/suite-client.js +5 -0
  100. package/dist/clients/suite-client.js.map +1 -0
  101. package/dist/concurrency/lock-manager.d.ts +4 -0
  102. package/dist/concurrency/lock-manager.js +23 -0
  103. package/dist/concurrency/lock-manager.js.map +1 -0
  104. package/dist/config/load-config.d.ts +2 -0
  105. package/dist/config/load-config.js +18 -0
  106. package/dist/config/load-config.js.map +1 -0
  107. package/dist/config/schema.d.ts +24 -0
  108. package/dist/config/schema.js +85 -0
  109. package/dist/config/schema.js.map +1 -0
  110. package/dist/errors/fintax-error.d.ts +24 -0
  111. package/dist/errors/fintax-error.js +21 -0
  112. package/dist/errors/fintax-error.js.map +1 -0
  113. package/dist/errors/normalize-error.d.ts +3 -0
  114. package/dist/errors/normalize-error.js +67 -0
  115. package/dist/errors/normalize-error.js.map +1 -0
  116. package/dist/files/artifact-store.d.ts +17 -0
  117. package/dist/files/artifact-store.js +74 -0
  118. package/dist/files/artifact-store.js.map +1 -0
  119. package/dist/files/input-policy.d.ts +28 -0
  120. package/dist/files/input-policy.js +109 -0
  121. package/dist/files/input-policy.js.map +1 -0
  122. package/dist/files/roots-provider.d.ts +14 -0
  123. package/dist/files/roots-provider.js +47 -0
  124. package/dist/files/roots-provider.js.map +1 -0
  125. package/dist/index.d.ts +2 -0
  126. package/dist/index.js +49 -0
  127. package/dist/index.js.map +1 -0
  128. package/dist/logging/logger.d.ts +3 -0
  129. package/dist/logging/logger.js +13 -0
  130. package/dist/logging/logger.js.map +1 -0
  131. package/dist/policies/idempotency.d.ts +32 -0
  132. package/dist/policies/idempotency.js +155 -0
  133. package/dist/policies/idempotency.js.map +1 -0
  134. package/dist/policies/job-reference.d.ts +16 -0
  135. package/dist/policies/job-reference.js +62 -0
  136. package/dist/policies/job-reference.js.map +1 -0
  137. package/dist/policies/operation-plan.d.ts +27 -0
  138. package/dist/policies/operation-plan.js +99 -0
  139. package/dist/policies/operation-plan.js.map +1 -0
  140. package/dist/policies/redaction.d.ts +2 -0
  141. package/dist/policies/redaction.js +29 -0
  142. package/dist/policies/redaction.js.map +1 -0
  143. package/dist/policies/retry.d.ts +8 -0
  144. package/dist/policies/retry.js +19 -0
  145. package/dist/policies/retry.js.map +1 -0
  146. package/dist/responses/tool-response.d.ts +4 -0
  147. package/dist/responses/tool-response.js +24 -0
  148. package/dist/responses/tool-response.js.map +1 -0
  149. package/dist/schemas/common.d.ts +226 -0
  150. package/dist/schemas/common.js +133 -0
  151. package/dist/schemas/common.js.map +1 -0
  152. package/dist/schemas/domains/accounting-balances.d.ts +497 -0
  153. package/dist/schemas/domains/accounting-balances.js +226 -0
  154. package/dist/schemas/domains/accounting-balances.js.map +1 -0
  155. package/dist/schemas/domains/accounting-context.d.ts +118 -0
  156. package/dist/schemas/domains/accounting-context.js +54 -0
  157. package/dist/schemas/domains/accounting-context.js.map +1 -0
  158. package/dist/schemas/domains/assets.d.ts +2508 -0
  159. package/dist/schemas/domains/assets.js +960 -0
  160. package/dist/schemas/domains/assets.js.map +1 -0
  161. package/dist/schemas/domains/business-documents.d.ts +4406 -0
  162. package/dist/schemas/domains/business-documents.js +1153 -0
  163. package/dist/schemas/domains/business-documents.js.map +1 -0
  164. package/dist/schemas/domains/configuration.d.ts +518 -0
  165. package/dist/schemas/domains/configuration.js +504 -0
  166. package/dist/schemas/domains/configuration.js.map +1 -0
  167. package/dist/schemas/domains/dashboard.d.ts +339 -0
  168. package/dist/schemas/domains/dashboard.js +211 -0
  169. package/dist/schemas/domains/dashboard.js.map +1 -0
  170. package/dist/schemas/domains/extended-operation-results.d.ts +1588 -0
  171. package/dist/schemas/domains/extended-operation-results.js +275 -0
  172. package/dist/schemas/domains/extended-operation-results.js.map +1 -0
  173. package/dist/schemas/domains/extended-operations.d.ts +1061 -0
  174. package/dist/schemas/domains/extended-operations.js +567 -0
  175. package/dist/schemas/domains/extended-operations.js.map +1 -0
  176. package/dist/schemas/domains/extended-query-results.d.ts +1688 -0
  177. package/dist/schemas/domains/extended-query-results.js +337 -0
  178. package/dist/schemas/domains/extended-query-results.js.map +1 -0
  179. package/dist/schemas/domains/financial-reports.d.ts +540 -0
  180. package/dist/schemas/domains/financial-reports.js +206 -0
  181. package/dist/schemas/domains/financial-reports.js.map +1 -0
  182. package/dist/schemas/domains/fnd-import.d.ts +912 -0
  183. package/dist/schemas/domains/fnd-import.js +396 -0
  184. package/dist/schemas/domains/fnd-import.js.map +1 -0
  185. package/dist/schemas/domains/fund-accounts.d.ts +1092 -0
  186. package/dist/schemas/domains/fund-accounts.js +410 -0
  187. package/dist/schemas/domains/fund-accounts.js.map +1 -0
  188. package/dist/schemas/domains/fund-balances.d.ts +476 -0
  189. package/dist/schemas/domains/fund-balances.js +233 -0
  190. package/dist/schemas/domains/fund-balances.js.map +1 -0
  191. package/dist/schemas/domains/journals.d.ts +1619 -0
  192. package/dist/schemas/domains/journals.js +615 -0
  193. package/dist/schemas/domains/journals.js.map +1 -0
  194. package/dist/schemas/domains/master-data.d.ts +2010 -0
  195. package/dist/schemas/domains/master-data.js +799 -0
  196. package/dist/schemas/domains/master-data.js.map +1 -0
  197. package/dist/schemas/domains/pnl.d.ts +837 -0
  198. package/dist/schemas/domains/pnl.js +469 -0
  199. package/dist/schemas/domains/pnl.js.map +1 -0
  200. package/dist/schemas/domains/reference-data.d.ts +227 -0
  201. package/dist/schemas/domains/reference-data.js +144 -0
  202. package/dist/schemas/domains/reference-data.js.map +1 -0
  203. package/dist/schemas/domains/transaction-drafts.d.ts +903 -0
  204. package/dist/schemas/domains/transaction-drafts.js +242 -0
  205. package/dist/schemas/domains/transaction-drafts.js.map +1 -0
  206. package/dist/schemas/domains/transactions.d.ts +910 -0
  207. package/dist/schemas/domains/transactions.js +266 -0
  208. package/dist/schemas/domains/transactions.js.map +1 -0
  209. package/dist/schemas/primitives.d.ts +6 -0
  210. package/dist/schemas/primitives.js +11 -0
  211. package/dist/schemas/primitives.js.map +1 -0
  212. package/dist/schemas/public-input.d.ts +3 -0
  213. package/dist/schemas/public-input.js +524 -0
  214. package/dist/schemas/public-input.js.map +1 -0
  215. package/dist/tools/core-edit/idempotent-write.d.ts +23 -0
  216. package/dist/tools/core-edit/idempotent-write.js +58 -0
  217. package/dist/tools/core-edit/idempotent-write.js.map +1 -0
  218. package/dist/tools/core-edit/save-asset.d.ts +5 -0
  219. package/dist/tools/core-edit/save-asset.js +334 -0
  220. package/dist/tools/core-edit/save-asset.js.map +1 -0
  221. package/dist/tools/core-edit/save-business-document-draft.d.ts +2 -0
  222. package/dist/tools/core-edit/save-business-document-draft.js +128 -0
  223. package/dist/tools/core-edit/save-business-document-draft.js.map +1 -0
  224. package/dist/tools/core-edit/save-fund-account.d.ts +2 -0
  225. package/dist/tools/core-edit/save-fund-account.js +138 -0
  226. package/dist/tools/core-edit/save-fund-account.js.map +1 -0
  227. package/dist/tools/core-edit/save-journal-draft.d.ts +2 -0
  228. package/dist/tools/core-edit/save-journal-draft.js +122 -0
  229. package/dist/tools/core-edit/save-journal-draft.js.map +1 -0
  230. package/dist/tools/core-edit/save-master-data.d.ts +2 -0
  231. package/dist/tools/core-edit/save-master-data.js +153 -0
  232. package/dist/tools/core-edit/save-master-data.js.map +1 -0
  233. package/dist/tools/core-edit/save-transaction-draft.d.ts +2 -0
  234. package/dist/tools/core-edit/save-transaction-draft.js +128 -0
  235. package/dist/tools/core-edit/save-transaction-draft.js.map +1 -0
  236. package/dist/tools/core-read/export-business-documents.d.ts +2 -0
  237. package/dist/tools/core-read/export-business-documents.js +67 -0
  238. package/dist/tools/core-read/export-business-documents.js.map +1 -0
  239. package/dist/tools/core-read/export-journals.d.ts +2 -0
  240. package/dist/tools/core-read/export-journals.js +56 -0
  241. package/dist/tools/core-read/export-journals.js.map +1 -0
  242. package/dist/tools/core-read/export-transactions.d.ts +2 -0
  243. package/dist/tools/core-read/export-transactions.js +67 -0
  244. package/dist/tools/core-read/export-transactions.js.map +1 -0
  245. package/dist/tools/core-read/query-accounting-balances.d.ts +2 -0
  246. package/dist/tools/core-read/query-accounting-balances.js +135 -0
  247. package/dist/tools/core-read/query-accounting-balances.js.map +1 -0
  248. package/dist/tools/core-read/query-accounting-context.d.ts +2 -0
  249. package/dist/tools/core-read/query-accounting-context.js +76 -0
  250. package/dist/tools/core-read/query-accounting-context.js.map +1 -0
  251. package/dist/tools/core-read/query-assets.d.ts +2 -0
  252. package/dist/tools/core-read/query-assets.js +425 -0
  253. package/dist/tools/core-read/query-assets.js.map +1 -0
  254. package/dist/tools/core-read/query-business-documents.d.ts +9 -0
  255. package/dist/tools/core-read/query-business-documents.js +620 -0
  256. package/dist/tools/core-read/query-business-documents.js.map +1 -0
  257. package/dist/tools/core-read/query-dashboard.d.ts +2 -0
  258. package/dist/tools/core-read/query-dashboard.js +144 -0
  259. package/dist/tools/core-read/query-dashboard.js.map +1 -0
  260. package/dist/tools/core-read/query-financial-reports.d.ts +2 -0
  261. package/dist/tools/core-read/query-financial-reports.js +171 -0
  262. package/dist/tools/core-read/query-financial-reports.js.map +1 -0
  263. package/dist/tools/core-read/query-fund-accounts.d.ts +2 -0
  264. package/dist/tools/core-read/query-fund-accounts.js +140 -0
  265. package/dist/tools/core-read/query-fund-accounts.js.map +1 -0
  266. package/dist/tools/core-read/query-fund-balances.d.ts +2 -0
  267. package/dist/tools/core-read/query-fund-balances.js +150 -0
  268. package/dist/tools/core-read/query-fund-balances.js.map +1 -0
  269. package/dist/tools/core-read/query-journals.d.ts +2 -0
  270. package/dist/tools/core-read/query-journals.js +277 -0
  271. package/dist/tools/core-read/query-journals.js.map +1 -0
  272. package/dist/tools/core-read/query-master-data.d.ts +2 -0
  273. package/dist/tools/core-read/query-master-data.js +363 -0
  274. package/dist/tools/core-read/query-master-data.js.map +1 -0
  275. package/dist/tools/core-read/query-pnl.d.ts +2 -0
  276. package/dist/tools/core-read/query-pnl.js +244 -0
  277. package/dist/tools/core-read/query-pnl.js.map +1 -0
  278. package/dist/tools/core-read/query-reference-data.d.ts +2 -0
  279. package/dist/tools/core-read/query-reference-data.js +293 -0
  280. package/dist/tools/core-read/query-reference-data.js.map +1 -0
  281. package/dist/tools/core-read/query-transactions.d.ts +2 -0
  282. package/dist/tools/core-read/query-transactions.js +58 -0
  283. package/dist/tools/core-read/query-transactions.js.map +1 -0
  284. package/dist/tools/create-tools.d.ts +3 -0
  285. package/dist/tools/create-tools.js +88 -0
  286. package/dist/tools/create-tools.js.map +1 -0
  287. package/dist/tools/extended/asset-operation-tools.d.ts +9 -0
  288. package/dist/tools/extended/asset-operation-tools.js +419 -0
  289. package/dist/tools/extended/asset-operation-tools.js.map +1 -0
  290. package/dist/tools/extended/automation-tools.d.ts +7 -0
  291. package/dist/tools/extended/automation-tools.js +333 -0
  292. package/dist/tools/extended/automation-tools.js.map +1 -0
  293. package/dist/tools/extended/configuration-tools.d.ts +14 -0
  294. package/dist/tools/extended/configuration-tools.js +871 -0
  295. package/dist/tools/extended/configuration-tools.js.map +1 -0
  296. package/dist/tools/extended/period-end-tools.d.ts +11 -0
  297. package/dist/tools/extended/period-end-tools.js +480 -0
  298. package/dist/tools/extended/period-end-tools.js.map +1 -0
  299. package/dist/tools/extended/query-output.d.ts +2589 -0
  300. package/dist/tools/extended/query-output.js +610 -0
  301. package/dist/tools/extended/query-output.js.map +1 -0
  302. package/dist/tools/extended/tool-support.d.ts +56 -0
  303. package/dist/tools/extended/tool-support.js +198 -0
  304. package/dist/tools/extended/tool-support.js.map +1 -0
  305. package/dist/tools/extended/workflow-tools.d.ts +10 -0
  306. package/dist/tools/extended/workflow-tools.js +678 -0
  307. package/dist/tools/extended/workflow-tools.js.map +1 -0
  308. package/dist/tools/fnd-import/execute-import.d.ts +2 -0
  309. package/dist/tools/fnd-import/execute-import.js +201 -0
  310. package/dist/tools/fnd-import/execute-import.js.map +1 -0
  311. package/dist/tools/fnd-import/get-import-template.d.ts +2 -0
  312. package/dist/tools/fnd-import/get-import-template.js +66 -0
  313. package/dist/tools/fnd-import/get-import-template.js.map +1 -0
  314. package/dist/tools/fnd-import/get-job-status.d.ts +8 -0
  315. package/dist/tools/fnd-import/get-job-status.js +201 -0
  316. package/dist/tools/fnd-import/get-job-status.js.map +1 -0
  317. package/dist/tools/fnd-import/prepare-import.d.ts +31 -0
  318. package/dist/tools/fnd-import/prepare-import.js +214 -0
  319. package/dist/tools/fnd-import/prepare-import.js.map +1 -0
  320. package/dist/tools/fnd-import/public-import-result.d.ts +18 -0
  321. package/dist/tools/fnd-import/public-import-result.js +35 -0
  322. package/dist/tools/fnd-import/public-import-result.js.map +1 -0
  323. package/dist/tools/tool-definition.d.ts +45 -0
  324. package/dist/tools/tool-definition.js +11 -0
  325. package/dist/tools/tool-definition.js.map +1 -0
  326. package/dist/tools/tool-handler.d.ts +27 -0
  327. package/dist/tools/tool-handler.js +196 -0
  328. package/dist/tools/tool-handler.js.map +1 -0
  329. package/dist/tools/transaction-item.d.ts +225 -0
  330. package/dist/tools/transaction-item.js +109 -0
  331. package/dist/tools/transaction-item.js.map +1 -0
  332. package/dist/transport/draining-transport.d.ts +14 -0
  333. package/dist/transport/draining-transport.js +36 -0
  334. package/dist/transport/draining-transport.js.map +1 -0
  335. package/dist/transport/stdio.d.ts +2 -0
  336. package/dist/transport/stdio.js +5 -0
  337. package/dist/transport/stdio.js.map +1 -0
  338. package/dist/version.d.ts +2 -0
  339. package/dist/version.js +3 -0
  340. package/dist/version.js.map +1 -0
  341. package/package.json +49 -0
@@ -0,0 +1,2589 @@
1
+ import { type ExtendedQueryCapabilityId } from '../../capabilities/definitions/extended-operation-contracts.js';
2
+ import type { ToolContext } from '../tool-definition.js';
3
+ export declare function periodEndQueryOutput(options: {
4
+ view: 'list' | 'detail';
5
+ raw: unknown;
6
+ context: ToolContext;
7
+ capabilityId: 'suite.acct.closing.list' | 'suite.acct.closing.detail';
8
+ }): {
9
+ warnings: string[];
10
+ trace_id: string;
11
+ source_refs: {
12
+ service: "base" | "suite" | "mcp";
13
+ operation: string;
14
+ }[];
15
+ page?: unknown;
16
+ ok: true;
17
+ data: {
18
+ view: "list";
19
+ items: {
20
+ id: string;
21
+ period_name: string;
22
+ org_id: string | null;
23
+ org_name: string | null;
24
+ ledger_id: string | null;
25
+ ledger_code: string | null;
26
+ ledger_name: string | null;
27
+ parent_closing_id: string | null;
28
+ closing_status: string | null;
29
+ revaluation_status: string | null;
30
+ reconcile_status: string | null;
31
+ import_status: string | null;
32
+ general_ledger_changed: boolean | null;
33
+ revaluation_at: string | null;
34
+ closed_at: string | null;
35
+ version: number | null;
36
+ created_at: string | null;
37
+ updated_at: string | null;
38
+ }[];
39
+ } | {
40
+ view: "detail";
41
+ items: {
42
+ id: string;
43
+ period_name: string;
44
+ org_id: string | null;
45
+ org_name: string | null;
46
+ ledger_id: string | null;
47
+ ledger_code: string | null;
48
+ ledger_name: string | null;
49
+ parent_closing_id: string | null;
50
+ closing_status: string | null;
51
+ revaluation_status: string | null;
52
+ reconcile_status: string | null;
53
+ import_status: string | null;
54
+ general_ledger_changed: boolean | null;
55
+ revaluation_at: string | null;
56
+ closed_at: string | null;
57
+ version: number | null;
58
+ created_at: string | null;
59
+ updated_at: string | null;
60
+ }[];
61
+ };
62
+ } | {
63
+ warnings: string[];
64
+ trace_id: string;
65
+ source_refs: {
66
+ service: "base" | "suite" | "mcp";
67
+ operation: string;
68
+ }[];
69
+ page?: unknown;
70
+ ok: true;
71
+ data: {
72
+ view: "list";
73
+ items: {
74
+ id: string;
75
+ period_name: string;
76
+ org_id: string | null;
77
+ org_name: string | null;
78
+ ledger_id: string | null;
79
+ ledger_code: string | null;
80
+ ledger_name: string | null;
81
+ parent_closing_id: string | null;
82
+ closing_status: string | null;
83
+ revaluation_status: string | null;
84
+ reconcile_status: string | null;
85
+ import_status: string | null;
86
+ general_ledger_changed: boolean | null;
87
+ revaluation_at: string | null;
88
+ closed_at: string | null;
89
+ version: number | null;
90
+ created_at: string | null;
91
+ updated_at: string | null;
92
+ }[];
93
+ } | {
94
+ view: "detail";
95
+ items: {
96
+ id: string;
97
+ period_name: string;
98
+ org_id: string | null;
99
+ org_name: string | null;
100
+ ledger_id: string | null;
101
+ ledger_code: string | null;
102
+ ledger_name: string | null;
103
+ parent_closing_id: string | null;
104
+ closing_status: string | null;
105
+ revaluation_status: string | null;
106
+ reconcile_status: string | null;
107
+ import_status: string | null;
108
+ general_ledger_changed: boolean | null;
109
+ revaluation_at: string | null;
110
+ closed_at: string | null;
111
+ version: number | null;
112
+ created_at: string | null;
113
+ updated_at: string | null;
114
+ }[];
115
+ };
116
+ } | {
117
+ warnings: string[];
118
+ trace_id: string;
119
+ source_refs: {
120
+ service: "base" | "suite" | "mcp";
121
+ operation: string;
122
+ }[];
123
+ page: {
124
+ number: number;
125
+ size: number;
126
+ total_items: number;
127
+ has_more: boolean;
128
+ } | undefined;
129
+ ok: true;
130
+ data: {
131
+ view: "list";
132
+ items: {
133
+ id: string;
134
+ period_name: string;
135
+ org_id: string | null;
136
+ org_name: string | null;
137
+ ledger_id: string | null;
138
+ ledger_code: string | null;
139
+ ledger_name: string | null;
140
+ parent_closing_id: string | null;
141
+ closing_status: string | null;
142
+ revaluation_status: string | null;
143
+ reconcile_status: string | null;
144
+ import_status: string | null;
145
+ general_ledger_changed: boolean | null;
146
+ revaluation_at: string | null;
147
+ closed_at: string | null;
148
+ version: number | null;
149
+ created_at: string | null;
150
+ updated_at: string | null;
151
+ }[];
152
+ } | {
153
+ view: "detail";
154
+ items: {
155
+ id: string;
156
+ period_name: string;
157
+ org_id: string | null;
158
+ org_name: string | null;
159
+ ledger_id: string | null;
160
+ ledger_code: string | null;
161
+ ledger_name: string | null;
162
+ parent_closing_id: string | null;
163
+ closing_status: string | null;
164
+ revaluation_status: string | null;
165
+ reconcile_status: string | null;
166
+ import_status: string | null;
167
+ general_ledger_changed: boolean | null;
168
+ revaluation_at: string | null;
169
+ closed_at: string | null;
170
+ version: number | null;
171
+ created_at: string | null;
172
+ updated_at: string | null;
173
+ }[];
174
+ };
175
+ } | {
176
+ warnings: string[];
177
+ trace_id: string;
178
+ source_refs: {
179
+ service: "base" | "suite" | "mcp";
180
+ operation: string;
181
+ }[];
182
+ page: {
183
+ number: number;
184
+ size: number;
185
+ total_items: number;
186
+ has_more: boolean;
187
+ } | undefined;
188
+ ok: true;
189
+ data: {
190
+ view: "list";
191
+ items: {
192
+ id: string;
193
+ period_name: string;
194
+ org_id: string | null;
195
+ org_name: string | null;
196
+ ledger_id: string | null;
197
+ ledger_code: string | null;
198
+ ledger_name: string | null;
199
+ parent_closing_id: string | null;
200
+ closing_status: string | null;
201
+ revaluation_status: string | null;
202
+ reconcile_status: string | null;
203
+ import_status: string | null;
204
+ general_ledger_changed: boolean | null;
205
+ revaluation_at: string | null;
206
+ closed_at: string | null;
207
+ version: number | null;
208
+ created_at: string | null;
209
+ updated_at: string | null;
210
+ }[];
211
+ } | {
212
+ view: "detail";
213
+ items: {
214
+ id: string;
215
+ period_name: string;
216
+ org_id: string | null;
217
+ org_name: string | null;
218
+ ledger_id: string | null;
219
+ ledger_code: string | null;
220
+ ledger_name: string | null;
221
+ parent_closing_id: string | null;
222
+ closing_status: string | null;
223
+ revaluation_status: string | null;
224
+ reconcile_status: string | null;
225
+ import_status: string | null;
226
+ general_ledger_changed: boolean | null;
227
+ revaluation_at: string | null;
228
+ closed_at: string | null;
229
+ version: number | null;
230
+ created_at: string | null;
231
+ updated_at: string | null;
232
+ }[];
233
+ };
234
+ };
235
+ export declare function accountingEventsQueryOutput(options: {
236
+ view: 'list' | 'lines' | 'check';
237
+ raw: unknown;
238
+ context: ToolContext;
239
+ capabilityId: 'suite.rul.events.list' | 'suite.rul.events.lines' | 'suite.rul.events.check';
240
+ }): {
241
+ warnings: string[];
242
+ trace_id: string;
243
+ source_refs: {
244
+ service: "base" | "suite" | "mcp";
245
+ operation: string;
246
+ }[];
247
+ page?: unknown;
248
+ ok: true;
249
+ data: {
250
+ view: "list";
251
+ items: {
252
+ item_type: "event" | "source_line";
253
+ id: string;
254
+ entry_source: string | null;
255
+ event_no: string | null;
256
+ event_time: string | null;
257
+ event_type: string | null;
258
+ business_type: string | null;
259
+ strategy_key: string | null;
260
+ description: string | null;
261
+ is_backfill: boolean | null;
262
+ transaction_count: number | null;
263
+ crypto_count: number | null;
264
+ fiat_count: number | null;
265
+ security_count: number | null;
266
+ derivative_count: number | null;
267
+ receivable_count: number | null;
268
+ payable_count: number | null;
269
+ source_type: string | null;
270
+ system_type: string | null;
271
+ flow_type: string | null;
272
+ business_dimensions: {
273
+ slot: string;
274
+ name: string | null;
275
+ value: string;
276
+ }[];
277
+ auxiliary_dimensions: {
278
+ slot: string;
279
+ name: string | null;
280
+ value: string;
281
+ }[];
282
+ from_party: string | null;
283
+ to_party: string | null;
284
+ business_date: string | null;
285
+ main_account_id: string | null;
286
+ main_account_name: string | null;
287
+ sub_account_id: string | null;
288
+ symbol: string | null;
289
+ quantity: string | null;
290
+ base_rate: string | null;
291
+ base_amount: string | null;
292
+ base_currency: string | null;
293
+ ledger_id: string | null;
294
+ coa_code: string | null;
295
+ reference: string | null;
296
+ version: number | null;
297
+ resolved: boolean | null;
298
+ }[];
299
+ check: null;
300
+ } | {
301
+ view: "lines";
302
+ items: {
303
+ item_type: "event" | "source_line";
304
+ id: string;
305
+ entry_source: string | null;
306
+ event_no: string | null;
307
+ event_time: string | null;
308
+ event_type: string | null;
309
+ business_type: string | null;
310
+ strategy_key: string | null;
311
+ description: string | null;
312
+ is_backfill: boolean | null;
313
+ transaction_count: number | null;
314
+ crypto_count: number | null;
315
+ fiat_count: number | null;
316
+ security_count: number | null;
317
+ derivative_count: number | null;
318
+ receivable_count: number | null;
319
+ payable_count: number | null;
320
+ source_type: string | null;
321
+ system_type: string | null;
322
+ flow_type: string | null;
323
+ business_dimensions: {
324
+ slot: string;
325
+ name: string | null;
326
+ value: string;
327
+ }[];
328
+ auxiliary_dimensions: {
329
+ slot: string;
330
+ name: string | null;
331
+ value: string;
332
+ }[];
333
+ from_party: string | null;
334
+ to_party: string | null;
335
+ business_date: string | null;
336
+ main_account_id: string | null;
337
+ main_account_name: string | null;
338
+ sub_account_id: string | null;
339
+ symbol: string | null;
340
+ quantity: string | null;
341
+ base_rate: string | null;
342
+ base_amount: string | null;
343
+ base_currency: string | null;
344
+ ledger_id: string | null;
345
+ coa_code: string | null;
346
+ reference: string | null;
347
+ version: number | null;
348
+ resolved: boolean | null;
349
+ }[];
350
+ check: null;
351
+ } | {
352
+ view: "check";
353
+ items: {
354
+ item_type: "event" | "source_line";
355
+ id: string;
356
+ entry_source: string | null;
357
+ event_no: string | null;
358
+ event_time: string | null;
359
+ event_type: string | null;
360
+ business_type: string | null;
361
+ strategy_key: string | null;
362
+ description: string | null;
363
+ is_backfill: boolean | null;
364
+ transaction_count: number | null;
365
+ crypto_count: number | null;
366
+ fiat_count: number | null;
367
+ security_count: number | null;
368
+ derivative_count: number | null;
369
+ receivable_count: number | null;
370
+ payable_count: number | null;
371
+ source_type: string | null;
372
+ system_type: string | null;
373
+ flow_type: string | null;
374
+ business_dimensions: {
375
+ slot: string;
376
+ name: string | null;
377
+ value: string;
378
+ }[];
379
+ auxiliary_dimensions: {
380
+ slot: string;
381
+ name: string | null;
382
+ value: string;
383
+ }[];
384
+ from_party: string | null;
385
+ to_party: string | null;
386
+ business_date: string | null;
387
+ main_account_id: string | null;
388
+ main_account_name: string | null;
389
+ sub_account_id: string | null;
390
+ symbol: string | null;
391
+ quantity: string | null;
392
+ base_rate: string | null;
393
+ base_amount: string | null;
394
+ base_currency: string | null;
395
+ ledger_id: string | null;
396
+ coa_code: string | null;
397
+ reference: string | null;
398
+ version: number | null;
399
+ resolved: boolean | null;
400
+ }[];
401
+ check: {
402
+ warning_count: number;
403
+ blocking_count: number;
404
+ warning_groups: {
405
+ source_type: string | null;
406
+ line_id: string | null;
407
+ ledger_id: string | null;
408
+ event_count: number;
409
+ event_ids: string[];
410
+ }[];
411
+ blocking_rows: {
412
+ source_type: string | null;
413
+ line_id: string | null;
414
+ ledger_id: string | null;
415
+ }[];
416
+ };
417
+ };
418
+ } | {
419
+ warnings: string[];
420
+ trace_id: string;
421
+ source_refs: {
422
+ service: "base" | "suite" | "mcp";
423
+ operation: string;
424
+ }[];
425
+ page?: unknown;
426
+ ok: true;
427
+ data: {
428
+ view: "list";
429
+ items: {
430
+ item_type: "event" | "source_line";
431
+ id: string;
432
+ entry_source: string | null;
433
+ event_no: string | null;
434
+ event_time: string | null;
435
+ event_type: string | null;
436
+ business_type: string | null;
437
+ strategy_key: string | null;
438
+ description: string | null;
439
+ is_backfill: boolean | null;
440
+ transaction_count: number | null;
441
+ crypto_count: number | null;
442
+ fiat_count: number | null;
443
+ security_count: number | null;
444
+ derivative_count: number | null;
445
+ receivable_count: number | null;
446
+ payable_count: number | null;
447
+ source_type: string | null;
448
+ system_type: string | null;
449
+ flow_type: string | null;
450
+ business_dimensions: {
451
+ slot: string;
452
+ name: string | null;
453
+ value: string;
454
+ }[];
455
+ auxiliary_dimensions: {
456
+ slot: string;
457
+ name: string | null;
458
+ value: string;
459
+ }[];
460
+ from_party: string | null;
461
+ to_party: string | null;
462
+ business_date: string | null;
463
+ main_account_id: string | null;
464
+ main_account_name: string | null;
465
+ sub_account_id: string | null;
466
+ symbol: string | null;
467
+ quantity: string | null;
468
+ base_rate: string | null;
469
+ base_amount: string | null;
470
+ base_currency: string | null;
471
+ ledger_id: string | null;
472
+ coa_code: string | null;
473
+ reference: string | null;
474
+ version: number | null;
475
+ resolved: boolean | null;
476
+ }[];
477
+ check: null;
478
+ } | {
479
+ view: "lines";
480
+ items: {
481
+ item_type: "event" | "source_line";
482
+ id: string;
483
+ entry_source: string | null;
484
+ event_no: string | null;
485
+ event_time: string | null;
486
+ event_type: string | null;
487
+ business_type: string | null;
488
+ strategy_key: string | null;
489
+ description: string | null;
490
+ is_backfill: boolean | null;
491
+ transaction_count: number | null;
492
+ crypto_count: number | null;
493
+ fiat_count: number | null;
494
+ security_count: number | null;
495
+ derivative_count: number | null;
496
+ receivable_count: number | null;
497
+ payable_count: number | null;
498
+ source_type: string | null;
499
+ system_type: string | null;
500
+ flow_type: string | null;
501
+ business_dimensions: {
502
+ slot: string;
503
+ name: string | null;
504
+ value: string;
505
+ }[];
506
+ auxiliary_dimensions: {
507
+ slot: string;
508
+ name: string | null;
509
+ value: string;
510
+ }[];
511
+ from_party: string | null;
512
+ to_party: string | null;
513
+ business_date: string | null;
514
+ main_account_id: string | null;
515
+ main_account_name: string | null;
516
+ sub_account_id: string | null;
517
+ symbol: string | null;
518
+ quantity: string | null;
519
+ base_rate: string | null;
520
+ base_amount: string | null;
521
+ base_currency: string | null;
522
+ ledger_id: string | null;
523
+ coa_code: string | null;
524
+ reference: string | null;
525
+ version: number | null;
526
+ resolved: boolean | null;
527
+ }[];
528
+ check: null;
529
+ } | {
530
+ view: "check";
531
+ items: {
532
+ item_type: "event" | "source_line";
533
+ id: string;
534
+ entry_source: string | null;
535
+ event_no: string | null;
536
+ event_time: string | null;
537
+ event_type: string | null;
538
+ business_type: string | null;
539
+ strategy_key: string | null;
540
+ description: string | null;
541
+ is_backfill: boolean | null;
542
+ transaction_count: number | null;
543
+ crypto_count: number | null;
544
+ fiat_count: number | null;
545
+ security_count: number | null;
546
+ derivative_count: number | null;
547
+ receivable_count: number | null;
548
+ payable_count: number | null;
549
+ source_type: string | null;
550
+ system_type: string | null;
551
+ flow_type: string | null;
552
+ business_dimensions: {
553
+ slot: string;
554
+ name: string | null;
555
+ value: string;
556
+ }[];
557
+ auxiliary_dimensions: {
558
+ slot: string;
559
+ name: string | null;
560
+ value: string;
561
+ }[];
562
+ from_party: string | null;
563
+ to_party: string | null;
564
+ business_date: string | null;
565
+ main_account_id: string | null;
566
+ main_account_name: string | null;
567
+ sub_account_id: string | null;
568
+ symbol: string | null;
569
+ quantity: string | null;
570
+ base_rate: string | null;
571
+ base_amount: string | null;
572
+ base_currency: string | null;
573
+ ledger_id: string | null;
574
+ coa_code: string | null;
575
+ reference: string | null;
576
+ version: number | null;
577
+ resolved: boolean | null;
578
+ }[];
579
+ check: {
580
+ warning_count: number;
581
+ blocking_count: number;
582
+ warning_groups: {
583
+ source_type: string | null;
584
+ line_id: string | null;
585
+ ledger_id: string | null;
586
+ event_count: number;
587
+ event_ids: string[];
588
+ }[];
589
+ blocking_rows: {
590
+ source_type: string | null;
591
+ line_id: string | null;
592
+ ledger_id: string | null;
593
+ }[];
594
+ };
595
+ };
596
+ } | {
597
+ warnings: string[];
598
+ trace_id: string;
599
+ source_refs: {
600
+ service: "base" | "suite" | "mcp";
601
+ operation: string;
602
+ }[];
603
+ page: {
604
+ number: number;
605
+ size: number;
606
+ total_items: number;
607
+ has_more: boolean;
608
+ } | undefined;
609
+ ok: true;
610
+ data: {
611
+ view: "list";
612
+ items: {
613
+ item_type: "event" | "source_line";
614
+ id: string;
615
+ entry_source: string | null;
616
+ event_no: string | null;
617
+ event_time: string | null;
618
+ event_type: string | null;
619
+ business_type: string | null;
620
+ strategy_key: string | null;
621
+ description: string | null;
622
+ is_backfill: boolean | null;
623
+ transaction_count: number | null;
624
+ crypto_count: number | null;
625
+ fiat_count: number | null;
626
+ security_count: number | null;
627
+ derivative_count: number | null;
628
+ receivable_count: number | null;
629
+ payable_count: number | null;
630
+ source_type: string | null;
631
+ system_type: string | null;
632
+ flow_type: string | null;
633
+ business_dimensions: {
634
+ slot: string;
635
+ name: string | null;
636
+ value: string;
637
+ }[];
638
+ auxiliary_dimensions: {
639
+ slot: string;
640
+ name: string | null;
641
+ value: string;
642
+ }[];
643
+ from_party: string | null;
644
+ to_party: string | null;
645
+ business_date: string | null;
646
+ main_account_id: string | null;
647
+ main_account_name: string | null;
648
+ sub_account_id: string | null;
649
+ symbol: string | null;
650
+ quantity: string | null;
651
+ base_rate: string | null;
652
+ base_amount: string | null;
653
+ base_currency: string | null;
654
+ ledger_id: string | null;
655
+ coa_code: string | null;
656
+ reference: string | null;
657
+ version: number | null;
658
+ resolved: boolean | null;
659
+ }[];
660
+ check: null;
661
+ } | {
662
+ view: "lines";
663
+ items: {
664
+ item_type: "event" | "source_line";
665
+ id: string;
666
+ entry_source: string | null;
667
+ event_no: string | null;
668
+ event_time: string | null;
669
+ event_type: string | null;
670
+ business_type: string | null;
671
+ strategy_key: string | null;
672
+ description: string | null;
673
+ is_backfill: boolean | null;
674
+ transaction_count: number | null;
675
+ crypto_count: number | null;
676
+ fiat_count: number | null;
677
+ security_count: number | null;
678
+ derivative_count: number | null;
679
+ receivable_count: number | null;
680
+ payable_count: number | null;
681
+ source_type: string | null;
682
+ system_type: string | null;
683
+ flow_type: string | null;
684
+ business_dimensions: {
685
+ slot: string;
686
+ name: string | null;
687
+ value: string;
688
+ }[];
689
+ auxiliary_dimensions: {
690
+ slot: string;
691
+ name: string | null;
692
+ value: string;
693
+ }[];
694
+ from_party: string | null;
695
+ to_party: string | null;
696
+ business_date: string | null;
697
+ main_account_id: string | null;
698
+ main_account_name: string | null;
699
+ sub_account_id: string | null;
700
+ symbol: string | null;
701
+ quantity: string | null;
702
+ base_rate: string | null;
703
+ base_amount: string | null;
704
+ base_currency: string | null;
705
+ ledger_id: string | null;
706
+ coa_code: string | null;
707
+ reference: string | null;
708
+ version: number | null;
709
+ resolved: boolean | null;
710
+ }[];
711
+ check: null;
712
+ } | {
713
+ view: "check";
714
+ items: {
715
+ item_type: "event" | "source_line";
716
+ id: string;
717
+ entry_source: string | null;
718
+ event_no: string | null;
719
+ event_time: string | null;
720
+ event_type: string | null;
721
+ business_type: string | null;
722
+ strategy_key: string | null;
723
+ description: string | null;
724
+ is_backfill: boolean | null;
725
+ transaction_count: number | null;
726
+ crypto_count: number | null;
727
+ fiat_count: number | null;
728
+ security_count: number | null;
729
+ derivative_count: number | null;
730
+ receivable_count: number | null;
731
+ payable_count: number | null;
732
+ source_type: string | null;
733
+ system_type: string | null;
734
+ flow_type: string | null;
735
+ business_dimensions: {
736
+ slot: string;
737
+ name: string | null;
738
+ value: string;
739
+ }[];
740
+ auxiliary_dimensions: {
741
+ slot: string;
742
+ name: string | null;
743
+ value: string;
744
+ }[];
745
+ from_party: string | null;
746
+ to_party: string | null;
747
+ business_date: string | null;
748
+ main_account_id: string | null;
749
+ main_account_name: string | null;
750
+ sub_account_id: string | null;
751
+ symbol: string | null;
752
+ quantity: string | null;
753
+ base_rate: string | null;
754
+ base_amount: string | null;
755
+ base_currency: string | null;
756
+ ledger_id: string | null;
757
+ coa_code: string | null;
758
+ reference: string | null;
759
+ version: number | null;
760
+ resolved: boolean | null;
761
+ }[];
762
+ check: {
763
+ warning_count: number;
764
+ blocking_count: number;
765
+ warning_groups: {
766
+ source_type: string | null;
767
+ line_id: string | null;
768
+ ledger_id: string | null;
769
+ event_count: number;
770
+ event_ids: string[];
771
+ }[];
772
+ blocking_rows: {
773
+ source_type: string | null;
774
+ line_id: string | null;
775
+ ledger_id: string | null;
776
+ }[];
777
+ };
778
+ };
779
+ } | {
780
+ warnings: string[];
781
+ trace_id: string;
782
+ source_refs: {
783
+ service: "base" | "suite" | "mcp";
784
+ operation: string;
785
+ }[];
786
+ page: {
787
+ number: number;
788
+ size: number;
789
+ total_items: number;
790
+ has_more: boolean;
791
+ } | undefined;
792
+ ok: true;
793
+ data: {
794
+ view: "list";
795
+ items: {
796
+ item_type: "event" | "source_line";
797
+ id: string;
798
+ entry_source: string | null;
799
+ event_no: string | null;
800
+ event_time: string | null;
801
+ event_type: string | null;
802
+ business_type: string | null;
803
+ strategy_key: string | null;
804
+ description: string | null;
805
+ is_backfill: boolean | null;
806
+ transaction_count: number | null;
807
+ crypto_count: number | null;
808
+ fiat_count: number | null;
809
+ security_count: number | null;
810
+ derivative_count: number | null;
811
+ receivable_count: number | null;
812
+ payable_count: number | null;
813
+ source_type: string | null;
814
+ system_type: string | null;
815
+ flow_type: string | null;
816
+ business_dimensions: {
817
+ slot: string;
818
+ name: string | null;
819
+ value: string;
820
+ }[];
821
+ auxiliary_dimensions: {
822
+ slot: string;
823
+ name: string | null;
824
+ value: string;
825
+ }[];
826
+ from_party: string | null;
827
+ to_party: string | null;
828
+ business_date: string | null;
829
+ main_account_id: string | null;
830
+ main_account_name: string | null;
831
+ sub_account_id: string | null;
832
+ symbol: string | null;
833
+ quantity: string | null;
834
+ base_rate: string | null;
835
+ base_amount: string | null;
836
+ base_currency: string | null;
837
+ ledger_id: string | null;
838
+ coa_code: string | null;
839
+ reference: string | null;
840
+ version: number | null;
841
+ resolved: boolean | null;
842
+ }[];
843
+ check: null;
844
+ } | {
845
+ view: "lines";
846
+ items: {
847
+ item_type: "event" | "source_line";
848
+ id: string;
849
+ entry_source: string | null;
850
+ event_no: string | null;
851
+ event_time: string | null;
852
+ event_type: string | null;
853
+ business_type: string | null;
854
+ strategy_key: string | null;
855
+ description: string | null;
856
+ is_backfill: boolean | null;
857
+ transaction_count: number | null;
858
+ crypto_count: number | null;
859
+ fiat_count: number | null;
860
+ security_count: number | null;
861
+ derivative_count: number | null;
862
+ receivable_count: number | null;
863
+ payable_count: number | null;
864
+ source_type: string | null;
865
+ system_type: string | null;
866
+ flow_type: string | null;
867
+ business_dimensions: {
868
+ slot: string;
869
+ name: string | null;
870
+ value: string;
871
+ }[];
872
+ auxiliary_dimensions: {
873
+ slot: string;
874
+ name: string | null;
875
+ value: string;
876
+ }[];
877
+ from_party: string | null;
878
+ to_party: string | null;
879
+ business_date: string | null;
880
+ main_account_id: string | null;
881
+ main_account_name: string | null;
882
+ sub_account_id: string | null;
883
+ symbol: string | null;
884
+ quantity: string | null;
885
+ base_rate: string | null;
886
+ base_amount: string | null;
887
+ base_currency: string | null;
888
+ ledger_id: string | null;
889
+ coa_code: string | null;
890
+ reference: string | null;
891
+ version: number | null;
892
+ resolved: boolean | null;
893
+ }[];
894
+ check: null;
895
+ } | {
896
+ view: "check";
897
+ items: {
898
+ item_type: "event" | "source_line";
899
+ id: string;
900
+ entry_source: string | null;
901
+ event_no: string | null;
902
+ event_time: string | null;
903
+ event_type: string | null;
904
+ business_type: string | null;
905
+ strategy_key: string | null;
906
+ description: string | null;
907
+ is_backfill: boolean | null;
908
+ transaction_count: number | null;
909
+ crypto_count: number | null;
910
+ fiat_count: number | null;
911
+ security_count: number | null;
912
+ derivative_count: number | null;
913
+ receivable_count: number | null;
914
+ payable_count: number | null;
915
+ source_type: string | null;
916
+ system_type: string | null;
917
+ flow_type: string | null;
918
+ business_dimensions: {
919
+ slot: string;
920
+ name: string | null;
921
+ value: string;
922
+ }[];
923
+ auxiliary_dimensions: {
924
+ slot: string;
925
+ name: string | null;
926
+ value: string;
927
+ }[];
928
+ from_party: string | null;
929
+ to_party: string | null;
930
+ business_date: string | null;
931
+ main_account_id: string | null;
932
+ main_account_name: string | null;
933
+ sub_account_id: string | null;
934
+ symbol: string | null;
935
+ quantity: string | null;
936
+ base_rate: string | null;
937
+ base_amount: string | null;
938
+ base_currency: string | null;
939
+ ledger_id: string | null;
940
+ coa_code: string | null;
941
+ reference: string | null;
942
+ version: number | null;
943
+ resolved: boolean | null;
944
+ }[];
945
+ check: {
946
+ warning_count: number;
947
+ blocking_count: number;
948
+ warning_groups: {
949
+ source_type: string | null;
950
+ line_id: string | null;
951
+ ledger_id: string | null;
952
+ event_count: number;
953
+ event_ids: string[];
954
+ }[];
955
+ blocking_rows: {
956
+ source_type: string | null;
957
+ line_id: string | null;
958
+ ledger_id: string | null;
959
+ }[];
960
+ };
961
+ };
962
+ };
963
+ type MappingObjectType = 'attribute_definition' | 'attribute_fill' | 'source_handler';
964
+ type MappingCapabilityId = Extract<ExtendedQueryCapabilityId, `suite.config.map_${string}`>;
965
+ export declare function mappingConfigQueryOutput(options: {
966
+ view: 'list' | 'detail';
967
+ objectType: MappingObjectType;
968
+ raw: unknown;
969
+ context: ToolContext;
970
+ capabilityId: MappingCapabilityId;
971
+ }): {
972
+ warnings: string[];
973
+ trace_id: string;
974
+ source_refs: {
975
+ service: "base" | "suite" | "mcp";
976
+ operation: string;
977
+ }[];
978
+ page?: unknown;
979
+ ok: true;
980
+ data: {
981
+ view: "list";
982
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
983
+ items: {
984
+ id: string;
985
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
986
+ source_key: string | null;
987
+ business_type_number: number | null;
988
+ attribute_name: string | null;
989
+ value_source: string | null;
990
+ source_category: string | null;
991
+ source_code: string | null;
992
+ line_type: string | null;
993
+ system_type: string | null;
994
+ target_field: string | null;
995
+ source_expression: string | null;
996
+ note: string | null;
997
+ target_line_types: string | null;
998
+ priority: number | null;
999
+ status: string | null;
1000
+ description: string | null;
1001
+ is_system: boolean | null;
1002
+ version: number | null;
1003
+ created_at: string | null;
1004
+ updated_at: string | null;
1005
+ }[];
1006
+ } | {
1007
+ view: "detail";
1008
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1009
+ items: {
1010
+ id: string;
1011
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1012
+ source_key: string | null;
1013
+ business_type_number: number | null;
1014
+ attribute_name: string | null;
1015
+ value_source: string | null;
1016
+ source_category: string | null;
1017
+ source_code: string | null;
1018
+ line_type: string | null;
1019
+ system_type: string | null;
1020
+ target_field: string | null;
1021
+ source_expression: string | null;
1022
+ note: string | null;
1023
+ target_line_types: string | null;
1024
+ priority: number | null;
1025
+ status: string | null;
1026
+ description: string | null;
1027
+ is_system: boolean | null;
1028
+ version: number | null;
1029
+ created_at: string | null;
1030
+ updated_at: string | null;
1031
+ }[];
1032
+ };
1033
+ } | {
1034
+ warnings: string[];
1035
+ trace_id: string;
1036
+ source_refs: {
1037
+ service: "base" | "suite" | "mcp";
1038
+ operation: string;
1039
+ }[];
1040
+ page?: unknown;
1041
+ ok: true;
1042
+ data: {
1043
+ view: "list";
1044
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1045
+ items: {
1046
+ id: string;
1047
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1048
+ source_key: string | null;
1049
+ business_type_number: number | null;
1050
+ attribute_name: string | null;
1051
+ value_source: string | null;
1052
+ source_category: string | null;
1053
+ source_code: string | null;
1054
+ line_type: string | null;
1055
+ system_type: string | null;
1056
+ target_field: string | null;
1057
+ source_expression: string | null;
1058
+ note: string | null;
1059
+ target_line_types: string | null;
1060
+ priority: number | null;
1061
+ status: string | null;
1062
+ description: string | null;
1063
+ is_system: boolean | null;
1064
+ version: number | null;
1065
+ created_at: string | null;
1066
+ updated_at: string | null;
1067
+ }[];
1068
+ } | {
1069
+ view: "detail";
1070
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1071
+ items: {
1072
+ id: string;
1073
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1074
+ source_key: string | null;
1075
+ business_type_number: number | null;
1076
+ attribute_name: string | null;
1077
+ value_source: string | null;
1078
+ source_category: string | null;
1079
+ source_code: string | null;
1080
+ line_type: string | null;
1081
+ system_type: string | null;
1082
+ target_field: string | null;
1083
+ source_expression: string | null;
1084
+ note: string | null;
1085
+ target_line_types: string | null;
1086
+ priority: number | null;
1087
+ status: string | null;
1088
+ description: string | null;
1089
+ is_system: boolean | null;
1090
+ version: number | null;
1091
+ created_at: string | null;
1092
+ updated_at: string | null;
1093
+ }[];
1094
+ };
1095
+ } | {
1096
+ warnings: string[];
1097
+ trace_id: string;
1098
+ source_refs: {
1099
+ service: "base" | "suite" | "mcp";
1100
+ operation: string;
1101
+ }[];
1102
+ page: {
1103
+ number: number;
1104
+ size: number;
1105
+ total_items: number;
1106
+ has_more: boolean;
1107
+ } | undefined;
1108
+ ok: true;
1109
+ data: {
1110
+ view: "list";
1111
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1112
+ items: {
1113
+ id: string;
1114
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1115
+ source_key: string | null;
1116
+ business_type_number: number | null;
1117
+ attribute_name: string | null;
1118
+ value_source: string | null;
1119
+ source_category: string | null;
1120
+ source_code: string | null;
1121
+ line_type: string | null;
1122
+ system_type: string | null;
1123
+ target_field: string | null;
1124
+ source_expression: string | null;
1125
+ note: string | null;
1126
+ target_line_types: string | null;
1127
+ priority: number | null;
1128
+ status: string | null;
1129
+ description: string | null;
1130
+ is_system: boolean | null;
1131
+ version: number | null;
1132
+ created_at: string | null;
1133
+ updated_at: string | null;
1134
+ }[];
1135
+ } | {
1136
+ view: "detail";
1137
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1138
+ items: {
1139
+ id: string;
1140
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1141
+ source_key: string | null;
1142
+ business_type_number: number | null;
1143
+ attribute_name: string | null;
1144
+ value_source: string | null;
1145
+ source_category: string | null;
1146
+ source_code: string | null;
1147
+ line_type: string | null;
1148
+ system_type: string | null;
1149
+ target_field: string | null;
1150
+ source_expression: string | null;
1151
+ note: string | null;
1152
+ target_line_types: string | null;
1153
+ priority: number | null;
1154
+ status: string | null;
1155
+ description: string | null;
1156
+ is_system: boolean | null;
1157
+ version: number | null;
1158
+ created_at: string | null;
1159
+ updated_at: string | null;
1160
+ }[];
1161
+ };
1162
+ } | {
1163
+ warnings: string[];
1164
+ trace_id: string;
1165
+ source_refs: {
1166
+ service: "base" | "suite" | "mcp";
1167
+ operation: string;
1168
+ }[];
1169
+ page: {
1170
+ number: number;
1171
+ size: number;
1172
+ total_items: number;
1173
+ has_more: boolean;
1174
+ } | undefined;
1175
+ ok: true;
1176
+ data: {
1177
+ view: "list";
1178
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1179
+ items: {
1180
+ id: string;
1181
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1182
+ source_key: string | null;
1183
+ business_type_number: number | null;
1184
+ attribute_name: string | null;
1185
+ value_source: string | null;
1186
+ source_category: string | null;
1187
+ source_code: string | null;
1188
+ line_type: string | null;
1189
+ system_type: string | null;
1190
+ target_field: string | null;
1191
+ source_expression: string | null;
1192
+ note: string | null;
1193
+ target_line_types: string | null;
1194
+ priority: number | null;
1195
+ status: string | null;
1196
+ description: string | null;
1197
+ is_system: boolean | null;
1198
+ version: number | null;
1199
+ created_at: string | null;
1200
+ updated_at: string | null;
1201
+ }[];
1202
+ } | {
1203
+ view: "detail";
1204
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1205
+ items: {
1206
+ id: string;
1207
+ object_type: "attribute_definition" | "attribute_fill" | "source_handler";
1208
+ source_key: string | null;
1209
+ business_type_number: number | null;
1210
+ attribute_name: string | null;
1211
+ value_source: string | null;
1212
+ source_category: string | null;
1213
+ source_code: string | null;
1214
+ line_type: string | null;
1215
+ system_type: string | null;
1216
+ target_field: string | null;
1217
+ source_expression: string | null;
1218
+ note: string | null;
1219
+ target_line_types: string | null;
1220
+ priority: number | null;
1221
+ status: string | null;
1222
+ description: string | null;
1223
+ is_system: boolean | null;
1224
+ version: number | null;
1225
+ created_at: string | null;
1226
+ updated_at: string | null;
1227
+ }[];
1228
+ };
1229
+ };
1230
+ type RuleCapabilityId = 'suite.config.accounting_rule.list' | 'suite.config.accounting_rule.detail' | 'suite.config.precheck_rule.tree' | 'suite.config.precheck_rule.detail';
1231
+ export declare function accountingRulesQueryOutput(options: {
1232
+ view: 'list' | 'detail';
1233
+ objectType: 'rule_header' | 'precheck';
1234
+ raw: unknown;
1235
+ context: ToolContext;
1236
+ capabilityId: RuleCapabilityId;
1237
+ }): {
1238
+ warnings: string[];
1239
+ trace_id: string;
1240
+ source_refs: {
1241
+ service: "base" | "suite" | "mcp";
1242
+ operation: string;
1243
+ }[];
1244
+ page?: unknown;
1245
+ ok: true;
1246
+ data: {
1247
+ view: "list";
1248
+ object_type: "rule_header" | "precheck";
1249
+ items: {
1250
+ id: string;
1251
+ object_type: "rule_header" | "precheck";
1252
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1253
+ ledger_id: string | null;
1254
+ rule_code: string | null;
1255
+ rule_name: string | null;
1256
+ description: string | null;
1257
+ priority: number | null;
1258
+ effective_from: string | null;
1259
+ effective_to: string | null;
1260
+ enabled: boolean | null;
1261
+ match_event_type_operator: string | null;
1262
+ match_event_types: string[];
1263
+ match_strategy_operator: string | null;
1264
+ match_strategy_keys: string[];
1265
+ no_booking: boolean | null;
1266
+ merge_same_rule_line: boolean | null;
1267
+ merge_eligible: boolean | null;
1268
+ main_account_id: string | null;
1269
+ main_account_code: string | null;
1270
+ main_account_name: string | null;
1271
+ sub_account_id: string | null;
1272
+ sub_account_code: string | null;
1273
+ sub_account_name: string | null;
1274
+ configuration_level: string | null;
1275
+ configuration_scope: string | null;
1276
+ ready_status: string | null;
1277
+ ready: boolean | null;
1278
+ ready_reason: string | null;
1279
+ main_coa_code: string | null;
1280
+ main_coa_name: string | null;
1281
+ counter_coa_code: string | null;
1282
+ counter_coa_name: string | null;
1283
+ main_attributes: (string | null)[];
1284
+ counter_attributes: (string | null)[];
1285
+ version: number | null;
1286
+ created_at: string | null;
1287
+ updated_at: string | null;
1288
+ }[];
1289
+ } | {
1290
+ view: "detail";
1291
+ object_type: "rule_header" | "precheck";
1292
+ items: {
1293
+ id: string;
1294
+ object_type: "rule_header" | "precheck";
1295
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1296
+ ledger_id: string | null;
1297
+ rule_code: string | null;
1298
+ rule_name: string | null;
1299
+ description: string | null;
1300
+ priority: number | null;
1301
+ effective_from: string | null;
1302
+ effective_to: string | null;
1303
+ enabled: boolean | null;
1304
+ match_event_type_operator: string | null;
1305
+ match_event_types: string[];
1306
+ match_strategy_operator: string | null;
1307
+ match_strategy_keys: string[];
1308
+ no_booking: boolean | null;
1309
+ merge_same_rule_line: boolean | null;
1310
+ merge_eligible: boolean | null;
1311
+ main_account_id: string | null;
1312
+ main_account_code: string | null;
1313
+ main_account_name: string | null;
1314
+ sub_account_id: string | null;
1315
+ sub_account_code: string | null;
1316
+ sub_account_name: string | null;
1317
+ configuration_level: string | null;
1318
+ configuration_scope: string | null;
1319
+ ready_status: string | null;
1320
+ ready: boolean | null;
1321
+ ready_reason: string | null;
1322
+ main_coa_code: string | null;
1323
+ main_coa_name: string | null;
1324
+ counter_coa_code: string | null;
1325
+ counter_coa_name: string | null;
1326
+ main_attributes: (string | null)[];
1327
+ counter_attributes: (string | null)[];
1328
+ version: number | null;
1329
+ created_at: string | null;
1330
+ updated_at: string | null;
1331
+ }[];
1332
+ };
1333
+ } | {
1334
+ warnings: string[];
1335
+ trace_id: string;
1336
+ source_refs: {
1337
+ service: "base" | "suite" | "mcp";
1338
+ operation: string;
1339
+ }[];
1340
+ page?: unknown;
1341
+ ok: true;
1342
+ data: {
1343
+ view: "list";
1344
+ object_type: "rule_header" | "precheck";
1345
+ items: {
1346
+ id: string;
1347
+ object_type: "rule_header" | "precheck";
1348
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1349
+ ledger_id: string | null;
1350
+ rule_code: string | null;
1351
+ rule_name: string | null;
1352
+ description: string | null;
1353
+ priority: number | null;
1354
+ effective_from: string | null;
1355
+ effective_to: string | null;
1356
+ enabled: boolean | null;
1357
+ match_event_type_operator: string | null;
1358
+ match_event_types: string[];
1359
+ match_strategy_operator: string | null;
1360
+ match_strategy_keys: string[];
1361
+ no_booking: boolean | null;
1362
+ merge_same_rule_line: boolean | null;
1363
+ merge_eligible: boolean | null;
1364
+ main_account_id: string | null;
1365
+ main_account_code: string | null;
1366
+ main_account_name: string | null;
1367
+ sub_account_id: string | null;
1368
+ sub_account_code: string | null;
1369
+ sub_account_name: string | null;
1370
+ configuration_level: string | null;
1371
+ configuration_scope: string | null;
1372
+ ready_status: string | null;
1373
+ ready: boolean | null;
1374
+ ready_reason: string | null;
1375
+ main_coa_code: string | null;
1376
+ main_coa_name: string | null;
1377
+ counter_coa_code: string | null;
1378
+ counter_coa_name: string | null;
1379
+ main_attributes: (string | null)[];
1380
+ counter_attributes: (string | null)[];
1381
+ version: number | null;
1382
+ created_at: string | null;
1383
+ updated_at: string | null;
1384
+ }[];
1385
+ } | {
1386
+ view: "detail";
1387
+ object_type: "rule_header" | "precheck";
1388
+ items: {
1389
+ id: string;
1390
+ object_type: "rule_header" | "precheck";
1391
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1392
+ ledger_id: string | null;
1393
+ rule_code: string | null;
1394
+ rule_name: string | null;
1395
+ description: string | null;
1396
+ priority: number | null;
1397
+ effective_from: string | null;
1398
+ effective_to: string | null;
1399
+ enabled: boolean | null;
1400
+ match_event_type_operator: string | null;
1401
+ match_event_types: string[];
1402
+ match_strategy_operator: string | null;
1403
+ match_strategy_keys: string[];
1404
+ no_booking: boolean | null;
1405
+ merge_same_rule_line: boolean | null;
1406
+ merge_eligible: boolean | null;
1407
+ main_account_id: string | null;
1408
+ main_account_code: string | null;
1409
+ main_account_name: string | null;
1410
+ sub_account_id: string | null;
1411
+ sub_account_code: string | null;
1412
+ sub_account_name: string | null;
1413
+ configuration_level: string | null;
1414
+ configuration_scope: string | null;
1415
+ ready_status: string | null;
1416
+ ready: boolean | null;
1417
+ ready_reason: string | null;
1418
+ main_coa_code: string | null;
1419
+ main_coa_name: string | null;
1420
+ counter_coa_code: string | null;
1421
+ counter_coa_name: string | null;
1422
+ main_attributes: (string | null)[];
1423
+ counter_attributes: (string | null)[];
1424
+ version: number | null;
1425
+ created_at: string | null;
1426
+ updated_at: string | null;
1427
+ }[];
1428
+ };
1429
+ } | {
1430
+ warnings: string[];
1431
+ trace_id: string;
1432
+ source_refs: {
1433
+ service: "base" | "suite" | "mcp";
1434
+ operation: string;
1435
+ }[];
1436
+ page: {
1437
+ number: number;
1438
+ size: number;
1439
+ total_items: number;
1440
+ has_more: boolean;
1441
+ } | undefined;
1442
+ ok: true;
1443
+ data: {
1444
+ view: "list";
1445
+ object_type: "rule_header" | "precheck";
1446
+ items: {
1447
+ id: string;
1448
+ object_type: "rule_header" | "precheck";
1449
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1450
+ ledger_id: string | null;
1451
+ rule_code: string | null;
1452
+ rule_name: string | null;
1453
+ description: string | null;
1454
+ priority: number | null;
1455
+ effective_from: string | null;
1456
+ effective_to: string | null;
1457
+ enabled: boolean | null;
1458
+ match_event_type_operator: string | null;
1459
+ match_event_types: string[];
1460
+ match_strategy_operator: string | null;
1461
+ match_strategy_keys: string[];
1462
+ no_booking: boolean | null;
1463
+ merge_same_rule_line: boolean | null;
1464
+ merge_eligible: boolean | null;
1465
+ main_account_id: string | null;
1466
+ main_account_code: string | null;
1467
+ main_account_name: string | null;
1468
+ sub_account_id: string | null;
1469
+ sub_account_code: string | null;
1470
+ sub_account_name: string | null;
1471
+ configuration_level: string | null;
1472
+ configuration_scope: string | null;
1473
+ ready_status: string | null;
1474
+ ready: boolean | null;
1475
+ ready_reason: string | null;
1476
+ main_coa_code: string | null;
1477
+ main_coa_name: string | null;
1478
+ counter_coa_code: string | null;
1479
+ counter_coa_name: string | null;
1480
+ main_attributes: (string | null)[];
1481
+ counter_attributes: (string | null)[];
1482
+ version: number | null;
1483
+ created_at: string | null;
1484
+ updated_at: string | null;
1485
+ }[];
1486
+ } | {
1487
+ view: "detail";
1488
+ object_type: "rule_header" | "precheck";
1489
+ items: {
1490
+ id: string;
1491
+ object_type: "rule_header" | "precheck";
1492
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1493
+ ledger_id: string | null;
1494
+ rule_code: string | null;
1495
+ rule_name: string | null;
1496
+ description: string | null;
1497
+ priority: number | null;
1498
+ effective_from: string | null;
1499
+ effective_to: string | null;
1500
+ enabled: boolean | null;
1501
+ match_event_type_operator: string | null;
1502
+ match_event_types: string[];
1503
+ match_strategy_operator: string | null;
1504
+ match_strategy_keys: string[];
1505
+ no_booking: boolean | null;
1506
+ merge_same_rule_line: boolean | null;
1507
+ merge_eligible: boolean | null;
1508
+ main_account_id: string | null;
1509
+ main_account_code: string | null;
1510
+ main_account_name: string | null;
1511
+ sub_account_id: string | null;
1512
+ sub_account_code: string | null;
1513
+ sub_account_name: string | null;
1514
+ configuration_level: string | null;
1515
+ configuration_scope: string | null;
1516
+ ready_status: string | null;
1517
+ ready: boolean | null;
1518
+ ready_reason: string | null;
1519
+ main_coa_code: string | null;
1520
+ main_coa_name: string | null;
1521
+ counter_coa_code: string | null;
1522
+ counter_coa_name: string | null;
1523
+ main_attributes: (string | null)[];
1524
+ counter_attributes: (string | null)[];
1525
+ version: number | null;
1526
+ created_at: string | null;
1527
+ updated_at: string | null;
1528
+ }[];
1529
+ };
1530
+ } | {
1531
+ warnings: string[];
1532
+ trace_id: string;
1533
+ source_refs: {
1534
+ service: "base" | "suite" | "mcp";
1535
+ operation: string;
1536
+ }[];
1537
+ page: {
1538
+ number: number;
1539
+ size: number;
1540
+ total_items: number;
1541
+ has_more: boolean;
1542
+ } | undefined;
1543
+ ok: true;
1544
+ data: {
1545
+ view: "list";
1546
+ object_type: "rule_header" | "precheck";
1547
+ items: {
1548
+ id: string;
1549
+ object_type: "rule_header" | "precheck";
1550
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1551
+ ledger_id: string | null;
1552
+ rule_code: string | null;
1553
+ rule_name: string | null;
1554
+ description: string | null;
1555
+ priority: number | null;
1556
+ effective_from: string | null;
1557
+ effective_to: string | null;
1558
+ enabled: boolean | null;
1559
+ match_event_type_operator: string | null;
1560
+ match_event_types: string[];
1561
+ match_strategy_operator: string | null;
1562
+ match_strategy_keys: string[];
1563
+ no_booking: boolean | null;
1564
+ merge_same_rule_line: boolean | null;
1565
+ merge_eligible: boolean | null;
1566
+ main_account_id: string | null;
1567
+ main_account_code: string | null;
1568
+ main_account_name: string | null;
1569
+ sub_account_id: string | null;
1570
+ sub_account_code: string | null;
1571
+ sub_account_name: string | null;
1572
+ configuration_level: string | null;
1573
+ configuration_scope: string | null;
1574
+ ready_status: string | null;
1575
+ ready: boolean | null;
1576
+ ready_reason: string | null;
1577
+ main_coa_code: string | null;
1578
+ main_coa_name: string | null;
1579
+ counter_coa_code: string | null;
1580
+ counter_coa_name: string | null;
1581
+ main_attributes: (string | null)[];
1582
+ counter_attributes: (string | null)[];
1583
+ version: number | null;
1584
+ created_at: string | null;
1585
+ updated_at: string | null;
1586
+ }[];
1587
+ } | {
1588
+ view: "detail";
1589
+ object_type: "rule_header" | "precheck";
1590
+ items: {
1591
+ id: string;
1592
+ object_type: "rule_header" | "precheck";
1593
+ row_type: "detail" | "sub_account" | "main_account" | "rule";
1594
+ ledger_id: string | null;
1595
+ rule_code: string | null;
1596
+ rule_name: string | null;
1597
+ description: string | null;
1598
+ priority: number | null;
1599
+ effective_from: string | null;
1600
+ effective_to: string | null;
1601
+ enabled: boolean | null;
1602
+ match_event_type_operator: string | null;
1603
+ match_event_types: string[];
1604
+ match_strategy_operator: string | null;
1605
+ match_strategy_keys: string[];
1606
+ no_booking: boolean | null;
1607
+ merge_same_rule_line: boolean | null;
1608
+ merge_eligible: boolean | null;
1609
+ main_account_id: string | null;
1610
+ main_account_code: string | null;
1611
+ main_account_name: string | null;
1612
+ sub_account_id: string | null;
1613
+ sub_account_code: string | null;
1614
+ sub_account_name: string | null;
1615
+ configuration_level: string | null;
1616
+ configuration_scope: string | null;
1617
+ ready_status: string | null;
1618
+ ready: boolean | null;
1619
+ ready_reason: string | null;
1620
+ main_coa_code: string | null;
1621
+ main_coa_name: string | null;
1622
+ counter_coa_code: string | null;
1623
+ counter_coa_name: string | null;
1624
+ main_attributes: (string | null)[];
1625
+ counter_attributes: (string | null)[];
1626
+ version: number | null;
1627
+ created_at: string | null;
1628
+ updated_at: string | null;
1629
+ }[];
1630
+ };
1631
+ };
1632
+ type AllocationCapabilityId = Extract<ExtendedQueryCapabilityId, `suite.${'config.allocation_config' | 'aloc.detail'}.${string}`>;
1633
+ export declare function allocationQueryOutput(options: {
1634
+ view: 'config_list' | 'config_detail' | 'result_list' | 'result_detail' | 'summary';
1635
+ raw: unknown;
1636
+ context: ToolContext;
1637
+ capabilityId: AllocationCapabilityId;
1638
+ }): {
1639
+ warnings: string[];
1640
+ trace_id: string;
1641
+ source_refs: {
1642
+ service: "base" | "suite" | "mcp";
1643
+ operation: string;
1644
+ }[];
1645
+ page?: unknown;
1646
+ ok: true;
1647
+ data: {
1648
+ grand_total: string | null;
1649
+ items: {
1650
+ id: string | null;
1651
+ item_type: "summary" | "result" | "configuration";
1652
+ ledger_id: string | null;
1653
+ ledger_name: string | null;
1654
+ journal_id: string | null;
1655
+ journal_number: string | null;
1656
+ period_name: string | null;
1657
+ gl_date: string | null;
1658
+ coa_code: string | null;
1659
+ coa_name: string | null;
1660
+ attributes: (string | null)[];
1661
+ description: string | null;
1662
+ reference: string | null;
1663
+ generation_mode: string | null;
1664
+ status: string | null;
1665
+ ratio_total: string | null;
1666
+ base_currency: string | null;
1667
+ base_amount: string | null;
1668
+ line_count: number | null;
1669
+ enabled: boolean | null;
1670
+ version: number | null;
1671
+ created_at: string | null;
1672
+ updated_at: string | null;
1673
+ attribute_combination: string | null;
1674
+ lines: {
1675
+ id: string | null;
1676
+ line_number: number | null;
1677
+ coa_code: string | null;
1678
+ coa_name: string | null;
1679
+ attributes: (string | null)[];
1680
+ business_types: (string | null)[];
1681
+ description: string | null;
1682
+ reference: string | null;
1683
+ ratio: string | null;
1684
+ enabled: boolean | null;
1685
+ base_currency: string | null;
1686
+ base_amount: string | null;
1687
+ origin_currency: string | null;
1688
+ origin_amount: string | null;
1689
+ }[];
1690
+ }[];
1691
+ view: "config_list";
1692
+ } | {
1693
+ grand_total: string | null;
1694
+ items: {
1695
+ id: string | null;
1696
+ item_type: "summary" | "result" | "configuration";
1697
+ ledger_id: string | null;
1698
+ ledger_name: string | null;
1699
+ journal_id: string | null;
1700
+ journal_number: string | null;
1701
+ period_name: string | null;
1702
+ gl_date: string | null;
1703
+ coa_code: string | null;
1704
+ coa_name: string | null;
1705
+ attributes: (string | null)[];
1706
+ description: string | null;
1707
+ reference: string | null;
1708
+ generation_mode: string | null;
1709
+ status: string | null;
1710
+ ratio_total: string | null;
1711
+ base_currency: string | null;
1712
+ base_amount: string | null;
1713
+ line_count: number | null;
1714
+ enabled: boolean | null;
1715
+ version: number | null;
1716
+ created_at: string | null;
1717
+ updated_at: string | null;
1718
+ attribute_combination: string | null;
1719
+ lines: {
1720
+ id: string | null;
1721
+ line_number: number | null;
1722
+ coa_code: string | null;
1723
+ coa_name: string | null;
1724
+ attributes: (string | null)[];
1725
+ business_types: (string | null)[];
1726
+ description: string | null;
1727
+ reference: string | null;
1728
+ ratio: string | null;
1729
+ enabled: boolean | null;
1730
+ base_currency: string | null;
1731
+ base_amount: string | null;
1732
+ origin_currency: string | null;
1733
+ origin_amount: string | null;
1734
+ }[];
1735
+ }[];
1736
+ view: "config_detail";
1737
+ } | {
1738
+ grand_total: string | null;
1739
+ items: {
1740
+ id: string | null;
1741
+ item_type: "summary" | "result" | "configuration";
1742
+ ledger_id: string | null;
1743
+ ledger_name: string | null;
1744
+ journal_id: string | null;
1745
+ journal_number: string | null;
1746
+ period_name: string | null;
1747
+ gl_date: string | null;
1748
+ coa_code: string | null;
1749
+ coa_name: string | null;
1750
+ attributes: (string | null)[];
1751
+ description: string | null;
1752
+ reference: string | null;
1753
+ generation_mode: string | null;
1754
+ status: string | null;
1755
+ ratio_total: string | null;
1756
+ base_currency: string | null;
1757
+ base_amount: string | null;
1758
+ line_count: number | null;
1759
+ enabled: boolean | null;
1760
+ version: number | null;
1761
+ created_at: string | null;
1762
+ updated_at: string | null;
1763
+ attribute_combination: string | null;
1764
+ lines: {
1765
+ id: string | null;
1766
+ line_number: number | null;
1767
+ coa_code: string | null;
1768
+ coa_name: string | null;
1769
+ attributes: (string | null)[];
1770
+ business_types: (string | null)[];
1771
+ description: string | null;
1772
+ reference: string | null;
1773
+ ratio: string | null;
1774
+ enabled: boolean | null;
1775
+ base_currency: string | null;
1776
+ base_amount: string | null;
1777
+ origin_currency: string | null;
1778
+ origin_amount: string | null;
1779
+ }[];
1780
+ }[];
1781
+ view: "result_list";
1782
+ } | {
1783
+ grand_total: string | null;
1784
+ items: {
1785
+ id: string | null;
1786
+ item_type: "summary" | "result" | "configuration";
1787
+ ledger_id: string | null;
1788
+ ledger_name: string | null;
1789
+ journal_id: string | null;
1790
+ journal_number: string | null;
1791
+ period_name: string | null;
1792
+ gl_date: string | null;
1793
+ coa_code: string | null;
1794
+ coa_name: string | null;
1795
+ attributes: (string | null)[];
1796
+ description: string | null;
1797
+ reference: string | null;
1798
+ generation_mode: string | null;
1799
+ status: string | null;
1800
+ ratio_total: string | null;
1801
+ base_currency: string | null;
1802
+ base_amount: string | null;
1803
+ line_count: number | null;
1804
+ enabled: boolean | null;
1805
+ version: number | null;
1806
+ created_at: string | null;
1807
+ updated_at: string | null;
1808
+ attribute_combination: string | null;
1809
+ lines: {
1810
+ id: string | null;
1811
+ line_number: number | null;
1812
+ coa_code: string | null;
1813
+ coa_name: string | null;
1814
+ attributes: (string | null)[];
1815
+ business_types: (string | null)[];
1816
+ description: string | null;
1817
+ reference: string | null;
1818
+ ratio: string | null;
1819
+ enabled: boolean | null;
1820
+ base_currency: string | null;
1821
+ base_amount: string | null;
1822
+ origin_currency: string | null;
1823
+ origin_amount: string | null;
1824
+ }[];
1825
+ }[];
1826
+ view: "result_detail";
1827
+ } | {
1828
+ grand_total: string | null;
1829
+ items: {
1830
+ id: string | null;
1831
+ item_type: "summary" | "result" | "configuration";
1832
+ ledger_id: string | null;
1833
+ ledger_name: string | null;
1834
+ journal_id: string | null;
1835
+ journal_number: string | null;
1836
+ period_name: string | null;
1837
+ gl_date: string | null;
1838
+ coa_code: string | null;
1839
+ coa_name: string | null;
1840
+ attributes: (string | null)[];
1841
+ description: string | null;
1842
+ reference: string | null;
1843
+ generation_mode: string | null;
1844
+ status: string | null;
1845
+ ratio_total: string | null;
1846
+ base_currency: string | null;
1847
+ base_amount: string | null;
1848
+ line_count: number | null;
1849
+ enabled: boolean | null;
1850
+ version: number | null;
1851
+ created_at: string | null;
1852
+ updated_at: string | null;
1853
+ attribute_combination: string | null;
1854
+ lines: {
1855
+ id: string | null;
1856
+ line_number: number | null;
1857
+ coa_code: string | null;
1858
+ coa_name: string | null;
1859
+ attributes: (string | null)[];
1860
+ business_types: (string | null)[];
1861
+ description: string | null;
1862
+ reference: string | null;
1863
+ ratio: string | null;
1864
+ enabled: boolean | null;
1865
+ base_currency: string | null;
1866
+ base_amount: string | null;
1867
+ origin_currency: string | null;
1868
+ origin_amount: string | null;
1869
+ }[];
1870
+ }[];
1871
+ view: "summary";
1872
+ };
1873
+ } | {
1874
+ warnings: string[];
1875
+ trace_id: string;
1876
+ source_refs: {
1877
+ service: "base" | "suite" | "mcp";
1878
+ operation: string;
1879
+ }[];
1880
+ page?: unknown;
1881
+ ok: true;
1882
+ data: {
1883
+ grand_total: string | null;
1884
+ items: {
1885
+ id: string | null;
1886
+ item_type: "summary" | "result" | "configuration";
1887
+ ledger_id: string | null;
1888
+ ledger_name: string | null;
1889
+ journal_id: string | null;
1890
+ journal_number: string | null;
1891
+ period_name: string | null;
1892
+ gl_date: string | null;
1893
+ coa_code: string | null;
1894
+ coa_name: string | null;
1895
+ attributes: (string | null)[];
1896
+ description: string | null;
1897
+ reference: string | null;
1898
+ generation_mode: string | null;
1899
+ status: string | null;
1900
+ ratio_total: string | null;
1901
+ base_currency: string | null;
1902
+ base_amount: string | null;
1903
+ line_count: number | null;
1904
+ enabled: boolean | null;
1905
+ version: number | null;
1906
+ created_at: string | null;
1907
+ updated_at: string | null;
1908
+ attribute_combination: string | null;
1909
+ lines: {
1910
+ id: string | null;
1911
+ line_number: number | null;
1912
+ coa_code: string | null;
1913
+ coa_name: string | null;
1914
+ attributes: (string | null)[];
1915
+ business_types: (string | null)[];
1916
+ description: string | null;
1917
+ reference: string | null;
1918
+ ratio: string | null;
1919
+ enabled: boolean | null;
1920
+ base_currency: string | null;
1921
+ base_amount: string | null;
1922
+ origin_currency: string | null;
1923
+ origin_amount: string | null;
1924
+ }[];
1925
+ }[];
1926
+ view: "config_list";
1927
+ } | {
1928
+ grand_total: string | null;
1929
+ items: {
1930
+ id: string | null;
1931
+ item_type: "summary" | "result" | "configuration";
1932
+ ledger_id: string | null;
1933
+ ledger_name: string | null;
1934
+ journal_id: string | null;
1935
+ journal_number: string | null;
1936
+ period_name: string | null;
1937
+ gl_date: string | null;
1938
+ coa_code: string | null;
1939
+ coa_name: string | null;
1940
+ attributes: (string | null)[];
1941
+ description: string | null;
1942
+ reference: string | null;
1943
+ generation_mode: string | null;
1944
+ status: string | null;
1945
+ ratio_total: string | null;
1946
+ base_currency: string | null;
1947
+ base_amount: string | null;
1948
+ line_count: number | null;
1949
+ enabled: boolean | null;
1950
+ version: number | null;
1951
+ created_at: string | null;
1952
+ updated_at: string | null;
1953
+ attribute_combination: string | null;
1954
+ lines: {
1955
+ id: string | null;
1956
+ line_number: number | null;
1957
+ coa_code: string | null;
1958
+ coa_name: string | null;
1959
+ attributes: (string | null)[];
1960
+ business_types: (string | null)[];
1961
+ description: string | null;
1962
+ reference: string | null;
1963
+ ratio: string | null;
1964
+ enabled: boolean | null;
1965
+ base_currency: string | null;
1966
+ base_amount: string | null;
1967
+ origin_currency: string | null;
1968
+ origin_amount: string | null;
1969
+ }[];
1970
+ }[];
1971
+ view: "config_detail";
1972
+ } | {
1973
+ grand_total: string | null;
1974
+ items: {
1975
+ id: string | null;
1976
+ item_type: "summary" | "result" | "configuration";
1977
+ ledger_id: string | null;
1978
+ ledger_name: string | null;
1979
+ journal_id: string | null;
1980
+ journal_number: string | null;
1981
+ period_name: string | null;
1982
+ gl_date: string | null;
1983
+ coa_code: string | null;
1984
+ coa_name: string | null;
1985
+ attributes: (string | null)[];
1986
+ description: string | null;
1987
+ reference: string | null;
1988
+ generation_mode: string | null;
1989
+ status: string | null;
1990
+ ratio_total: string | null;
1991
+ base_currency: string | null;
1992
+ base_amount: string | null;
1993
+ line_count: number | null;
1994
+ enabled: boolean | null;
1995
+ version: number | null;
1996
+ created_at: string | null;
1997
+ updated_at: string | null;
1998
+ attribute_combination: string | null;
1999
+ lines: {
2000
+ id: string | null;
2001
+ line_number: number | null;
2002
+ coa_code: string | null;
2003
+ coa_name: string | null;
2004
+ attributes: (string | null)[];
2005
+ business_types: (string | null)[];
2006
+ description: string | null;
2007
+ reference: string | null;
2008
+ ratio: string | null;
2009
+ enabled: boolean | null;
2010
+ base_currency: string | null;
2011
+ base_amount: string | null;
2012
+ origin_currency: string | null;
2013
+ origin_amount: string | null;
2014
+ }[];
2015
+ }[];
2016
+ view: "result_list";
2017
+ } | {
2018
+ grand_total: string | null;
2019
+ items: {
2020
+ id: string | null;
2021
+ item_type: "summary" | "result" | "configuration";
2022
+ ledger_id: string | null;
2023
+ ledger_name: string | null;
2024
+ journal_id: string | null;
2025
+ journal_number: string | null;
2026
+ period_name: string | null;
2027
+ gl_date: string | null;
2028
+ coa_code: string | null;
2029
+ coa_name: string | null;
2030
+ attributes: (string | null)[];
2031
+ description: string | null;
2032
+ reference: string | null;
2033
+ generation_mode: string | null;
2034
+ status: string | null;
2035
+ ratio_total: string | null;
2036
+ base_currency: string | null;
2037
+ base_amount: string | null;
2038
+ line_count: number | null;
2039
+ enabled: boolean | null;
2040
+ version: number | null;
2041
+ created_at: string | null;
2042
+ updated_at: string | null;
2043
+ attribute_combination: string | null;
2044
+ lines: {
2045
+ id: string | null;
2046
+ line_number: number | null;
2047
+ coa_code: string | null;
2048
+ coa_name: string | null;
2049
+ attributes: (string | null)[];
2050
+ business_types: (string | null)[];
2051
+ description: string | null;
2052
+ reference: string | null;
2053
+ ratio: string | null;
2054
+ enabled: boolean | null;
2055
+ base_currency: string | null;
2056
+ base_amount: string | null;
2057
+ origin_currency: string | null;
2058
+ origin_amount: string | null;
2059
+ }[];
2060
+ }[];
2061
+ view: "result_detail";
2062
+ } | {
2063
+ grand_total: string | null;
2064
+ items: {
2065
+ id: string | null;
2066
+ item_type: "summary" | "result" | "configuration";
2067
+ ledger_id: string | null;
2068
+ ledger_name: string | null;
2069
+ journal_id: string | null;
2070
+ journal_number: string | null;
2071
+ period_name: string | null;
2072
+ gl_date: string | null;
2073
+ coa_code: string | null;
2074
+ coa_name: string | null;
2075
+ attributes: (string | null)[];
2076
+ description: string | null;
2077
+ reference: string | null;
2078
+ generation_mode: string | null;
2079
+ status: string | null;
2080
+ ratio_total: string | null;
2081
+ base_currency: string | null;
2082
+ base_amount: string | null;
2083
+ line_count: number | null;
2084
+ enabled: boolean | null;
2085
+ version: number | null;
2086
+ created_at: string | null;
2087
+ updated_at: string | null;
2088
+ attribute_combination: string | null;
2089
+ lines: {
2090
+ id: string | null;
2091
+ line_number: number | null;
2092
+ coa_code: string | null;
2093
+ coa_name: string | null;
2094
+ attributes: (string | null)[];
2095
+ business_types: (string | null)[];
2096
+ description: string | null;
2097
+ reference: string | null;
2098
+ ratio: string | null;
2099
+ enabled: boolean | null;
2100
+ base_currency: string | null;
2101
+ base_amount: string | null;
2102
+ origin_currency: string | null;
2103
+ origin_amount: string | null;
2104
+ }[];
2105
+ }[];
2106
+ view: "summary";
2107
+ };
2108
+ } | {
2109
+ warnings: string[];
2110
+ trace_id: string;
2111
+ source_refs: {
2112
+ service: "base" | "suite" | "mcp";
2113
+ operation: string;
2114
+ }[];
2115
+ page: {
2116
+ number: number;
2117
+ size: number;
2118
+ total_items: number;
2119
+ has_more: boolean;
2120
+ } | undefined;
2121
+ ok: true;
2122
+ data: {
2123
+ grand_total: string | null;
2124
+ items: {
2125
+ id: string | null;
2126
+ item_type: "summary" | "result" | "configuration";
2127
+ ledger_id: string | null;
2128
+ ledger_name: string | null;
2129
+ journal_id: string | null;
2130
+ journal_number: string | null;
2131
+ period_name: string | null;
2132
+ gl_date: string | null;
2133
+ coa_code: string | null;
2134
+ coa_name: string | null;
2135
+ attributes: (string | null)[];
2136
+ description: string | null;
2137
+ reference: string | null;
2138
+ generation_mode: string | null;
2139
+ status: string | null;
2140
+ ratio_total: string | null;
2141
+ base_currency: string | null;
2142
+ base_amount: string | null;
2143
+ line_count: number | null;
2144
+ enabled: boolean | null;
2145
+ version: number | null;
2146
+ created_at: string | null;
2147
+ updated_at: string | null;
2148
+ attribute_combination: string | null;
2149
+ lines: {
2150
+ id: string | null;
2151
+ line_number: number | null;
2152
+ coa_code: string | null;
2153
+ coa_name: string | null;
2154
+ attributes: (string | null)[];
2155
+ business_types: (string | null)[];
2156
+ description: string | null;
2157
+ reference: string | null;
2158
+ ratio: string | null;
2159
+ enabled: boolean | null;
2160
+ base_currency: string | null;
2161
+ base_amount: string | null;
2162
+ origin_currency: string | null;
2163
+ origin_amount: string | null;
2164
+ }[];
2165
+ }[];
2166
+ view: "config_list";
2167
+ } | {
2168
+ grand_total: string | null;
2169
+ items: {
2170
+ id: string | null;
2171
+ item_type: "summary" | "result" | "configuration";
2172
+ ledger_id: string | null;
2173
+ ledger_name: string | null;
2174
+ journal_id: string | null;
2175
+ journal_number: string | null;
2176
+ period_name: string | null;
2177
+ gl_date: string | null;
2178
+ coa_code: string | null;
2179
+ coa_name: string | null;
2180
+ attributes: (string | null)[];
2181
+ description: string | null;
2182
+ reference: string | null;
2183
+ generation_mode: string | null;
2184
+ status: string | null;
2185
+ ratio_total: string | null;
2186
+ base_currency: string | null;
2187
+ base_amount: string | null;
2188
+ line_count: number | null;
2189
+ enabled: boolean | null;
2190
+ version: number | null;
2191
+ created_at: string | null;
2192
+ updated_at: string | null;
2193
+ attribute_combination: string | null;
2194
+ lines: {
2195
+ id: string | null;
2196
+ line_number: number | null;
2197
+ coa_code: string | null;
2198
+ coa_name: string | null;
2199
+ attributes: (string | null)[];
2200
+ business_types: (string | null)[];
2201
+ description: string | null;
2202
+ reference: string | null;
2203
+ ratio: string | null;
2204
+ enabled: boolean | null;
2205
+ base_currency: string | null;
2206
+ base_amount: string | null;
2207
+ origin_currency: string | null;
2208
+ origin_amount: string | null;
2209
+ }[];
2210
+ }[];
2211
+ view: "config_detail";
2212
+ } | {
2213
+ grand_total: string | null;
2214
+ items: {
2215
+ id: string | null;
2216
+ item_type: "summary" | "result" | "configuration";
2217
+ ledger_id: string | null;
2218
+ ledger_name: string | null;
2219
+ journal_id: string | null;
2220
+ journal_number: string | null;
2221
+ period_name: string | null;
2222
+ gl_date: string | null;
2223
+ coa_code: string | null;
2224
+ coa_name: string | null;
2225
+ attributes: (string | null)[];
2226
+ description: string | null;
2227
+ reference: string | null;
2228
+ generation_mode: string | null;
2229
+ status: string | null;
2230
+ ratio_total: string | null;
2231
+ base_currency: string | null;
2232
+ base_amount: string | null;
2233
+ line_count: number | null;
2234
+ enabled: boolean | null;
2235
+ version: number | null;
2236
+ created_at: string | null;
2237
+ updated_at: string | null;
2238
+ attribute_combination: string | null;
2239
+ lines: {
2240
+ id: string | null;
2241
+ line_number: number | null;
2242
+ coa_code: string | null;
2243
+ coa_name: string | null;
2244
+ attributes: (string | null)[];
2245
+ business_types: (string | null)[];
2246
+ description: string | null;
2247
+ reference: string | null;
2248
+ ratio: string | null;
2249
+ enabled: boolean | null;
2250
+ base_currency: string | null;
2251
+ base_amount: string | null;
2252
+ origin_currency: string | null;
2253
+ origin_amount: string | null;
2254
+ }[];
2255
+ }[];
2256
+ view: "result_list";
2257
+ } | {
2258
+ grand_total: string | null;
2259
+ items: {
2260
+ id: string | null;
2261
+ item_type: "summary" | "result" | "configuration";
2262
+ ledger_id: string | null;
2263
+ ledger_name: string | null;
2264
+ journal_id: string | null;
2265
+ journal_number: string | null;
2266
+ period_name: string | null;
2267
+ gl_date: string | null;
2268
+ coa_code: string | null;
2269
+ coa_name: string | null;
2270
+ attributes: (string | null)[];
2271
+ description: string | null;
2272
+ reference: string | null;
2273
+ generation_mode: string | null;
2274
+ status: string | null;
2275
+ ratio_total: string | null;
2276
+ base_currency: string | null;
2277
+ base_amount: string | null;
2278
+ line_count: number | null;
2279
+ enabled: boolean | null;
2280
+ version: number | null;
2281
+ created_at: string | null;
2282
+ updated_at: string | null;
2283
+ attribute_combination: string | null;
2284
+ lines: {
2285
+ id: string | null;
2286
+ line_number: number | null;
2287
+ coa_code: string | null;
2288
+ coa_name: string | null;
2289
+ attributes: (string | null)[];
2290
+ business_types: (string | null)[];
2291
+ description: string | null;
2292
+ reference: string | null;
2293
+ ratio: string | null;
2294
+ enabled: boolean | null;
2295
+ base_currency: string | null;
2296
+ base_amount: string | null;
2297
+ origin_currency: string | null;
2298
+ origin_amount: string | null;
2299
+ }[];
2300
+ }[];
2301
+ view: "result_detail";
2302
+ } | {
2303
+ grand_total: string | null;
2304
+ items: {
2305
+ id: string | null;
2306
+ item_type: "summary" | "result" | "configuration";
2307
+ ledger_id: string | null;
2308
+ ledger_name: string | null;
2309
+ journal_id: string | null;
2310
+ journal_number: string | null;
2311
+ period_name: string | null;
2312
+ gl_date: string | null;
2313
+ coa_code: string | null;
2314
+ coa_name: string | null;
2315
+ attributes: (string | null)[];
2316
+ description: string | null;
2317
+ reference: string | null;
2318
+ generation_mode: string | null;
2319
+ status: string | null;
2320
+ ratio_total: string | null;
2321
+ base_currency: string | null;
2322
+ base_amount: string | null;
2323
+ line_count: number | null;
2324
+ enabled: boolean | null;
2325
+ version: number | null;
2326
+ created_at: string | null;
2327
+ updated_at: string | null;
2328
+ attribute_combination: string | null;
2329
+ lines: {
2330
+ id: string | null;
2331
+ line_number: number | null;
2332
+ coa_code: string | null;
2333
+ coa_name: string | null;
2334
+ attributes: (string | null)[];
2335
+ business_types: (string | null)[];
2336
+ description: string | null;
2337
+ reference: string | null;
2338
+ ratio: string | null;
2339
+ enabled: boolean | null;
2340
+ base_currency: string | null;
2341
+ base_amount: string | null;
2342
+ origin_currency: string | null;
2343
+ origin_amount: string | null;
2344
+ }[];
2345
+ }[];
2346
+ view: "summary";
2347
+ };
2348
+ } | {
2349
+ warnings: string[];
2350
+ trace_id: string;
2351
+ source_refs: {
2352
+ service: "base" | "suite" | "mcp";
2353
+ operation: string;
2354
+ }[];
2355
+ page: {
2356
+ number: number;
2357
+ size: number;
2358
+ total_items: number;
2359
+ has_more: boolean;
2360
+ } | undefined;
2361
+ ok: true;
2362
+ data: {
2363
+ grand_total: string | null;
2364
+ items: {
2365
+ id: string | null;
2366
+ item_type: "summary" | "result" | "configuration";
2367
+ ledger_id: string | null;
2368
+ ledger_name: string | null;
2369
+ journal_id: string | null;
2370
+ journal_number: string | null;
2371
+ period_name: string | null;
2372
+ gl_date: string | null;
2373
+ coa_code: string | null;
2374
+ coa_name: string | null;
2375
+ attributes: (string | null)[];
2376
+ description: string | null;
2377
+ reference: string | null;
2378
+ generation_mode: string | null;
2379
+ status: string | null;
2380
+ ratio_total: string | null;
2381
+ base_currency: string | null;
2382
+ base_amount: string | null;
2383
+ line_count: number | null;
2384
+ enabled: boolean | null;
2385
+ version: number | null;
2386
+ created_at: string | null;
2387
+ updated_at: string | null;
2388
+ attribute_combination: string | null;
2389
+ lines: {
2390
+ id: string | null;
2391
+ line_number: number | null;
2392
+ coa_code: string | null;
2393
+ coa_name: string | null;
2394
+ attributes: (string | null)[];
2395
+ business_types: (string | null)[];
2396
+ description: string | null;
2397
+ reference: string | null;
2398
+ ratio: string | null;
2399
+ enabled: boolean | null;
2400
+ base_currency: string | null;
2401
+ base_amount: string | null;
2402
+ origin_currency: string | null;
2403
+ origin_amount: string | null;
2404
+ }[];
2405
+ }[];
2406
+ view: "config_list";
2407
+ } | {
2408
+ grand_total: string | null;
2409
+ items: {
2410
+ id: string | null;
2411
+ item_type: "summary" | "result" | "configuration";
2412
+ ledger_id: string | null;
2413
+ ledger_name: string | null;
2414
+ journal_id: string | null;
2415
+ journal_number: string | null;
2416
+ period_name: string | null;
2417
+ gl_date: string | null;
2418
+ coa_code: string | null;
2419
+ coa_name: string | null;
2420
+ attributes: (string | null)[];
2421
+ description: string | null;
2422
+ reference: string | null;
2423
+ generation_mode: string | null;
2424
+ status: string | null;
2425
+ ratio_total: string | null;
2426
+ base_currency: string | null;
2427
+ base_amount: string | null;
2428
+ line_count: number | null;
2429
+ enabled: boolean | null;
2430
+ version: number | null;
2431
+ created_at: string | null;
2432
+ updated_at: string | null;
2433
+ attribute_combination: string | null;
2434
+ lines: {
2435
+ id: string | null;
2436
+ line_number: number | null;
2437
+ coa_code: string | null;
2438
+ coa_name: string | null;
2439
+ attributes: (string | null)[];
2440
+ business_types: (string | null)[];
2441
+ description: string | null;
2442
+ reference: string | null;
2443
+ ratio: string | null;
2444
+ enabled: boolean | null;
2445
+ base_currency: string | null;
2446
+ base_amount: string | null;
2447
+ origin_currency: string | null;
2448
+ origin_amount: string | null;
2449
+ }[];
2450
+ }[];
2451
+ view: "config_detail";
2452
+ } | {
2453
+ grand_total: string | null;
2454
+ items: {
2455
+ id: string | null;
2456
+ item_type: "summary" | "result" | "configuration";
2457
+ ledger_id: string | null;
2458
+ ledger_name: string | null;
2459
+ journal_id: string | null;
2460
+ journal_number: string | null;
2461
+ period_name: string | null;
2462
+ gl_date: string | null;
2463
+ coa_code: string | null;
2464
+ coa_name: string | null;
2465
+ attributes: (string | null)[];
2466
+ description: string | null;
2467
+ reference: string | null;
2468
+ generation_mode: string | null;
2469
+ status: string | null;
2470
+ ratio_total: string | null;
2471
+ base_currency: string | null;
2472
+ base_amount: string | null;
2473
+ line_count: number | null;
2474
+ enabled: boolean | null;
2475
+ version: number | null;
2476
+ created_at: string | null;
2477
+ updated_at: string | null;
2478
+ attribute_combination: string | null;
2479
+ lines: {
2480
+ id: string | null;
2481
+ line_number: number | null;
2482
+ coa_code: string | null;
2483
+ coa_name: string | null;
2484
+ attributes: (string | null)[];
2485
+ business_types: (string | null)[];
2486
+ description: string | null;
2487
+ reference: string | null;
2488
+ ratio: string | null;
2489
+ enabled: boolean | null;
2490
+ base_currency: string | null;
2491
+ base_amount: string | null;
2492
+ origin_currency: string | null;
2493
+ origin_amount: string | null;
2494
+ }[];
2495
+ }[];
2496
+ view: "result_list";
2497
+ } | {
2498
+ grand_total: string | null;
2499
+ items: {
2500
+ id: string | null;
2501
+ item_type: "summary" | "result" | "configuration";
2502
+ ledger_id: string | null;
2503
+ ledger_name: string | null;
2504
+ journal_id: string | null;
2505
+ journal_number: string | null;
2506
+ period_name: string | null;
2507
+ gl_date: string | null;
2508
+ coa_code: string | null;
2509
+ coa_name: string | null;
2510
+ attributes: (string | null)[];
2511
+ description: string | null;
2512
+ reference: string | null;
2513
+ generation_mode: string | null;
2514
+ status: string | null;
2515
+ ratio_total: string | null;
2516
+ base_currency: string | null;
2517
+ base_amount: string | null;
2518
+ line_count: number | null;
2519
+ enabled: boolean | null;
2520
+ version: number | null;
2521
+ created_at: string | null;
2522
+ updated_at: string | null;
2523
+ attribute_combination: string | null;
2524
+ lines: {
2525
+ id: string | null;
2526
+ line_number: number | null;
2527
+ coa_code: string | null;
2528
+ coa_name: string | null;
2529
+ attributes: (string | null)[];
2530
+ business_types: (string | null)[];
2531
+ description: string | null;
2532
+ reference: string | null;
2533
+ ratio: string | null;
2534
+ enabled: boolean | null;
2535
+ base_currency: string | null;
2536
+ base_amount: string | null;
2537
+ origin_currency: string | null;
2538
+ origin_amount: string | null;
2539
+ }[];
2540
+ }[];
2541
+ view: "result_detail";
2542
+ } | {
2543
+ grand_total: string | null;
2544
+ items: {
2545
+ id: string | null;
2546
+ item_type: "summary" | "result" | "configuration";
2547
+ ledger_id: string | null;
2548
+ ledger_name: string | null;
2549
+ journal_id: string | null;
2550
+ journal_number: string | null;
2551
+ period_name: string | null;
2552
+ gl_date: string | null;
2553
+ coa_code: string | null;
2554
+ coa_name: string | null;
2555
+ attributes: (string | null)[];
2556
+ description: string | null;
2557
+ reference: string | null;
2558
+ generation_mode: string | null;
2559
+ status: string | null;
2560
+ ratio_total: string | null;
2561
+ base_currency: string | null;
2562
+ base_amount: string | null;
2563
+ line_count: number | null;
2564
+ enabled: boolean | null;
2565
+ version: number | null;
2566
+ created_at: string | null;
2567
+ updated_at: string | null;
2568
+ attribute_combination: string | null;
2569
+ lines: {
2570
+ id: string | null;
2571
+ line_number: number | null;
2572
+ coa_code: string | null;
2573
+ coa_name: string | null;
2574
+ attributes: (string | null)[];
2575
+ business_types: (string | null)[];
2576
+ description: string | null;
2577
+ reference: string | null;
2578
+ ratio: string | null;
2579
+ enabled: boolean | null;
2580
+ base_currency: string | null;
2581
+ base_amount: string | null;
2582
+ origin_currency: string | null;
2583
+ origin_amount: string | null;
2584
+ }[];
2585
+ }[];
2586
+ view: "summary";
2587
+ };
2588
+ };
2589
+ export {};