@unified-api/typescript-sdk 2.73.4 → 2.73.6
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 +9571 -3920
- package/bin/mcp-server.js.map +121 -18
- 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/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 +3 -3
- 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/accountingprofitlossaccount.js +80 -0
- 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/accountingprofitlosssection.js +79 -0
- 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 -2
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +15 -2
- 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 +51 -7
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -1
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +69 -7
- 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/accountingprofitlossaccount.ts +95 -0
- 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 -2
- 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 +126 -18
- 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/accountingprofitandlosscategory.d.ts +0 -34
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +0 -1
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +0 -1
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +0 -33
- 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 -93
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +0 -87
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AccountingBill$ = exports.AccountingBill$outboundSchema = exports.AccountingBill$inboundSchema = exports.AccountingBillStatus$ = exports.AccountingBillStatus$outboundSchema = exports.AccountingBillStatus$inboundSchema = exports.PaymentCollectionMethod$ = exports.PaymentCollectionMethod$outboundSchema = exports.PaymentCollectionMethod$inboundSchema = exports.AccountingBillStatus = exports.PaymentCollectionMethod = void 0;
|
|
30
|
+
exports.accountingBillToJSON = accountingBillToJSON;
|
|
31
|
+
exports.accountingBillFromJSON = accountingBillFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
const enums_js_1 = require("../../types/enums.js");
|
|
36
|
+
const accountingattachment_js_1 = require("./accountingattachment.js");
|
|
37
|
+
const accountinglineitem_js_1 = require("./accountinglineitem.js");
|
|
38
|
+
exports.PaymentCollectionMethod = {
|
|
39
|
+
SendInvoice: "send_invoice",
|
|
40
|
+
ChargeAutomatically: "charge_automatically",
|
|
41
|
+
};
|
|
42
|
+
exports.AccountingBillStatus = {
|
|
43
|
+
Draft: "DRAFT",
|
|
44
|
+
Voided: "VOIDED",
|
|
45
|
+
Authorized: "AUTHORIZED",
|
|
46
|
+
Paid: "PAID",
|
|
47
|
+
PartiallyPaid: "PARTIALLY_PAID",
|
|
48
|
+
PartiallyRefunded: "PARTIALLY_REFUNDED",
|
|
49
|
+
Refunded: "REFUNDED",
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.PaymentCollectionMethod$inboundSchema = z
|
|
53
|
+
.union([
|
|
54
|
+
z.nativeEnum(exports.PaymentCollectionMethod),
|
|
55
|
+
z.string().transform(enums_js_1.catchUnrecognizedEnum),
|
|
56
|
+
]);
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.PaymentCollectionMethod$outboundSchema = z.union([
|
|
59
|
+
z.nativeEnum(exports.PaymentCollectionMethod),
|
|
60
|
+
z.string().and(z.custom()),
|
|
61
|
+
]);
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var PaymentCollectionMethod$;
|
|
67
|
+
(function (PaymentCollectionMethod$) {
|
|
68
|
+
/** @deprecated use `PaymentCollectionMethod$inboundSchema` instead. */
|
|
69
|
+
PaymentCollectionMethod$.inboundSchema = exports.PaymentCollectionMethod$inboundSchema;
|
|
70
|
+
/** @deprecated use `PaymentCollectionMethod$outboundSchema` instead. */
|
|
71
|
+
PaymentCollectionMethod$.outboundSchema = exports.PaymentCollectionMethod$outboundSchema;
|
|
72
|
+
})(PaymentCollectionMethod$ || (exports.PaymentCollectionMethod$ = PaymentCollectionMethod$ = {}));
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.AccountingBillStatus$inboundSchema = z
|
|
75
|
+
.union([
|
|
76
|
+
z.nativeEnum(exports.AccountingBillStatus),
|
|
77
|
+
z.string().transform(enums_js_1.catchUnrecognizedEnum),
|
|
78
|
+
]);
|
|
79
|
+
/** @internal */
|
|
80
|
+
exports.AccountingBillStatus$outboundSchema = z.union([
|
|
81
|
+
z.nativeEnum(exports.AccountingBillStatus),
|
|
82
|
+
z.string().and(z.custom()),
|
|
83
|
+
]);
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
var AccountingBillStatus$;
|
|
89
|
+
(function (AccountingBillStatus$) {
|
|
90
|
+
/** @deprecated use `AccountingBillStatus$inboundSchema` instead. */
|
|
91
|
+
AccountingBillStatus$.inboundSchema = exports.AccountingBillStatus$inboundSchema;
|
|
92
|
+
/** @deprecated use `AccountingBillStatus$outboundSchema` instead. */
|
|
93
|
+
AccountingBillStatus$.outboundSchema = exports.AccountingBillStatus$outboundSchema;
|
|
94
|
+
})(AccountingBillStatus$ || (exports.AccountingBillStatus$ = AccountingBillStatus$ = {}));
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.AccountingBill$inboundSchema = z.object({
|
|
97
|
+
attachments: z.array(accountingattachment_js_1.AccountingAttachment$inboundSchema).optional(),
|
|
98
|
+
balance_amount: z.number().optional(),
|
|
99
|
+
bill_number: z.string().optional(),
|
|
100
|
+
cancelled_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
101
|
+
contact_id: z.string().optional(),
|
|
102
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
103
|
+
.optional(),
|
|
104
|
+
currency: z.string().optional(),
|
|
105
|
+
discount_amount: z.number().optional(),
|
|
106
|
+
due_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
107
|
+
.optional(),
|
|
108
|
+
id: z.string().optional(),
|
|
109
|
+
lineitems: z.array(accountinglineitem_js_1.AccountingLineitem$inboundSchema).optional(),
|
|
110
|
+
notes: z.string().optional(),
|
|
111
|
+
paid_amount: z.number().optional(),
|
|
112
|
+
paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
113
|
+
.optional(),
|
|
114
|
+
payment_collection_method: exports.PaymentCollectionMethod$inboundSchema.optional(),
|
|
115
|
+
posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
116
|
+
.optional(),
|
|
117
|
+
raw: z.record(z.any()).optional(),
|
|
118
|
+
refund_amount: z.number().optional(),
|
|
119
|
+
refund_reason: z.string().optional(),
|
|
120
|
+
refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
121
|
+
.optional(),
|
|
122
|
+
send: z.boolean().optional(),
|
|
123
|
+
status: exports.AccountingBillStatus$inboundSchema.optional(),
|
|
124
|
+
tax_amount: z.number().optional(),
|
|
125
|
+
total_amount: z.number().optional(),
|
|
126
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
|
+
.optional(),
|
|
128
|
+
url: z.string().optional(),
|
|
129
|
+
}).transform((v) => {
|
|
130
|
+
return (0, primitives_js_1.remap)(v, {
|
|
131
|
+
"balance_amount": "balanceAmount",
|
|
132
|
+
"bill_number": "billNumber",
|
|
133
|
+
"cancelled_at": "cancelledAt",
|
|
134
|
+
"contact_id": "contactId",
|
|
135
|
+
"created_at": "createdAt",
|
|
136
|
+
"discount_amount": "discountAmount",
|
|
137
|
+
"due_at": "dueAt",
|
|
138
|
+
"paid_amount": "paidAmount",
|
|
139
|
+
"paid_at": "paidAt",
|
|
140
|
+
"payment_collection_method": "paymentCollectionMethod",
|
|
141
|
+
"posted_at": "postedAt",
|
|
142
|
+
"refund_amount": "refundAmount",
|
|
143
|
+
"refund_reason": "refundReason",
|
|
144
|
+
"refunded_at": "refundedAt",
|
|
145
|
+
"tax_amount": "taxAmount",
|
|
146
|
+
"total_amount": "totalAmount",
|
|
147
|
+
"updated_at": "updatedAt",
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
/** @internal */
|
|
151
|
+
exports.AccountingBill$outboundSchema = z.object({
|
|
152
|
+
attachments: z.array(accountingattachment_js_1.AccountingAttachment$outboundSchema).optional(),
|
|
153
|
+
balanceAmount: z.number().optional(),
|
|
154
|
+
billNumber: z.string().optional(),
|
|
155
|
+
cancelledAt: z.date().transform(v => v.toISOString()).optional(),
|
|
156
|
+
contactId: z.string().optional(),
|
|
157
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
158
|
+
currency: z.string().optional(),
|
|
159
|
+
discountAmount: z.number().optional(),
|
|
160
|
+
dueAt: z.date().transform(v => v.toISOString()).optional(),
|
|
161
|
+
id: z.string().optional(),
|
|
162
|
+
lineitems: z.array(accountinglineitem_js_1.AccountingLineitem$outboundSchema).optional(),
|
|
163
|
+
notes: z.string().optional(),
|
|
164
|
+
paidAmount: z.number().optional(),
|
|
165
|
+
paidAt: z.date().transform(v => v.toISOString()).optional(),
|
|
166
|
+
paymentCollectionMethod: exports.PaymentCollectionMethod$outboundSchema.optional(),
|
|
167
|
+
postedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
+
raw: z.record(z.any()).optional(),
|
|
169
|
+
refundAmount: z.number().optional(),
|
|
170
|
+
refundReason: z.string().optional(),
|
|
171
|
+
refundedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
172
|
+
send: z.boolean().optional(),
|
|
173
|
+
status: exports.AccountingBillStatus$outboundSchema.optional(),
|
|
174
|
+
taxAmount: z.number().optional(),
|
|
175
|
+
totalAmount: z.number().optional(),
|
|
176
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
177
|
+
url: z.string().optional(),
|
|
178
|
+
}).transform((v) => {
|
|
179
|
+
return (0, primitives_js_1.remap)(v, {
|
|
180
|
+
balanceAmount: "balance_amount",
|
|
181
|
+
billNumber: "bill_number",
|
|
182
|
+
cancelledAt: "cancelled_at",
|
|
183
|
+
contactId: "contact_id",
|
|
184
|
+
createdAt: "created_at",
|
|
185
|
+
discountAmount: "discount_amount",
|
|
186
|
+
dueAt: "due_at",
|
|
187
|
+
paidAmount: "paid_amount",
|
|
188
|
+
paidAt: "paid_at",
|
|
189
|
+
paymentCollectionMethod: "payment_collection_method",
|
|
190
|
+
postedAt: "posted_at",
|
|
191
|
+
refundAmount: "refund_amount",
|
|
192
|
+
refundReason: "refund_reason",
|
|
193
|
+
refundedAt: "refunded_at",
|
|
194
|
+
taxAmount: "tax_amount",
|
|
195
|
+
totalAmount: "total_amount",
|
|
196
|
+
updatedAt: "updated_at",
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
202
|
+
*/
|
|
203
|
+
var AccountingBill$;
|
|
204
|
+
(function (AccountingBill$) {
|
|
205
|
+
/** @deprecated use `AccountingBill$inboundSchema` instead. */
|
|
206
|
+
AccountingBill$.inboundSchema = exports.AccountingBill$inboundSchema;
|
|
207
|
+
/** @deprecated use `AccountingBill$outboundSchema` instead. */
|
|
208
|
+
AccountingBill$.outboundSchema = exports.AccountingBill$outboundSchema;
|
|
209
|
+
})(AccountingBill$ || (exports.AccountingBill$ = AccountingBill$ = {}));
|
|
210
|
+
function accountingBillToJSON(accountingBill) {
|
|
211
|
+
return JSON.stringify(exports.AccountingBill$outboundSchema.parse(accountingBill));
|
|
212
|
+
}
|
|
213
|
+
function accountingBillFromJSON(jsonString) {
|
|
214
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingBill$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingBill' from JSON`);
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=accountingbill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingbill.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/accountingbill.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAsSH,oDAEC;AAED,wDAQC;AAhTD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;A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e;QAC7B,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { AccountingAttachment, AccountingAttachment$Outbound } from "./accountingattachment.js";
|
|
6
|
+
import { AccountingLineitem, AccountingLineitem$Outbound } from "./accountinglineitem.js";
|
|
7
|
+
export declare const AccountingCreditmemoPaymentCollectionMethod: {
|
|
8
|
+
readonly SendInvoice: "send_invoice";
|
|
9
|
+
readonly ChargeAutomatically: "charge_automatically";
|
|
10
|
+
};
|
|
11
|
+
export type AccountingCreditmemoPaymentCollectionMethod = OpenEnum<typeof AccountingCreditmemoPaymentCollectionMethod>;
|
|
12
|
+
export declare const AccountingCreditmemoStatus: {
|
|
13
|
+
readonly Draft: "DRAFT";
|
|
14
|
+
readonly Voided: "VOIDED";
|
|
15
|
+
readonly Authorized: "AUTHORIZED";
|
|
16
|
+
readonly Paid: "PAID";
|
|
17
|
+
readonly PartiallyPaid: "PARTIALLY_PAID";
|
|
18
|
+
readonly PartiallyRefunded: "PARTIALLY_REFUNDED";
|
|
19
|
+
readonly Refunded: "REFUNDED";
|
|
20
|
+
};
|
|
21
|
+
export type AccountingCreditmemoStatus = OpenEnum<typeof AccountingCreditmemoStatus>;
|
|
22
|
+
export type AccountingCreditmemo = {
|
|
23
|
+
attachments?: Array<AccountingAttachment> | undefined;
|
|
24
|
+
balanceAmount?: number | undefined;
|
|
25
|
+
cancelledAt?: Date | undefined;
|
|
26
|
+
contactId?: string | undefined;
|
|
27
|
+
createdAt?: Date | undefined;
|
|
28
|
+
creditmemoNumber?: string | undefined;
|
|
29
|
+
currency?: string | undefined;
|
|
30
|
+
discountAmount?: number | undefined;
|
|
31
|
+
dueAt?: Date | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
lineitems?: Array<AccountingLineitem> | undefined;
|
|
34
|
+
notes?: string | undefined;
|
|
35
|
+
paidAmount?: number | undefined;
|
|
36
|
+
paidAt?: Date | undefined;
|
|
37
|
+
paymentCollectionMethod?: AccountingCreditmemoPaymentCollectionMethod | undefined;
|
|
38
|
+
postedAt?: Date | undefined;
|
|
39
|
+
raw?: {
|
|
40
|
+
[k: string]: any;
|
|
41
|
+
} | undefined;
|
|
42
|
+
refundAmount?: number | undefined;
|
|
43
|
+
refundReason?: string | undefined;
|
|
44
|
+
refundedAt?: Date | undefined;
|
|
45
|
+
send?: boolean | undefined;
|
|
46
|
+
status?: AccountingCreditmemoStatus | undefined;
|
|
47
|
+
taxAmount?: number | undefined;
|
|
48
|
+
totalAmount?: number | undefined;
|
|
49
|
+
updatedAt?: Date | undefined;
|
|
50
|
+
url?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const AccountingCreditmemoPaymentCollectionMethod$inboundSchema: z.ZodType<AccountingCreditmemoPaymentCollectionMethod, z.ZodTypeDef, unknown>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const AccountingCreditmemoPaymentCollectionMethod$outboundSchema: z.ZodType<AccountingCreditmemoPaymentCollectionMethod, z.ZodTypeDef, AccountingCreditmemoPaymentCollectionMethod>;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace AccountingCreditmemoPaymentCollectionMethod$ {
|
|
61
|
+
/** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$inboundSchema` instead. */
|
|
62
|
+
const inboundSchema: z.ZodType<AccountingCreditmemoPaymentCollectionMethod, z.ZodTypeDef, unknown>;
|
|
63
|
+
/** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodType<AccountingCreditmemoPaymentCollectionMethod, z.ZodTypeDef, AccountingCreditmemoPaymentCollectionMethod>;
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const AccountingCreditmemoStatus$inboundSchema: z.ZodType<AccountingCreditmemoStatus, z.ZodTypeDef, unknown>;
|
|
68
|
+
/** @internal */
|
|
69
|
+
export declare const AccountingCreditmemoStatus$outboundSchema: z.ZodType<AccountingCreditmemoStatus, z.ZodTypeDef, AccountingCreditmemoStatus>;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export declare namespace AccountingCreditmemoStatus$ {
|
|
75
|
+
/** @deprecated use `AccountingCreditmemoStatus$inboundSchema` instead. */
|
|
76
|
+
const inboundSchema: z.ZodType<AccountingCreditmemoStatus, z.ZodTypeDef, unknown>;
|
|
77
|
+
/** @deprecated use `AccountingCreditmemoStatus$outboundSchema` instead. */
|
|
78
|
+
const outboundSchema: z.ZodType<AccountingCreditmemoStatus, z.ZodTypeDef, AccountingCreditmemoStatus>;
|
|
79
|
+
}
|
|
80
|
+
/** @internal */
|
|
81
|
+
export declare const AccountingCreditmemo$inboundSchema: z.ZodType<AccountingCreditmemo, z.ZodTypeDef, unknown>;
|
|
82
|
+
/** @internal */
|
|
83
|
+
export type AccountingCreditmemo$Outbound = {
|
|
84
|
+
attachments?: Array<AccountingAttachment$Outbound> | undefined;
|
|
85
|
+
balance_amount?: number | undefined;
|
|
86
|
+
cancelled_at?: string | undefined;
|
|
87
|
+
contact_id?: string | undefined;
|
|
88
|
+
created_at?: string | undefined;
|
|
89
|
+
creditmemo_number?: string | undefined;
|
|
90
|
+
currency?: string | undefined;
|
|
91
|
+
discount_amount?: number | undefined;
|
|
92
|
+
due_at?: string | undefined;
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
lineitems?: Array<AccountingLineitem$Outbound> | undefined;
|
|
95
|
+
notes?: string | undefined;
|
|
96
|
+
paid_amount?: number | undefined;
|
|
97
|
+
paid_at?: string | undefined;
|
|
98
|
+
payment_collection_method?: string | undefined;
|
|
99
|
+
posted_at?: string | undefined;
|
|
100
|
+
raw?: {
|
|
101
|
+
[k: string]: any;
|
|
102
|
+
} | undefined;
|
|
103
|
+
refund_amount?: number | undefined;
|
|
104
|
+
refund_reason?: string | undefined;
|
|
105
|
+
refunded_at?: string | undefined;
|
|
106
|
+
send?: boolean | undefined;
|
|
107
|
+
status?: string | undefined;
|
|
108
|
+
tax_amount?: number | undefined;
|
|
109
|
+
total_amount?: number | undefined;
|
|
110
|
+
updated_at?: string | undefined;
|
|
111
|
+
url?: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
/** @internal */
|
|
114
|
+
export declare const AccountingCreditmemo$outboundSchema: z.ZodType<AccountingCreditmemo$Outbound, z.ZodTypeDef, AccountingCreditmemo>;
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export declare namespace AccountingCreditmemo$ {
|
|
120
|
+
/** @deprecated use `AccountingCreditmemo$inboundSchema` instead. */
|
|
121
|
+
const inboundSchema: z.ZodType<AccountingCreditmemo, z.ZodTypeDef, unknown>;
|
|
122
|
+
/** @deprecated use `AccountingCreditmemo$outboundSchema` instead. */
|
|
123
|
+
const outboundSchema: z.ZodType<AccountingCreditmemo$Outbound, z.ZodTypeDef, AccountingCreditmemo>;
|
|
124
|
+
/** @deprecated use `AccountingCreditmemo$Outbound` instead. */
|
|
125
|
+
type Outbound = AccountingCreditmemo$Outbound;
|
|
126
|
+
}
|
|
127
|
+
export declare function accountingCreditmemoToJSON(accountingCreditmemo: AccountingCreditmemo): string;
|
|
128
|
+
export declare function accountingCreditmemoFromJSON(jsonString: string): SafeParseResult<AccountingCreditmemo, SDKValidationError>;
|
|
129
|
+
//# sourceMappingURL=accountingcreditmemo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingcreditmemo.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/accountingcreditmemo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAEL,QAAQ,EAET,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX,MAAM,MAAM,2CAA2C,GAAG,QAAQ,CAChE,OAAO,2CA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;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAiDpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AccountingCreditmemo$ = exports.AccountingCreditmemo$outboundSchema = exports.AccountingCreditmemo$inboundSchema = exports.AccountingCreditmemoStatus$ = exports.AccountingCreditmemoStatus$outboundSchema = exports.AccountingCreditmemoStatus$inboundSchema = exports.AccountingCreditmemoPaymentCollectionMethod$ = exports.AccountingCreditmemoPaymentCollectionMethod$outboundSchema = exports.AccountingCreditmemoPaymentCollectionMethod$inboundSchema = exports.AccountingCreditmemoStatus = exports.AccountingCreditmemoPaymentCollectionMethod = void 0;
|
|
30
|
+
exports.accountingCreditmemoToJSON = accountingCreditmemoToJSON;
|
|
31
|
+
exports.accountingCreditmemoFromJSON = accountingCreditmemoFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
const enums_js_1 = require("../../types/enums.js");
|
|
36
|
+
const accountingattachment_js_1 = require("./accountingattachment.js");
|
|
37
|
+
const accountinglineitem_js_1 = require("./accountinglineitem.js");
|
|
38
|
+
exports.AccountingCreditmemoPaymentCollectionMethod = {
|
|
39
|
+
SendInvoice: "send_invoice",
|
|
40
|
+
ChargeAutomatically: "charge_automatically",
|
|
41
|
+
};
|
|
42
|
+
exports.AccountingCreditmemoStatus = {
|
|
43
|
+
Draft: "DRAFT",
|
|
44
|
+
Voided: "VOIDED",
|
|
45
|
+
Authorized: "AUTHORIZED",
|
|
46
|
+
Paid: "PAID",
|
|
47
|
+
PartiallyPaid: "PARTIALLY_PAID",
|
|
48
|
+
PartiallyRefunded: "PARTIALLY_REFUNDED",
|
|
49
|
+
Refunded: "REFUNDED",
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.AccountingCreditmemoPaymentCollectionMethod$inboundSchema = z
|
|
53
|
+
.union([
|
|
54
|
+
z.nativeEnum(exports.AccountingCreditmemoPaymentCollectionMethod),
|
|
55
|
+
z.string().transform(enums_js_1.catchUnrecognizedEnum),
|
|
56
|
+
]);
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.AccountingCreditmemoPaymentCollectionMethod$outboundSchema = z.union([
|
|
59
|
+
z.nativeEnum(exports.AccountingCreditmemoPaymentCollectionMethod),
|
|
60
|
+
z.string().and(z.custom()),
|
|
61
|
+
]);
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var AccountingCreditmemoPaymentCollectionMethod$;
|
|
67
|
+
(function (AccountingCreditmemoPaymentCollectionMethod$) {
|
|
68
|
+
/** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$inboundSchema` instead. */
|
|
69
|
+
AccountingCreditmemoPaymentCollectionMethod$.inboundSchema = exports.AccountingCreditmemoPaymentCollectionMethod$inboundSchema;
|
|
70
|
+
/** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$outboundSchema` instead. */
|
|
71
|
+
AccountingCreditmemoPaymentCollectionMethod$.outboundSchema = exports.AccountingCreditmemoPaymentCollectionMethod$outboundSchema;
|
|
72
|
+
})(AccountingCreditmemoPaymentCollectionMethod$ || (exports.AccountingCreditmemoPaymentCollectionMethod$ = AccountingCreditmemoPaymentCollectionMethod$ = {}));
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.AccountingCreditmemoStatus$inboundSchema = z
|
|
75
|
+
.union([
|
|
76
|
+
z.nativeEnum(exports.AccountingCreditmemoStatus),
|
|
77
|
+
z.string().transform(enums_js_1.catchUnrecognizedEnum),
|
|
78
|
+
]);
|
|
79
|
+
/** @internal */
|
|
80
|
+
exports.AccountingCreditmemoStatus$outboundSchema = z.union([
|
|
81
|
+
z.nativeEnum(exports.AccountingCreditmemoStatus),
|
|
82
|
+
z.string().and(z.custom()),
|
|
83
|
+
]);
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
var AccountingCreditmemoStatus$;
|
|
89
|
+
(function (AccountingCreditmemoStatus$) {
|
|
90
|
+
/** @deprecated use `AccountingCreditmemoStatus$inboundSchema` instead. */
|
|
91
|
+
AccountingCreditmemoStatus$.inboundSchema = exports.AccountingCreditmemoStatus$inboundSchema;
|
|
92
|
+
/** @deprecated use `AccountingCreditmemoStatus$outboundSchema` instead. */
|
|
93
|
+
AccountingCreditmemoStatus$.outboundSchema = exports.AccountingCreditmemoStatus$outboundSchema;
|
|
94
|
+
})(AccountingCreditmemoStatus$ || (exports.AccountingCreditmemoStatus$ = AccountingCreditmemoStatus$ = {}));
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.AccountingCreditmemo$inboundSchema = z.object({
|
|
97
|
+
attachments: z.array(accountingattachment_js_1.AccountingAttachment$inboundSchema).optional(),
|
|
98
|
+
balance_amount: z.number().optional(),
|
|
99
|
+
cancelled_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
100
|
+
contact_id: z.string().optional(),
|
|
101
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
102
|
+
.optional(),
|
|
103
|
+
creditmemo_number: z.string().optional(),
|
|
104
|
+
currency: z.string().optional(),
|
|
105
|
+
discount_amount: z.number().optional(),
|
|
106
|
+
due_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
107
|
+
.optional(),
|
|
108
|
+
id: z.string().optional(),
|
|
109
|
+
lineitems: z.array(accountinglineitem_js_1.AccountingLineitem$inboundSchema).optional(),
|
|
110
|
+
notes: z.string().optional(),
|
|
111
|
+
paid_amount: z.number().optional(),
|
|
112
|
+
paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
113
|
+
.optional(),
|
|
114
|
+
payment_collection_method: exports.AccountingCreditmemoPaymentCollectionMethod$inboundSchema.optional(),
|
|
115
|
+
posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
116
|
+
.optional(),
|
|
117
|
+
raw: z.record(z.any()).optional(),
|
|
118
|
+
refund_amount: z.number().optional(),
|
|
119
|
+
refund_reason: z.string().optional(),
|
|
120
|
+
refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
121
|
+
.optional(),
|
|
122
|
+
send: z.boolean().optional(),
|
|
123
|
+
status: exports.AccountingCreditmemoStatus$inboundSchema.optional(),
|
|
124
|
+
tax_amount: z.number().optional(),
|
|
125
|
+
total_amount: z.number().optional(),
|
|
126
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
|
+
.optional(),
|
|
128
|
+
url: z.string().optional(),
|
|
129
|
+
}).transform((v) => {
|
|
130
|
+
return (0, primitives_js_1.remap)(v, {
|
|
131
|
+
"balance_amount": "balanceAmount",
|
|
132
|
+
"cancelled_at": "cancelledAt",
|
|
133
|
+
"contact_id": "contactId",
|
|
134
|
+
"created_at": "createdAt",
|
|
135
|
+
"creditmemo_number": "creditmemoNumber",
|
|
136
|
+
"discount_amount": "discountAmount",
|
|
137
|
+
"due_at": "dueAt",
|
|
138
|
+
"paid_amount": "paidAmount",
|
|
139
|
+
"paid_at": "paidAt",
|
|
140
|
+
"payment_collection_method": "paymentCollectionMethod",
|
|
141
|
+
"posted_at": "postedAt",
|
|
142
|
+
"refund_amount": "refundAmount",
|
|
143
|
+
"refund_reason": "refundReason",
|
|
144
|
+
"refunded_at": "refundedAt",
|
|
145
|
+
"tax_amount": "taxAmount",
|
|
146
|
+
"total_amount": "totalAmount",
|
|
147
|
+
"updated_at": "updatedAt",
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
/** @internal */
|
|
151
|
+
exports.AccountingCreditmemo$outboundSchema = z.object({
|
|
152
|
+
attachments: z.array(accountingattachment_js_1.AccountingAttachment$outboundSchema).optional(),
|
|
153
|
+
balanceAmount: z.number().optional(),
|
|
154
|
+
cancelledAt: z.date().transform(v => v.toISOString()).optional(),
|
|
155
|
+
contactId: z.string().optional(),
|
|
156
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
157
|
+
creditmemoNumber: z.string().optional(),
|
|
158
|
+
currency: z.string().optional(),
|
|
159
|
+
discountAmount: z.number().optional(),
|
|
160
|
+
dueAt: z.date().transform(v => v.toISOString()).optional(),
|
|
161
|
+
id: z.string().optional(),
|
|
162
|
+
lineitems: z.array(accountinglineitem_js_1.AccountingLineitem$outboundSchema).optional(),
|
|
163
|
+
notes: z.string().optional(),
|
|
164
|
+
paidAmount: z.number().optional(),
|
|
165
|
+
paidAt: z.date().transform(v => v.toISOString()).optional(),
|
|
166
|
+
paymentCollectionMethod: exports.AccountingCreditmemoPaymentCollectionMethod$outboundSchema.optional(),
|
|
167
|
+
postedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
+
raw: z.record(z.any()).optional(),
|
|
169
|
+
refundAmount: z.number().optional(),
|
|
170
|
+
refundReason: z.string().optional(),
|
|
171
|
+
refundedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
172
|
+
send: z.boolean().optional(),
|
|
173
|
+
status: exports.AccountingCreditmemoStatus$outboundSchema.optional(),
|
|
174
|
+
taxAmount: z.number().optional(),
|
|
175
|
+
totalAmount: z.number().optional(),
|
|
176
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
177
|
+
url: z.string().optional(),
|
|
178
|
+
}).transform((v) => {
|
|
179
|
+
return (0, primitives_js_1.remap)(v, {
|
|
180
|
+
balanceAmount: "balance_amount",
|
|
181
|
+
cancelledAt: "cancelled_at",
|
|
182
|
+
contactId: "contact_id",
|
|
183
|
+
createdAt: "created_at",
|
|
184
|
+
creditmemoNumber: "creditmemo_number",
|
|
185
|
+
discountAmount: "discount_amount",
|
|
186
|
+
dueAt: "due_at",
|
|
187
|
+
paidAmount: "paid_amount",
|
|
188
|
+
paidAt: "paid_at",
|
|
189
|
+
paymentCollectionMethod: "payment_collection_method",
|
|
190
|
+
postedAt: "posted_at",
|
|
191
|
+
refundAmount: "refund_amount",
|
|
192
|
+
refundReason: "refund_reason",
|
|
193
|
+
refundedAt: "refunded_at",
|
|
194
|
+
taxAmount: "tax_amount",
|
|
195
|
+
totalAmount: "total_amount",
|
|
196
|
+
updatedAt: "updated_at",
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
202
|
+
*/
|
|
203
|
+
var AccountingCreditmemo$;
|
|
204
|
+
(function (AccountingCreditmemo$) {
|
|
205
|
+
/** @deprecated use `AccountingCreditmemo$inboundSchema` instead. */
|
|
206
|
+
AccountingCreditmemo$.inboundSchema = exports.AccountingCreditmemo$inboundSchema;
|
|
207
|
+
/** @deprecated use `AccountingCreditmemo$outboundSchema` instead. */
|
|
208
|
+
AccountingCreditmemo$.outboundSchema = exports.AccountingCreditmemo$outboundSchema;
|
|
209
|
+
})(AccountingCreditmemo$ || (exports.AccountingCreditmemo$ = AccountingCreditmemo$ = {}));
|
|
210
|
+
function accountingCreditmemoToJSON(accountingCreditmemo) {
|
|
211
|
+
return JSON.stringify(exports.AccountingCreditmemo$outboundSchema.parse(accountingCreditmemo));
|
|
212
|
+
}
|
|
213
|
+
function accountingCreditmemoFromJSON(jsonString) {
|
|
214
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingCreditmemo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingCreditmemo' from JSON`);
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=accountingcreditmemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingcreditmemo.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/accountingcreditmemo.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkTH,gEAMC;AAED,oEAQC;AAhUD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AACpD,mDAI8B;AAG9B,uEAKmC;AACnC,mEAKiC;AAEpB,QAAA,2CAA2C,GAAG;IACzD,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,sBAAsB;CACnC,CAAC;AAKE,QAAA,0BAA0B,GAAG;IACxC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,gBAAgB;IAC/B,iBAAiB,EAAE,oBAAoB;IACvC,QAAQ,EAAE,UAAU;CACZ,CAAC;AAoCX,gBAAgB;AACH,QAAA,yDAAyD,GAKhE,CAAC;KACF,KAAK,CAAC;IACL,CAAC,CAAC,UAAU,CAAC,mDAA2C,CAAC;IACzD,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,gCAAqB,CAAC;CAC5C,CAAC,CAAC;AAEP,gBAAgB;AACH,QAAA,0DAA0D,GAKjE,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,UAAU,CAAC,mDAA2C,CAAC;IACzD,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAwB,CAAC;CACjD,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,4CAA4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p.js";
|
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { AccountingAttachment, AccountingAttachment$Outbound } from "./accountingattachment.js";
|
|
6
6
|
import { AccountingLineitem, AccountingLineitem$Outbound } from "./accountinglineitem.js";
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const AccountingInvoicePaymentCollectionMethod: {
|
|
8
8
|
readonly SendInvoice: "send_invoice";
|
|
9
9
|
readonly ChargeAutomatically: "charge_automatically";
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type AccountingInvoicePaymentCollectionMethod = OpenEnum<typeof AccountingInvoicePaymentCollectionMethod>;
|
|
12
12
|
export declare const AccountingInvoiceStatus: {
|
|
13
13
|
readonly Draft: "DRAFT";
|
|
14
14
|
readonly Voided: "VOIDED";
|
|
@@ -41,7 +41,7 @@ export type AccountingInvoice = {
|
|
|
41
41
|
notes?: string | undefined;
|
|
42
42
|
paidAmount?: number | undefined;
|
|
43
43
|
paidAt?: Date | undefined;
|
|
44
|
-
paymentCollectionMethod?:
|
|
44
|
+
paymentCollectionMethod?: AccountingInvoicePaymentCollectionMethod | undefined;
|
|
45
45
|
postedAt?: Date | undefined;
|
|
46
46
|
raw?: {
|
|
47
47
|
[k: string]: any;
|
|
@@ -58,18 +58,18 @@ export type AccountingInvoice = {
|
|
|
58
58
|
url?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
/** @internal */
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const AccountingInvoicePaymentCollectionMethod$inboundSchema: z.ZodType<AccountingInvoicePaymentCollectionMethod, z.ZodTypeDef, unknown>;
|
|
62
62
|
/** @internal */
|
|
63
|
-
export declare const
|
|
63
|
+
export declare const AccountingInvoicePaymentCollectionMethod$outboundSchema: z.ZodType<AccountingInvoicePaymentCollectionMethod, z.ZodTypeDef, AccountingInvoicePaymentCollectionMethod>;
|
|
64
64
|
/**
|
|
65
65
|
* @internal
|
|
66
66
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
67
|
*/
|
|
68
|
-
export declare namespace
|
|
69
|
-
/** @deprecated use `
|
|
70
|
-
const inboundSchema: z.ZodType<
|
|
71
|
-
/** @deprecated use `
|
|
72
|
-
const outboundSchema: z.ZodType<
|
|
68
|
+
export declare namespace AccountingInvoicePaymentCollectionMethod$ {
|
|
69
|
+
/** @deprecated use `AccountingInvoicePaymentCollectionMethod$inboundSchema` instead. */
|
|
70
|
+
const inboundSchema: z.ZodType<AccountingInvoicePaymentCollectionMethod, z.ZodTypeDef, unknown>;
|
|
71
|
+
/** @deprecated use `AccountingInvoicePaymentCollectionMethod$outboundSchema` instead. */
|
|
72
|
+
const outboundSchema: z.ZodType<AccountingInvoicePaymentCollectionMethod, z.ZodTypeDef, AccountingInvoicePaymentCollectionMethod>;
|
|
73
73
|
}
|
|
74
74
|
/** @internal */
|
|
75
75
|
export declare const AccountingInvoiceStatus$inboundSchema: z.ZodType<AccountingInvoiceStatus, z.ZodTypeDef, unknown>;
|