@codat/lending 0.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +312 -1
- package/dist/internal/utils/requestbody.d.ts +1 -1
- package/dist/internal/utils/retries.d.ts +2 -2
- package/dist/internal/utils/security.d.ts +5 -2
- package/dist/internal/utils/security.js +28 -28
- package/dist/sdk/accountingbankdata.d.ts +2 -26
- package/dist/sdk/accountingbankdata.js +24 -146
- package/dist/sdk/accountingbankdataaccounts.d.ts +34 -0
- package/dist/sdk/accountingbankdataaccounts.js +262 -0
- package/dist/sdk/accountspayable.d.ts +8 -170
- package/dist/sdk/accountspayable.js +53 -983
- package/dist/sdk/accountspayablebillcreditnotes.d.ts +34 -0
- package/dist/sdk/accountspayablebillcreditnotes.js +262 -0
- package/dist/sdk/accountspayablebillpayments.d.ts +34 -0
- package/dist/sdk/accountspayablebillpayments.js +262 -0
- package/dist/sdk/accountspayablebills.d.ts +46 -0
- package/dist/sdk/accountspayablebills.js +348 -0
- package/dist/sdk/accountspayablesuppliers.d.ts +74 -0
- package/dist/sdk/accountspayablesuppliers.js +530 -0
- package/dist/sdk/accountsreceivable.d.ts +12 -284
- package/dist/sdk/accountsreceivable.js +13 -1677
- package/dist/sdk/accountsreceivablecreditnotes.d.ts +34 -0
- package/dist/sdk/accountsreceivablecreditnotes.js +262 -0
- package/dist/sdk/accountsreceivablecustomers.d.ts +74 -0
- package/dist/sdk/accountsreceivablecustomers.js +530 -0
- package/dist/sdk/accountsreceivabledirectincomes.d.ts +74 -0
- package/dist/sdk/{financials.js → accountsreceivabledirectincomes.js} +183 -211
- package/dist/sdk/accountsreceivableinvoices.d.ts +93 -0
- package/dist/sdk/{cashflow.js → accountsreceivableinvoices.js} +250 -189
- package/dist/sdk/accountsreceivablepayments.d.ts +34 -0
- package/dist/sdk/accountsreceivablepayments.js +262 -0
- package/dist/sdk/accountsreceivablereports.d.ts +36 -0
- package/dist/sdk/accountsreceivablereports.js +399 -0
- package/dist/sdk/banking.d.ts +15 -0
- package/dist/sdk/banking.js +23 -0
- package/dist/sdk/bankingaccountbalances.d.ts +20 -0
- package/dist/sdk/bankingaccountbalances.js +174 -0
- package/dist/sdk/bankingaccounts.d.ts +34 -0
- package/dist/sdk/bankingaccounts.js +254 -0
- package/dist/sdk/bankingcategorizedstatement.d.ts +19 -0
- package/dist/sdk/bankingcategorizedstatement.js +173 -0
- package/dist/sdk/bankingtransactioncategories.d.ts +34 -0
- package/dist/sdk/bankingtransactioncategories.js +254 -0
- package/dist/sdk/bankingtransactions.d.ts +34 -0
- package/dist/sdk/bankingtransactions.js +254 -0
- package/dist/sdk/companies.js +110 -25
- package/dist/sdk/companyinfo.d.ts +4 -4
- package/dist/sdk/companyinfo.js +52 -18
- package/dist/sdk/connections.js +110 -25
- package/dist/sdk/dataintegrity.js +66 -15
- package/dist/sdk/excelreports.d.ts +10 -2
- package/dist/sdk/excelreports.js +76 -17
- package/dist/sdk/fileupload.js +66 -15
- package/dist/sdk/financialstatements.d.ts +13 -0
- package/dist/sdk/financialstatements.js +21 -0
- package/dist/sdk/financialstatementsaccounts.d.ts +33 -0
- package/dist/sdk/financialstatementsaccounts.js +261 -0
- package/dist/sdk/financialstatementsbalancesheet.d.ts +24 -0
- package/dist/sdk/financialstatementsbalancesheet.js +253 -0
- package/dist/sdk/financialstatementscashflow.d.ts +15 -0
- package/dist/sdk/financialstatementscashflow.js +169 -0
- package/dist/sdk/financialstatementsprofitandloss.d.ts +24 -0
- package/dist/sdk/financialstatementsprofitandloss.js +253 -0
- package/dist/sdk/liabilities.d.ts +4 -4
- package/dist/sdk/liabilities.js +48 -14
- package/dist/sdk/managedata.d.ts +5 -38
- package/dist/sdk/managedata.js +27 -267
- package/dist/sdk/managedatapulloperations.d.ts +22 -0
- package/dist/sdk/managedatapulloperations.js +250 -0
- package/dist/sdk/managedatarefresh.d.ts +28 -0
- package/dist/sdk/managedatarefresh.js +250 -0
- package/dist/sdk/models/operations/{getaccountingcompanyinfo.d.ts → getaccountingprofile.d.ts} +2 -2
- package/dist/sdk/models/operations/{getaccountingcompanyinfo.js → getaccountingprofile.js} +17 -17
- package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.d.ts → getcategorizedbalancesheetstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.js → getcategorizedbalancesheetstatement.js} +19 -19
- package/dist/sdk/models/operations/{getenhancedcashflowtransactions.d.ts → getcategorizedbankstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedcashflowtransactions.js → getcategorizedbankstatement.js} +20 -20
- package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.d.ts → getcategorizedprofitandlossstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.js → getcategorizedprofitandlossstatement.js} +19 -19
- package/dist/sdk/models/operations/{getcommercecompanyinfo.d.ts → getcommerceprofile.d.ts} +2 -2
- package/dist/sdk/models/operations/{getcommercecompanyinfo.js → getcommerceprofile.js} +18 -18
- package/dist/sdk/models/operations/{getcommercerefundsmetrics.d.ts → getcommercerefundsreport.d.ts} +2 -2
- package/dist/sdk/models/operations/{getcommercerefundsmetrics.js → getcommercerefundsreport.js} +23 -23
- package/dist/sdk/models/operations/index.d.ts +8 -8
- package/dist/sdk/models/operations/index.js +8 -8
- package/dist/sdk/models/operations/{isageddebtorreportavailable.d.ts → isageddebtorsreportavailable.d.ts} +3 -3
- package/dist/sdk/models/operations/{isageddebtorreportavailable.js → isageddebtorsreportavailable.js} +16 -16
- package/dist/sdk/models/operations/{getenhancedinvoicesreport.d.ts → listreconciledinvoices.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedinvoicesreport.js → listreconciledinvoices.js} +20 -20
- package/dist/sdk/models/operations/unlinkconnection.d.ts +6 -3
- package/dist/sdk/models/operations/unlinkconnection.js +8 -8
- package/dist/sdk/models/shared/accountbalance.d.ts +1 -1
- package/dist/sdk/models/shared/accountbalance.js +1 -1
- package/dist/sdk/models/shared/accountingaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingaccounts.js +0 -3
- package/dist/sdk/models/shared/accountingaccounttransactions.d.ts +0 -3
- package/dist/sdk/models/shared/accountingaccounttransactions.js +0 -3
- package/dist/sdk/models/shared/accountingbankaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbankaccounts.js +0 -3
- package/dist/sdk/models/shared/accountingbanktransactions.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbanktransactions.js +0 -3
- package/dist/sdk/models/shared/accountingbill.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillcreditnotes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbillcreditnotes.js +0 -3
- package/dist/sdk/models/shared/accountingbillpayment.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillpayments.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbillpayments.js +0 -3
- package/dist/sdk/models/shared/accountingbills.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbills.js +0 -3
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +32 -2
- package/dist/sdk/models/shared/accountingcompanyinfo.js +47 -4
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +1 -1
- package/dist/sdk/models/shared/accountingcreditnotes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingcreditnotes.js +0 -3
- package/dist/sdk/models/shared/accountingcustomer.d.ts +3 -3
- package/dist/sdk/models/shared/accountingcustomer.js +3 -3
- package/dist/sdk/models/shared/accountingcustomers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingcustomers.js +0 -3
- package/dist/sdk/models/shared/accountingdirectcost.d.ts +1 -1
- package/dist/sdk/models/shared/accountingdirectcosts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingdirectcosts.js +0 -3
- package/dist/sdk/models/shared/accountingdirectincome.d.ts +1 -1
- package/dist/sdk/models/shared/accountingdirectincomes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingdirectincomes.js +0 -3
- package/dist/sdk/models/shared/accountinginvoice.d.ts +1 -1
- package/dist/sdk/models/shared/accountinginvoices.d.ts +0 -3
- package/dist/sdk/models/shared/accountinginvoices.js +0 -3
- package/dist/sdk/models/shared/accountingjournalentries.d.ts +0 -3
- package/dist/sdk/models/shared/accountingjournalentries.js +0 -3
- package/dist/sdk/models/shared/accountingjournalentry.d.ts +1 -1
- package/dist/sdk/models/shared/accountingjournals.d.ts +0 -3
- package/dist/sdk/models/shared/accountingjournals.js +0 -3
- package/dist/sdk/models/shared/accountingpayment.d.ts +1 -1
- package/dist/sdk/models/shared/accountingpayments.d.ts +0 -3
- package/dist/sdk/models/shared/accountingpayments.js +0 -3
- package/dist/sdk/models/shared/accountingsupplier.d.ts +3 -3
- package/dist/sdk/models/shared/accountingsupplier.js +3 -3
- package/dist/sdk/models/shared/accountingsuppliers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingsuppliers.js +0 -3
- package/dist/sdk/models/shared/accountingtransfer.d.ts +1 -1
- package/dist/sdk/models/shared/accountingtransfers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingtransfers.js +0 -3
- package/dist/sdk/models/shared/{accountingaddress.d.ts → addressesitems.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingaddress.js → addressesitems.js} +13 -13
- package/dist/sdk/models/shared/attachments.d.ts +0 -3
- package/dist/sdk/models/shared/attachments.js +0 -3
- package/dist/sdk/models/shared/bankingaccountbalances.d.ts +0 -3
- package/dist/sdk/models/shared/bankingaccountbalances.js +0 -3
- package/dist/sdk/models/shared/bankingaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/bankingaccounts.js +0 -3
- package/dist/sdk/models/shared/bankingtransactioncategories.d.ts +0 -3
- package/dist/sdk/models/shared/bankingtransactioncategories.js +0 -3
- package/dist/sdk/models/shared/bankingtransactions.d.ts +0 -3
- package/dist/sdk/models/shared/bankingtransactions.js +0 -3
- package/dist/sdk/models/shared/commercecustomers.d.ts +0 -3
- package/dist/sdk/models/shared/commercecustomers.js +0 -3
- package/dist/sdk/models/shared/commercedispute.d.ts +1 -1
- package/dist/sdk/models/shared/commercedispute.js +1 -1
- package/dist/sdk/models/shared/commercedisputes.d.ts +0 -3
- package/dist/sdk/models/shared/commercedisputes.js +0 -3
- package/dist/sdk/models/shared/commercelocations.d.ts +0 -3
- package/dist/sdk/models/shared/commercelocations.js +0 -3
- package/dist/sdk/models/shared/commerceorder.d.ts +2 -2
- package/dist/sdk/models/shared/commerceorder.js +1 -1
- package/dist/sdk/models/shared/commerceorders.d.ts +0 -3
- package/dist/sdk/models/shared/commerceorders.js +0 -3
- package/dist/sdk/models/shared/commercepaymentmethods.d.ts +0 -3
- package/dist/sdk/models/shared/commercepaymentmethods.js +0 -3
- package/dist/sdk/models/shared/commercepayments.d.ts +0 -3
- package/dist/sdk/models/shared/commercepayments.js +0 -3
- package/dist/sdk/models/shared/commerceproductcategories.d.ts +0 -3
- package/dist/sdk/models/shared/commerceproductcategories.js +0 -3
- package/dist/sdk/models/shared/commerceproducts.d.ts +0 -3
- package/dist/sdk/models/shared/commerceproducts.js +0 -3
- package/dist/sdk/models/shared/commercetransactions.d.ts +0 -3
- package/dist/sdk/models/shared/commercetransactions.js +0 -3
- package/dist/sdk/models/shared/companies.d.ts +0 -3
- package/dist/sdk/models/shared/companies.js +0 -3
- package/dist/sdk/models/shared/connections.d.ts +0 -3
- package/dist/sdk/models/shared/connections.js +0 -3
- package/dist/sdk/models/shared/contact.d.ts +2 -2
- package/dist/sdk/models/shared/contact.js +3 -3
- package/dist/sdk/models/shared/dataintegritydatatype.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritydatatype.js +0 -3
- package/dist/sdk/models/shared/dataintegritydetails.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritydetails.js +0 -3
- package/dist/sdk/models/shared/dataintegritystatuses.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritystatuses.js +0 -3
- package/dist/sdk/models/shared/dataintegritysummaries.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritysummaries.js +0 -3
- package/dist/sdk/models/shared/enhancedfinancialreport.d.ts +0 -3
- package/dist/sdk/models/shared/enhancedfinancialreport.js +0 -3
- package/dist/sdk/models/shared/errormessage.d.ts +0 -3
- package/dist/sdk/models/shared/errormessage.js +0 -3
- package/dist/sdk/models/shared/excelstatus.d.ts +0 -3
- package/dist/sdk/models/shared/excelstatus.js +0 -3
- package/dist/sdk/models/shared/index.d.ts +1 -1
- package/dist/sdk/models/shared/index.js +1 -1
- package/dist/sdk/models/shared/loansummary.d.ts +0 -3
- package/dist/sdk/models/shared/loansummary.js +0 -3
- package/dist/sdk/models/shared/loantransactions.d.ts +0 -3
- package/dist/sdk/models/shared/loantransactions.js +0 -3
- package/dist/sdk/models/shared/periodunit.d.ts +0 -3
- package/dist/sdk/models/shared/periodunit.js +0 -3
- package/dist/sdk/models/shared/pulloperations.d.ts +0 -3
- package/dist/sdk/models/shared/pulloperations.js +0 -3
- package/dist/sdk/models/shared/supplementaldata.d.ts +1 -1
- package/dist/sdk/models/shared/supplementaldata.js +1 -1
- package/dist/sdk/sales.d.ts +22 -372
- package/dist/sdk/sales.js +22 -1767
- package/dist/sdk/salescustomers.d.ts +34 -0
- package/dist/sdk/salescustomers.js +262 -0
- package/dist/sdk/salesdisputes.d.ts +34 -0
- package/dist/sdk/salesdisputes.js +262 -0
- package/dist/sdk/saleslocations.d.ts +34 -0
- package/dist/sdk/saleslocations.js +261 -0
- package/dist/sdk/salesmetrics.d.ts +102 -0
- package/dist/sdk/salesmetrics.js +406 -0
- package/dist/sdk/salesorders.d.ts +34 -0
- package/dist/sdk/salesorders.js +262 -0
- package/dist/sdk/salespaymentmethods.d.ts +34 -0
- package/dist/sdk/salespaymentmethods.js +262 -0
- package/dist/sdk/salespayments.d.ts +34 -0
- package/dist/sdk/salespayments.js +262 -0
- package/dist/sdk/salesproductcategories.d.ts +34 -0
- package/dist/sdk/salesproductcategories.js +262 -0
- package/dist/sdk/salesproducts.d.ts +34 -0
- package/dist/sdk/salesproducts.js +262 -0
- package/dist/sdk/salesreports.d.ts +69 -0
- package/dist/sdk/salesreports.js +298 -0
- package/dist/sdk/salestransactions.d.ts +34 -0
- package/dist/sdk/salestransactions.js +262 -0
- package/dist/sdk/sdk.d.ts +38 -30
- package/dist/sdk/sdk.js +33 -45
- package/dist/sdk/transactions.d.ts +10 -176
- package/dist/sdk/transactions.js +11 -1000
- package/dist/sdk/transactionsaccounttransactions.d.ts +34 -0
- package/dist/sdk/transactionsaccounttransactions.js +262 -0
- package/dist/sdk/transactionsdirectcosts.d.ts +74 -0
- package/dist/sdk/transactionsdirectcosts.js +530 -0
- package/dist/sdk/transactionsjournalentries.d.ts +34 -0
- package/dist/sdk/transactionsjournalentries.js +262 -0
- package/dist/sdk/transactionsjournals.d.ts +34 -0
- package/dist/sdk/transactionsjournals.js +262 -0
- package/dist/sdk/transactionstransfers.d.ts +34 -0
- package/dist/sdk/transactionstransfers.js +262 -0
- package/docs/models/operations/{getaccountingcompanyinforequest.md → getaccountingprofilerequest.md} +1 -1
- package/docs/models/operations/{getaccountingcompanyinforesponse.md → getaccountingprofileresponse.md} +1 -1
- package/docs/models/operations/{getenhancedbalancesheetaccountsrequest.md → getcategorizedbalancesheetstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedprofitandlossaccountsresponse.md → getcategorizedbalancesheetstatementresponse.md} +1 -1
- package/docs/models/operations/{getenhancedcashflowtransactionsrequest.md → getcategorizedbankstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedcashflowtransactionsresponse.md → getcategorizedbankstatementresponse.md} +1 -1
- package/docs/models/operations/{getenhancedprofitandlossaccountsrequest.md → getcategorizedprofitandlossstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedbalancesheetaccountsresponse.md → getcategorizedprofitandlossstatementresponse.md} +1 -1
- package/docs/models/operations/{getcommercecompanyinforequest.md → getcommerceprofilerequest.md} +1 -1
- package/docs/models/operations/{getcommercecompanyinforesponse.md → getcommerceprofileresponse.md} +1 -1
- package/docs/models/operations/{getcommercerefundsmetricsrequest.md → getcommercerefundsreportrequest.md} +1 -1
- package/docs/models/operations/{getcommercerefundsmetricsresponse.md → getcommercerefundsreportresponse.md} +1 -1
- package/docs/models/operations/{isageddebtorreportavailablerequest.md → isageddebtorsreportavailablerequest.md} +1 -1
- package/docs/models/operations/{isageddebtorreportavailableresponse.md → isageddebtorsreportavailableresponse.md} +2 -2
- package/docs/models/operations/{getenhancedinvoicesreportrequest.md → listreconciledinvoicesrequest.md} +1 -1
- package/docs/models/operations/{getenhancedinvoicesreportresponse.md → listreconciledinvoicesresponse.md} +1 -1
- package/docs/models/operations/unlinkconnectionrequest.md +5 -5
- package/docs/models/operations/unlinkconnectionupdateconnection.md +8 -0
- package/docs/models/shared/accountbalance.md +1 -1
- package/docs/models/shared/accountingaccounts.md +0 -2
- package/docs/models/shared/accountingaccounttransactions.md +0 -2
- package/docs/models/shared/accountingbankaccounts.md +0 -2
- package/docs/models/shared/accountingbanktransactions.md +0 -2
- package/docs/models/shared/accountingbill.md +1 -1
- package/docs/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/models/shared/accountingbillcreditnotes.md +0 -2
- package/docs/models/shared/accountingbillpayment.md +1 -1
- package/docs/models/shared/accountingbillpayments.md +0 -2
- package/docs/models/shared/accountingbills.md +0 -2
- package/docs/models/shared/accountingcompanyinfo.md +1 -1
- package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +14 -0
- package/docs/models/shared/accountingcreditnote.md +1 -1
- package/docs/models/shared/accountingcreditnotes.md +0 -2
- package/docs/models/shared/accountingcustomer.md +2 -2
- package/docs/models/shared/accountingcustomers.md +0 -2
- package/docs/models/shared/accountingdirectcost.md +1 -1
- package/docs/models/shared/accountingdirectcosts.md +0 -2
- package/docs/models/shared/accountingdirectincome.md +1 -1
- package/docs/models/shared/accountingdirectincomes.md +0 -2
- package/docs/models/shared/accountinginvoice.md +1 -1
- package/docs/models/shared/accountinginvoices.md +0 -2
- package/docs/models/shared/accountingjournalentries.md +0 -2
- package/docs/models/shared/accountingjournalentry.md +1 -1
- package/docs/models/shared/accountingjournals.md +0 -2
- package/docs/models/shared/accountingpayment.md +1 -1
- package/docs/models/shared/accountingpayments.md +0 -2
- package/docs/models/shared/accountingsupplier.md +16 -16
- package/docs/models/shared/accountingsuppliers.md +0 -2
- package/docs/models/shared/accountingtransfer.md +1 -1
- package/docs/models/shared/accountingtransfers.md +0 -2
- package/docs/models/shared/{accountingaddress.md → addressesitems.md} +1 -1
- package/docs/models/shared/attachments.md +0 -2
- package/docs/models/shared/bankingaccountbalances.md +0 -2
- package/docs/models/shared/bankingaccounts.md +0 -2
- package/docs/models/shared/bankingtransactioncategories.md +0 -2
- package/docs/models/shared/bankingtransactions.md +0 -2
- package/docs/models/shared/commercecustomers.md +0 -2
- package/docs/models/shared/commercedispute.md +1 -1
- package/docs/models/shared/commercedisputes.md +0 -2
- package/docs/models/shared/commercelocations.md +0 -2
- package/docs/models/shared/commerceorder.md +1 -1
- package/docs/models/shared/commerceorders.md +0 -2
- package/docs/models/shared/commerceordersupplementaldata.md +1 -1
- package/docs/models/shared/commercepaymentmethods.md +0 -2
- package/docs/models/shared/commercepayments.md +0 -2
- package/docs/models/shared/commerceproductcategories.md +0 -2
- package/docs/models/shared/commerceproducts.md +0 -2
- package/docs/models/shared/commercetransactions.md +0 -2
- package/docs/models/shared/companies.md +0 -2
- package/docs/models/shared/connections.md +0 -2
- package/docs/models/shared/contact.md +1 -1
- package/docs/models/shared/dataintegritydatatype.md +0 -2
- package/docs/models/shared/dataintegritydetails.md +0 -2
- package/docs/models/shared/dataintegritystatuses.md +0 -2
- package/docs/models/shared/dataintegritysummaries.md +0 -2
- package/docs/models/shared/enhancedfinancialreport.md +0 -2
- package/docs/models/shared/errormessage.md +0 -2
- package/docs/models/shared/excelstatus.md +0 -2
- package/docs/models/shared/loansummary.md +0 -2
- package/docs/models/shared/loantransactions.md +0 -2
- package/docs/models/shared/periodunit.md +0 -2
- package/docs/models/shared/pulloperations.md +0 -2
- package/docs/models/shared/supplementaldata.md +1 -1
- package/docs/sdks/accountingbankdata/README.md +2 -101
- package/docs/sdks/accountingbankdataaccounts/README.md +103 -0
- package/docs/sdks/accountspayable/README.md +2 -664
- package/docs/sdks/accountspayablebillcreditnotes/README.md +101 -0
- package/docs/sdks/accountspayablebillpayments/README.md +101 -0
- package/docs/sdks/accountspayablebills/README.md +148 -0
- package/docs/sdks/accountspayablesuppliers/README.md +244 -0
- package/docs/sdks/accountsreceivable/README.md +0 -1089
- package/docs/sdks/accountsreceivablecreditnotes/README.md +101 -0
- package/docs/sdks/accountsreceivablecustomers/README.md +244 -0
- package/docs/sdks/accountsreceivabledirectincomes/README.md +247 -0
- package/docs/sdks/{financials → accountsreceivableinvoices}/README.md +123 -111
- package/docs/sdks/accountsreceivablepayments/README.md +101 -0
- package/docs/sdks/accountsreceivablereports/README.md +172 -0
- package/docs/sdks/banking/README.md +4 -0
- package/docs/sdks/bankingaccountbalances/README.md +54 -0
- package/docs/sdks/bankingaccounts/README.md +103 -0
- package/docs/sdks/bankingcategorizedstatement/README.md +51 -0
- package/docs/sdks/bankingtransactioncategories/README.md +103 -0
- package/docs/sdks/bankingtransactions/README.md +103 -0
- package/docs/sdks/codatlending/README.md +24 -4
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/companyinfo/README.md +22 -22
- package/docs/sdks/connections/README.md +4 -3
- package/docs/sdks/dataintegrity/README.md +5 -5
- package/docs/sdks/excelreports/README.md +12 -4
- package/docs/sdks/fileupload/README.md +2 -2
- package/docs/sdks/financialstatements/README.md +4 -0
- package/docs/sdks/financialstatementsaccounts/README.md +100 -0
- package/docs/sdks/financialstatementsbalancesheet/README.md +91 -0
- package/docs/sdks/financialstatementscashflow/README.md +47 -0
- package/docs/sdks/financialstatementsprofitandloss/README.md +91 -0
- package/docs/sdks/liabilities/README.md +4 -4
- package/docs/sdks/managedata/README.md +3 -181
- package/docs/sdks/managedatapulloperations/README.md +89 -0
- package/docs/sdks/managedatarefresh/README.md +93 -0
- package/docs/sdks/sales/README.md +0 -1223
- package/docs/sdks/salescustomers/README.md +103 -0
- package/docs/sdks/salesdisputes/README.md +103 -0
- package/docs/sdks/saleslocations/README.md +99 -0
- package/docs/sdks/salesmetrics/README.md +218 -0
- package/docs/sdks/salesorders/README.md +103 -0
- package/docs/sdks/salespaymentmethods/README.md +103 -0
- package/docs/sdks/salespayments/README.md +103 -0
- package/docs/sdks/salesproductcategories/README.md +103 -0
- package/docs/sdks/salesproducts/README.md +103 -0
- package/docs/sdks/salesreports/README.md +145 -0
- package/docs/sdks/salestransactions/README.md +103 -0
- package/docs/sdks/transactions/README.md +0 -638
- package/docs/sdks/transactionsaccounttransactions/README.md +103 -0
- package/docs/sdks/transactionsdirectcosts/README.md +246 -0
- package/docs/sdks/transactionsjournalentries/README.md +101 -0
- package/docs/sdks/transactionsjournals/README.md +101 -0
- package/docs/sdks/transactionstransfers/README.md +103 -0
- package/package.json +1 -1
- package/dist/sdk/cashflow.d.ts +0 -112
- package/dist/sdk/financials.d.ts +0 -75
- package/docs/models/operations/unlinkconnectionrequestbody.md +0 -8
- package/docs/sdks/cashflow/README.md +0 -402
package/dist/sdk/companies.js
CHANGED
|
@@ -114,7 +114,7 @@ var Companies = /** @class */ (function () {
|
|
|
114
114
|
Companies.prototype.create = function (req, retries, config) {
|
|
115
115
|
var _a, _b;
|
|
116
116
|
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
-
var baseURL, url, _c, reqBodyHeaders, reqBody, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
117
|
+
var baseURL, url, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
118
118
|
var _d;
|
|
119
119
|
return __generator(this, function (_e) {
|
|
120
120
|
switch (_e.label) {
|
|
@@ -133,18 +133,35 @@ var Companies = /** @class */ (function () {
|
|
|
133
133
|
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
client = this.sdkConfiguration.
|
|
137
|
-
|
|
136
|
+
client = this.sdkConfiguration.defaultClient;
|
|
137
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
138
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
139
|
+
return [4 /*yield*/, globalSecurity()];
|
|
140
|
+
case 1:
|
|
141
|
+
globalSecurity = _e.sent();
|
|
142
|
+
_e.label = 2;
|
|
143
|
+
case 2:
|
|
144
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
145
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
146
|
+
}
|
|
147
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
148
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
138
149
|
headers["Accept"] = "application/json";
|
|
139
150
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
151
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
140
152
|
retryConfig = retries;
|
|
141
153
|
if (!retryConfig) {
|
|
142
|
-
|
|
154
|
+
if (globalRetryConfig) {
|
|
155
|
+
retryConfig = globalRetryConfig;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
159
|
+
}
|
|
143
160
|
}
|
|
144
161
|
return [4 /*yield*/, utils.Retry(function () {
|
|
145
162
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config));
|
|
146
163
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
147
|
-
case
|
|
164
|
+
case 3:
|
|
148
165
|
httpRes = _e.sent();
|
|
149
166
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
150
167
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -189,7 +206,7 @@ var Companies = /** @class */ (function () {
|
|
|
189
206
|
Companies.prototype.delete = function (req, retries, config) {
|
|
190
207
|
var _a, _b;
|
|
191
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
209
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
193
210
|
return __generator(this, function (_c) {
|
|
194
211
|
switch (_c.label) {
|
|
195
212
|
case 0:
|
|
@@ -198,18 +215,35 @@ var Companies = /** @class */ (function () {
|
|
|
198
215
|
}
|
|
199
216
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
200
217
|
url = utils.generateURL(baseURL, "/companies/{companyId}", req);
|
|
201
|
-
client = this.sdkConfiguration.
|
|
202
|
-
|
|
218
|
+
client = this.sdkConfiguration.defaultClient;
|
|
219
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
220
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
221
|
+
return [4 /*yield*/, globalSecurity()];
|
|
222
|
+
case 1:
|
|
223
|
+
globalSecurity = _c.sent();
|
|
224
|
+
_c.label = 2;
|
|
225
|
+
case 2:
|
|
226
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
227
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
228
|
+
}
|
|
229
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
230
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
203
231
|
headers["Accept"] = "application/json";
|
|
204
232
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
233
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
205
234
|
retryConfig = retries;
|
|
206
235
|
if (!retryConfig) {
|
|
207
|
-
|
|
236
|
+
if (globalRetryConfig) {
|
|
237
|
+
retryConfig = globalRetryConfig;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
241
|
+
}
|
|
208
242
|
}
|
|
209
243
|
return [4 /*yield*/, utils.Retry(function () {
|
|
210
244
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "delete", headers: headers, responseType: "arraybuffer" }, config));
|
|
211
245
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
212
|
-
case
|
|
246
|
+
case 3:
|
|
213
247
|
httpRes = _c.sent();
|
|
214
248
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
215
249
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -247,7 +281,7 @@ var Companies = /** @class */ (function () {
|
|
|
247
281
|
Companies.prototype.get = function (req, retries, config) {
|
|
248
282
|
var _a, _b;
|
|
249
283
|
return __awaiter(this, void 0, void 0, function () {
|
|
250
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
284
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
251
285
|
return __generator(this, function (_c) {
|
|
252
286
|
switch (_c.label) {
|
|
253
287
|
case 0:
|
|
@@ -256,18 +290,35 @@ var Companies = /** @class */ (function () {
|
|
|
256
290
|
}
|
|
257
291
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
258
292
|
url = utils.generateURL(baseURL, "/companies/{companyId}", req);
|
|
259
|
-
client = this.sdkConfiguration.
|
|
260
|
-
|
|
293
|
+
client = this.sdkConfiguration.defaultClient;
|
|
294
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
295
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
296
|
+
return [4 /*yield*/, globalSecurity()];
|
|
297
|
+
case 1:
|
|
298
|
+
globalSecurity = _c.sent();
|
|
299
|
+
_c.label = 2;
|
|
300
|
+
case 2:
|
|
301
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
302
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
303
|
+
}
|
|
304
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
305
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
261
306
|
headers["Accept"] = "application/json";
|
|
262
307
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
308
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
263
309
|
retryConfig = retries;
|
|
264
310
|
if (!retryConfig) {
|
|
265
|
-
|
|
311
|
+
if (globalRetryConfig) {
|
|
312
|
+
retryConfig = globalRetryConfig;
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
316
|
+
}
|
|
266
317
|
}
|
|
267
318
|
return [4 /*yield*/, utils.Retry(function () {
|
|
268
319
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
269
320
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
270
|
-
case
|
|
321
|
+
case 3:
|
|
271
322
|
httpRes = _c.sent();
|
|
272
323
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
273
324
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -311,7 +362,7 @@ var Companies = /** @class */ (function () {
|
|
|
311
362
|
Companies.prototype.list = function (req, retries, config) {
|
|
312
363
|
var _a, _b;
|
|
313
364
|
return __awaiter(this, void 0, void 0, function () {
|
|
314
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
365
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
315
366
|
return __generator(this, function (_c) {
|
|
316
367
|
switch (_c.label) {
|
|
317
368
|
case 0:
|
|
@@ -320,19 +371,36 @@ var Companies = /** @class */ (function () {
|
|
|
320
371
|
}
|
|
321
372
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
322
373
|
url = baseURL.replace(/\/$/, "") + "/companies";
|
|
323
|
-
client = this.sdkConfiguration.
|
|
324
|
-
|
|
374
|
+
client = this.sdkConfiguration.defaultClient;
|
|
375
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
376
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
377
|
+
return [4 /*yield*/, globalSecurity()];
|
|
378
|
+
case 1:
|
|
379
|
+
globalSecurity = _c.sent();
|
|
380
|
+
_c.label = 2;
|
|
381
|
+
case 2:
|
|
382
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
383
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
384
|
+
}
|
|
385
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
386
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
325
387
|
queryParams = utils.serializeQueryParams(req);
|
|
326
388
|
headers["Accept"] = "application/json";
|
|
327
389
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
390
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
328
391
|
retryConfig = retries;
|
|
329
392
|
if (!retryConfig) {
|
|
330
|
-
|
|
393
|
+
if (globalRetryConfig) {
|
|
394
|
+
retryConfig = globalRetryConfig;
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
398
|
+
}
|
|
331
399
|
}
|
|
332
400
|
return [4 /*yield*/, utils.Retry(function () {
|
|
333
401
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
334
402
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
335
|
-
case
|
|
403
|
+
case 3:
|
|
336
404
|
httpRes = _c.sent();
|
|
337
405
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
338
406
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -376,7 +444,7 @@ var Companies = /** @class */ (function () {
|
|
|
376
444
|
Companies.prototype.update = function (req, retries, config) {
|
|
377
445
|
var _a, _b;
|
|
378
446
|
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var baseURL, url, _c, reqBodyHeaders, reqBody, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
447
|
+
var baseURL, url, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
380
448
|
var _d;
|
|
381
449
|
return __generator(this, function (_e) {
|
|
382
450
|
switch (_e.label) {
|
|
@@ -395,18 +463,35 @@ var Companies = /** @class */ (function () {
|
|
|
395
463
|
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
396
464
|
}
|
|
397
465
|
}
|
|
398
|
-
client = this.sdkConfiguration.
|
|
399
|
-
|
|
466
|
+
client = this.sdkConfiguration.defaultClient;
|
|
467
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
468
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
469
|
+
return [4 /*yield*/, globalSecurity()];
|
|
470
|
+
case 1:
|
|
471
|
+
globalSecurity = _e.sent();
|
|
472
|
+
_e.label = 2;
|
|
473
|
+
case 2:
|
|
474
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
475
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
476
|
+
}
|
|
477
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
478
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
400
479
|
headers["Accept"] = "application/json";
|
|
401
480
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
481
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
402
482
|
retryConfig = retries;
|
|
403
483
|
if (!retryConfig) {
|
|
404
|
-
|
|
484
|
+
if (globalRetryConfig) {
|
|
485
|
+
retryConfig = globalRetryConfig;
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
489
|
+
}
|
|
405
490
|
}
|
|
406
491
|
return [4 /*yield*/, utils.Retry(function () {
|
|
407
492
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config));
|
|
408
493
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
409
|
-
case
|
|
494
|
+
case 3:
|
|
410
495
|
httpRes = _e.sent();
|
|
411
496
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
412
497
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -9,19 +9,19 @@ export declare class CompanyInfo {
|
|
|
9
9
|
private sdkConfiguration;
|
|
10
10
|
constructor(sdkConfig: SDKConfiguration);
|
|
11
11
|
/**
|
|
12
|
-
* Get company
|
|
12
|
+
* Get company accounting profile
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Gets the latest basic info for a company.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
getAccountingProfile(req: operations.GetAccountingProfileRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetAccountingProfileResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Get company
|
|
19
|
+
* Get company commerce profile
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
22
|
* Retrieve information about the company, as seen in the commerce platform.
|
|
23
23
|
*
|
|
24
24
|
* This may include information like addresses, tax registration details and social media or website information.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
getCommerceProfile(req: operations.GetCommerceProfileRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetCommerceProfileResponse>;
|
|
27
27
|
}
|
package/dist/sdk/companyinfo.js
CHANGED
|
@@ -86,41 +86,58 @@ var CompanyInfo = /** @class */ (function () {
|
|
|
86
86
|
this.sdkConfiguration = sdkConfig;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Get company
|
|
89
|
+
* Get company accounting profile
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
92
|
* Gets the latest basic info for a company.
|
|
93
93
|
*/
|
|
94
|
-
CompanyInfo.prototype.
|
|
94
|
+
CompanyInfo.prototype.getAccountingProfile = function (req, retries, config) {
|
|
95
95
|
var _a, _b;
|
|
96
96
|
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
97
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
98
98
|
return __generator(this, function (_c) {
|
|
99
99
|
switch (_c.label) {
|
|
100
100
|
case 0:
|
|
101
101
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
102
|
-
req = new operations.
|
|
102
|
+
req = new operations.GetAccountingProfileRequest(req);
|
|
103
103
|
}
|
|
104
104
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
105
105
|
url = utils.generateURL(baseURL, "/companies/{companyId}/data/info", req);
|
|
106
|
-
client = this.sdkConfiguration.
|
|
107
|
-
|
|
106
|
+
client = this.sdkConfiguration.defaultClient;
|
|
107
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
108
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
109
|
+
return [4 /*yield*/, globalSecurity()];
|
|
110
|
+
case 1:
|
|
111
|
+
globalSecurity = _c.sent();
|
|
112
|
+
_c.label = 2;
|
|
113
|
+
case 2:
|
|
114
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
115
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
116
|
+
}
|
|
117
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
118
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
108
119
|
headers["Accept"] = "application/json";
|
|
109
120
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
121
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
110
122
|
retryConfig = retries;
|
|
111
123
|
if (!retryConfig) {
|
|
112
|
-
|
|
124
|
+
if (globalRetryConfig) {
|
|
125
|
+
retryConfig = globalRetryConfig;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
129
|
+
}
|
|
113
130
|
}
|
|
114
131
|
return [4 /*yield*/, utils.Retry(function () {
|
|
115
132
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
116
133
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
117
|
-
case
|
|
134
|
+
case 3:
|
|
118
135
|
httpRes = _c.sent();
|
|
119
136
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
120
137
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
121
138
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
122
139
|
}
|
|
123
|
-
res = new operations.
|
|
140
|
+
res = new operations.GetAccountingProfileResponse({
|
|
124
141
|
statusCode: httpRes.status,
|
|
125
142
|
contentType: contentType,
|
|
126
143
|
rawResponse: httpRes,
|
|
@@ -150,43 +167,60 @@ var CompanyInfo = /** @class */ (function () {
|
|
|
150
167
|
});
|
|
151
168
|
};
|
|
152
169
|
/**
|
|
153
|
-
* Get company
|
|
170
|
+
* Get company commerce profile
|
|
154
171
|
*
|
|
155
172
|
* @remarks
|
|
156
173
|
* Retrieve information about the company, as seen in the commerce platform.
|
|
157
174
|
*
|
|
158
175
|
* This may include information like addresses, tax registration details and social media or website information.
|
|
159
176
|
*/
|
|
160
|
-
CompanyInfo.prototype.
|
|
177
|
+
CompanyInfo.prototype.getCommerceProfile = function (req, retries, config) {
|
|
161
178
|
var _a, _b;
|
|
162
179
|
return __awaiter(this, void 0, void 0, function () {
|
|
163
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
180
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
164
181
|
return __generator(this, function (_c) {
|
|
165
182
|
switch (_c.label) {
|
|
166
183
|
case 0:
|
|
167
184
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
168
|
-
req = new operations.
|
|
185
|
+
req = new operations.GetCommerceProfileRequest(req);
|
|
169
186
|
}
|
|
170
187
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
171
188
|
url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/commerce-info", req);
|
|
172
|
-
client = this.sdkConfiguration.
|
|
173
|
-
|
|
189
|
+
client = this.sdkConfiguration.defaultClient;
|
|
190
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
191
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
192
|
+
return [4 /*yield*/, globalSecurity()];
|
|
193
|
+
case 1:
|
|
194
|
+
globalSecurity = _c.sent();
|
|
195
|
+
_c.label = 2;
|
|
196
|
+
case 2:
|
|
197
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
198
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
199
|
+
}
|
|
200
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
201
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
174
202
|
headers["Accept"] = "application/json";
|
|
175
203
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
204
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
176
205
|
retryConfig = retries;
|
|
177
206
|
if (!retryConfig) {
|
|
178
|
-
|
|
207
|
+
if (globalRetryConfig) {
|
|
208
|
+
retryConfig = globalRetryConfig;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
212
|
+
}
|
|
179
213
|
}
|
|
180
214
|
return [4 /*yield*/, utils.Retry(function () {
|
|
181
215
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
182
216
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
183
|
-
case
|
|
217
|
+
case 3:
|
|
184
218
|
httpRes = _c.sent();
|
|
185
219
|
contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
186
220
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
187
221
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
188
222
|
}
|
|
189
|
-
res = new operations.
|
|
223
|
+
res = new operations.GetCommerceProfileResponse({
|
|
190
224
|
statusCode: httpRes.status,
|
|
191
225
|
contentType: contentType,
|
|
192
226
|
rawResponse: httpRes,
|