@unified-api/typescript-sdk 2.73.5 → 2.73.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/bin/mcp-server.js +9519 -3972
- package/bin/mcp-server.js.map +121 -20
- package/docs/sdks/accounting/README.md +2759 -387
- package/docs/sdks/balancesheet/README.md +163 -0
- package/docs/sdks/bill/README.md +483 -0
- package/docs/sdks/creditmemo/README.md +483 -0
- package/docs/sdks/profitloss/README.md +163 -0
- package/docs/sdks/purchaseorder/README.md +483 -0
- package/docs/sdks/salesorder/README.md +483 -0
- package/docs/sdks/trialbalance/README.md +163 -0
- package/examples/README.md +26 -0
- package/examples/accountingCreateAccountingAccount.example.ts +29 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/funcs/accountingCreateAccountingBill.d.ts +15 -0
- package/funcs/accountingCreateAccountingBill.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingBill.js +112 -0
- package/funcs/accountingCreateAccountingBill.js.map +1 -0
- package/funcs/accountingCreateAccountingCreditmemo.d.ts +15 -0
- package/funcs/accountingCreateAccountingCreditmemo.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingCreditmemo.js +114 -0
- package/funcs/accountingCreateAccountingCreditmemo.js.map +1 -0
- package/funcs/accountingCreateAccountingPurchaseorder.d.ts +15 -0
- package/funcs/accountingCreateAccountingPurchaseorder.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingPurchaseorder.js +114 -0
- package/funcs/accountingCreateAccountingPurchaseorder.js.map +1 -0
- package/funcs/accountingCreateAccountingSalesorder.d.ts +15 -0
- package/funcs/accountingCreateAccountingSalesorder.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingSalesorder.js +114 -0
- package/funcs/accountingCreateAccountingSalesorder.js.map +1 -0
- package/funcs/accountingGetAccountingBalancesheet.d.ts +15 -0
- package/funcs/accountingGetAccountingBalancesheet.d.ts.map +1 -0
- package/funcs/accountingGetAccountingBalancesheet.js +115 -0
- package/funcs/accountingGetAccountingBalancesheet.js.map +1 -0
- package/funcs/accountingGetAccountingBill.d.ts +15 -0
- package/funcs/accountingGetAccountingBill.d.ts.map +1 -0
- package/funcs/accountingGetAccountingBill.js +115 -0
- package/funcs/accountingGetAccountingBill.js.map +1 -0
- package/funcs/accountingGetAccountingCreditmemo.d.ts +15 -0
- package/funcs/accountingGetAccountingCreditmemo.d.ts.map +1 -0
- package/funcs/accountingGetAccountingCreditmemo.js +115 -0
- package/funcs/accountingGetAccountingCreditmemo.js.map +1 -0
- package/funcs/accountingGetAccountingProfitloss.d.ts +15 -0
- package/funcs/accountingGetAccountingProfitloss.d.ts.map +1 -0
- package/funcs/accountingGetAccountingProfitloss.js +115 -0
- package/funcs/accountingGetAccountingProfitloss.js.map +1 -0
- package/funcs/accountingGetAccountingPurchaseorder.d.ts +15 -0
- package/funcs/accountingGetAccountingPurchaseorder.d.ts.map +1 -0
- package/funcs/accountingGetAccountingPurchaseorder.js +115 -0
- package/funcs/accountingGetAccountingPurchaseorder.js.map +1 -0
- package/funcs/accountingGetAccountingSalesorder.d.ts +15 -0
- package/funcs/accountingGetAccountingSalesorder.d.ts.map +1 -0
- package/funcs/accountingGetAccountingSalesorder.js +115 -0
- package/funcs/accountingGetAccountingSalesorder.js.map +1 -0
- package/funcs/accountingGetAccountingTrialbalance.d.ts +15 -0
- package/funcs/accountingGetAccountingTrialbalance.d.ts.map +1 -0
- package/funcs/accountingGetAccountingTrialbalance.js +115 -0
- package/funcs/accountingGetAccountingTrialbalance.js.map +1 -0
- package/funcs/accountingListAccountingBalancesheets.d.ts +15 -0
- package/funcs/accountingListAccountingBalancesheets.d.ts.map +1 -0
- package/funcs/accountingListAccountingBalancesheets.js +120 -0
- package/funcs/accountingListAccountingBalancesheets.js.map +1 -0
- package/funcs/accountingListAccountingBills.d.ts +15 -0
- package/funcs/accountingListAccountingBills.d.ts.map +1 -0
- package/funcs/accountingListAccountingBills.js +120 -0
- package/funcs/accountingListAccountingBills.js.map +1 -0
- package/funcs/accountingListAccountingCreditmemoes.d.ts +15 -0
- package/funcs/accountingListAccountingCreditmemoes.d.ts.map +1 -0
- package/funcs/accountingListAccountingCreditmemoes.js +120 -0
- package/funcs/accountingListAccountingCreditmemoes.js.map +1 -0
- package/funcs/accountingListAccountingProfitlosses.d.ts +15 -0
- package/funcs/accountingListAccountingProfitlosses.d.ts.map +1 -0
- package/funcs/accountingListAccountingProfitlosses.js +120 -0
- package/funcs/accountingListAccountingProfitlosses.js.map +1 -0
- package/funcs/accountingListAccountingPurchaseorders.d.ts +15 -0
- package/funcs/accountingListAccountingPurchaseorders.d.ts.map +1 -0
- package/funcs/accountingListAccountingPurchaseorders.js +119 -0
- package/funcs/accountingListAccountingPurchaseorders.js.map +1 -0
- package/funcs/accountingListAccountingSalesorders.d.ts +15 -0
- package/funcs/accountingListAccountingSalesorders.d.ts.map +1 -0
- package/funcs/accountingListAccountingSalesorders.js +119 -0
- package/funcs/accountingListAccountingSalesorders.js.map +1 -0
- package/funcs/accountingListAccountingTrialbalances.d.ts +15 -0
- package/funcs/accountingListAccountingTrialbalances.d.ts.map +1 -0
- package/funcs/accountingListAccountingTrialbalances.js +120 -0
- package/funcs/accountingListAccountingTrialbalances.js.map +1 -0
- package/funcs/accountingPatchAccountingBill.d.ts +15 -0
- package/funcs/accountingPatchAccountingBill.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingBill.js +116 -0
- package/funcs/accountingPatchAccountingBill.js.map +1 -0
- package/funcs/accountingPatchAccountingCreditmemo.d.ts +15 -0
- package/funcs/accountingPatchAccountingCreditmemo.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingCreditmemo.js +118 -0
- package/funcs/accountingPatchAccountingCreditmemo.js.map +1 -0
- package/funcs/accountingPatchAccountingPurchaseorder.d.ts +15 -0
- package/funcs/accountingPatchAccountingPurchaseorder.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingPurchaseorder.js +118 -0
- package/funcs/accountingPatchAccountingPurchaseorder.js.map +1 -0
- package/funcs/accountingPatchAccountingSalesorder.d.ts +15 -0
- package/funcs/accountingPatchAccountingSalesorder.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingSalesorder.js +118 -0
- package/funcs/accountingPatchAccountingSalesorder.js.map +1 -0
- package/funcs/accountingRemoveAccountingBill.d.ts +14 -0
- package/funcs/accountingRemoveAccountingBill.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingBill.js +112 -0
- package/funcs/accountingRemoveAccountingBill.js.map +1 -0
- package/funcs/accountingRemoveAccountingCreditmemo.d.ts +14 -0
- package/funcs/accountingRemoveAccountingCreditmemo.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingCreditmemo.js +112 -0
- package/funcs/accountingRemoveAccountingCreditmemo.js.map +1 -0
- package/funcs/accountingRemoveAccountingPurchaseorder.d.ts +14 -0
- package/funcs/accountingRemoveAccountingPurchaseorder.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingPurchaseorder.js +112 -0
- package/funcs/accountingRemoveAccountingPurchaseorder.js.map +1 -0
- package/funcs/accountingRemoveAccountingSalesorder.d.ts +14 -0
- package/funcs/accountingRemoveAccountingSalesorder.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingSalesorder.js +112 -0
- package/funcs/accountingRemoveAccountingSalesorder.js.map +1 -0
- package/funcs/accountingUpdateAccountingBill.d.ts +15 -0
- package/funcs/accountingUpdateAccountingBill.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingBill.js +116 -0
- package/funcs/accountingUpdateAccountingBill.js.map +1 -0
- package/funcs/accountingUpdateAccountingCreditmemo.d.ts +15 -0
- package/funcs/accountingUpdateAccountingCreditmemo.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingCreditmemo.js +118 -0
- package/funcs/accountingUpdateAccountingCreditmemo.js.map +1 -0
- package/funcs/accountingUpdateAccountingPurchaseorder.d.ts +15 -0
- package/funcs/accountingUpdateAccountingPurchaseorder.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingPurchaseorder.js +118 -0
- package/funcs/accountingUpdateAccountingPurchaseorder.js.map +1 -0
- package/funcs/accountingUpdateAccountingSalesorder.d.ts +15 -0
- package/funcs/accountingUpdateAccountingSalesorder.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingSalesorder.js +118 -0
- package/funcs/accountingUpdateAccountingSalesorder.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +61 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountingCreateAccountingBill.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingBill.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingBill.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingBill.js.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingCreditmemo.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingCreditmemo.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingCreditmemo.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingCreditmemo.js.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingPurchaseorder.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingPurchaseorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingPurchaseorder.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingPurchaseorder.js.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingSalesorder.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingSalesorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingSalesorder.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingSalesorder.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingBalancesheet.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingBalancesheet.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingBalancesheet.js +52 -0
- package/mcp-server/tools/accountingGetAccountingBalancesheet.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingBill.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingBill.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingBill.js +52 -0
- package/mcp-server/tools/accountingGetAccountingBill.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCreditmemo.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingCreditmemo.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCreditmemo.js +52 -0
- package/mcp-server/tools/accountingGetAccountingCreditmemo.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingProfitloss.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingProfitloss.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingProfitloss.js +52 -0
- package/mcp-server/tools/accountingGetAccountingProfitloss.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingPurchaseorder.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingPurchaseorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingPurchaseorder.js +52 -0
- package/mcp-server/tools/accountingGetAccountingPurchaseorder.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingSalesorder.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingSalesorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingSalesorder.js +52 -0
- package/mcp-server/tools/accountingGetAccountingSalesorder.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingTrialbalance.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingTrialbalance.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingTrialbalance.js +52 -0
- package/mcp-server/tools/accountingGetAccountingTrialbalance.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingBalancesheets.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingBalancesheets.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingBalancesheets.js +52 -0
- package/mcp-server/tools/accountingListAccountingBalancesheets.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingBills.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingBills.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingBills.js +52 -0
- package/mcp-server/tools/accountingListAccountingBills.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingCreditmemoes.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingCreditmemoes.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingCreditmemoes.js +52 -0
- package/mcp-server/tools/accountingListAccountingCreditmemoes.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingProfitlosses.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingProfitlosses.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingProfitlosses.js +52 -0
- package/mcp-server/tools/accountingListAccountingProfitlosses.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingPurchaseorders.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingPurchaseorders.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingPurchaseorders.js +52 -0
- package/mcp-server/tools/accountingListAccountingPurchaseorders.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingSalesorders.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingSalesorders.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingSalesorders.js +52 -0
- package/mcp-server/tools/accountingListAccountingSalesorders.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingTrialbalances.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingTrialbalances.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingTrialbalances.js +52 -0
- package/mcp-server/tools/accountingListAccountingTrialbalances.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingBill.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingBill.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingBill.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingBill.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCreditmemo.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingCreditmemo.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCreditmemo.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingCreditmemo.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingPurchaseorder.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingPurchaseorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingPurchaseorder.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingPurchaseorder.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingSalesorder.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingSalesorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingSalesorder.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingSalesorder.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingBill.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingBill.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingBill.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingBill.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCreditmemo.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingCreditmemo.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCreditmemo.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingCreditmemo.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingSalesorder.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingSalesorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingSalesorder.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingSalesorder.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingBill.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingBill.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingBill.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingBill.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCreditmemo.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingCreditmemo.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCreditmemo.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingCreditmemo.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingSalesorder.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingSalesorder.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingSalesorder.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingSalesorder.js.map +1 -0
- package/package.json +2 -2
- package/sdk/accounting.d.ts +120 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +210 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/balancesheet.d.ts +14 -0
- package/sdk/balancesheet.d.ts.map +1 -0
- package/sdk/balancesheet.js +26 -0
- package/sdk/balancesheet.js.map +1 -0
- package/sdk/bill.d.ts +30 -0
- package/sdk/bill.d.ts.map +1 -0
- package/sdk/bill.js +54 -0
- package/sdk/bill.js.map +1 -0
- package/sdk/creditmemo.d.ts +30 -0
- package/sdk/creditmemo.d.ts.map +1 -0
- package/sdk/creditmemo.js +54 -0
- package/sdk/creditmemo.js.map +1 -0
- package/sdk/models/operations/createaccountingbill.d.ts +45 -0
- package/sdk/models/operations/createaccountingbill.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingbill.js +77 -0
- package/sdk/models/operations/createaccountingbill.js.map +1 -0
- package/sdk/models/operations/createaccountingcreditmemo.d.ts +45 -0
- package/sdk/models/operations/createaccountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingcreditmemo.js +77 -0
- package/sdk/models/operations/createaccountingcreditmemo.js.map +1 -0
- package/sdk/models/operations/createaccountingpurchaseorder.d.ts +45 -0
- package/sdk/models/operations/createaccountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingpurchaseorder.js +77 -0
- package/sdk/models/operations/createaccountingpurchaseorder.js.map +1 -0
- package/sdk/models/operations/createaccountingsalesorder.d.ts +45 -0
- package/sdk/models/operations/createaccountingsalesorder.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingsalesorder.js +77 -0
- package/sdk/models/operations/createaccountingsalesorder.js.map +1 -0
- package/sdk/models/operations/getaccountingbalancesheet.d.ts +47 -0
- package/sdk/models/operations/getaccountingbalancesheet.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingbalancesheet.js +74 -0
- package/sdk/models/operations/getaccountingbalancesheet.js.map +1 -0
- package/sdk/models/operations/getaccountingbill.d.ts +47 -0
- package/sdk/models/operations/getaccountingbill.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingbill.js +74 -0
- package/sdk/models/operations/getaccountingbill.js.map +1 -0
- package/sdk/models/operations/getaccountingcreditmemo.d.ts +47 -0
- package/sdk/models/operations/getaccountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingcreditmemo.js +74 -0
- package/sdk/models/operations/getaccountingcreditmemo.js.map +1 -0
- package/sdk/models/operations/getaccountingprofitloss.d.ts +47 -0
- package/sdk/models/operations/getaccountingprofitloss.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingprofitloss.js +74 -0
- package/sdk/models/operations/getaccountingprofitloss.js.map +1 -0
- package/sdk/models/operations/getaccountingpurchaseorder.d.ts +47 -0
- package/sdk/models/operations/getaccountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingpurchaseorder.js +74 -0
- package/sdk/models/operations/getaccountingpurchaseorder.js.map +1 -0
- package/sdk/models/operations/getaccountingsalesorder.d.ts +47 -0
- package/sdk/models/operations/getaccountingsalesorder.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingsalesorder.js +74 -0
- package/sdk/models/operations/getaccountingsalesorder.js.map +1 -0
- package/sdk/models/operations/getaccountingtrialbalance.d.ts +47 -0
- package/sdk/models/operations/getaccountingtrialbalance.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingtrialbalance.js +74 -0
- package/sdk/models/operations/getaccountingtrialbalance.js.map +1 -0
- package/sdk/models/operations/index.d.ts +30 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +30 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingbalancesheets.d.ts +70 -0
- package/sdk/models/operations/listaccountingbalancesheets.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingbalancesheets.js +94 -0
- package/sdk/models/operations/listaccountingbalancesheets.js.map +1 -0
- package/sdk/models/operations/listaccountingbills.d.ts +70 -0
- package/sdk/models/operations/listaccountingbills.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingbills.js +94 -0
- package/sdk/models/operations/listaccountingbills.js.map +1 -0
- package/sdk/models/operations/listaccountingcreditmemoes.d.ts +70 -0
- package/sdk/models/operations/listaccountingcreditmemoes.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingcreditmemoes.js +94 -0
- package/sdk/models/operations/listaccountingcreditmemoes.js.map +1 -0
- package/sdk/models/operations/listaccountingprofitlosses.d.ts +70 -0
- package/sdk/models/operations/listaccountingprofitlosses.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingprofitlosses.js +94 -0
- package/sdk/models/operations/listaccountingprofitlosses.js.map +1 -0
- package/sdk/models/operations/listaccountingpurchaseorders.d.ts +65 -0
- package/sdk/models/operations/listaccountingpurchaseorders.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingpurchaseorders.js +90 -0
- package/sdk/models/operations/listaccountingpurchaseorders.js.map +1 -0
- package/sdk/models/operations/listaccountingsalesorders.d.ts +65 -0
- package/sdk/models/operations/listaccountingsalesorders.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingsalesorders.js +90 -0
- package/sdk/models/operations/listaccountingsalesorders.js.map +1 -0
- package/sdk/models/operations/listaccountingtrialbalances.d.ts +70 -0
- package/sdk/models/operations/listaccountingtrialbalances.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingtrialbalances.js +94 -0
- package/sdk/models/operations/listaccountingtrialbalances.js.map +1 -0
- package/sdk/models/operations/patchaccountingbill.d.ts +50 -0
- package/sdk/models/operations/patchaccountingbill.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingbill.js +79 -0
- package/sdk/models/operations/patchaccountingbill.js.map +1 -0
- package/sdk/models/operations/patchaccountingcreditmemo.d.ts +50 -0
- package/sdk/models/operations/patchaccountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingcreditmemo.js +79 -0
- package/sdk/models/operations/patchaccountingcreditmemo.js.map +1 -0
- package/sdk/models/operations/patchaccountingpurchaseorder.d.ts +50 -0
- package/sdk/models/operations/patchaccountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingpurchaseorder.js +79 -0
- package/sdk/models/operations/patchaccountingpurchaseorder.js.map +1 -0
- package/sdk/models/operations/patchaccountingsalesorder.d.ts +50 -0
- package/sdk/models/operations/patchaccountingsalesorder.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingsalesorder.js +79 -0
- package/sdk/models/operations/patchaccountingsalesorder.js.map +1 -0
- package/sdk/models/operations/removeaccountingbill.d.ts +66 -0
- package/sdk/models/operations/removeaccountingbill.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingbill.js +105 -0
- package/sdk/models/operations/removeaccountingbill.js.map +1 -0
- package/sdk/models/operations/removeaccountingcreditmemo.d.ts +66 -0
- package/sdk/models/operations/removeaccountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingcreditmemo.js +105 -0
- package/sdk/models/operations/removeaccountingcreditmemo.js.map +1 -0
- package/sdk/models/operations/removeaccountingpurchaseorder.d.ts +66 -0
- package/sdk/models/operations/removeaccountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingpurchaseorder.js +105 -0
- package/sdk/models/operations/removeaccountingpurchaseorder.js.map +1 -0
- package/sdk/models/operations/removeaccountingsalesorder.d.ts +66 -0
- package/sdk/models/operations/removeaccountingsalesorder.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingsalesorder.js +105 -0
- package/sdk/models/operations/removeaccountingsalesorder.js.map +1 -0
- package/sdk/models/operations/updateaccountingbill.d.ts +50 -0
- package/sdk/models/operations/updateaccountingbill.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingbill.js +79 -0
- package/sdk/models/operations/updateaccountingbill.js.map +1 -0
- package/sdk/models/operations/updateaccountingcreditmemo.d.ts +50 -0
- package/sdk/models/operations/updateaccountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingcreditmemo.js +79 -0
- package/sdk/models/operations/updateaccountingcreditmemo.js.map +1 -0
- package/sdk/models/operations/updateaccountingpurchaseorder.d.ts +50 -0
- package/sdk/models/operations/updateaccountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingpurchaseorder.js +79 -0
- package/sdk/models/operations/updateaccountingpurchaseorder.js.map +1 -0
- package/sdk/models/operations/updateaccountingsalesorder.d.ts +50 -0
- package/sdk/models/operations/updateaccountingsalesorder.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingsalesorder.js +79 -0
- package/sdk/models/operations/updateaccountingsalesorder.js.map +1 -0
- package/sdk/models/shared/accountingbalancesheet.d.ts +56 -0
- package/sdk/models/shared/accountingbalancesheet.d.ts.map +1 -0
- package/sdk/models/shared/accountingbalancesheet.js +103 -0
- package/sdk/models/shared/accountingbalancesheet.js.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts +16 -16
- package/sdk/models/shared/accountingbalancesheetitem.js +18 -18
- package/sdk/models/shared/accountingbill.d.ts +129 -0
- package/sdk/models/shared/accountingbill.d.ts.map +1 -0
- package/sdk/models/shared/accountingbill.js +216 -0
- package/sdk/models/shared/accountingbill.js.map +1 -0
- package/sdk/models/shared/accountingcreditmemo.d.ts +129 -0
- package/sdk/models/shared/accountingcreditmemo.d.ts.map +1 -0
- package/sdk/models/shared/accountingcreditmemo.js +216 -0
- package/sdk/models/shared/accountingcreditmemo.js.map +1 -0
- package/sdk/models/shared/accountinginvoice.d.ts +10 -10
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +15 -15
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingprofitloss.d.ts +82 -0
- package/sdk/models/shared/accountingprofitloss.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitloss.js +145 -0
- package/sdk/models/shared/accountingprofitloss.js.map +1 -0
- package/sdk/models/shared/accountingprofitlossaccount.d.ts +35 -0
- package/sdk/models/shared/accountingprofitlossaccount.d.ts.map +1 -0
- package/sdk/models/shared/{accountingprofitandlossaccount.js → accountingprofitlossaccount.js} +17 -17
- package/sdk/models/shared/accountingprofitlossaccount.js.map +1 -0
- package/sdk/models/shared/accountingprofitlosscategory.d.ts +37 -0
- package/sdk/models/shared/accountingprofitlosscategory.d.ts.map +1 -0
- package/sdk/models/shared/{accountingprofitandlosscategory.js → accountingprofitlosscategory.js} +20 -22
- package/sdk/models/shared/accountingprofitlosscategory.js.map +1 -0
- package/sdk/models/shared/accountingprofitlosssection.d.ts +36 -0
- package/sdk/models/shared/accountingprofitlosssection.d.ts.map +1 -0
- package/sdk/models/shared/{accountingprofitandlosssection.js → accountingprofitlosssection.js} +20 -20
- package/sdk/models/shared/accountingprofitlosssection.js.map +1 -0
- package/sdk/models/shared/accountingprofitlosssubcategory.d.ts +36 -0
- package/sdk/models/shared/accountingprofitlosssubcategory.d.ts.map +1 -0
- package/sdk/models/shared/{accountingprofitandlosssubcategory.js → accountingprofitlosssubcategory.js} +17 -17
- package/sdk/models/shared/accountingprofitlosssubcategory.js.map +1 -0
- package/sdk/models/shared/accountingpurchaseorder.d.ts +85 -0
- package/sdk/models/shared/accountingpurchaseorder.d.ts.map +1 -0
- package/sdk/models/shared/accountingpurchaseorder.js +148 -0
- package/sdk/models/shared/accountingpurchaseorder.js.map +1 -0
- package/sdk/models/shared/accountingsalesorder.d.ts +85 -0
- package/sdk/models/shared/accountingsalesorder.d.ts.map +1 -0
- package/sdk/models/shared/accountingsalesorder.js +148 -0
- package/sdk/models/shared/accountingsalesorder.js.map +1 -0
- package/sdk/models/shared/accountingtrialbalance.d.ts +54 -0
- package/sdk/models/shared/accountingtrialbalance.d.ts.map +1 -0
- package/sdk/models/shared/accountingtrialbalance.js +105 -0
- package/sdk/models/shared/accountingtrialbalance.js.map +1 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +13 -13
- package/sdk/models/shared/accountingtrialbalancesubitem.js +16 -16
- package/sdk/models/shared/index.d.ts +15 -4
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +15 -4
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +13 -13
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +16 -16
- package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.d.ts +43 -0
- package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.js +86 -0
- package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.js.map +1 -0
- package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.d.ts +43 -0
- package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.js +86 -0
- package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +27 -7
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -1
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js +34 -6
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -1
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +34 -14
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -1
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +43 -14
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -1
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +23 -3
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -1
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js +30 -2
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -1
- package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.d.ts +43 -0
- package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.js +86 -0
- package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.js.map +1 -0
- package/sdk/models/shared/propertyaccountingsalesordershippingaddress.d.ts +43 -0
- package/sdk/models/shared/propertyaccountingsalesordershippingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingsalesordershippingaddress.js +86 -0
- package/sdk/models/shared/propertyaccountingsalesordershippingaddress.js.map +1 -0
- package/sdk/profitloss.d.ts +14 -0
- package/sdk/profitloss.d.ts.map +1 -0
- package/sdk/profitloss.js +26 -0
- package/sdk/profitloss.js.map +1 -0
- package/sdk/purchaseorder.d.ts +30 -0
- package/sdk/purchaseorder.d.ts.map +1 -0
- package/sdk/purchaseorder.js +54 -0
- package/sdk/purchaseorder.js.map +1 -0
- package/sdk/salesorder.d.ts +30 -0
- package/sdk/salesorder.d.ts.map +1 -0
- package/sdk/salesorder.js +54 -0
- package/sdk/salesorder.js.map +1 -0
- package/sdk/sdk.d.ts +21 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +28 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/trialbalance.d.ts +14 -0
- package/sdk/trialbalance.d.ts.map +1 -0
- package/sdk/trialbalance.js +26 -0
- package/sdk/trialbalance.js.map +1 -0
- package/src/funcs/accountingCreateAccountingBill.ts +171 -0
- package/src/funcs/accountingCreateAccountingCreditmemo.ts +173 -0
- package/src/funcs/accountingCreateAccountingPurchaseorder.ts +177 -0
- package/src/funcs/accountingCreateAccountingSalesorder.ts +173 -0
- package/src/funcs/accountingGetAccountingBalancesheet.ts +176 -0
- package/src/funcs/accountingGetAccountingBill.ts +173 -0
- package/src/funcs/accountingGetAccountingCreditmemo.ts +176 -0
- package/src/funcs/accountingGetAccountingProfitloss.ts +176 -0
- package/src/funcs/accountingGetAccountingPurchaseorder.ts +176 -0
- package/src/funcs/accountingGetAccountingSalesorder.ts +176 -0
- package/src/funcs/accountingGetAccountingTrialbalance.ts +176 -0
- package/src/funcs/accountingListAccountingBalancesheets.ts +181 -0
- package/src/funcs/accountingListAccountingBills.ts +179 -0
- package/src/funcs/accountingListAccountingCreditmemoes.ts +179 -0
- package/src/funcs/accountingListAccountingProfitlosses.ts +179 -0
- package/src/funcs/accountingListAccountingPurchaseorders.ts +182 -0
- package/src/funcs/accountingListAccountingSalesorders.ts +178 -0
- package/src/funcs/accountingListAccountingTrialbalances.ts +181 -0
- package/src/funcs/accountingPatchAccountingBill.ts +175 -0
- package/src/funcs/accountingPatchAccountingCreditmemo.ts +179 -0
- package/src/funcs/accountingPatchAccountingPurchaseorder.ts +181 -0
- package/src/funcs/accountingPatchAccountingSalesorder.ts +179 -0
- package/src/funcs/accountingRemoveAccountingBill.ts +179 -0
- package/src/funcs/accountingRemoveAccountingCreditmemo.ts +181 -0
- package/src/funcs/accountingRemoveAccountingPurchaseorder.ts +183 -0
- package/src/funcs/accountingRemoveAccountingSalesorder.ts +181 -0
- package/src/funcs/accountingUpdateAccountingBill.ts +175 -0
- package/src/funcs/accountingUpdateAccountingCreditmemo.ts +179 -0
- package/src/funcs/accountingUpdateAccountingPurchaseorder.ts +181 -0
- package/src/funcs/accountingUpdateAccountingSalesorder.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +61 -1
- package/src/mcp-server/tools/accountingCreateAccountingBill.ts +36 -0
- package/src/mcp-server/tools/accountingCreateAccountingCreditmemo.ts +37 -0
- package/src/mcp-server/tools/accountingCreateAccountingPurchaseorder.ts +37 -0
- package/src/mcp-server/tools/accountingCreateAccountingSalesorder.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingBalancesheet.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingBill.ts +35 -0
- package/src/mcp-server/tools/accountingGetAccountingCreditmemo.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingProfitloss.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingPurchaseorder.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingSalesorder.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingTrialbalance.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingBalancesheets.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingBills.ts +35 -0
- package/src/mcp-server/tools/accountingListAccountingCreditmemoes.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingProfitlosses.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingPurchaseorders.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingSalesorders.ts +37 -0
- package/src/mcp-server/tools/accountingListAccountingTrialbalances.ts +37 -0
- package/src/mcp-server/tools/accountingPatchAccountingBill.ts +35 -0
- package/src/mcp-server/tools/accountingPatchAccountingCreditmemo.ts +37 -0
- package/src/mcp-server/tools/accountingPatchAccountingPurchaseorder.ts +37 -0
- package/src/mcp-server/tools/accountingPatchAccountingSalesorder.ts +37 -0
- package/src/mcp-server/tools/accountingRemoveAccountingBill.ts +34 -0
- package/src/mcp-server/tools/accountingRemoveAccountingCreditmemo.ts +35 -0
- package/src/mcp-server/tools/accountingRemoveAccountingPurchaseorder.ts +35 -0
- package/src/mcp-server/tools/accountingRemoveAccountingSalesorder.ts +35 -0
- package/src/mcp-server/tools/accountingUpdateAccountingBill.ts +36 -0
- package/src/mcp-server/tools/accountingUpdateAccountingCreditmemo.ts +37 -0
- package/src/mcp-server/tools/accountingUpdateAccountingPurchaseorder.ts +37 -0
- package/src/mcp-server/tools/accountingUpdateAccountingSalesorder.ts +37 -0
- package/src/sdk/accounting.ts +450 -0
- package/src/sdk/balancesheet.ts +40 -0
- package/src/sdk/bill.ts +100 -0
- package/src/sdk/creditmemo.ts +100 -0
- package/src/sdk/models/operations/createaccountingbill.ts +101 -0
- package/src/sdk/models/operations/createaccountingcreditmemo.ts +102 -0
- package/src/sdk/models/operations/createaccountingpurchaseorder.ts +104 -0
- package/src/sdk/models/operations/createaccountingsalesorder.ts +102 -0
- package/src/sdk/models/operations/getaccountingbalancesheet.ts +101 -0
- package/src/sdk/models/operations/getaccountingbill.ts +99 -0
- package/src/sdk/models/operations/getaccountingcreditmemo.ts +101 -0
- package/src/sdk/models/operations/getaccountingprofitloss.ts +101 -0
- package/src/sdk/models/operations/getaccountingpurchaseorder.ts +102 -0
- package/src/sdk/models/operations/getaccountingsalesorder.ts +101 -0
- package/src/sdk/models/operations/getaccountingtrialbalance.ts +101 -0
- package/src/sdk/models/operations/index.ts +30 -0
- package/src/sdk/models/operations/listaccountingbalancesheets.ts +146 -0
- package/src/sdk/models/operations/listaccountingbills.ts +142 -0
- package/src/sdk/models/operations/listaccountingcreditmemoes.ts +145 -0
- package/src/sdk/models/operations/listaccountingprofitlosses.ts +145 -0
- package/src/sdk/models/operations/listaccountingpurchaseorders.ts +138 -0
- package/src/sdk/models/operations/listaccountingsalesorders.ts +135 -0
- package/src/sdk/models/operations/listaccountingtrialbalances.ts +146 -0
- package/src/sdk/models/operations/patchaccountingbill.ts +106 -0
- package/src/sdk/models/operations/patchaccountingcreditmemo.ts +108 -0
- package/src/sdk/models/operations/patchaccountingpurchaseorder.ts +111 -0
- package/src/sdk/models/operations/patchaccountingsalesorder.ts +108 -0
- package/src/sdk/models/operations/removeaccountingbill.ts +155 -0
- package/src/sdk/models/operations/removeaccountingcreditmemo.ts +158 -0
- package/src/sdk/models/operations/removeaccountingpurchaseorder.ts +161 -0
- package/src/sdk/models/operations/removeaccountingsalesorder.ts +158 -0
- package/src/sdk/models/operations/updateaccountingbill.ts +108 -0
- package/src/sdk/models/operations/updateaccountingcreditmemo.ts +109 -0
- package/src/sdk/models/operations/updateaccountingpurchaseorder.ts +111 -0
- package/src/sdk/models/operations/updateaccountingsalesorder.ts +109 -0
- package/src/sdk/models/shared/accountingbalancesheet.ts +137 -0
- package/src/sdk/models/shared/accountingbalancesheetitem.ts +29 -29
- package/src/sdk/models/shared/accountingbill.ts +309 -0
- package/src/sdk/models/shared/accountingcreditmemo.ts +325 -0
- package/src/sdk/models/shared/accountinginvoice.ts +25 -17
- package/src/sdk/models/shared/accountingprofitloss.ts +213 -0
- package/src/sdk/models/shared/{accountingprofitandlossaccount.ts → accountingprofitlossaccount.ts} +22 -22
- package/src/sdk/models/shared/accountingprofitlosscategory.ts +94 -0
- package/src/sdk/models/shared/accountingprofitlosssection.ts +99 -0
- package/src/sdk/models/shared/accountingprofitlosssubcategory.ts +88 -0
- package/src/sdk/models/shared/accountingpurchaseorder.ts +216 -0
- package/src/sdk/models/shared/accountingsalesorder.ts +216 -0
- package/src/sdk/models/shared/accountingtrialbalance.ts +137 -0
- package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +22 -22
- package/src/sdk/models/shared/index.ts +15 -4
- package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +23 -23
- package/src/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.ts +120 -0
- package/src/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.ts +121 -0
- package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +60 -16
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +79 -40
- package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +52 -8
- package/src/sdk/models/shared/propertyaccountingsalesorderbillingaddress.ts +117 -0
- package/src/sdk/models/shared/propertyaccountingsalesordershippingaddress.ts +120 -0
- package/src/sdk/profitloss.ts +40 -0
- package/src/sdk/purchaseorder.ts +100 -0
- package/src/sdk/salesorder.ts +100 -0
- package/src/sdk/sdk.ts +42 -0
- package/src/sdk/trialbalance.ts +40 -0
- package/sdk/models/shared/accountingprofitandlossaccount.d.ts +0 -35
- package/sdk/models/shared/accountingprofitandlossaccount.d.ts.map +0 -1
- package/sdk/models/shared/accountingprofitandlossaccount.js.map +0 -1
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +0 -37
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +0 -1
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +0 -1
- package/sdk/models/shared/accountingprofitandlosssection.d.ts +0 -36
- package/sdk/models/shared/accountingprofitandlosssection.d.ts.map +0 -1
- package/sdk/models/shared/accountingprofitandlosssection.js.map +0 -1
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +0 -36
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +0 -1
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +0 -1
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +0 -96
- package/src/sdk/models/shared/accountingprofitandlosssection.ts +0 -99
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +0 -90
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AccountingBalancesheetItem,
|
|
12
|
+
AccountingBalancesheetItem$inboundSchema,
|
|
13
|
+
AccountingBalancesheetItem$Outbound,
|
|
14
|
+
AccountingBalancesheetItem$outboundSchema,
|
|
15
|
+
} from "./accountingbalancesheetitem.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingBalancesheet = {
|
|
18
|
+
assets?: Array<AccountingBalancesheetItem> | undefined;
|
|
19
|
+
createdAt?: Date | undefined;
|
|
20
|
+
currency?: string | undefined;
|
|
21
|
+
endAt?: Date | undefined;
|
|
22
|
+
equity?: Array<AccountingBalancesheetItem> | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
liabilities?: Array<AccountingBalancesheetItem> | undefined;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
netAssetsAmount?: number | undefined;
|
|
27
|
+
raw?: { [k: string]: any } | undefined;
|
|
28
|
+
startAt?: Date | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const AccountingBalancesheet$inboundSchema: z.ZodType<
|
|
34
|
+
AccountingBalancesheet,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
assets: z.array(AccountingBalancesheetItem$inboundSchema).optional(),
|
|
39
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
40
|
+
.optional(),
|
|
41
|
+
currency: z.string().optional(),
|
|
42
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
43
|
+
.optional(),
|
|
44
|
+
equity: z.array(AccountingBalancesheetItem$inboundSchema).optional(),
|
|
45
|
+
id: z.string().optional(),
|
|
46
|
+
liabilities: z.array(AccountingBalancesheetItem$inboundSchema).optional(),
|
|
47
|
+
name: z.string().optional(),
|
|
48
|
+
net_assets_amount: z.number().optional(),
|
|
49
|
+
raw: z.record(z.any()).optional(),
|
|
50
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
51
|
+
.optional(),
|
|
52
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
53
|
+
.optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
"created_at": "createdAt",
|
|
57
|
+
"end_at": "endAt",
|
|
58
|
+
"net_assets_amount": "netAssetsAmount",
|
|
59
|
+
"start_at": "startAt",
|
|
60
|
+
"updated_at": "updatedAt",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type AccountingBalancesheet$Outbound = {
|
|
66
|
+
assets?: Array<AccountingBalancesheetItem$Outbound> | undefined;
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
currency?: string | undefined;
|
|
69
|
+
end_at?: string | undefined;
|
|
70
|
+
equity?: Array<AccountingBalancesheetItem$Outbound> | undefined;
|
|
71
|
+
id?: string | undefined;
|
|
72
|
+
liabilities?: Array<AccountingBalancesheetItem$Outbound> | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
net_assets_amount?: number | undefined;
|
|
75
|
+
raw?: { [k: string]: any } | undefined;
|
|
76
|
+
start_at?: string | undefined;
|
|
77
|
+
updated_at?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AccountingBalancesheet$outboundSchema: z.ZodType<
|
|
82
|
+
AccountingBalancesheet$Outbound,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
AccountingBalancesheet
|
|
85
|
+
> = z.object({
|
|
86
|
+
assets: z.array(AccountingBalancesheetItem$outboundSchema).optional(),
|
|
87
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
88
|
+
currency: z.string().optional(),
|
|
89
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
90
|
+
equity: z.array(AccountingBalancesheetItem$outboundSchema).optional(),
|
|
91
|
+
id: z.string().optional(),
|
|
92
|
+
liabilities: z.array(AccountingBalancesheetItem$outboundSchema).optional(),
|
|
93
|
+
name: z.string().optional(),
|
|
94
|
+
netAssetsAmount: z.number().optional(),
|
|
95
|
+
raw: z.record(z.any()).optional(),
|
|
96
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
97
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
createdAt: "created_at",
|
|
101
|
+
endAt: "end_at",
|
|
102
|
+
netAssetsAmount: "net_assets_amount",
|
|
103
|
+
startAt: "start_at",
|
|
104
|
+
updatedAt: "updated_at",
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
+
*/
|
|
112
|
+
export namespace AccountingBalancesheet$ {
|
|
113
|
+
/** @deprecated use `AccountingBalancesheet$inboundSchema` instead. */
|
|
114
|
+
export const inboundSchema = AccountingBalancesheet$inboundSchema;
|
|
115
|
+
/** @deprecated use `AccountingBalancesheet$outboundSchema` instead. */
|
|
116
|
+
export const outboundSchema = AccountingBalancesheet$outboundSchema;
|
|
117
|
+
/** @deprecated use `AccountingBalancesheet$Outbound` instead. */
|
|
118
|
+
export type Outbound = AccountingBalancesheet$Outbound;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function accountingBalancesheetToJSON(
|
|
122
|
+
accountingBalancesheet: AccountingBalancesheet,
|
|
123
|
+
): string {
|
|
124
|
+
return JSON.stringify(
|
|
125
|
+
AccountingBalancesheet$outboundSchema.parse(accountingBalancesheet),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function accountingBalancesheetFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<AccountingBalancesheet, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => AccountingBalancesheet$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'AccountingBalancesheet' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -8,29 +8,29 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
PropertyAccountingBalancesheetItemSubItems,
|
|
12
|
+
PropertyAccountingBalancesheetItemSubItems$inboundSchema,
|
|
13
|
+
PropertyAccountingBalancesheetItemSubItems$Outbound,
|
|
14
|
+
PropertyAccountingBalancesheetItemSubItems$outboundSchema,
|
|
15
15
|
} from "./propertyaccountingbalancesheetitemsubitems.js";
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type AccountingBalancesheetItem = {
|
|
18
18
|
accountId?: string | undefined;
|
|
19
19
|
amount?: number | undefined;
|
|
20
20
|
name?: string | undefined;
|
|
21
|
-
subItems?: Array<
|
|
21
|
+
subItems?: Array<PropertyAccountingBalancesheetItemSubItems> | undefined;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
/** @internal */
|
|
25
|
-
export const
|
|
26
|
-
|
|
25
|
+
export const AccountingBalancesheetItem$inboundSchema: z.ZodType<
|
|
26
|
+
AccountingBalancesheetItem,
|
|
27
27
|
z.ZodTypeDef,
|
|
28
28
|
unknown
|
|
29
29
|
> = z.object({
|
|
30
30
|
account_id: z.string().optional(),
|
|
31
31
|
amount: z.number().optional(),
|
|
32
32
|
name: z.string().optional(),
|
|
33
|
-
sub_items: z.array(
|
|
33
|
+
sub_items: z.array(PropertyAccountingBalancesheetItemSubItems$inboundSchema)
|
|
34
34
|
.optional(),
|
|
35
35
|
}).transform((v) => {
|
|
36
36
|
return remap$(v, {
|
|
@@ -40,25 +40,25 @@ export const AccountingBalanceSheetItem$inboundSchema: z.ZodType<
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export type
|
|
43
|
+
export type AccountingBalancesheetItem$Outbound = {
|
|
44
44
|
account_id?: string | undefined;
|
|
45
45
|
amount?: number | undefined;
|
|
46
46
|
name?: string | undefined;
|
|
47
47
|
sub_items?:
|
|
48
|
-
| Array<
|
|
48
|
+
| Array<PropertyAccountingBalancesheetItemSubItems$Outbound>
|
|
49
49
|
| undefined;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
53
|
-
export const
|
|
54
|
-
|
|
53
|
+
export const AccountingBalancesheetItem$outboundSchema: z.ZodType<
|
|
54
|
+
AccountingBalancesheetItem$Outbound,
|
|
55
55
|
z.ZodTypeDef,
|
|
56
|
-
|
|
56
|
+
AccountingBalancesheetItem
|
|
57
57
|
> = z.object({
|
|
58
58
|
accountId: z.string().optional(),
|
|
59
59
|
amount: z.number().optional(),
|
|
60
60
|
name: z.string().optional(),
|
|
61
|
-
subItems: z.array(
|
|
61
|
+
subItems: z.array(PropertyAccountingBalancesheetItemSubItems$outboundSchema)
|
|
62
62
|
.optional(),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
@@ -71,29 +71,29 @@ export const AccountingBalanceSheetItem$outboundSchema: z.ZodType<
|
|
|
71
71
|
* @internal
|
|
72
72
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
73
|
*/
|
|
74
|
-
export namespace
|
|
75
|
-
/** @deprecated use `
|
|
76
|
-
export const inboundSchema =
|
|
77
|
-
/** @deprecated use `
|
|
78
|
-
export const outboundSchema =
|
|
79
|
-
/** @deprecated use `
|
|
80
|
-
export type Outbound =
|
|
74
|
+
export namespace AccountingBalancesheetItem$ {
|
|
75
|
+
/** @deprecated use `AccountingBalancesheetItem$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = AccountingBalancesheetItem$inboundSchema;
|
|
77
|
+
/** @deprecated use `AccountingBalancesheetItem$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = AccountingBalancesheetItem$outboundSchema;
|
|
79
|
+
/** @deprecated use `AccountingBalancesheetItem$Outbound` instead. */
|
|
80
|
+
export type Outbound = AccountingBalancesheetItem$Outbound;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export function
|
|
84
|
-
|
|
83
|
+
export function accountingBalancesheetItemToJSON(
|
|
84
|
+
accountingBalancesheetItem: AccountingBalancesheetItem,
|
|
85
85
|
): string {
|
|
86
86
|
return JSON.stringify(
|
|
87
|
-
|
|
87
|
+
AccountingBalancesheetItem$outboundSchema.parse(accountingBalancesheetItem),
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export function
|
|
91
|
+
export function accountingBalancesheetItemFromJSON(
|
|
92
92
|
jsonString: string,
|
|
93
|
-
): SafeParseResult<
|
|
93
|
+
): SafeParseResult<AccountingBalancesheetItem, SDKValidationError> {
|
|
94
94
|
return safeParse(
|
|
95
95
|
jsonString,
|
|
96
|
-
(x) =>
|
|
97
|
-
`Failed to parse '
|
|
96
|
+
(x) => AccountingBalancesheetItem$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'AccountingBalancesheetItem' from JSON`,
|
|
98
98
|
);
|
|
99
99
|
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import {
|
|
9
|
+
catchUnrecognizedEnum,
|
|
10
|
+
OpenEnum,
|
|
11
|
+
Unrecognized,
|
|
12
|
+
} from "../../types/enums.js";
|
|
13
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
14
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
AccountingAttachment,
|
|
17
|
+
AccountingAttachment$inboundSchema,
|
|
18
|
+
AccountingAttachment$Outbound,
|
|
19
|
+
AccountingAttachment$outboundSchema,
|
|
20
|
+
} from "./accountingattachment.js";
|
|
21
|
+
import {
|
|
22
|
+
AccountingLineitem,
|
|
23
|
+
AccountingLineitem$inboundSchema,
|
|
24
|
+
AccountingLineitem$Outbound,
|
|
25
|
+
AccountingLineitem$outboundSchema,
|
|
26
|
+
} from "./accountinglineitem.js";
|
|
27
|
+
|
|
28
|
+
export const PaymentCollectionMethod = {
|
|
29
|
+
SendInvoice: "send_invoice",
|
|
30
|
+
ChargeAutomatically: "charge_automatically",
|
|
31
|
+
} as const;
|
|
32
|
+
export type PaymentCollectionMethod = OpenEnum<typeof PaymentCollectionMethod>;
|
|
33
|
+
|
|
34
|
+
export const AccountingBillStatus = {
|
|
35
|
+
Draft: "DRAFT",
|
|
36
|
+
Voided: "VOIDED",
|
|
37
|
+
Authorized: "AUTHORIZED",
|
|
38
|
+
Paid: "PAID",
|
|
39
|
+
PartiallyPaid: "PARTIALLY_PAID",
|
|
40
|
+
PartiallyRefunded: "PARTIALLY_REFUNDED",
|
|
41
|
+
Refunded: "REFUNDED",
|
|
42
|
+
} as const;
|
|
43
|
+
export type AccountingBillStatus = OpenEnum<typeof AccountingBillStatus>;
|
|
44
|
+
|
|
45
|
+
export type AccountingBill = {
|
|
46
|
+
attachments?: Array<AccountingAttachment> | undefined;
|
|
47
|
+
balanceAmount?: number | undefined;
|
|
48
|
+
billNumber?: string | undefined;
|
|
49
|
+
cancelledAt?: Date | undefined;
|
|
50
|
+
contactId?: string | undefined;
|
|
51
|
+
createdAt?: Date | undefined;
|
|
52
|
+
currency?: string | undefined;
|
|
53
|
+
discountAmount?: number | undefined;
|
|
54
|
+
dueAt?: Date | undefined;
|
|
55
|
+
id?: string | undefined;
|
|
56
|
+
lineitems?: Array<AccountingLineitem> | undefined;
|
|
57
|
+
notes?: string | undefined;
|
|
58
|
+
paidAmount?: number | undefined;
|
|
59
|
+
paidAt?: Date | undefined;
|
|
60
|
+
paymentCollectionMethod?: PaymentCollectionMethod | undefined;
|
|
61
|
+
postedAt?: Date | undefined;
|
|
62
|
+
raw?: { [k: string]: any } | undefined;
|
|
63
|
+
refundAmount?: number | undefined;
|
|
64
|
+
refundReason?: string | undefined;
|
|
65
|
+
refundedAt?: Date | undefined;
|
|
66
|
+
send?: boolean | undefined;
|
|
67
|
+
status?: AccountingBillStatus | undefined;
|
|
68
|
+
taxAmount?: number | undefined;
|
|
69
|
+
totalAmount?: number | undefined;
|
|
70
|
+
updatedAt?: Date | undefined;
|
|
71
|
+
url?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const PaymentCollectionMethod$inboundSchema: z.ZodType<
|
|
76
|
+
PaymentCollectionMethod,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
unknown
|
|
79
|
+
> = z
|
|
80
|
+
.union([
|
|
81
|
+
z.nativeEnum(PaymentCollectionMethod),
|
|
82
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
83
|
+
]);
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const PaymentCollectionMethod$outboundSchema: z.ZodType<
|
|
87
|
+
PaymentCollectionMethod,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
PaymentCollectionMethod
|
|
90
|
+
> = z.union([
|
|
91
|
+
z.nativeEnum(PaymentCollectionMethod),
|
|
92
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
93
|
+
]);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace PaymentCollectionMethod$ {
|
|
100
|
+
/** @deprecated use `PaymentCollectionMethod$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = PaymentCollectionMethod$inboundSchema;
|
|
102
|
+
/** @deprecated use `PaymentCollectionMethod$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = PaymentCollectionMethod$outboundSchema;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const AccountingBillStatus$inboundSchema: z.ZodType<
|
|
108
|
+
AccountingBillStatus,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z
|
|
112
|
+
.union([
|
|
113
|
+
z.nativeEnum(AccountingBillStatus),
|
|
114
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
115
|
+
]);
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const AccountingBillStatus$outboundSchema: z.ZodType<
|
|
119
|
+
AccountingBillStatus,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
AccountingBillStatus
|
|
122
|
+
> = z.union([
|
|
123
|
+
z.nativeEnum(AccountingBillStatus),
|
|
124
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
125
|
+
]);
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
+
*/
|
|
131
|
+
export namespace AccountingBillStatus$ {
|
|
132
|
+
/** @deprecated use `AccountingBillStatus$inboundSchema` instead. */
|
|
133
|
+
export const inboundSchema = AccountingBillStatus$inboundSchema;
|
|
134
|
+
/** @deprecated use `AccountingBillStatus$outboundSchema` instead. */
|
|
135
|
+
export const outboundSchema = AccountingBillStatus$outboundSchema;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const AccountingBill$inboundSchema: z.ZodType<
|
|
140
|
+
AccountingBill,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
attachments: z.array(AccountingAttachment$inboundSchema).optional(),
|
|
145
|
+
balance_amount: z.number().optional(),
|
|
146
|
+
bill_number: z.string().optional(),
|
|
147
|
+
cancelled_at: z.string().datetime({ offset: true }).transform(v =>
|
|
148
|
+
new Date(v)
|
|
149
|
+
).optional(),
|
|
150
|
+
contact_id: z.string().optional(),
|
|
151
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
|
+
.optional(),
|
|
153
|
+
currency: z.string().optional(),
|
|
154
|
+
discount_amount: z.number().optional(),
|
|
155
|
+
due_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
156
|
+
.optional(),
|
|
157
|
+
id: z.string().optional(),
|
|
158
|
+
lineitems: z.array(AccountingLineitem$inboundSchema).optional(),
|
|
159
|
+
notes: z.string().optional(),
|
|
160
|
+
paid_amount: z.number().optional(),
|
|
161
|
+
paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
162
|
+
.optional(),
|
|
163
|
+
payment_collection_method: PaymentCollectionMethod$inboundSchema.optional(),
|
|
164
|
+
posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
165
|
+
.optional(),
|
|
166
|
+
raw: z.record(z.any()).optional(),
|
|
167
|
+
refund_amount: z.number().optional(),
|
|
168
|
+
refund_reason: z.string().optional(),
|
|
169
|
+
refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
|
+
.optional(),
|
|
171
|
+
send: z.boolean().optional(),
|
|
172
|
+
status: AccountingBillStatus$inboundSchema.optional(),
|
|
173
|
+
tax_amount: z.number().optional(),
|
|
174
|
+
total_amount: z.number().optional(),
|
|
175
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
176
|
+
.optional(),
|
|
177
|
+
url: z.string().optional(),
|
|
178
|
+
}).transform((v) => {
|
|
179
|
+
return remap$(v, {
|
|
180
|
+
"balance_amount": "balanceAmount",
|
|
181
|
+
"bill_number": "billNumber",
|
|
182
|
+
"cancelled_at": "cancelledAt",
|
|
183
|
+
"contact_id": "contactId",
|
|
184
|
+
"created_at": "createdAt",
|
|
185
|
+
"discount_amount": "discountAmount",
|
|
186
|
+
"due_at": "dueAt",
|
|
187
|
+
"paid_amount": "paidAmount",
|
|
188
|
+
"paid_at": "paidAt",
|
|
189
|
+
"payment_collection_method": "paymentCollectionMethod",
|
|
190
|
+
"posted_at": "postedAt",
|
|
191
|
+
"refund_amount": "refundAmount",
|
|
192
|
+
"refund_reason": "refundReason",
|
|
193
|
+
"refunded_at": "refundedAt",
|
|
194
|
+
"tax_amount": "taxAmount",
|
|
195
|
+
"total_amount": "totalAmount",
|
|
196
|
+
"updated_at": "updatedAt",
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export type AccountingBill$Outbound = {
|
|
202
|
+
attachments?: Array<AccountingAttachment$Outbound> | undefined;
|
|
203
|
+
balance_amount?: number | undefined;
|
|
204
|
+
bill_number?: string | undefined;
|
|
205
|
+
cancelled_at?: string | undefined;
|
|
206
|
+
contact_id?: string | undefined;
|
|
207
|
+
created_at?: string | undefined;
|
|
208
|
+
currency?: string | undefined;
|
|
209
|
+
discount_amount?: number | undefined;
|
|
210
|
+
due_at?: string | undefined;
|
|
211
|
+
id?: string | undefined;
|
|
212
|
+
lineitems?: Array<AccountingLineitem$Outbound> | undefined;
|
|
213
|
+
notes?: string | undefined;
|
|
214
|
+
paid_amount?: number | undefined;
|
|
215
|
+
paid_at?: string | undefined;
|
|
216
|
+
payment_collection_method?: string | undefined;
|
|
217
|
+
posted_at?: string | undefined;
|
|
218
|
+
raw?: { [k: string]: any } | undefined;
|
|
219
|
+
refund_amount?: number | undefined;
|
|
220
|
+
refund_reason?: string | undefined;
|
|
221
|
+
refunded_at?: string | undefined;
|
|
222
|
+
send?: boolean | undefined;
|
|
223
|
+
status?: string | undefined;
|
|
224
|
+
tax_amount?: number | undefined;
|
|
225
|
+
total_amount?: number | undefined;
|
|
226
|
+
updated_at?: string | undefined;
|
|
227
|
+
url?: string | undefined;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const AccountingBill$outboundSchema: z.ZodType<
|
|
232
|
+
AccountingBill$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
AccountingBill
|
|
235
|
+
> = z.object({
|
|
236
|
+
attachments: z.array(AccountingAttachment$outboundSchema).optional(),
|
|
237
|
+
balanceAmount: z.number().optional(),
|
|
238
|
+
billNumber: z.string().optional(),
|
|
239
|
+
cancelledAt: z.date().transform(v => v.toISOString()).optional(),
|
|
240
|
+
contactId: z.string().optional(),
|
|
241
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
242
|
+
currency: z.string().optional(),
|
|
243
|
+
discountAmount: z.number().optional(),
|
|
244
|
+
dueAt: z.date().transform(v => v.toISOString()).optional(),
|
|
245
|
+
id: z.string().optional(),
|
|
246
|
+
lineitems: z.array(AccountingLineitem$outboundSchema).optional(),
|
|
247
|
+
notes: z.string().optional(),
|
|
248
|
+
paidAmount: z.number().optional(),
|
|
249
|
+
paidAt: z.date().transform(v => v.toISOString()).optional(),
|
|
250
|
+
paymentCollectionMethod: PaymentCollectionMethod$outboundSchema.optional(),
|
|
251
|
+
postedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
252
|
+
raw: z.record(z.any()).optional(),
|
|
253
|
+
refundAmount: z.number().optional(),
|
|
254
|
+
refundReason: z.string().optional(),
|
|
255
|
+
refundedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
256
|
+
send: z.boolean().optional(),
|
|
257
|
+
status: AccountingBillStatus$outboundSchema.optional(),
|
|
258
|
+
taxAmount: z.number().optional(),
|
|
259
|
+
totalAmount: z.number().optional(),
|
|
260
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
261
|
+
url: z.string().optional(),
|
|
262
|
+
}).transform((v) => {
|
|
263
|
+
return remap$(v, {
|
|
264
|
+
balanceAmount: "balance_amount",
|
|
265
|
+
billNumber: "bill_number",
|
|
266
|
+
cancelledAt: "cancelled_at",
|
|
267
|
+
contactId: "contact_id",
|
|
268
|
+
createdAt: "created_at",
|
|
269
|
+
discountAmount: "discount_amount",
|
|
270
|
+
dueAt: "due_at",
|
|
271
|
+
paidAmount: "paid_amount",
|
|
272
|
+
paidAt: "paid_at",
|
|
273
|
+
paymentCollectionMethod: "payment_collection_method",
|
|
274
|
+
postedAt: "posted_at",
|
|
275
|
+
refundAmount: "refund_amount",
|
|
276
|
+
refundReason: "refund_reason",
|
|
277
|
+
refundedAt: "refunded_at",
|
|
278
|
+
taxAmount: "tax_amount",
|
|
279
|
+
totalAmount: "total_amount",
|
|
280
|
+
updatedAt: "updated_at",
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
287
|
+
*/
|
|
288
|
+
export namespace AccountingBill$ {
|
|
289
|
+
/** @deprecated use `AccountingBill$inboundSchema` instead. */
|
|
290
|
+
export const inboundSchema = AccountingBill$inboundSchema;
|
|
291
|
+
/** @deprecated use `AccountingBill$outboundSchema` instead. */
|
|
292
|
+
export const outboundSchema = AccountingBill$outboundSchema;
|
|
293
|
+
/** @deprecated use `AccountingBill$Outbound` instead. */
|
|
294
|
+
export type Outbound = AccountingBill$Outbound;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export function accountingBillToJSON(accountingBill: AccountingBill): string {
|
|
298
|
+
return JSON.stringify(AccountingBill$outboundSchema.parse(accountingBill));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function accountingBillFromJSON(
|
|
302
|
+
jsonString: string,
|
|
303
|
+
): SafeParseResult<AccountingBill, SDKValidationError> {
|
|
304
|
+
return safeParse(
|
|
305
|
+
jsonString,
|
|
306
|
+
(x) => AccountingBill$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
+
`Failed to parse 'AccountingBill' from JSON`,
|
|
308
|
+
);
|
|
309
|
+
}
|