@codat/lending 6.0.0 → 7.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/FUNCTIONS.md +110 -0
- package/README.md +55 -38
- package/RUNTIMES.md +48 -0
- package/docs/sdks/accountspayable/README.md +5 -1
- package/docs/sdks/accountsreceivable/README.md +5 -1
- package/docs/sdks/banking/README.md +5 -1
- package/docs/sdks/codatlending/README.md +3 -1
- package/docs/sdks/codatlendingdirectcosts/README.md +0 -24
- package/docs/sdks/companies/README.md +15 -0
- package/docs/sdks/financialstatements/README.md +5 -1
- package/docs/sdks/loanwriteback/README.md +5 -1
- package/docs/sdks/sales/README.md +5 -1
- package/docs/sdks/sourceaccounts/README.md +113 -57
- package/docs/sdks/transactions/README.md +5 -1
- package/funcs/accountingBankDataAccountsGet.d.ts.map +1 -1
- package/funcs/accountingBankDataAccountsGet.js +4 -3
- package/funcs/accountingBankDataAccountsGet.js.map +1 -1
- package/funcs/accountingBankDataAccountsList.d.ts.map +1 -1
- package/funcs/accountingBankDataAccountsList.js +4 -3
- package/funcs/accountingBankDataAccountsList.js.map +1 -1
- package/funcs/accountingBankDataListTransactions.d.ts.map +1 -1
- package/funcs/accountingBankDataListTransactions.js +4 -3
- package/funcs/accountingBankDataListTransactions.js.map +1 -1
- package/funcs/accountsPayableBillCreditNotesGet.d.ts.map +1 -1
- package/funcs/accountsPayableBillCreditNotesGet.js +4 -3
- package/funcs/accountsPayableBillCreditNotesGet.js.map +1 -1
- package/funcs/accountsPayableBillCreditNotesList.d.ts.map +1 -1
- package/funcs/accountsPayableBillCreditNotesList.js +4 -3
- package/funcs/accountsPayableBillCreditNotesList.js.map +1 -1
- package/funcs/accountsPayableBillPaymentsGet.d.ts.map +1 -1
- package/funcs/accountsPayableBillPaymentsGet.js +4 -3
- package/funcs/accountsPayableBillPaymentsGet.js.map +1 -1
- package/funcs/accountsPayableBillPaymentsList.d.ts.map +1 -1
- package/funcs/accountsPayableBillPaymentsList.js +4 -3
- package/funcs/accountsPayableBillPaymentsList.js.map +1 -1
- package/funcs/accountsPayableBillsDownloadAttachment.d.ts.map +1 -1
- package/funcs/accountsPayableBillsDownloadAttachment.js +4 -3
- package/funcs/accountsPayableBillsDownloadAttachment.js.map +1 -1
- package/funcs/accountsPayableBillsGet.d.ts.map +1 -1
- package/funcs/accountsPayableBillsGet.js +4 -3
- package/funcs/accountsPayableBillsGet.js.map +1 -1
- package/funcs/accountsPayableBillsGetAttachment.d.ts.map +1 -1
- package/funcs/accountsPayableBillsGetAttachment.js +4 -3
- package/funcs/accountsPayableBillsGetAttachment.js.map +1 -1
- package/funcs/accountsPayableBillsList.d.ts.map +1 -1
- package/funcs/accountsPayableBillsList.js +4 -3
- package/funcs/accountsPayableBillsList.js.map +1 -1
- package/funcs/accountsPayableBillsListAttachments.d.ts.map +1 -1
- package/funcs/accountsPayableBillsListAttachments.js +4 -3
- package/funcs/accountsPayableBillsListAttachments.js.map +1 -1
- package/funcs/accountsPayableSuppliersDownloadAttachment.d.ts.map +1 -1
- package/funcs/accountsPayableSuppliersDownloadAttachment.js +4 -3
- package/funcs/accountsPayableSuppliersDownloadAttachment.js.map +1 -1
- package/funcs/accountsPayableSuppliersGet.d.ts.map +1 -1
- package/funcs/accountsPayableSuppliersGet.js +4 -3
- package/funcs/accountsPayableSuppliersGet.js.map +1 -1
- package/funcs/accountsPayableSuppliersGetAttachment.d.ts.map +1 -1
- package/funcs/accountsPayableSuppliersGetAttachment.js +4 -3
- package/funcs/accountsPayableSuppliersGetAttachment.js.map +1 -1
- package/funcs/accountsPayableSuppliersList.d.ts.map +1 -1
- package/funcs/accountsPayableSuppliersList.js +4 -3
- package/funcs/accountsPayableSuppliersList.js.map +1 -1
- package/funcs/accountsPayableSuppliersListAttachments.d.ts.map +1 -1
- package/funcs/accountsPayableSuppliersListAttachments.js +4 -3
- package/funcs/accountsPayableSuppliersListAttachments.js.map +1 -1
- package/funcs/accountsReceivableCreditNotesGet.d.ts.map +1 -1
- package/funcs/accountsReceivableCreditNotesGet.js +4 -3
- package/funcs/accountsReceivableCreditNotesGet.js.map +1 -1
- package/funcs/accountsReceivableCreditNotesList.d.ts.map +1 -1
- package/funcs/accountsReceivableCreditNotesList.js +4 -3
- package/funcs/accountsReceivableCreditNotesList.js.map +1 -1
- package/funcs/accountsReceivableCustomersDownloadAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableCustomersDownloadAttachment.js +4 -3
- package/funcs/accountsReceivableCustomersDownloadAttachment.js.map +1 -1
- package/funcs/accountsReceivableCustomersGet.d.ts.map +1 -1
- package/funcs/accountsReceivableCustomersGet.js +4 -3
- package/funcs/accountsReceivableCustomersGet.js.map +1 -1
- package/funcs/accountsReceivableCustomersGetAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableCustomersGetAttachment.js +4 -3
- package/funcs/accountsReceivableCustomersGetAttachment.js.map +1 -1
- package/funcs/accountsReceivableCustomersList.d.ts.map +1 -1
- package/funcs/accountsReceivableCustomersList.js +4 -3
- package/funcs/accountsReceivableCustomersList.js.map +1 -1
- package/funcs/accountsReceivableCustomersListAttachments.d.ts.map +1 -1
- package/funcs/accountsReceivableCustomersListAttachments.js +4 -3
- package/funcs/accountsReceivableCustomersListAttachments.js.map +1 -1
- package/funcs/accountsReceivableDirectIncomesDownloadAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableDirectIncomesDownloadAttachment.js +4 -3
- package/funcs/accountsReceivableDirectIncomesDownloadAttachment.js.map +1 -1
- package/funcs/accountsReceivableDirectIncomesGet.d.ts.map +1 -1
- package/funcs/accountsReceivableDirectIncomesGet.js +4 -3
- package/funcs/accountsReceivableDirectIncomesGet.js.map +1 -1
- package/funcs/accountsReceivableDirectIncomesGetAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableDirectIncomesGetAttachment.js +4 -3
- package/funcs/accountsReceivableDirectIncomesGetAttachment.js.map +1 -1
- package/funcs/accountsReceivableDirectIncomesList.d.ts.map +1 -1
- package/funcs/accountsReceivableDirectIncomesList.js +4 -3
- package/funcs/accountsReceivableDirectIncomesList.js.map +1 -1
- package/funcs/accountsReceivableDirectIncomesListAttachments.d.ts.map +1 -1
- package/funcs/accountsReceivableDirectIncomesListAttachments.js +4 -3
- package/funcs/accountsReceivableDirectIncomesListAttachments.js.map +1 -1
- package/funcs/accountsReceivableInvoicesDownloadAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesDownloadAttachment.js +4 -3
- package/funcs/accountsReceivableInvoicesDownloadAttachment.js.map +1 -1
- package/funcs/accountsReceivableInvoicesDownloadPdf.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesDownloadPdf.js +4 -3
- package/funcs/accountsReceivableInvoicesDownloadPdf.js.map +1 -1
- package/funcs/accountsReceivableInvoicesGet.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesGet.js +4 -3
- package/funcs/accountsReceivableInvoicesGet.js.map +1 -1
- package/funcs/accountsReceivableInvoicesGetAttachment.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesGetAttachment.js +4 -3
- package/funcs/accountsReceivableInvoicesGetAttachment.js.map +1 -1
- package/funcs/accountsReceivableInvoicesList.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesList.js +4 -3
- package/funcs/accountsReceivableInvoicesList.js.map +1 -1
- package/funcs/accountsReceivableInvoicesListAttachments.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesListAttachments.js +4 -3
- package/funcs/accountsReceivableInvoicesListAttachments.js.map +1 -1
- package/funcs/accountsReceivableInvoicesListReconciled.d.ts.map +1 -1
- package/funcs/accountsReceivableInvoicesListReconciled.js +4 -3
- package/funcs/accountsReceivableInvoicesListReconciled.js.map +1 -1
- package/funcs/accountsReceivablePaymentsGet.d.ts.map +1 -1
- package/funcs/accountsReceivablePaymentsGet.js +4 -3
- package/funcs/accountsReceivablePaymentsGet.js.map +1 -1
- package/funcs/accountsReceivablePaymentsList.d.ts.map +1 -1
- package/funcs/accountsReceivablePaymentsList.js +4 -3
- package/funcs/accountsReceivablePaymentsList.js.map +1 -1
- package/funcs/accountsReceivableReportsGetAgedCreditors.d.ts.map +1 -1
- package/funcs/accountsReceivableReportsGetAgedCreditors.js +4 -3
- package/funcs/accountsReceivableReportsGetAgedCreditors.js.map +1 -1
- package/funcs/accountsReceivableReportsGetAgedDebtors.d.ts.map +1 -1
- package/funcs/accountsReceivableReportsGetAgedDebtors.js +4 -3
- package/funcs/accountsReceivableReportsGetAgedDebtors.js.map +1 -1
- package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.d.ts.map +1 -1
- package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.js +4 -3
- package/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.js.map +1 -1
- package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.d.ts.map +1 -1
- package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.js +4 -3
- package/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.js.map +1 -1
- package/funcs/bankStatementsEndUploadSession.d.ts.map +1 -1
- package/funcs/bankStatementsEndUploadSession.js +4 -3
- package/funcs/bankStatementsEndUploadSession.js.map +1 -1
- package/funcs/bankStatementsGetUploadConfiguration.d.ts.map +1 -1
- package/funcs/bankStatementsGetUploadConfiguration.js +4 -3
- package/funcs/bankStatementsGetUploadConfiguration.js.map +1 -1
- package/funcs/bankStatementsSetUploadConfiguration.d.ts.map +1 -1
- package/funcs/bankStatementsSetUploadConfiguration.js +4 -3
- package/funcs/bankStatementsSetUploadConfiguration.js.map +1 -1
- package/funcs/bankStatementsStartUploadSession.d.ts.map +1 -1
- package/funcs/bankStatementsStartUploadSession.js +4 -3
- package/funcs/bankStatementsStartUploadSession.js.map +1 -1
- package/funcs/bankStatementsUploadBankStatementData.d.ts.map +1 -1
- package/funcs/bankStatementsUploadBankStatementData.js +4 -3
- package/funcs/bankStatementsUploadBankStatementData.js.map +1 -1
- package/funcs/bankingAccountBalancesList.d.ts.map +1 -1
- package/funcs/bankingAccountBalancesList.js +4 -3
- package/funcs/bankingAccountBalancesList.js.map +1 -1
- package/funcs/bankingAccountsGet.d.ts.map +1 -1
- package/funcs/bankingAccountsGet.js +4 -3
- package/funcs/bankingAccountsGet.js.map +1 -1
- package/funcs/bankingAccountsList.d.ts.map +1 -1
- package/funcs/bankingAccountsList.js +4 -3
- package/funcs/bankingAccountsList.js.map +1 -1
- package/funcs/bankingCategorizedStatementGet.d.ts.map +1 -1
- package/funcs/bankingCategorizedStatementGet.js +4 -3
- package/funcs/bankingCategorizedStatementGet.js.map +1 -1
- package/funcs/bankingTransactionCategoriesGet.d.ts.map +1 -1
- package/funcs/bankingTransactionCategoriesGet.js +4 -3
- package/funcs/bankingTransactionCategoriesGet.js.map +1 -1
- package/funcs/bankingTransactionCategoriesList.d.ts.map +1 -1
- package/funcs/bankingTransactionCategoriesList.js +4 -3
- package/funcs/bankingTransactionCategoriesList.js.map +1 -1
- package/funcs/bankingTransactionsGet.d.ts.map +1 -1
- package/funcs/bankingTransactionsGet.js +4 -3
- package/funcs/bankingTransactionsGet.js.map +1 -1
- package/funcs/bankingTransactionsList.d.ts.map +1 -1
- package/funcs/bankingTransactionsList.js +4 -3
- package/funcs/bankingTransactionsList.js.map +1 -1
- package/funcs/companiesCreate.d.ts.map +1 -1
- package/funcs/companiesCreate.js +4 -3
- package/funcs/companiesCreate.js.map +1 -1
- package/funcs/companiesDelete.d.ts.map +1 -1
- package/funcs/companiesDelete.js +4 -3
- package/funcs/companiesDelete.js.map +1 -1
- package/funcs/companiesGet.d.ts.map +1 -1
- package/funcs/companiesGet.js +4 -3
- package/funcs/companiesGet.js.map +1 -1
- package/funcs/companiesList.d.ts +13 -0
- package/funcs/companiesList.d.ts.map +1 -1
- package/funcs/companiesList.js +22 -7
- package/funcs/companiesList.js.map +1 -1
- package/funcs/companiesUpdate.d.ts.map +1 -1
- package/funcs/companiesUpdate.js +4 -3
- package/funcs/companiesUpdate.js.map +1 -1
- package/funcs/companyInfoGetAccountingProfile.d.ts.map +1 -1
- package/funcs/companyInfoGetAccountingProfile.js +4 -3
- package/funcs/companyInfoGetAccountingProfile.js.map +1 -1
- package/funcs/companyInfoGetCommerceProfile.d.ts.map +1 -1
- package/funcs/companyInfoGetCommerceProfile.js +4 -3
- package/funcs/companyInfoGetCommerceProfile.js.map +1 -1
- package/funcs/connectionsCreate.d.ts.map +1 -1
- package/funcs/connectionsCreate.js +4 -3
- package/funcs/connectionsCreate.js.map +1 -1
- package/funcs/connectionsDelete.d.ts.map +1 -1
- package/funcs/connectionsDelete.js +4 -3
- package/funcs/connectionsDelete.js.map +1 -1
- package/funcs/connectionsGet.d.ts.map +1 -1
- package/funcs/connectionsGet.js +4 -3
- package/funcs/connectionsGet.js.map +1 -1
- package/funcs/connectionsList.d.ts.map +1 -1
- package/funcs/connectionsList.js +4 -3
- package/funcs/connectionsList.js.map +1 -1
- package/funcs/connectionsUnlink.d.ts.map +1 -1
- package/funcs/connectionsUnlink.js +4 -3
- package/funcs/connectionsUnlink.js.map +1 -1
- package/funcs/dataIntegrityDetails.d.ts.map +1 -1
- package/funcs/dataIntegrityDetails.js +4 -3
- package/funcs/dataIntegrityDetails.js.map +1 -1
- package/funcs/dataIntegrityStatus.d.ts.map +1 -1
- package/funcs/dataIntegrityStatus.js +4 -3
- package/funcs/dataIntegrityStatus.js.map +1 -1
- package/funcs/dataIntegritySummaries.d.ts.map +1 -1
- package/funcs/dataIntegritySummaries.js +4 -3
- package/funcs/dataIntegritySummaries.js.map +1 -1
- package/funcs/excelReportsDownload.d.ts.map +1 -1
- package/funcs/excelReportsDownload.js +4 -3
- package/funcs/excelReportsDownload.js.map +1 -1
- package/funcs/excelReportsGenerate.d.ts.map +1 -1
- package/funcs/excelReportsGenerate.js +4 -3
- package/funcs/excelReportsGenerate.js.map +1 -1
- package/funcs/excelReportsGetStatus.d.ts.map +1 -1
- package/funcs/excelReportsGetStatus.js +4 -3
- package/funcs/excelReportsGetStatus.js.map +1 -1
- package/funcs/fileUploadDownload.d.ts.map +1 -1
- package/funcs/fileUploadDownload.js +4 -3
- package/funcs/fileUploadDownload.js.map +1 -1
- package/funcs/fileUploadListUploaded.d.ts.map +1 -1
- package/funcs/fileUploadListUploaded.js +4 -3
- package/funcs/fileUploadListUploaded.js.map +1 -1
- package/funcs/fileUploadUpload.d.ts.map +1 -1
- package/funcs/fileUploadUpload.js +4 -3
- package/funcs/fileUploadUpload.js.map +1 -1
- package/funcs/financialStatementsAccountsGet.d.ts.map +1 -1
- package/funcs/financialStatementsAccountsGet.js +4 -3
- package/funcs/financialStatementsAccountsGet.js.map +1 -1
- package/funcs/financialStatementsAccountsList.d.ts.map +1 -1
- package/funcs/financialStatementsAccountsList.js +4 -3
- package/funcs/financialStatementsAccountsList.js.map +1 -1
- package/funcs/financialStatementsBalanceSheetGet.d.ts.map +1 -1
- package/funcs/financialStatementsBalanceSheetGet.js +4 -3
- package/funcs/financialStatementsBalanceSheetGet.js.map +1 -1
- package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.d.ts.map +1 -1
- package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.js +4 -3
- package/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.js.map +1 -1
- package/funcs/financialStatementsCashFlowGet.d.ts.map +1 -1
- package/funcs/financialStatementsCashFlowGet.js +4 -3
- package/funcs/financialStatementsCashFlowGet.js.map +1 -1
- package/funcs/financialStatementsProfitAndLossGet.d.ts.map +1 -1
- package/funcs/financialStatementsProfitAndLossGet.js +4 -3
- package/funcs/financialStatementsProfitAndLossGet.js.map +1 -1
- package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.d.ts.map +1 -1
- package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.js +4 -3
- package/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.js.map +1 -1
- package/funcs/liabilitiesGenerateLoanSummary.d.ts.map +1 -1
- package/funcs/liabilitiesGenerateLoanSummary.js +4 -3
- package/funcs/liabilitiesGenerateLoanSummary.js.map +1 -1
- package/funcs/liabilitiesGenerateLoanTransactions.d.ts.map +1 -1
- package/funcs/liabilitiesGenerateLoanTransactions.js +4 -3
- package/funcs/liabilitiesGenerateLoanTransactions.js.map +1 -1
- package/funcs/liabilitiesGetLoanSummary.d.ts.map +1 -1
- package/funcs/liabilitiesGetLoanSummary.js +4 -3
- package/funcs/liabilitiesGetLoanSummary.js.map +1 -1
- package/funcs/liabilitiesListLoanTransactions.d.ts.map +1 -1
- package/funcs/liabilitiesListLoanTransactions.js +4 -3
- package/funcs/liabilitiesListLoanTransactions.js.map +1 -1
- package/funcs/loanWritebackAccountsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackAccountsCreate.js +4 -3
- package/funcs/loanWritebackAccountsCreate.js.map +1 -1
- package/funcs/loanWritebackAccountsGetCreateModel.d.ts.map +1 -1
- package/funcs/loanWritebackAccountsGetCreateModel.js +4 -3
- package/funcs/loanWritebackAccountsGetCreateModel.js.map +1 -1
- package/funcs/loanWritebackBankAccountsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackBankAccountsCreate.js +4 -3
- package/funcs/loanWritebackBankAccountsCreate.js.map +1 -1
- package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.d.ts.map +1 -1
- package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.js +4 -3
- package/funcs/loanWritebackBankAccountsGetCreateUpdateModel.js.map +1 -1
- package/funcs/loanWritebackBankTransactionsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackBankTransactionsCreate.js +4 -3
- package/funcs/loanWritebackBankTransactionsCreate.js.map +1 -1
- package/funcs/loanWritebackBankTransactionsGetCreateModel.d.ts.map +1 -1
- package/funcs/loanWritebackBankTransactionsGetCreateModel.js +4 -3
- package/funcs/loanWritebackBankTransactionsGetCreateModel.js.map +1 -1
- package/funcs/loanWritebackCreateOperationsGet.d.ts.map +1 -1
- package/funcs/loanWritebackCreateOperationsGet.js +4 -3
- package/funcs/loanWritebackCreateOperationsGet.js.map +1 -1
- package/funcs/loanWritebackCreateOperationsList.d.ts.map +1 -1
- package/funcs/loanWritebackCreateOperationsList.js +4 -3
- package/funcs/loanWritebackCreateOperationsList.js.map +1 -1
- package/funcs/loanWritebackDirectCostsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackDirectCostsCreate.js +4 -3
- package/funcs/loanWritebackDirectCostsCreate.js.map +1 -1
- package/funcs/loanWritebackDirectCostsGetCreateModel.d.ts.map +1 -1
- package/funcs/loanWritebackDirectCostsGetCreateModel.js +4 -3
- package/funcs/loanWritebackDirectCostsGetCreateModel.js.map +1 -1
- package/funcs/loanWritebackPaymentsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackPaymentsCreate.js +4 -3
- package/funcs/loanWritebackPaymentsCreate.js.map +1 -1
- package/funcs/loanWritebackPaymentsGetCreateModel.d.ts.map +1 -1
- package/funcs/loanWritebackPaymentsGetCreateModel.js +4 -3
- package/funcs/loanWritebackPaymentsGetCreateModel.js.map +1 -1
- package/funcs/loanWritebackSourceAccountsCreate.d.ts +0 -21
- package/funcs/loanWritebackSourceAccountsCreate.d.ts.map +1 -1
- package/funcs/loanWritebackSourceAccountsCreate.js +4 -24
- package/funcs/loanWritebackSourceAccountsCreate.js.map +1 -1
- package/funcs/loanWritebackSourceAccountsCreateMapping.d.ts +21 -0
- package/funcs/loanWritebackSourceAccountsCreateMapping.d.ts.map +1 -1
- package/funcs/loanWritebackSourceAccountsCreateMapping.js +25 -3
- package/funcs/loanWritebackSourceAccountsCreateMapping.js.map +1 -1
- package/funcs/loanWritebackSourceAccountsListMappings.d.ts +23 -0
- package/funcs/loanWritebackSourceAccountsListMappings.d.ts.map +1 -0
- package/funcs/loanWritebackSourceAccountsListMappings.js +127 -0
- package/funcs/loanWritebackSourceAccountsListMappings.js.map +1 -0
- package/funcs/loanWritebackSuppliersCreate.d.ts.map +1 -1
- package/funcs/loanWritebackSuppliersCreate.js +4 -3
- package/funcs/loanWritebackSuppliersCreate.js.map +1 -1
- package/funcs/loanWritebackSuppliersGetCreateUpdateModel.d.ts.map +1 -1
- package/funcs/loanWritebackSuppliersGetCreateUpdateModel.js +4 -3
- package/funcs/loanWritebackSuppliersGetCreateUpdateModel.js.map +1 -1
- package/funcs/loanWritebackTransfersCreate.d.ts.map +1 -1
- package/funcs/loanWritebackTransfersCreate.js +4 -3
- package/funcs/loanWritebackTransfersCreate.js.map +1 -1
- package/funcs/loanWritebackTransfersGetCreateModel.d.ts.map +1 -1
- package/funcs/loanWritebackTransfersGetCreateModel.js +4 -3
- package/funcs/loanWritebackTransfersGetCreateModel.js.map +1 -1
- package/funcs/manageDataGetStatus.d.ts.map +1 -1
- package/funcs/manageDataGetStatus.js +4 -3
- package/funcs/manageDataGetStatus.js.map +1 -1
- package/funcs/manageDataPullOperationsGet.d.ts.map +1 -1
- package/funcs/manageDataPullOperationsGet.js +4 -3
- package/funcs/manageDataPullOperationsGet.js.map +1 -1
- package/funcs/manageDataPullOperationsList.d.ts.map +1 -1
- package/funcs/manageDataPullOperationsList.js +4 -3
- package/funcs/manageDataPullOperationsList.js.map +1 -1
- package/funcs/manageDataRefreshAllDataTypes.d.ts.map +1 -1
- package/funcs/manageDataRefreshAllDataTypes.js +4 -3
- package/funcs/manageDataRefreshAllDataTypes.js.map +1 -1
- package/funcs/manageDataRefreshDataType.d.ts.map +1 -1
- package/funcs/manageDataRefreshDataType.js +4 -3
- package/funcs/manageDataRefreshDataType.js.map +1 -1
- package/funcs/manageReportsGenerateReport.d.ts.map +1 -1
- package/funcs/manageReportsGenerateReport.js +5 -4
- package/funcs/manageReportsGenerateReport.js.map +1 -1
- package/funcs/manageReportsListReports.d.ts.map +1 -1
- package/funcs/manageReportsListReports.js +4 -3
- package/funcs/manageReportsListReports.js.map +1 -1
- package/funcs/salesCustomersGet.d.ts.map +1 -1
- package/funcs/salesCustomersGet.js +4 -3
- package/funcs/salesCustomersGet.js.map +1 -1
- package/funcs/salesCustomersList.d.ts.map +1 -1
- package/funcs/salesCustomersList.js +4 -3
- package/funcs/salesCustomersList.js.map +1 -1
- package/funcs/salesDisputesGet.d.ts.map +1 -1
- package/funcs/salesDisputesGet.js +4 -3
- package/funcs/salesDisputesGet.js.map +1 -1
- package/funcs/salesDisputesList.d.ts.map +1 -1
- package/funcs/salesDisputesList.js +4 -3
- package/funcs/salesDisputesList.js.map +1 -1
- package/funcs/salesLocationsGet.d.ts.map +1 -1
- package/funcs/salesLocationsGet.js +4 -3
- package/funcs/salesLocationsGet.js.map +1 -1
- package/funcs/salesLocationsList.d.ts.map +1 -1
- package/funcs/salesLocationsList.js +4 -3
- package/funcs/salesLocationsList.js.map +1 -1
- package/funcs/salesMetricsGetCustomerRetention.d.ts.map +1 -1
- package/funcs/salesMetricsGetCustomerRetention.js +4 -3
- package/funcs/salesMetricsGetCustomerRetention.js.map +1 -1
- package/funcs/salesMetricsGetLifetimeValue.d.ts.map +1 -1
- package/funcs/salesMetricsGetLifetimeValue.js +4 -3
- package/funcs/salesMetricsGetLifetimeValue.js.map +1 -1
- package/funcs/salesMetricsGetRevenue.d.ts.map +1 -1
- package/funcs/salesMetricsGetRevenue.js +4 -3
- package/funcs/salesMetricsGetRevenue.js.map +1 -1
- package/funcs/salesOrdersGet.d.ts.map +1 -1
- package/funcs/salesOrdersGet.js +4 -3
- package/funcs/salesOrdersGet.js.map +1 -1
- package/funcs/salesOrdersList.d.ts.map +1 -1
- package/funcs/salesOrdersList.js +4 -3
- package/funcs/salesOrdersList.js.map +1 -1
- package/funcs/salesPaymentMethodsGet.d.ts.map +1 -1
- package/funcs/salesPaymentMethodsGet.js +4 -3
- package/funcs/salesPaymentMethodsGet.js.map +1 -1
- package/funcs/salesPaymentMethodsList.d.ts.map +1 -1
- package/funcs/salesPaymentMethodsList.js +4 -3
- package/funcs/salesPaymentMethodsList.js.map +1 -1
- package/funcs/salesPaymentsGet.d.ts.map +1 -1
- package/funcs/salesPaymentsGet.js +4 -3
- package/funcs/salesPaymentsGet.js.map +1 -1
- package/funcs/salesPaymentsList.d.ts.map +1 -1
- package/funcs/salesPaymentsList.js +4 -3
- package/funcs/salesPaymentsList.js.map +1 -1
- package/funcs/salesProductCategoriesGet.d.ts.map +1 -1
- package/funcs/salesProductCategoriesGet.js +4 -3
- package/funcs/salesProductCategoriesGet.js.map +1 -1
- package/funcs/salesProductCategoriesList.d.ts.map +1 -1
- package/funcs/salesProductCategoriesList.js +4 -3
- package/funcs/salesProductCategoriesList.js.map +1 -1
- package/funcs/salesProductsGet.d.ts.map +1 -1
- package/funcs/salesProductsGet.js +4 -3
- package/funcs/salesProductsGet.js.map +1 -1
- package/funcs/salesProductsList.d.ts.map +1 -1
- package/funcs/salesProductsList.js +4 -3
- package/funcs/salesProductsList.js.map +1 -1
- package/funcs/salesReportsGetOrders.d.ts.map +1 -1
- package/funcs/salesReportsGetOrders.js +4 -3
- package/funcs/salesReportsGetOrders.js.map +1 -1
- package/funcs/salesReportsGetRefunds.d.ts.map +1 -1
- package/funcs/salesReportsGetRefunds.js +4 -3
- package/funcs/salesReportsGetRefunds.js.map +1 -1
- package/funcs/salesTransactionsGet.d.ts.map +1 -1
- package/funcs/salesTransactionsGet.js +4 -3
- package/funcs/salesTransactionsGet.js.map +1 -1
- package/funcs/salesTransactionsList.d.ts.map +1 -1
- package/funcs/salesTransactionsList.js +4 -3
- package/funcs/salesTransactionsList.js.map +1 -1
- package/funcs/transactionsAccountTransactionsGet.d.ts.map +1 -1
- package/funcs/transactionsAccountTransactionsGet.js +4 -3
- package/funcs/transactionsAccountTransactionsGet.js.map +1 -1
- package/funcs/transactionsAccountTransactionsList.d.ts.map +1 -1
- package/funcs/transactionsAccountTransactionsList.js +4 -3
- package/funcs/transactionsAccountTransactionsList.js.map +1 -1
- package/funcs/transactionsDirectCostsDownloadAttachment.d.ts.map +1 -1
- package/funcs/transactionsDirectCostsDownloadAttachment.js +4 -3
- package/funcs/transactionsDirectCostsDownloadAttachment.js.map +1 -1
- package/funcs/transactionsDirectCostsGet.d.ts.map +1 -1
- package/funcs/transactionsDirectCostsGet.js +4 -3
- package/funcs/transactionsDirectCostsGet.js.map +1 -1
- package/funcs/transactionsDirectCostsGetAttachment.d.ts.map +1 -1
- package/funcs/transactionsDirectCostsGetAttachment.js +4 -3
- package/funcs/transactionsDirectCostsGetAttachment.js.map +1 -1
- package/funcs/transactionsDirectCostsList.d.ts.map +1 -1
- package/funcs/transactionsDirectCostsList.js +4 -3
- package/funcs/transactionsDirectCostsList.js.map +1 -1
- package/funcs/transactionsDirectCostsListAttachments.d.ts.map +1 -1
- package/funcs/transactionsDirectCostsListAttachments.js +4 -3
- package/funcs/transactionsDirectCostsListAttachments.js.map +1 -1
- package/funcs/transactionsJournalEntriesGet.d.ts.map +1 -1
- package/funcs/transactionsJournalEntriesGet.js +4 -3
- package/funcs/transactionsJournalEntriesGet.js.map +1 -1
- package/funcs/transactionsJournalEntriesList.d.ts.map +1 -1
- package/funcs/transactionsJournalEntriesList.js +4 -3
- package/funcs/transactionsJournalEntriesList.js.map +1 -1
- package/funcs/transactionsJournalsGet.d.ts.map +1 -1
- package/funcs/transactionsJournalsGet.js +4 -3
- package/funcs/transactionsJournalsGet.js.map +1 -1
- package/funcs/transactionsJournalsList.d.ts.map +1 -1
- package/funcs/transactionsJournalsList.js +4 -3
- package/funcs/transactionsJournalsList.js.map +1 -1
- package/funcs/transactionsTransfersGet.d.ts.map +1 -1
- package/funcs/transactionsTransfersGet.js +4 -3
- package/funcs/transactionsTransfersGet.js.map +1 -1
- package/funcs/transactionsTransfersList.d.ts.map +1 -1
- package/funcs/transactionsTransfersList.js +4 -3
- package/funcs/transactionsTransfersList.js.map +1 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +18 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/types.d.ts +3 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +2 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +54 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +5 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +16 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +2 -2
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accountingbankdata.js +1 -2
- package/sdk/accountingbankdata.js.map +1 -1
- package/sdk/accountspayable.js +4 -8
- package/sdk/accountspayable.js.map +1 -1
- package/sdk/accountsreceivable.js +6 -12
- package/sdk/accountsreceivable.js.map +1 -1
- package/sdk/banking.js +5 -10
- package/sdk/banking.js.map +1 -1
- package/sdk/companies.d.ts +13 -0
- package/sdk/companies.d.ts.map +1 -1
- package/sdk/companies.js +13 -0
- package/sdk/companies.js.map +1 -1
- package/sdk/financialstatements.js +4 -8
- package/sdk/financialstatements.js.map +1 -1
- package/sdk/loanwriteback.js +9 -18
- package/sdk/loanwriteback.js.map +1 -1
- package/sdk/managedata.js +2 -4
- package/sdk/managedata.js.map +1 -1
- package/sdk/models/errors/httpclienterrors.js +2 -2
- package/sdk/models/errors/httpclienterrors.js.map +1 -1
- package/sdk/models/operations/createsourceaccount.d.ts +4 -4
- package/sdk/models/operations/createsourceaccount.d.ts.map +1 -1
- package/sdk/models/operations/createsourceaccount.js +8 -8
- package/sdk/models/operations/createsourceaccount.js.map +1 -1
- package/sdk/models/operations/getbankaccountmapping.d.ts +37 -0
- package/sdk/models/operations/getbankaccountmapping.d.ts.map +1 -0
- package/sdk/models/operations/getbankaccountmapping.js +61 -0
- package/sdk/models/operations/getbankaccountmapping.js.map +1 -0
- package/sdk/models/operations/index.d.ts +1 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +1 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listcompanies.d.ts +5 -0
- package/sdk/models/operations/listcompanies.d.ts.map +1 -1
- package/sdk/models/operations/listcompanies.js +2 -0
- package/sdk/models/operations/listcompanies.js.map +1 -1
- package/sdk/models/shared/accountingcompanyinfo.d.ts +1 -1
- package/sdk/models/shared/bankfeedmapping.d.ts +108 -0
- package/sdk/models/shared/bankfeedmapping.d.ts.map +1 -0
- package/sdk/models/shared/bankfeedmapping.js +81 -0
- package/sdk/models/shared/bankfeedmapping.js.map +1 -0
- package/sdk/models/shared/file.d.ts +2 -2
- package/sdk/models/shared/file.d.ts.map +1 -1
- package/sdk/models/shared/file.js +4 -4
- package/sdk/models/shared/file.js.map +1 -1
- package/sdk/models/shared/index.d.ts +6 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +6 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertieaccounttype.d.ts +43 -0
- package/sdk/models/shared/propertieaccounttype.d.ts.map +1 -0
- package/sdk/models/shared/propertieaccounttype.js +56 -0
- package/sdk/models/shared/propertieaccounttype.js.map +1 -0
- package/sdk/models/shared/reportoperation.d.ts +3 -0
- package/sdk/models/shared/reportoperation.d.ts.map +1 -1
- package/sdk/models/shared/reportoperation.js +1 -0
- package/sdk/models/shared/reportoperation.js.map +1 -1
- package/sdk/models/shared/reporttype.d.ts +3 -0
- package/sdk/models/shared/reporttype.d.ts.map +1 -1
- package/sdk/models/shared/reporttype.js +1 -0
- package/sdk/models/shared/reporttype.js.map +1 -1
- package/sdk/models/shared/schema.d.ts +63 -0
- package/sdk/models/shared/schema.d.ts.map +1 -0
- package/sdk/models/shared/schema.js +67 -0
- package/sdk/models/shared/schema.js.map +1 -0
- package/sdk/models/shared/sourceaccountprototype.d.ts +94 -0
- package/sdk/models/shared/sourceaccountprototype.d.ts.map +1 -0
- package/sdk/models/shared/sourceaccountprototype.js +74 -0
- package/sdk/models/shared/sourceaccountprototype.js.map +1 -0
- package/sdk/models/shared/sourceaccountv2.d.ts +5 -0
- package/sdk/models/shared/sourceaccountv2.d.ts.map +1 -1
- package/sdk/models/shared/sourceaccountv2.js +2 -0
- package/sdk/models/shared/sourceaccountv2.js.map +1 -1
- package/sdk/models/shared/sourceaccountv2prototype.d.ts +104 -0
- package/sdk/models/shared/sourceaccountv2prototype.d.ts.map +1 -0
- package/sdk/models/shared/sourceaccountv2prototype.js +81 -0
- package/sdk/models/shared/sourceaccountv2prototype.js.map +1 -0
- package/sdk/models/shared/targetaccountoption.d.ts +53 -0
- package/sdk/models/shared/targetaccountoption.d.ts.map +1 -0
- package/sdk/models/shared/targetaccountoption.js +68 -0
- package/sdk/models/shared/targetaccountoption.js.map +1 -0
- package/sdk/models/webhooks/index.d.ts +1 -1
- package/sdk/models/webhooks/index.d.ts.map +1 -1
- package/sdk/models/webhooks/index.js +1 -1
- package/sdk/models/webhooks/index.js.map +1 -1
- package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.d.ts +63 -0
- package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.d.ts.map +1 -0
- package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.js +68 -0
- package/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.js.map +1 -0
- package/sdk/sales.js +11 -22
- package/sdk/sales.js.map +1 -1
- package/sdk/sdk.js +18 -36
- package/sdk/sdk.js.map +1 -1
- package/sdk/sourceaccounts.d.ts +31 -18
- package/sdk/sourceaccounts.d.ts.map +1 -1
- package/sdk/sourceaccounts.js +36 -20
- package/sdk/sourceaccounts.js.map +1 -1
- package/sdk/transactions.js +5 -10
- package/sdk/transactions.js.map +1 -1
- package/sdk/types/index.d.ts +1 -0
- package/sdk/types/index.d.ts.map +1 -1
- package/sdk/types/operations.d.ts +5 -3
- package/sdk/types/operations.d.ts.map +1 -1
- package/sdk/types/operations.js +3 -0
- package/sdk/types/operations.js.map +1 -1
- package/sdk/types/webhooks.d.ts +4 -0
- package/sdk/types/webhooks.d.ts.map +1 -0
- package/sdk/types/webhooks.js +6 -0
- package/sdk/types/webhooks.js.map +1 -0
- package/src/funcs/accountingBankDataAccountsGet.ts +1 -0
- package/src/funcs/accountingBankDataAccountsList.ts +1 -0
- package/src/funcs/accountingBankDataListTransactions.ts +1 -0
- package/src/funcs/accountsPayableBillCreditNotesGet.ts +1 -0
- package/src/funcs/accountsPayableBillCreditNotesList.ts +1 -0
- package/src/funcs/accountsPayableBillPaymentsGet.ts +1 -0
- package/src/funcs/accountsPayableBillPaymentsList.ts +1 -0
- package/src/funcs/accountsPayableBillsDownloadAttachment.ts +1 -0
- package/src/funcs/accountsPayableBillsGet.ts +1 -0
- package/src/funcs/accountsPayableBillsGetAttachment.ts +1 -0
- package/src/funcs/accountsPayableBillsList.ts +1 -0
- package/src/funcs/accountsPayableBillsListAttachments.ts +1 -0
- package/src/funcs/accountsPayableSuppliersDownloadAttachment.ts +1 -0
- package/src/funcs/accountsPayableSuppliersGet.ts +1 -0
- package/src/funcs/accountsPayableSuppliersGetAttachment.ts +1 -0
- package/src/funcs/accountsPayableSuppliersList.ts +1 -0
- package/src/funcs/accountsPayableSuppliersListAttachments.ts +1 -0
- package/src/funcs/accountsReceivableCreditNotesGet.ts +1 -0
- package/src/funcs/accountsReceivableCreditNotesList.ts +1 -0
- package/src/funcs/accountsReceivableCustomersDownloadAttachment.ts +1 -0
- package/src/funcs/accountsReceivableCustomersGet.ts +1 -0
- package/src/funcs/accountsReceivableCustomersGetAttachment.ts +1 -0
- package/src/funcs/accountsReceivableCustomersList.ts +1 -0
- package/src/funcs/accountsReceivableCustomersListAttachments.ts +1 -0
- package/src/funcs/accountsReceivableDirectIncomesDownloadAttachment.ts +1 -0
- package/src/funcs/accountsReceivableDirectIncomesGet.ts +1 -0
- package/src/funcs/accountsReceivableDirectIncomesGetAttachment.ts +1 -0
- package/src/funcs/accountsReceivableDirectIncomesList.ts +1 -0
- package/src/funcs/accountsReceivableDirectIncomesListAttachments.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesDownloadAttachment.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesDownloadPdf.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesGet.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesGetAttachment.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesList.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesListAttachments.ts +1 -0
- package/src/funcs/accountsReceivableInvoicesListReconciled.ts +1 -0
- package/src/funcs/accountsReceivablePaymentsGet.ts +1 -0
- package/src/funcs/accountsReceivablePaymentsList.ts +1 -0
- package/src/funcs/accountsReceivableReportsGetAgedCreditors.ts +1 -0
- package/src/funcs/accountsReceivableReportsGetAgedDebtors.ts +1 -0
- package/src/funcs/accountsReceivableReportsIsAgedCreditorsAvailable.ts +1 -0
- package/src/funcs/accountsReceivableReportsIsAgedDebtorsAvailable.ts +1 -0
- package/src/funcs/bankStatementsEndUploadSession.ts +1 -0
- package/src/funcs/bankStatementsGetUploadConfiguration.ts +1 -0
- package/src/funcs/bankStatementsSetUploadConfiguration.ts +1 -0
- package/src/funcs/bankStatementsStartUploadSession.ts +1 -0
- package/src/funcs/bankStatementsUploadBankStatementData.ts +1 -0
- package/src/funcs/bankingAccountBalancesList.ts +1 -0
- package/src/funcs/bankingAccountsGet.ts +1 -0
- package/src/funcs/bankingAccountsList.ts +1 -0
- package/src/funcs/bankingCategorizedStatementGet.ts +1 -0
- package/src/funcs/bankingTransactionCategoriesGet.ts +1 -0
- package/src/funcs/bankingTransactionCategoriesList.ts +1 -0
- package/src/funcs/bankingTransactionsGet.ts +1 -0
- package/src/funcs/bankingTransactionsList.ts +1 -0
- package/src/funcs/companiesCreate.ts +1 -0
- package/src/funcs/companiesDelete.ts +1 -0
- package/src/funcs/companiesGet.ts +1 -0
- package/src/funcs/companiesList.ts +15 -0
- package/src/funcs/companiesUpdate.ts +1 -0
- package/src/funcs/companyInfoGetAccountingProfile.ts +1 -0
- package/src/funcs/companyInfoGetCommerceProfile.ts +1 -0
- package/src/funcs/connectionsCreate.ts +1 -0
- package/src/funcs/connectionsDelete.ts +1 -0
- package/src/funcs/connectionsGet.ts +1 -0
- package/src/funcs/connectionsList.ts +1 -0
- package/src/funcs/connectionsUnlink.ts +1 -0
- package/src/funcs/dataIntegrityDetails.ts +1 -0
- package/src/funcs/dataIntegrityStatus.ts +1 -0
- package/src/funcs/dataIntegritySummaries.ts +1 -0
- package/src/funcs/excelReportsDownload.ts +1 -0
- package/src/funcs/excelReportsGenerate.ts +1 -0
- package/src/funcs/excelReportsGetStatus.ts +1 -0
- package/src/funcs/fileUploadDownload.ts +1 -0
- package/src/funcs/fileUploadListUploaded.ts +1 -0
- package/src/funcs/fileUploadUpload.ts +1 -0
- package/src/funcs/financialStatementsAccountsGet.ts +1 -0
- package/src/funcs/financialStatementsAccountsList.ts +1 -0
- package/src/funcs/financialStatementsBalanceSheetGet.ts +1 -0
- package/src/funcs/financialStatementsBalanceSheetGetCategorizedAccounts.ts +1 -0
- package/src/funcs/financialStatementsCashFlowGet.ts +1 -0
- package/src/funcs/financialStatementsProfitAndLossGet.ts +1 -0
- package/src/funcs/financialStatementsProfitAndLossGetCategorizedAccounts.ts +1 -0
- package/src/funcs/liabilitiesGenerateLoanSummary.ts +1 -0
- package/src/funcs/liabilitiesGenerateLoanTransactions.ts +1 -0
- package/src/funcs/liabilitiesGetLoanSummary.ts +1 -0
- package/src/funcs/liabilitiesListLoanTransactions.ts +1 -0
- package/src/funcs/loanWritebackAccountsCreate.ts +1 -0
- package/src/funcs/loanWritebackAccountsGetCreateModel.ts +1 -0
- package/src/funcs/loanWritebackBankAccountsCreate.ts +1 -0
- package/src/funcs/loanWritebackBankAccountsGetCreateUpdateModel.ts +1 -0
- package/src/funcs/loanWritebackBankTransactionsCreate.ts +1 -0
- package/src/funcs/loanWritebackBankTransactionsGetCreateModel.ts +1 -0
- package/src/funcs/loanWritebackCreateOperationsGet.ts +1 -0
- package/src/funcs/loanWritebackCreateOperationsList.ts +1 -0
- package/src/funcs/loanWritebackDirectCostsCreate.ts +1 -0
- package/src/funcs/loanWritebackDirectCostsGetCreateModel.ts +1 -0
- package/src/funcs/loanWritebackPaymentsCreate.ts +1 -0
- package/src/funcs/loanWritebackPaymentsGetCreateModel.ts +1 -0
- package/src/funcs/loanWritebackSourceAccountsCreate.ts +1 -21
- package/src/funcs/loanWritebackSourceAccountsCreateMapping.ts +22 -0
- package/src/funcs/loanWritebackSourceAccountsListMappings.ts +166 -0
- package/src/funcs/loanWritebackSuppliersCreate.ts +1 -0
- package/src/funcs/loanWritebackSuppliersGetCreateUpdateModel.ts +1 -0
- package/src/funcs/loanWritebackTransfersCreate.ts +1 -0
- package/src/funcs/loanWritebackTransfersGetCreateModel.ts +1 -0
- package/src/funcs/manageDataGetStatus.ts +1 -0
- package/src/funcs/manageDataPullOperationsGet.ts +1 -0
- package/src/funcs/manageDataPullOperationsList.ts +1 -0
- package/src/funcs/manageDataRefreshAllDataTypes.ts +1 -0
- package/src/funcs/manageDataRefreshDataType.ts +1 -0
- package/src/funcs/manageReportsGenerateReport.ts +2 -1
- package/src/funcs/manageReportsListReports.ts +1 -0
- package/src/funcs/salesCustomersGet.ts +1 -0
- package/src/funcs/salesCustomersList.ts +1 -0
- package/src/funcs/salesDisputesGet.ts +1 -0
- package/src/funcs/salesDisputesList.ts +1 -0
- package/src/funcs/salesLocationsGet.ts +1 -0
- package/src/funcs/salesLocationsList.ts +1 -0
- package/src/funcs/salesMetricsGetCustomerRetention.ts +1 -0
- package/src/funcs/salesMetricsGetLifetimeValue.ts +1 -0
- package/src/funcs/salesMetricsGetRevenue.ts +1 -0
- package/src/funcs/salesOrdersGet.ts +1 -0
- package/src/funcs/salesOrdersList.ts +1 -0
- package/src/funcs/salesPaymentMethodsGet.ts +1 -0
- package/src/funcs/salesPaymentMethodsList.ts +1 -0
- package/src/funcs/salesPaymentsGet.ts +1 -0
- package/src/funcs/salesPaymentsList.ts +1 -0
- package/src/funcs/salesProductCategoriesGet.ts +1 -0
- package/src/funcs/salesProductCategoriesList.ts +1 -0
- package/src/funcs/salesProductsGet.ts +1 -0
- package/src/funcs/salesProductsList.ts +1 -0
- package/src/funcs/salesReportsGetOrders.ts +1 -0
- package/src/funcs/salesReportsGetRefunds.ts +1 -0
- package/src/funcs/salesTransactionsGet.ts +1 -0
- package/src/funcs/salesTransactionsList.ts +1 -0
- package/src/funcs/transactionsAccountTransactionsGet.ts +1 -0
- package/src/funcs/transactionsAccountTransactionsList.ts +1 -0
- package/src/funcs/transactionsDirectCostsDownloadAttachment.ts +1 -0
- package/src/funcs/transactionsDirectCostsGet.ts +1 -0
- package/src/funcs/transactionsDirectCostsGetAttachment.ts +1 -0
- package/src/funcs/transactionsDirectCostsList.ts +1 -0
- package/src/funcs/transactionsDirectCostsListAttachments.ts +1 -0
- package/src/funcs/transactionsJournalEntriesGet.ts +1 -0
- package/src/funcs/transactionsJournalEntriesList.ts +1 -0
- package/src/funcs/transactionsJournalsGet.ts +1 -0
- package/src/funcs/transactionsJournalsList.ts +1 -0
- package/src/funcs/transactionsTransfersGet.ts +1 -0
- package/src/funcs/transactionsTransfersList.ts +1 -0
- package/src/hooks/hooks.ts +20 -0
- package/src/hooks/types.ts +9 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/primitives.ts +62 -0
- package/src/lib/sdks.ts +6 -1
- package/src/lib/security.ts +1 -1
- package/src/sdk/companies.ts +13 -0
- package/src/sdk/models/operations/createsourceaccount.ts +18 -15
- package/src/sdk/models/operations/getbankaccountmapping.ts +78 -0
- package/src/sdk/models/operations/index.ts +1 -0
- package/src/sdk/models/operations/listcompanies.ts +7 -0
- package/src/sdk/models/shared/accountingcompanyinfo.ts +1 -1
- package/src/sdk/models/shared/bankfeedmapping.ts +170 -0
- package/src/sdk/models/shared/file.ts +2 -2
- package/src/sdk/models/shared/index.ts +6 -0
- package/src/sdk/models/shared/propertieaccounttype.ts +42 -0
- package/src/sdk/models/shared/reportoperation.ts +1 -0
- package/src/sdk/models/shared/reporttype.ts +1 -0
- package/src/sdk/models/shared/schema.ts +104 -0
- package/src/sdk/models/shared/sourceaccountprototype.ts +149 -0
- package/src/sdk/models/shared/sourceaccountv2.ts +7 -0
- package/src/sdk/models/shared/sourceaccountv2prototype.ts +175 -0
- package/src/sdk/models/shared/targetaccountoption.ts +102 -0
- package/src/sdk/models/webhooks/index.ts +1 -1
- package/src/sdk/models/webhooks/reportscreditmodelgeneratesuccessful.ts +119 -0
- package/src/sdk/sourceaccounts.ts +45 -21
- package/src/sdk/types/index.ts +1 -0
- package/src/sdk/types/operations.ts +11 -5
- package/src/sdk/types/webhooks.ts +7 -0
- package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.d.ts +0 -63
- package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.d.ts.map +0 -1
- package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.js +0 -68
- package/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.js.map +0 -1
- package/src/sdk/models/webhooks/reportcategorizedbankstatementgeneratesuccessful.ts +0 -122
|
@@ -24,6 +24,10 @@ export type ListCompaniesRequest = {
|
|
|
24
24
|
* Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results).
|
|
25
25
|
*/
|
|
26
26
|
orderBy?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Filter companies by tags using the "equals" (=), "not equals" (!=), and "contains" (~) operators with [Codat’s query language](https://docs.codat.io/using-the-api/querying).
|
|
29
|
+
*/
|
|
30
|
+
tags?: string | undefined;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
/** @internal */
|
|
@@ -36,6 +40,7 @@ export const ListCompaniesRequest$inboundSchema: z.ZodType<
|
|
|
36
40
|
pageSize: z.number().int().default(100),
|
|
37
41
|
query: z.string().optional(),
|
|
38
42
|
orderBy: z.string().optional(),
|
|
43
|
+
tags: z.string().optional(),
|
|
39
44
|
});
|
|
40
45
|
|
|
41
46
|
/** @internal */
|
|
@@ -44,6 +49,7 @@ export type ListCompaniesRequest$Outbound = {
|
|
|
44
49
|
pageSize: number;
|
|
45
50
|
query?: string | undefined;
|
|
46
51
|
orderBy?: string | undefined;
|
|
52
|
+
tags?: string | undefined;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
/** @internal */
|
|
@@ -56,6 +62,7 @@ export const ListCompaniesRequest$outboundSchema: z.ZodType<
|
|
|
56
62
|
pageSize: z.number().int().default(100),
|
|
57
63
|
query: z.string().optional(),
|
|
58
64
|
orderBy: z.string().optional(),
|
|
65
|
+
tags: z.string().optional(),
|
|
59
66
|
});
|
|
60
67
|
|
|
61
68
|
/**
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
*
|
|
39
39
|
* > **Company information or companies?**
|
|
40
40
|
* >
|
|
41
|
-
* > Company
|
|
41
|
+
* > Company information is standard information that is held in the accounting software about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources.
|
|
42
42
|
*/
|
|
43
43
|
export type AccountingCompanyInfo = {
|
|
44
44
|
/**
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Decimal as Decimal$ } from "../../types/decimal.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
TargetAccountOption,
|
|
12
|
+
TargetAccountOption$inboundSchema,
|
|
13
|
+
TargetAccountOption$Outbound,
|
|
14
|
+
TargetAccountOption$outboundSchema,
|
|
15
|
+
} from "./targetaccountoption.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A bank feed connection between a source account and a target account, including potential target accounts.
|
|
19
|
+
*/
|
|
20
|
+
export type BankFeedMapping = {
|
|
21
|
+
/**
|
|
22
|
+
* Unique ID for the source account.
|
|
23
|
+
*/
|
|
24
|
+
sourceAccountId?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Name for the source account.
|
|
27
|
+
*/
|
|
28
|
+
sourceAccountName?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Account number for the source account.
|
|
31
|
+
*/
|
|
32
|
+
sourceAccountNumber?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Balance for the source account.
|
|
35
|
+
*/
|
|
36
|
+
sourceBalance?: Decimal$ | number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*
|
|
42
|
+
* ## Unknown currencies
|
|
43
|
+
*
|
|
44
|
+
* In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.
|
|
45
|
+
*
|
|
46
|
+
* There are only a very small number of edge cases where this currency code is returned by the Codat system.
|
|
47
|
+
*/
|
|
48
|
+
sourceCurrency?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Unique ID for the target account in the accounting software.
|
|
51
|
+
*/
|
|
52
|
+
targetAccountId?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Name for the target account in the accounting software.
|
|
55
|
+
*/
|
|
56
|
+
targetAccountName?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The status.
|
|
59
|
+
*/
|
|
60
|
+
status?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* An array of potential target accounts.
|
|
63
|
+
*/
|
|
64
|
+
targetAccountOptions?: Array<TargetAccountOption> | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
* 2020-10-08T22:40:50Z
|
|
72
|
+
* 2021-01-01T00:00:00
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
76
|
+
*
|
|
77
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
78
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
79
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
80
|
+
*
|
|
81
|
+
* > Time zones
|
|
82
|
+
* >
|
|
83
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
84
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
85
|
+
*/
|
|
86
|
+
feedStartDate?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const BankFeedMapping$inboundSchema: z.ZodType<
|
|
91
|
+
BankFeedMapping,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
sourceAccountId: z.string().optional(),
|
|
96
|
+
sourceAccountName: z.string().optional(),
|
|
97
|
+
sourceAccountNumber: z.string().optional(),
|
|
98
|
+
sourceBalance: z.number().transform(v => new Decimal$(v)).optional(),
|
|
99
|
+
sourceCurrency: z.string().optional(),
|
|
100
|
+
targetAccountId: z.nullable(z.string()).optional(),
|
|
101
|
+
targetAccountName: z.string().optional(),
|
|
102
|
+
status: z.string().optional(),
|
|
103
|
+
targetAccountOptions: z.nullable(z.array(TargetAccountOption$inboundSchema))
|
|
104
|
+
.optional(),
|
|
105
|
+
feedStartDate: z.string().optional(),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export type BankFeedMapping$Outbound = {
|
|
110
|
+
sourceAccountId?: string | undefined;
|
|
111
|
+
sourceAccountName?: string | undefined;
|
|
112
|
+
sourceAccountNumber?: string | undefined;
|
|
113
|
+
sourceBalance?: number | undefined;
|
|
114
|
+
sourceCurrency?: string | undefined;
|
|
115
|
+
targetAccountId?: string | null | undefined;
|
|
116
|
+
targetAccountName?: string | undefined;
|
|
117
|
+
status?: string | undefined;
|
|
118
|
+
targetAccountOptions?: Array<TargetAccountOption$Outbound> | null | undefined;
|
|
119
|
+
feedStartDate?: string | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const BankFeedMapping$outboundSchema: z.ZodType<
|
|
124
|
+
BankFeedMapping$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
BankFeedMapping
|
|
127
|
+
> = z.object({
|
|
128
|
+
sourceAccountId: z.string().optional(),
|
|
129
|
+
sourceAccountName: z.string().optional(),
|
|
130
|
+
sourceAccountNumber: z.string().optional(),
|
|
131
|
+
sourceBalance: z.union([z.instanceof(Decimal$), z.number()]).transform(v =>
|
|
132
|
+
typeof v === "number" ? v : v.toNumber()
|
|
133
|
+
).optional(),
|
|
134
|
+
sourceCurrency: z.string().optional(),
|
|
135
|
+
targetAccountId: z.nullable(z.string()).optional(),
|
|
136
|
+
targetAccountName: z.string().optional(),
|
|
137
|
+
status: z.string().optional(),
|
|
138
|
+
targetAccountOptions: z.nullable(z.array(TargetAccountOption$outboundSchema))
|
|
139
|
+
.optional(),
|
|
140
|
+
feedStartDate: z.string().optional(),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace BankFeedMapping$ {
|
|
148
|
+
/** @deprecated use `BankFeedMapping$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema = BankFeedMapping$inboundSchema;
|
|
150
|
+
/** @deprecated use `BankFeedMapping$outboundSchema` instead. */
|
|
151
|
+
export const outboundSchema = BankFeedMapping$outboundSchema;
|
|
152
|
+
/** @deprecated use `BankFeedMapping$Outbound` instead. */
|
|
153
|
+
export type Outbound = BankFeedMapping$Outbound;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function bankFeedMappingToJSON(
|
|
157
|
+
bankFeedMapping: BankFeedMapping,
|
|
158
|
+
): string {
|
|
159
|
+
return JSON.stringify(BankFeedMapping$outboundSchema.parse(bankFeedMapping));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function bankFeedMappingFromJSON(
|
|
163
|
+
jsonString: string,
|
|
164
|
+
): SafeParseResult<BankFeedMapping, SDKValidationError> {
|
|
165
|
+
return safeParse(
|
|
166
|
+
jsonString,
|
|
167
|
+
(x) => BankFeedMapping$inboundSchema.parse(JSON.parse(x)),
|
|
168
|
+
`Failed to parse 'BankFeedMapping' from JSON`,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
@@ -86,11 +86,11 @@ export namespace FileT$ {
|
|
|
86
86
|
export type Outbound = FileT$Outbound;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export function
|
|
89
|
+
export function fileToJSON(fileT: FileT): string {
|
|
90
90
|
return JSON.stringify(FileT$outboundSchema.parse(fileT));
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function
|
|
93
|
+
export function fileFromJSON(
|
|
94
94
|
jsonString: string,
|
|
95
95
|
): SafeParseResult<FileT, SDKValidationError> {
|
|
96
96
|
return safeParse(
|
|
@@ -86,6 +86,7 @@ export * from "./bankaccountref.js";
|
|
|
86
86
|
export * from "./bankaccountstatus.js";
|
|
87
87
|
export * from "./bankfeedbankaccountmapping.js";
|
|
88
88
|
export * from "./bankfeedbankaccountmappingresponse.js";
|
|
89
|
+
export * from "./bankfeedmapping.js";
|
|
89
90
|
export * from "./bankingaccount.js";
|
|
90
91
|
export * from "./bankingaccountbalance.js";
|
|
91
92
|
export * from "./bankingaccountbalances.js";
|
|
@@ -238,6 +239,7 @@ export * from "./productvariantref.js";
|
|
|
238
239
|
export * from "./productvariantstatus.js";
|
|
239
240
|
export * from "./profitandlossreport.js";
|
|
240
241
|
export * from "./projectref.js";
|
|
242
|
+
export * from "./propertieaccounttype.js";
|
|
241
243
|
export * from "./propertiedatatype.js";
|
|
242
244
|
export * from "./propertieitemref.js";
|
|
243
245
|
export * from "./pulloperation.js";
|
|
@@ -265,17 +267,21 @@ export * from "./reportoperation.js";
|
|
|
265
267
|
export * from "./reports.js";
|
|
266
268
|
export * from "./reporttype.js";
|
|
267
269
|
export * from "./routinginfo.js";
|
|
270
|
+
export * from "./schema.js";
|
|
268
271
|
export * from "./security.js";
|
|
269
272
|
export * from "./servicecharge.js";
|
|
270
273
|
export * from "./servicechargetype.js";
|
|
271
274
|
export * from "./sourceaccount.js";
|
|
275
|
+
export * from "./sourceaccountprototype.js";
|
|
272
276
|
export * from "./sourceaccountv2.js";
|
|
277
|
+
export * from "./sourceaccountv2prototype.js";
|
|
273
278
|
export * from "./sourceref.js";
|
|
274
279
|
export * from "./startuploadsessionrequest.js";
|
|
275
280
|
export * from "./status.js";
|
|
276
281
|
export * from "./supplementaldata.js";
|
|
277
282
|
export * from "./supplierref.js";
|
|
278
283
|
export * from "./supplierstatus.js";
|
|
284
|
+
export * from "./targetaccountoption.js";
|
|
279
285
|
export * from "./taxcomponentallocation.js";
|
|
280
286
|
export * from "./taxcomponentref.js";
|
|
281
287
|
export * from "./taxrateref.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The type of bank account e.g. checking, savings, loan, creditCard, prepaidCard.
|
|
10
|
+
*/
|
|
11
|
+
export const PropertieAccountType = {
|
|
12
|
+
Checking: "checking",
|
|
13
|
+
Savings: "savings",
|
|
14
|
+
Loan: "loan",
|
|
15
|
+
CreditCard: "creditCard",
|
|
16
|
+
PrepaidCard: "prepaidCard",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* The type of bank account e.g. checking, savings, loan, creditCard, prepaidCard.
|
|
20
|
+
*/
|
|
21
|
+
export type PropertieAccountType = ClosedEnum<typeof PropertieAccountType>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PropertieAccountType$inboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof PropertieAccountType
|
|
26
|
+
> = z.nativeEnum(PropertieAccountType);
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PropertieAccountType$outboundSchema: z.ZodNativeEnum<
|
|
30
|
+
typeof PropertieAccountType
|
|
31
|
+
> = PropertieAccountType$inboundSchema;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export namespace PropertieAccountType$ {
|
|
38
|
+
/** @deprecated use `PropertieAccountType$inboundSchema` instead. */
|
|
39
|
+
export const inboundSchema = PropertieAccountType$inboundSchema;
|
|
40
|
+
/** @deprecated use `PropertieAccountType$outboundSchema` instead. */
|
|
41
|
+
export const outboundSchema = PropertieAccountType$outboundSchema;
|
|
42
|
+
}
|
|
@@ -26,6 +26,7 @@ export type ReportOperationStatus = ClosedEnum<typeof ReportOperationStatus>;
|
|
|
26
26
|
*/
|
|
27
27
|
export const ReportOperationType = {
|
|
28
28
|
CategorizedBankStatement: "categorizedBankStatement",
|
|
29
|
+
CreditModel: "creditModel",
|
|
29
30
|
} as const;
|
|
30
31
|
/**
|
|
31
32
|
* The name of the report generated.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ReportGenerationPayload,
|
|
11
|
+
ReportGenerationPayload$inboundSchema,
|
|
12
|
+
ReportGenerationPayload$Outbound,
|
|
13
|
+
ReportGenerationPayload$outboundSchema,
|
|
14
|
+
} from "./reportgenerationpayload.js";
|
|
15
|
+
|
|
16
|
+
export type Schema = {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the event.
|
|
19
|
+
*/
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The type of event.
|
|
23
|
+
*/
|
|
24
|
+
eventType?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*
|
|
30
|
+
* ```
|
|
31
|
+
* 2020-10-08T22:40:50Z
|
|
32
|
+
* 2021-01-01T00:00:00
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
36
|
+
*
|
|
37
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
38
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
39
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
40
|
+
*
|
|
41
|
+
* > Time zones
|
|
42
|
+
* >
|
|
43
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
44
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
45
|
+
*/
|
|
46
|
+
generatedDate?: string | undefined;
|
|
47
|
+
payload?: ReportGenerationPayload | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const Schema$inboundSchema: z.ZodType<Schema, z.ZodTypeDef, unknown> = z
|
|
52
|
+
.object({
|
|
53
|
+
id: z.string().optional(),
|
|
54
|
+
eventType: z.string().optional(),
|
|
55
|
+
generatedDate: z.string().optional(),
|
|
56
|
+
payload: ReportGenerationPayload$inboundSchema.optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type Schema$Outbound = {
|
|
61
|
+
id?: string | undefined;
|
|
62
|
+
eventType?: string | undefined;
|
|
63
|
+
generatedDate?: string | undefined;
|
|
64
|
+
payload?: ReportGenerationPayload$Outbound | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const Schema$outboundSchema: z.ZodType<
|
|
69
|
+
Schema$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
Schema
|
|
72
|
+
> = z.object({
|
|
73
|
+
id: z.string().optional(),
|
|
74
|
+
eventType: z.string().optional(),
|
|
75
|
+
generatedDate: z.string().optional(),
|
|
76
|
+
payload: ReportGenerationPayload$outboundSchema.optional(),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace Schema$ {
|
|
84
|
+
/** @deprecated use `Schema$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = Schema$inboundSchema;
|
|
86
|
+
/** @deprecated use `Schema$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = Schema$outboundSchema;
|
|
88
|
+
/** @deprecated use `Schema$Outbound` instead. */
|
|
89
|
+
export type Outbound = Schema$Outbound;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function schemaToJSON(schema: Schema): string {
|
|
93
|
+
return JSON.stringify(Schema$outboundSchema.parse(schema));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function schemaFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<Schema, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => Schema$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'Schema' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Decimal as Decimal$ } from "../../types/decimal.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SourceAccountPrototype = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique ID for the bank account.
|
|
14
|
+
*/
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The bank account name.
|
|
18
|
+
*/
|
|
19
|
+
accountName?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The type of bank account e.g. Credit.
|
|
22
|
+
*/
|
|
23
|
+
accountType?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The account number.
|
|
26
|
+
*/
|
|
27
|
+
accountNumber?: string | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The sort code.
|
|
30
|
+
*/
|
|
31
|
+
sortCode?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*
|
|
37
|
+
* ## Unknown currencies
|
|
38
|
+
*
|
|
39
|
+
* In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction.
|
|
40
|
+
*
|
|
41
|
+
* There are only a very small number of edge cases where this currency code is returned by the Codat system.
|
|
42
|
+
*/
|
|
43
|
+
currency?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The latest balance for the bank account.
|
|
46
|
+
*/
|
|
47
|
+
balance?: Decimal$ | number | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
* 2020-10-08T22:40:50Z
|
|
55
|
+
* 2021-01-01T00:00:00
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
59
|
+
*
|
|
60
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
61
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
62
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
63
|
+
*
|
|
64
|
+
* > Time zones
|
|
65
|
+
* >
|
|
66
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
67
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
68
|
+
*/
|
|
69
|
+
modifiedDate?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const SourceAccountPrototype$inboundSchema: z.ZodType<
|
|
74
|
+
SourceAccountPrototype,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = z.object({
|
|
78
|
+
id: z.string().optional(),
|
|
79
|
+
accountName: z.nullable(z.string()).optional(),
|
|
80
|
+
accountType: z.nullable(z.string()).optional(),
|
|
81
|
+
accountNumber: z.nullable(z.string()).optional(),
|
|
82
|
+
sortCode: z.nullable(z.string()).optional(),
|
|
83
|
+
currency: z.string().optional(),
|
|
84
|
+
balance: z.nullable(z.number().transform(v => new Decimal$(v))).optional(),
|
|
85
|
+
modifiedDate: z.string().optional(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type SourceAccountPrototype$Outbound = {
|
|
90
|
+
id?: string | undefined;
|
|
91
|
+
accountName?: string | null | undefined;
|
|
92
|
+
accountType?: string | null | undefined;
|
|
93
|
+
accountNumber?: string | null | undefined;
|
|
94
|
+
sortCode?: string | null | undefined;
|
|
95
|
+
currency?: string | undefined;
|
|
96
|
+
balance?: number | null | undefined;
|
|
97
|
+
modifiedDate?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const SourceAccountPrototype$outboundSchema: z.ZodType<
|
|
102
|
+
SourceAccountPrototype$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
SourceAccountPrototype
|
|
105
|
+
> = z.object({
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
accountName: z.nullable(z.string()).optional(),
|
|
108
|
+
accountType: z.nullable(z.string()).optional(),
|
|
109
|
+
accountNumber: z.nullable(z.string()).optional(),
|
|
110
|
+
sortCode: z.nullable(z.string()).optional(),
|
|
111
|
+
currency: z.string().optional(),
|
|
112
|
+
balance: z.nullable(
|
|
113
|
+
z.union([z.instanceof(Decimal$), z.number()]).transform(v =>
|
|
114
|
+
typeof v === "number" ? v : v.toNumber()
|
|
115
|
+
),
|
|
116
|
+
).optional(),
|
|
117
|
+
modifiedDate: z.string().optional(),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
+
*/
|
|
124
|
+
export namespace SourceAccountPrototype$ {
|
|
125
|
+
/** @deprecated use `SourceAccountPrototype$inboundSchema` instead. */
|
|
126
|
+
export const inboundSchema = SourceAccountPrototype$inboundSchema;
|
|
127
|
+
/** @deprecated use `SourceAccountPrototype$outboundSchema` instead. */
|
|
128
|
+
export const outboundSchema = SourceAccountPrototype$outboundSchema;
|
|
129
|
+
/** @deprecated use `SourceAccountPrototype$Outbound` instead. */
|
|
130
|
+
export type Outbound = SourceAccountPrototype$Outbound;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function sourceAccountPrototypeToJSON(
|
|
134
|
+
sourceAccountPrototype: SourceAccountPrototype,
|
|
135
|
+
): string {
|
|
136
|
+
return JSON.stringify(
|
|
137
|
+
SourceAccountPrototype$outboundSchema.parse(sourceAccountPrototype),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function sourceAccountPrototypeFromJSON(
|
|
142
|
+
jsonString: string,
|
|
143
|
+
): SafeParseResult<SourceAccountPrototype, SDKValidationError> {
|
|
144
|
+
return safeParse(
|
|
145
|
+
jsonString,
|
|
146
|
+
(x) => SourceAccountPrototype$inboundSchema.parse(JSON.parse(x)),
|
|
147
|
+
`Failed to parse 'SourceAccountPrototype' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
@@ -73,6 +73,10 @@ export type SourceAccountV2 = {
|
|
|
73
73
|
* The account number.
|
|
74
74
|
*/
|
|
75
75
|
accountNumber: string;
|
|
76
|
+
/**
|
|
77
|
+
* The sort code.
|
|
78
|
+
*/
|
|
79
|
+
sortCode?: string | null | undefined;
|
|
76
80
|
/**
|
|
77
81
|
* Routing information for the bank. This does not include account number.
|
|
78
82
|
*/
|
|
@@ -183,6 +187,7 @@ export const SourceAccountV2$inboundSchema: z.ZodType<
|
|
|
183
187
|
accountName: z.string(),
|
|
184
188
|
accountType: SourceAccountV2AccountType$inboundSchema,
|
|
185
189
|
accountNumber: z.string(),
|
|
190
|
+
sortCode: z.nullable(z.string()).optional(),
|
|
186
191
|
routingInfo: RoutingInfo$inboundSchema.optional(),
|
|
187
192
|
currency: z.string(),
|
|
188
193
|
balance: z.number().transform(v => new Decimal$(v)),
|
|
@@ -198,6 +203,7 @@ export type SourceAccountV2$Outbound = {
|
|
|
198
203
|
accountName: string;
|
|
199
204
|
accountType: string;
|
|
200
205
|
accountNumber: string;
|
|
206
|
+
sortCode?: string | null | undefined;
|
|
201
207
|
routingInfo?: RoutingInfo$Outbound | undefined;
|
|
202
208
|
currency: string;
|
|
203
209
|
balance: number;
|
|
@@ -217,6 +223,7 @@ export const SourceAccountV2$outboundSchema: z.ZodType<
|
|
|
217
223
|
accountName: z.string(),
|
|
218
224
|
accountType: SourceAccountV2AccountType$outboundSchema,
|
|
219
225
|
accountNumber: z.string(),
|
|
226
|
+
sortCode: z.nullable(z.string()).optional(),
|
|
220
227
|
routingInfo: RoutingInfo$outboundSchema.optional(),
|
|
221
228
|
currency: z.string(),
|
|
222
229
|
balance: z.union([z.instanceof(Decimal$), z.number()]).transform(v =>
|