@codat/lending 0.1.0 → 1.1.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 +315 -4
- 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/connections.js
CHANGED
|
@@ -112,7 +112,7 @@ var Connections = /** @class */ (function () {
|
|
|
112
112
|
Connections.prototype.create = function (req, retries, config) {
|
|
113
113
|
var _a, _b;
|
|
114
114
|
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
-
var baseURL, url, _c, reqBodyHeaders, reqBody, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
115
|
+
var baseURL, url, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
116
116
|
var _d;
|
|
117
117
|
return __generator(this, function (_e) {
|
|
118
118
|
switch (_e.label) {
|
|
@@ -131,18 +131,35 @@ var Connections = /** @class */ (function () {
|
|
|
131
131
|
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
client = this.sdkConfiguration.
|
|
135
|
-
|
|
134
|
+
client = this.sdkConfiguration.defaultClient;
|
|
135
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
136
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
137
|
+
return [4 /*yield*/, globalSecurity()];
|
|
138
|
+
case 1:
|
|
139
|
+
globalSecurity = _e.sent();
|
|
140
|
+
_e.label = 2;
|
|
141
|
+
case 2:
|
|
142
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
143
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
144
|
+
}
|
|
145
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
146
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
136
147
|
headers["Accept"] = "application/json";
|
|
137
148
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
149
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
138
150
|
retryConfig = retries;
|
|
139
151
|
if (!retryConfig) {
|
|
140
|
-
|
|
152
|
+
if (globalRetryConfig) {
|
|
153
|
+
retryConfig = globalRetryConfig;
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
157
|
+
}
|
|
141
158
|
}
|
|
142
159
|
return [4 /*yield*/, utils.Retry(function () {
|
|
143
160
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config));
|
|
144
161
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
145
|
-
case
|
|
162
|
+
case 3:
|
|
146
163
|
httpRes = _e.sent();
|
|
147
164
|
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 : "";
|
|
148
165
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -187,7 +204,7 @@ var Connections = /** @class */ (function () {
|
|
|
187
204
|
Connections.prototype.delete = function (req, retries, config) {
|
|
188
205
|
var _a, _b;
|
|
189
206
|
return __awaiter(this, void 0, void 0, function () {
|
|
190
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
207
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
191
208
|
return __generator(this, function (_c) {
|
|
192
209
|
switch (_c.label) {
|
|
193
210
|
case 0:
|
|
@@ -196,18 +213,35 @@ var Connections = /** @class */ (function () {
|
|
|
196
213
|
}
|
|
197
214
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
198
215
|
url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}", req);
|
|
199
|
-
client = this.sdkConfiguration.
|
|
200
|
-
|
|
216
|
+
client = this.sdkConfiguration.defaultClient;
|
|
217
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
218
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
219
|
+
return [4 /*yield*/, globalSecurity()];
|
|
220
|
+
case 1:
|
|
221
|
+
globalSecurity = _c.sent();
|
|
222
|
+
_c.label = 2;
|
|
223
|
+
case 2:
|
|
224
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
225
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
226
|
+
}
|
|
227
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
228
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
201
229
|
headers["Accept"] = "application/json";
|
|
202
230
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
231
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
203
232
|
retryConfig = retries;
|
|
204
233
|
if (!retryConfig) {
|
|
205
|
-
|
|
234
|
+
if (globalRetryConfig) {
|
|
235
|
+
retryConfig = globalRetryConfig;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
239
|
+
}
|
|
206
240
|
}
|
|
207
241
|
return [4 /*yield*/, utils.Retry(function () {
|
|
208
242
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "delete", headers: headers, responseType: "arraybuffer" }, config));
|
|
209
243
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
210
|
-
case
|
|
244
|
+
case 3:
|
|
211
245
|
httpRes = _c.sent();
|
|
212
246
|
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 : "";
|
|
213
247
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -245,7 +279,7 @@ var Connections = /** @class */ (function () {
|
|
|
245
279
|
Connections.prototype.get = function (req, retries, config) {
|
|
246
280
|
var _a, _b;
|
|
247
281
|
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
282
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
249
283
|
return __generator(this, function (_c) {
|
|
250
284
|
switch (_c.label) {
|
|
251
285
|
case 0:
|
|
@@ -254,18 +288,35 @@ var Connections = /** @class */ (function () {
|
|
|
254
288
|
}
|
|
255
289
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
256
290
|
url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}", req);
|
|
257
|
-
client = this.sdkConfiguration.
|
|
258
|
-
|
|
291
|
+
client = this.sdkConfiguration.defaultClient;
|
|
292
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
293
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
294
|
+
return [4 /*yield*/, globalSecurity()];
|
|
295
|
+
case 1:
|
|
296
|
+
globalSecurity = _c.sent();
|
|
297
|
+
_c.label = 2;
|
|
298
|
+
case 2:
|
|
299
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
300
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
301
|
+
}
|
|
302
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
303
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
259
304
|
headers["Accept"] = "application/json";
|
|
260
305
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
306
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
261
307
|
retryConfig = retries;
|
|
262
308
|
if (!retryConfig) {
|
|
263
|
-
|
|
309
|
+
if (globalRetryConfig) {
|
|
310
|
+
retryConfig = globalRetryConfig;
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
314
|
+
}
|
|
264
315
|
}
|
|
265
316
|
return [4 /*yield*/, utils.Retry(function () {
|
|
266
317
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
267
318
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
268
|
-
case
|
|
319
|
+
case 3:
|
|
269
320
|
httpRes = _c.sent();
|
|
270
321
|
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 : "";
|
|
271
322
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -309,7 +360,7 @@ var Connections = /** @class */ (function () {
|
|
|
309
360
|
Connections.prototype.list = function (req, retries, config) {
|
|
310
361
|
var _a, _b;
|
|
311
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
363
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
313
364
|
return __generator(this, function (_c) {
|
|
314
365
|
switch (_c.label) {
|
|
315
366
|
case 0:
|
|
@@ -318,19 +369,36 @@ var Connections = /** @class */ (function () {
|
|
|
318
369
|
}
|
|
319
370
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
320
371
|
url = utils.generateURL(baseURL, "/companies/{companyId}/connections", req);
|
|
321
|
-
client = this.sdkConfiguration.
|
|
322
|
-
|
|
372
|
+
client = this.sdkConfiguration.defaultClient;
|
|
373
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
374
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
375
|
+
return [4 /*yield*/, globalSecurity()];
|
|
376
|
+
case 1:
|
|
377
|
+
globalSecurity = _c.sent();
|
|
378
|
+
_c.label = 2;
|
|
379
|
+
case 2:
|
|
380
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
381
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
382
|
+
}
|
|
383
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
384
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
323
385
|
queryParams = utils.serializeQueryParams(req);
|
|
324
386
|
headers["Accept"] = "application/json";
|
|
325
387
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
388
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
326
389
|
retryConfig = retries;
|
|
327
390
|
if (!retryConfig) {
|
|
328
|
-
|
|
391
|
+
if (globalRetryConfig) {
|
|
392
|
+
retryConfig = globalRetryConfig;
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
396
|
+
}
|
|
329
397
|
}
|
|
330
398
|
return [4 /*yield*/, utils.Retry(function () {
|
|
331
399
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
332
400
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
333
|
-
case
|
|
401
|
+
case 3:
|
|
334
402
|
httpRes = _c.sent();
|
|
335
403
|
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 : "";
|
|
336
404
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -374,7 +442,7 @@ var Connections = /** @class */ (function () {
|
|
|
374
442
|
Connections.prototype.unlink = function (req, retries, config) {
|
|
375
443
|
var _a, _b;
|
|
376
444
|
return __awaiter(this, void 0, void 0, function () {
|
|
377
|
-
var baseURL, url, _c, reqBodyHeaders, reqBody, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
445
|
+
var baseURL, url, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
378
446
|
var _d;
|
|
379
447
|
return __generator(this, function (_e) {
|
|
380
448
|
switch (_e.label) {
|
|
@@ -393,18 +461,35 @@ var Connections = /** @class */ (function () {
|
|
|
393
461
|
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
394
462
|
}
|
|
395
463
|
}
|
|
396
|
-
client = this.sdkConfiguration.
|
|
397
|
-
|
|
464
|
+
client = this.sdkConfiguration.defaultClient;
|
|
465
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
466
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
467
|
+
return [4 /*yield*/, globalSecurity()];
|
|
468
|
+
case 1:
|
|
469
|
+
globalSecurity = _e.sent();
|
|
470
|
+
_e.label = 2;
|
|
471
|
+
case 2:
|
|
472
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
473
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
474
|
+
}
|
|
475
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
476
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
398
477
|
headers["Accept"] = "application/json";
|
|
399
478
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
479
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
400
480
|
retryConfig = retries;
|
|
401
481
|
if (!retryConfig) {
|
|
402
|
-
|
|
482
|
+
if (globalRetryConfig) {
|
|
483
|
+
retryConfig = globalRetryConfig;
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
487
|
+
}
|
|
403
488
|
}
|
|
404
489
|
return [4 /*yield*/, utils.Retry(function () {
|
|
405
490
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config));
|
|
406
491
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
407
|
-
case
|
|
492
|
+
case 3:
|
|
408
493
|
httpRes = _e.sent();
|
|
409
494
|
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 : "";
|
|
410
495
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -96,7 +96,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
96
96
|
DataIntegrity.prototype.details = function (req, retries, config) {
|
|
97
97
|
var _a, _b;
|
|
98
98
|
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
99
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
100
100
|
return __generator(this, function (_c) {
|
|
101
101
|
switch (_c.label) {
|
|
102
102
|
case 0:
|
|
@@ -105,19 +105,36 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
105
105
|
}
|
|
106
106
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
107
107
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/details", req);
|
|
108
|
-
client = this.sdkConfiguration.
|
|
109
|
-
|
|
108
|
+
client = this.sdkConfiguration.defaultClient;
|
|
109
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
110
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
111
|
+
return [4 /*yield*/, globalSecurity()];
|
|
112
|
+
case 1:
|
|
113
|
+
globalSecurity = _c.sent();
|
|
114
|
+
_c.label = 2;
|
|
115
|
+
case 2:
|
|
116
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
117
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
118
|
+
}
|
|
119
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
120
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
110
121
|
queryParams = utils.serializeQueryParams(req);
|
|
111
122
|
headers["Accept"] = "application/json";
|
|
112
123
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
124
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
113
125
|
retryConfig = retries;
|
|
114
126
|
if (!retryConfig) {
|
|
115
|
-
|
|
127
|
+
if (globalRetryConfig) {
|
|
128
|
+
retryConfig = globalRetryConfig;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
132
|
+
}
|
|
116
133
|
}
|
|
117
134
|
return [4 /*yield*/, utils.Retry(function () {
|
|
118
135
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
119
136
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
120
|
-
case
|
|
137
|
+
case 3:
|
|
121
138
|
httpRes = _c.sent();
|
|
122
139
|
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 : "";
|
|
123
140
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -168,7 +185,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
168
185
|
DataIntegrity.prototype.status = function (req, retries, config) {
|
|
169
186
|
var _a, _b;
|
|
170
187
|
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
188
|
+
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
172
189
|
return __generator(this, function (_c) {
|
|
173
190
|
switch (_c.label) {
|
|
174
191
|
case 0:
|
|
@@ -177,18 +194,35 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
177
194
|
}
|
|
178
195
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
179
196
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/status", req);
|
|
180
|
-
client = this.sdkConfiguration.
|
|
181
|
-
|
|
197
|
+
client = this.sdkConfiguration.defaultClient;
|
|
198
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
199
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
200
|
+
return [4 /*yield*/, globalSecurity()];
|
|
201
|
+
case 1:
|
|
202
|
+
globalSecurity = _c.sent();
|
|
203
|
+
_c.label = 2;
|
|
204
|
+
case 2:
|
|
205
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
206
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
207
|
+
}
|
|
208
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
209
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
182
210
|
headers["Accept"] = "application/json";
|
|
183
211
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
212
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
184
213
|
retryConfig = retries;
|
|
185
214
|
if (!retryConfig) {
|
|
186
|
-
|
|
215
|
+
if (globalRetryConfig) {
|
|
216
|
+
retryConfig = globalRetryConfig;
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
220
|
+
}
|
|
187
221
|
}
|
|
188
222
|
return [4 /*yield*/, utils.Retry(function () {
|
|
189
223
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
190
224
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
191
|
-
case
|
|
225
|
+
case 3:
|
|
192
226
|
httpRes = _c.sent();
|
|
193
227
|
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 : "";
|
|
194
228
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -236,7 +270,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
236
270
|
DataIntegrity.prototype.summaries = function (req, retries, config) {
|
|
237
271
|
var _a, _b;
|
|
238
272
|
return __awaiter(this, void 0, void 0, function () {
|
|
239
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
273
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
240
274
|
return __generator(this, function (_c) {
|
|
241
275
|
switch (_c.label) {
|
|
242
276
|
case 0:
|
|
@@ -245,19 +279,36 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
245
279
|
}
|
|
246
280
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
247
281
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/dataTypes/{dataType}/dataIntegrity/summaries", req);
|
|
248
|
-
client = this.sdkConfiguration.
|
|
249
|
-
|
|
282
|
+
client = this.sdkConfiguration.defaultClient;
|
|
283
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
284
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
285
|
+
return [4 /*yield*/, globalSecurity()];
|
|
286
|
+
case 1:
|
|
287
|
+
globalSecurity = _c.sent();
|
|
288
|
+
_c.label = 2;
|
|
289
|
+
case 2:
|
|
290
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
291
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
292
|
+
}
|
|
293
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
294
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
250
295
|
queryParams = utils.serializeQueryParams(req);
|
|
251
296
|
headers["Accept"] = "application/json";
|
|
252
297
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
298
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
253
299
|
retryConfig = retries;
|
|
254
300
|
if (!retryConfig) {
|
|
255
|
-
|
|
301
|
+
if (globalRetryConfig) {
|
|
302
|
+
retryConfig = globalRetryConfig;
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
306
|
+
}
|
|
256
307
|
}
|
|
257
308
|
return [4 /*yield*/, utils.Retry(function () {
|
|
258
309
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
259
310
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
260
|
-
case
|
|
311
|
+
case 3:
|
|
261
312
|
httpRes = _c.sent();
|
|
262
313
|
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 : "";
|
|
263
314
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -3,7 +3,7 @@ import * as operations from "./models/operations";
|
|
|
3
3
|
import { SDKConfiguration } from "./sdk";
|
|
4
4
|
import { AxiosRequestConfig } from "axios";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Download reports in Excel format.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum DownloadAcceptEnum {
|
|
9
9
|
applicationJson = "application/json",
|
|
@@ -31,8 +31,16 @@ export declare class ExcelReports {
|
|
|
31
31
|
*
|
|
32
32
|
* In response, the endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/ExcelStatus) detailing the current state of the report generation request.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* ### Report types
|
|
35
|
+
*
|
|
36
|
+
* | reportType | Description |
|
|
37
|
+
* |--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
|
38
|
+
* | [audit](https://docs.codat.io/lending/excel/audit-report) | Identifies inaccurate or out-of-date accounts, helping you to make decisions with confidence. || [audit](https://docs.codat.io/lending/excel/audit-report) | Identify inaccurate or out-of-date accounts, helping you to make decisions with confidence. |
|
|
39
|
+
* | [enhancedCashFlow](https://docs.codat.io/lending/excel/enhanced-invoices-report) | Provides a fully categorized list of bank transactions for a company, allowing lenders to accurately forecast a company's cash flow. |
|
|
40
|
+
* | [enhancedFinancials](https://docs.codat.io/lending/excel/enhanced-financials-report) | Supports decision-making using fully categorized financial statements to allow lenders to automate their underwriting processes. |
|
|
41
|
+
* | [enhancedInvoices](https://docs.codat.io/lending/excel/enhanced-invoices-report) | Helps verify that payments have been made against historic invoices. Great for invoice finance lenders. |
|
|
35
42
|
*
|
|
43
|
+
* [Learn more](https://docs.codat.io/lending/excel/overview) about valid Excel report types.
|
|
36
44
|
*
|
|
37
45
|
*
|
|
38
46
|
*
|
package/dist/sdk/excelreports.js
CHANGED
|
@@ -79,7 +79,7 @@ var errors = __importStar(require("./models/errors"));
|
|
|
79
79
|
var operations = __importStar(require("./models/operations"));
|
|
80
80
|
var shared = __importStar(require("./models/shared"));
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Download reports in Excel format.
|
|
83
83
|
*/
|
|
84
84
|
var DownloadAcceptEnum;
|
|
85
85
|
(function (DownloadAcceptEnum) {
|
|
@@ -103,7 +103,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
103
103
|
ExcelReports.prototype.download = function (req, retries, config, acceptHeaderOverride) {
|
|
104
104
|
var _a, _b;
|
|
105
105
|
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
106
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
107
107
|
return __generator(this, function (_c) {
|
|
108
108
|
switch (_c.label) {
|
|
109
109
|
case 0:
|
|
@@ -112,8 +112,19 @@ var ExcelReports = /** @class */ (function () {
|
|
|
112
112
|
}
|
|
113
113
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
114
114
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/excel/download", req);
|
|
115
|
-
client = this.sdkConfiguration.
|
|
116
|
-
|
|
115
|
+
client = this.sdkConfiguration.defaultClient;
|
|
116
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
117
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
118
|
+
return [4 /*yield*/, globalSecurity()];
|
|
119
|
+
case 1:
|
|
120
|
+
globalSecurity = _c.sent();
|
|
121
|
+
_c.label = 2;
|
|
122
|
+
case 2:
|
|
123
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
124
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
125
|
+
}
|
|
126
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
127
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
117
128
|
queryParams = utils.serializeQueryParams(req);
|
|
118
129
|
if (acceptHeaderOverride !== undefined) {
|
|
119
130
|
headers["Accept"] = acceptHeaderOverride.toString();
|
|
@@ -122,14 +133,20 @@ var ExcelReports = /** @class */ (function () {
|
|
|
122
133
|
headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
|
|
123
134
|
}
|
|
124
135
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
136
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
125
137
|
retryConfig = retries;
|
|
126
138
|
if (!retryConfig) {
|
|
127
|
-
|
|
139
|
+
if (globalRetryConfig) {
|
|
140
|
+
retryConfig = globalRetryConfig;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
144
|
+
}
|
|
128
145
|
}
|
|
129
146
|
return [4 /*yield*/, utils.Retry(function () {
|
|
130
147
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
131
148
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
132
|
-
case
|
|
149
|
+
case 3:
|
|
133
150
|
httpRes = _c.sent();
|
|
134
151
|
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 : "";
|
|
135
152
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -172,8 +189,16 @@ var ExcelReports = /** @class */ (function () {
|
|
|
172
189
|
*
|
|
173
190
|
* In response, the endpoint returns the [status](https://docs.codat.io/lending-api#/schemas/ExcelStatus) detailing the current state of the report generation request.
|
|
174
191
|
*
|
|
175
|
-
*
|
|
192
|
+
* ### Report types
|
|
193
|
+
*
|
|
194
|
+
* | reportType | Description |
|
|
195
|
+
* |--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
|
196
|
+
* | [audit](https://docs.codat.io/lending/excel/audit-report) | Identifies inaccurate or out-of-date accounts, helping you to make decisions with confidence. || [audit](https://docs.codat.io/lending/excel/audit-report) | Identify inaccurate or out-of-date accounts, helping you to make decisions with confidence. |
|
|
197
|
+
* | [enhancedCashFlow](https://docs.codat.io/lending/excel/enhanced-invoices-report) | Provides a fully categorized list of bank transactions for a company, allowing lenders to accurately forecast a company's cash flow. |
|
|
198
|
+
* | [enhancedFinancials](https://docs.codat.io/lending/excel/enhanced-financials-report) | Supports decision-making using fully categorized financial statements to allow lenders to automate their underwriting processes. |
|
|
199
|
+
* | [enhancedInvoices](https://docs.codat.io/lending/excel/enhanced-invoices-report) | Helps verify that payments have been made against historic invoices. Great for invoice finance lenders. |
|
|
176
200
|
*
|
|
201
|
+
* [Learn more](https://docs.codat.io/lending/excel/overview) about valid Excel report types.
|
|
177
202
|
*
|
|
178
203
|
*
|
|
179
204
|
*
|
|
@@ -181,7 +206,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
181
206
|
ExcelReports.prototype.generate = function (req, retries, config) {
|
|
182
207
|
var _a, _b;
|
|
183
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
209
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
185
210
|
return __generator(this, function (_c) {
|
|
186
211
|
switch (_c.label) {
|
|
187
212
|
case 0:
|
|
@@ -190,19 +215,36 @@ var ExcelReports = /** @class */ (function () {
|
|
|
190
215
|
}
|
|
191
216
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
192
217
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/excel", req);
|
|
193
|
-
client = this.sdkConfiguration.
|
|
194
|
-
|
|
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);
|
|
195
231
|
queryParams = utils.serializeQueryParams(req);
|
|
196
232
|
headers["Accept"] = "application/json";
|
|
197
233
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
234
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
198
235
|
retryConfig = retries;
|
|
199
236
|
if (!retryConfig) {
|
|
200
|
-
|
|
237
|
+
if (globalRetryConfig) {
|
|
238
|
+
retryConfig = globalRetryConfig;
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
242
|
+
}
|
|
201
243
|
}
|
|
202
244
|
return [4 /*yield*/, utils.Retry(function () {
|
|
203
245
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "post", headers: headers, responseType: "arraybuffer" }, config));
|
|
204
246
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
205
|
-
case
|
|
247
|
+
case 3:
|
|
206
248
|
httpRes = _c.sent();
|
|
207
249
|
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 : "";
|
|
208
250
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
@@ -250,7 +292,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
250
292
|
ExcelReports.prototype.getStatus = function (req, retries, config) {
|
|
251
293
|
var _a, _b;
|
|
252
294
|
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
-
var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
|
|
295
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
254
296
|
return __generator(this, function (_c) {
|
|
255
297
|
switch (_c.label) {
|
|
256
298
|
case 0:
|
|
@@ -259,19 +301,36 @@ var ExcelReports = /** @class */ (function () {
|
|
|
259
301
|
}
|
|
260
302
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
261
303
|
url = utils.generateURL(baseURL, "/data/companies/{companyId}/assess/excel", req);
|
|
262
|
-
client = this.sdkConfiguration.
|
|
263
|
-
|
|
304
|
+
client = this.sdkConfiguration.defaultClient;
|
|
305
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
306
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
307
|
+
return [4 /*yield*/, globalSecurity()];
|
|
308
|
+
case 1:
|
|
309
|
+
globalSecurity = _c.sent();
|
|
310
|
+
_c.label = 2;
|
|
311
|
+
case 2:
|
|
312
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
313
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
314
|
+
}
|
|
315
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
316
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
264
317
|
queryParams = utils.serializeQueryParams(req);
|
|
265
318
|
headers["Accept"] = "application/json";
|
|
266
319
|
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
320
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
267
321
|
retryConfig = retries;
|
|
268
322
|
if (!retryConfig) {
|
|
269
|
-
|
|
323
|
+
if (globalRetryConfig) {
|
|
324
|
+
retryConfig = globalRetryConfig;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
328
|
+
}
|
|
270
329
|
}
|
|
271
330
|
return [4 /*yield*/, utils.Retry(function () {
|
|
272
331
|
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
273
332
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
274
|
-
case
|
|
333
|
+
case 3:
|
|
275
334
|
httpRes = _c.sent();
|
|
276
335
|
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 : "";
|
|
277
336
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|