@apideck/unify 0.23.1 → 0.23.3
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 +26 -0
- package/docs/sdks/activities/README.md +38 -78
- package/docs/sdks/apideckcompanies/README.md +76 -66
- package/docs/sdks/apideckdepartments/README.md +10 -132
- package/docs/sdks/applicants/README.md +138 -102
- package/docs/sdks/applications/README.md +32 -42
- package/docs/sdks/bankfeedaccounts/README.md +565 -0
- package/docs/sdks/bankfeedstatements/README.md +605 -0
- package/docs/sdks/billpayments/README.md +30 -174
- package/docs/sdks/bills/README.md +206 -218
- package/docs/sdks/collectionticketcomments/README.md +32 -100
- package/docs/sdks/collectiontickets/README.md +112 -12
- package/docs/sdks/companies/README.md +166 -286
- package/docs/sdks/connections/README.md +30 -196
- package/docs/sdks/connectionsettings/README.md +20 -194
- package/docs/sdks/contacts/README.md +210 -190
- package/docs/sdks/creditnotes/README.md +37 -525
- package/docs/sdks/customers/README.md +110 -328
- package/docs/sdks/departments/README.md +10 -84
- package/docs/sdks/drivegroups/README.md +0 -16
- package/docs/sdks/drives/README.md +10 -132
- package/docs/sdks/employees/README.md +266 -296
- package/docs/sdks/expenses/README.md +42 -136
- package/docs/sdks/files/README.md +0 -116
- package/docs/sdks/folders/README.md +0 -264
- package/docs/sdks/invoiceitems/README.md +4 -112
- package/docs/sdks/invoices/README.md +210 -316
- package/docs/sdks/journalentries/README.md +272 -476
- package/docs/sdks/leads/README.md +216 -64
- package/docs/sdks/ledgeraccounts/README.md +58 -78
- package/docs/sdks/locations/README.md +6 -120
- package/docs/sdks/messages/README.md +0 -90
- package/docs/sdks/notes/README.md +46 -16
- package/docs/sdks/opportunities/README.md +38 -42
- package/docs/sdks/payments/README.md +24 -200
- package/docs/sdks/pipelines/README.md +16 -28
- package/docs/sdks/purchaseorders/README.md +212 -294
- package/docs/sdks/sharedlinks/README.md +10 -74
- package/docs/sdks/subsidiaries/README.md +10 -116
- package/docs/sdks/suppliers/README.md +24 -322
- package/docs/sdks/taxrates/README.md +32 -26
- package/docs/sdks/timeoffrequests/README.md +0 -142
- package/docs/sdks/trackingcategories/README.md +32 -100
- package/docs/sdks/uploadsessions/README.md +90 -0
- package/docs/sdks/users/README.md +124 -136
- package/funcs/accountingBankFeedAccountsCreate.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsCreate.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsCreate.js +123 -0
- package/funcs/accountingBankFeedAccountsCreate.js.map +1 -0
- package/funcs/accountingBankFeedAccountsDelete.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsDelete.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsDelete.js +128 -0
- package/funcs/accountingBankFeedAccountsDelete.js.map +1 -0
- package/funcs/accountingBankFeedAccountsGet.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsGet.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsGet.js +129 -0
- package/funcs/accountingBankFeedAccountsGet.js.map +1 -0
- package/funcs/accountingBankFeedAccountsList.d.ts +20 -0
- package/funcs/accountingBankFeedAccountsList.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsList.js +149 -0
- package/funcs/accountingBankFeedAccountsList.js.map +1 -0
- package/funcs/accountingBankFeedAccountsUpdate.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsUpdate.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsUpdate.js +129 -0
- package/funcs/accountingBankFeedAccountsUpdate.js.map +1 -0
- package/funcs/accountingBankFeedStatementsCreate.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsCreate.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsCreate.js +123 -0
- package/funcs/accountingBankFeedStatementsCreate.js.map +1 -0
- package/funcs/accountingBankFeedStatementsDelete.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsDelete.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsDelete.js +128 -0
- package/funcs/accountingBankFeedStatementsDelete.js.map +1 -0
- package/funcs/accountingBankFeedStatementsGet.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsGet.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsGet.js +129 -0
- package/funcs/accountingBankFeedStatementsGet.js.map +1 -0
- package/funcs/accountingBankFeedStatementsList.d.ts +20 -0
- package/funcs/accountingBankFeedStatementsList.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsList.js +149 -0
- package/funcs/accountingBankFeedStatementsList.js.map +1 -0
- package/funcs/accountingBankFeedStatementsUpdate.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsUpdate.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsUpdate.js +129 -0
- package/funcs/accountingBankFeedStatementsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +6 -11
- package/lib/sdks.js.map +1 -1
- package/models/components/accountingdepartment.d.ts +6 -3
- package/models/components/accountingdepartment.d.ts.map +1 -1
- package/models/components/accountingdepartment.js +2 -3
- package/models/components/accountingdepartment.js.map +1 -1
- package/models/components/accountinglocation.d.ts +6 -3
- package/models/components/accountinglocation.d.ts.map +1 -1
- package/models/components/accountinglocation.js +2 -3
- package/models/components/accountinglocation.js.map +1 -1
- package/models/components/activity.d.ts +6 -3
- package/models/components/activity.d.ts.map +1 -1
- package/models/components/activity.js +2 -3
- package/models/components/activity.js.map +1 -1
- package/models/components/applicant.d.ts +6 -3
- package/models/components/applicant.d.ts.map +1 -1
- package/models/components/applicant.js +2 -3
- package/models/components/applicant.js.map +1 -1
- package/models/components/application.d.ts +6 -3
- package/models/components/application.d.ts.map +1 -1
- package/models/components/application.js +2 -3
- package/models/components/application.js.map +1 -1
- package/models/components/balancesheet.d.ts +6 -3
- package/models/components/balancesheet.d.ts.map +1 -1
- package/models/components/balancesheet.js +2 -3
- package/models/components/balancesheet.js.map +1 -1
- package/models/components/bankfeedaccount.d.ts +233 -0
- package/models/components/bankfeedaccount.d.ts.map +1 -0
- package/models/components/bankfeedaccount.js +228 -0
- package/models/components/bankfeedaccount.js.map +1 -0
- package/models/components/bankfeedstatement.d.ts +307 -0
- package/models/components/bankfeedstatement.d.ts.map +1 -0
- package/models/components/bankfeedstatement.js +286 -0
- package/models/components/bankfeedstatement.js.map +1 -0
- package/models/components/bill.d.ts +6 -3
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +2 -3
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +6 -3
- package/models/components/billpayment.d.ts.map +1 -1
- package/models/components/billpayment.js +2 -3
- package/models/components/billpayment.js.map +1 -1
- package/models/components/collection.d.ts +6 -3
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +2 -3
- package/models/components/collection.js.map +1 -1
- package/models/components/collectiontag.d.ts +6 -3
- package/models/components/collectiontag.d.ts.map +1 -1
- package/models/components/collectiontag.js +2 -3
- package/models/components/collectiontag.js.map +1 -1
- package/models/components/collectionticketcomment.d.ts +6 -3
- package/models/components/collectionticketcomment.d.ts.map +1 -1
- package/models/components/collectionticketcomment.js +2 -3
- package/models/components/collectionticketcomment.js.map +1 -1
- package/models/components/collectionuser.d.ts +6 -3
- package/models/components/collectionuser.d.ts.map +1 -1
- package/models/components/collectionuser.js +2 -3
- package/models/components/collectionuser.js.map +1 -1
- package/models/components/company.d.ts +6 -3
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +2 -3
- package/models/components/company.js.map +1 -1
- package/models/components/companyinfo.d.ts +6 -3
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +2 -3
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/contact.d.ts +10 -7
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +6 -7
- package/models/components/contact.js.map +1 -1
- package/models/components/createbankfeedaccountresponse.d.ts +70 -0
- package/models/components/createbankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/createbankfeedaccountresponse.js +83 -0
- package/models/components/createbankfeedaccountresponse.js.map +1 -0
- package/models/components/createbankfeedstatementresponse.d.ts +70 -0
- package/models/components/createbankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/createbankfeedstatementresponse.js +83 -0
- package/models/components/createbankfeedstatementresponse.js.map +1 -0
- package/models/components/creditnote.d.ts +6 -3
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +2 -3
- package/models/components/creditnote.js.map +1 -1
- package/models/components/creditordebit.d.ts +34 -0
- package/models/components/creditordebit.d.ts.map +1 -0
- package/models/components/{custommappings.js → creditordebit.js} +18 -20
- package/models/components/creditordebit.js.map +1 -0
- package/models/components/customer.d.ts +6 -3
- package/models/components/customer.d.ts.map +1 -1
- package/models/components/customer.js +2 -3
- package/models/components/customer.js.map +1 -1
- package/models/components/deletebankfeedaccountresponse.d.ts +70 -0
- package/models/components/deletebankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/deletebankfeedaccountresponse.js +83 -0
- package/models/components/deletebankfeedaccountresponse.js.map +1 -0
- package/models/components/deletebankfeedstatementresponse.d.ts +70 -0
- package/models/components/deletebankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/deletebankfeedstatementresponse.js +83 -0
- package/models/components/deletebankfeedstatementresponse.js.map +1 -0
- package/models/components/department.d.ts +6 -3
- package/models/components/department.d.ts.map +1 -1
- package/models/components/department.js +2 -3
- package/models/components/department.js.map +1 -1
- package/models/components/drive.d.ts +6 -3
- package/models/components/drive.d.ts.map +1 -1
- package/models/components/drive.js +2 -3
- package/models/components/drive.js.map +1 -1
- package/models/components/drivegroup.d.ts +6 -3
- package/models/components/drivegroup.d.ts.map +1 -1
- package/models/components/drivegroup.js +2 -3
- package/models/components/drivegroup.js.map +1 -1
- package/models/components/ecommercecustomer.d.ts +6 -3
- package/models/components/ecommercecustomer.d.ts.map +1 -1
- package/models/components/ecommercecustomer.js +2 -3
- package/models/components/ecommercecustomer.js.map +1 -1
- package/models/components/ecommerceorder.d.ts +6 -3
- package/models/components/ecommerceorder.d.ts.map +1 -1
- package/models/components/ecommerceorder.js +2 -3
- package/models/components/ecommerceorder.js.map +1 -1
- package/models/components/ecommerceorderlineitem.d.ts +2 -2
- package/models/components/ecommerceorderlineitem.d.ts.map +1 -1
- package/models/components/ecommerceorderlineitem.js +2 -2
- package/models/components/ecommerceorderlineitem.js.map +1 -1
- package/models/components/ecommerceproduct.d.ts +6 -3
- package/models/components/ecommerceproduct.d.ts.map +1 -1
- package/models/components/ecommerceproduct.js +2 -3
- package/models/components/ecommerceproduct.js.map +1 -1
- package/models/components/ecommercestore.d.ts +6 -3
- package/models/components/ecommercestore.d.ts.map +1 -1
- package/models/components/ecommercestore.js +2 -3
- package/models/components/ecommercestore.js.map +1 -1
- package/models/components/employee.d.ts +6 -3
- package/models/components/employee.d.ts.map +1 -1
- package/models/components/employee.js +2 -3
- package/models/components/employee.js.map +1 -1
- package/models/components/expense.d.ts +16 -3
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +10 -3
- package/models/components/expense.js.map +1 -1
- package/models/components/expenselineitem.d.ts +5 -0
- package/models/components/expenselineitem.d.ts.map +1 -1
- package/models/components/expenselineitem.js +4 -0
- package/models/components/expenselineitem.js.map +1 -1
- package/models/components/expenselineiteminput.d.ts +5 -0
- package/models/components/expenselineiteminput.d.ts.map +1 -1
- package/models/components/expenselineiteminput.js +4 -0
- package/models/components/expenselineiteminput.js.map +1 -1
- package/models/components/folder.d.ts +6 -3
- package/models/components/folder.d.ts.map +1 -1
- package/models/components/folder.js +2 -3
- package/models/components/folder.js.map +1 -1
- package/models/components/getbankfeedaccountresponse.d.ts +67 -0
- package/models/components/getbankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/getbankfeedaccountresponse.js +83 -0
- package/models/components/getbankfeedaccountresponse.js.map +1 -0
- package/models/components/getbankfeedaccountsresponse.d.ts +79 -0
- package/models/components/getbankfeedaccountsresponse.d.ts.map +1 -0
- package/models/components/getbankfeedaccountsresponse.js +89 -0
- package/models/components/getbankfeedaccountsresponse.js.map +1 -0
- package/models/components/getbankfeedstatementresponse.d.ts +67 -0
- package/models/components/getbankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/getbankfeedstatementresponse.js +83 -0
- package/models/components/getbankfeedstatementresponse.js.map +1 -0
- package/models/components/getbankfeedstatementsresponse.d.ts +79 -0
- package/models/components/getbankfeedstatementsresponse.d.ts.map +1 -0
- package/models/components/getbankfeedstatementsresponse.js +89 -0
- package/models/components/getbankfeedstatementsresponse.js.map +1 -0
- package/models/components/hriscompany.d.ts +6 -3
- package/models/components/hriscompany.d.ts.map +1 -1
- package/models/components/hriscompany.js +2 -3
- package/models/components/hriscompany.js.map +1 -1
- package/models/components/index.d.ts +13 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +6 -3
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -3
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoiceitem.d.ts +6 -3
- package/models/components/invoiceitem.d.ts.map +1 -1
- package/models/components/invoiceitem.js +2 -3
- package/models/components/invoiceitem.js.map +1 -1
- package/models/components/job.d.ts +6 -3
- package/models/components/job.d.ts.map +1 -1
- package/models/components/job.js +2 -3
- package/models/components/job.js.map +1 -1
- package/models/components/journalentry.d.ts +6 -3
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +2 -3
- package/models/components/journalentry.js.map +1 -1
- package/models/components/lead.d.ts +10 -7
- package/models/components/lead.d.ts.map +1 -1
- package/models/components/lead.js +6 -7
- package/models/components/lead.js.map +1 -1
- package/models/components/leadinput.d.ts +4 -4
- package/models/components/leadinput.d.ts.map +1 -1
- package/models/components/leadinput.js +4 -4
- package/models/components/leadinput.js.map +1 -1
- package/models/components/ledgeraccount.d.ts +6 -3
- package/models/components/ledgeraccount.d.ts.map +1 -1
- package/models/components/ledgeraccount.js +2 -3
- package/models/components/ledgeraccount.js.map +1 -1
- package/models/components/message.d.ts +6 -3
- package/models/components/message.d.ts.map +1 -1
- package/models/components/message.js +2 -3
- package/models/components/message.js.map +1 -1
- package/models/components/note.d.ts +6 -3
- package/models/components/note.d.ts.map +1 -1
- package/models/components/note.js +2 -3
- package/models/components/note.js.map +1 -1
- package/models/components/opportunity.d.ts +6 -3
- package/models/components/opportunity.d.ts.map +1 -1
- package/models/components/opportunity.js +2 -3
- package/models/components/opportunity.js.map +1 -1
- package/models/components/payment.d.ts +6 -3
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +2 -3
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentsfilter.d.ts +2 -0
- package/models/components/paymentsfilter.d.ts.map +1 -1
- package/models/components/paymentsfilter.js +4 -0
- package/models/components/paymentsfilter.js.map +1 -1
- package/models/components/payroll.d.ts +6 -3
- package/models/components/payroll.d.ts.map +1 -1
- package/models/components/payroll.js +2 -3
- package/models/components/payroll.js.map +1 -1
- package/models/components/person.d.ts +6 -3
- package/models/components/person.d.ts.map +1 -1
- package/models/components/person.js +2 -3
- package/models/components/person.js.map +1 -1
- package/models/components/profitandloss.d.ts +10 -7
- package/models/components/profitandloss.d.ts.map +1 -1
- package/models/components/profitandloss.js +6 -7
- package/models/components/profitandloss.js.map +1 -1
- package/models/components/purchaseorder.d.ts +16 -3
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +10 -3
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/subsidiary.d.ts +6 -3
- package/models/components/subsidiary.d.ts.map +1 -1
- package/models/components/subsidiary.js +2 -3
- package/models/components/subsidiary.js.map +1 -1
- package/models/components/supplier.d.ts +6 -3
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +2 -3
- package/models/components/supplier.js.map +1 -1
- package/models/components/taxrate.d.ts +6 -3
- package/models/components/taxrate.d.ts.map +1 -1
- package/models/components/taxrate.js +2 -3
- package/models/components/taxrate.js.map +1 -1
- package/models/components/ticket.d.ts +6 -3
- package/models/components/ticket.d.ts.map +1 -1
- package/models/components/ticket.js +2 -3
- package/models/components/ticket.js.map +1 -1
- package/models/components/timeoffrequest.d.ts +6 -3
- package/models/components/timeoffrequest.d.ts.map +1 -1
- package/models/components/timeoffrequest.js +2 -3
- package/models/components/timeoffrequest.js.map +1 -1
- package/models/components/trackingcategory.d.ts +6 -3
- package/models/components/trackingcategory.d.ts.map +1 -1
- package/models/components/trackingcategory.js +2 -3
- package/models/components/trackingcategory.js.map +1 -1
- package/models/components/unifiedfile.d.ts +6 -3
- package/models/components/unifiedfile.d.ts.map +1 -1
- package/models/components/unifiedfile.js +2 -3
- package/models/components/unifiedfile.js.map +1 -1
- package/models/components/updatebankfeedaccountresponse.d.ts +70 -0
- package/models/components/updatebankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/updatebankfeedaccountresponse.js +83 -0
- package/models/components/updatebankfeedaccountresponse.js.map +1 -0
- package/models/components/updatebankfeedstatementresponse.d.ts +70 -0
- package/models/components/updatebankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/updatebankfeedstatementresponse.js +83 -0
- package/models/components/updatebankfeedstatementresponse.js.map +1 -0
- package/models/components/user.d.ts +6 -3
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +2 -3
- package/models/components/user.js.map +1 -1
- package/models/operations/accountingbankfeedaccountsadd.d.ts +118 -0
- package/models/operations/accountingbankfeedaccountsadd.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsadd.js +153 -0
- package/models/operations/accountingbankfeedaccountsadd.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsall.d.ts +140 -0
- package/models/operations/accountingbankfeedaccountsall.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsall.js +159 -0
- package/models/operations/accountingbankfeedaccountsall.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsdelete.d.ts +121 -0
- package/models/operations/accountingbankfeedaccountsdelete.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsdelete.js +145 -0
- package/models/operations/accountingbankfeedaccountsdelete.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsone.d.ts +126 -0
- package/models/operations/accountingbankfeedaccountsone.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsone.js +147 -0
- package/models/operations/accountingbankfeedaccountsone.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsupdate.d.ts +123 -0
- package/models/operations/accountingbankfeedaccountsupdate.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsupdate.js +155 -0
- package/models/operations/accountingbankfeedaccountsupdate.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsadd.d.ts +118 -0
- package/models/operations/accountingbankfeedstatementsadd.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsadd.js +153 -0
- package/models/operations/accountingbankfeedstatementsadd.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsall.d.ts +140 -0
- package/models/operations/accountingbankfeedstatementsall.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsall.js +159 -0
- package/models/operations/accountingbankfeedstatementsall.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsdelete.d.ts +121 -0
- package/models/operations/accountingbankfeedstatementsdelete.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsdelete.js +145 -0
- package/models/operations/accountingbankfeedstatementsdelete.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsone.d.ts +126 -0
- package/models/operations/accountingbankfeedstatementsone.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsone.js +147 -0
- package/models/operations/accountingbankfeedstatementsone.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsupdate.d.ts +123 -0
- package/models/operations/accountingbankfeedstatementsupdate.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsupdate.js +155 -0
- package/models/operations/accountingbankfeedstatementsupdate.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +10 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +2 -2
- package/sdk/accounting.d.ts +6 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +8 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/bankfeedaccounts.d.ts +43 -0
- package/sdk/bankfeedaccounts.d.ts.map +1 -0
- package/sdk/bankfeedaccounts.js +63 -0
- package/sdk/bankfeedaccounts.js.map +1 -0
- package/sdk/bankfeedstatements.d.ts +43 -0
- package/sdk/bankfeedstatements.d.ts.map +1 -0
- package/sdk/bankfeedstatements.js +63 -0
- package/sdk/bankfeedstatements.js.map +1 -0
- package/src/__tests__/bankfeedaccounts.test.ts +333 -0
- package/src/__tests__/bankfeedstatements.test.ts +398 -0
- package/src/funcs/accountingBankFeedAccountsCreate.ts +221 -0
- package/src/funcs/accountingBankFeedAccountsDelete.ts +227 -0
- package/src/funcs/accountingBankFeedAccountsGet.ts +228 -0
- package/src/funcs/accountingBankFeedAccountsList.ts +295 -0
- package/src/funcs/accountingBankFeedAccountsUpdate.ts +228 -0
- package/src/funcs/accountingBankFeedStatementsCreate.ts +221 -0
- package/src/funcs/accountingBankFeedStatementsDelete.ts +227 -0
- package/src/funcs/accountingBankFeedStatementsGet.ts +228 -0
- package/src/funcs/accountingBankFeedStatementsList.ts +295 -0
- package/src/funcs/accountingBankFeedStatementsUpdate.ts +228 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +11 -11
- package/src/models/components/accountingdepartment.ts +4 -10
- package/src/models/components/accountinglocation.ts +4 -10
- package/src/models/components/activity.ts +4 -10
- package/src/models/components/applicant.ts +4 -10
- package/src/models/components/application.ts +4 -10
- package/src/models/components/balancesheet.ts +4 -10
- package/src/models/components/bankfeedaccount.ts +407 -0
- package/src/models/components/bankfeedstatement.ts +535 -0
- package/src/models/components/bill.ts +4 -10
- package/src/models/components/billpayment.ts +4 -10
- package/src/models/components/collection.ts +4 -10
- package/src/models/components/collectiontag.ts +4 -10
- package/src/models/components/collectionticketcomment.ts +4 -10
- package/src/models/components/collectionuser.ts +4 -10
- package/src/models/components/company.ts +4 -10
- package/src/models/components/companyinfo.ts +4 -10
- package/src/models/components/contact.ts +12 -18
- package/src/models/components/createbankfeedaccountresponse.ts +133 -0
- package/src/models/components/createbankfeedstatementresponse.ts +133 -0
- package/src/models/components/creditnote.ts +4 -10
- package/src/models/components/creditordebit.ts +39 -0
- package/src/models/components/customer.ts +4 -10
- package/src/models/components/deletebankfeedaccountresponse.ts +133 -0
- package/src/models/components/deletebankfeedstatementresponse.ts +133 -0
- package/src/models/components/department.ts +4 -10
- package/src/models/components/drive.ts +4 -10
- package/src/models/components/drivegroup.ts +4 -10
- package/src/models/components/ecommercecustomer.ts +4 -10
- package/src/models/components/ecommerceorder.ts +4 -10
- package/src/models/components/ecommerceorderlineitem.ts +4 -4
- package/src/models/components/ecommerceproduct.ts +4 -10
- package/src/models/components/ecommercestore.ts +4 -10
- package/src/models/components/employee.ts +4 -10
- package/src/models/components/expense.ts +22 -10
- package/src/models/components/expenselineitem.ts +9 -0
- package/src/models/components/expenselineiteminput.ts +9 -0
- package/src/models/components/folder.ts +4 -10
- package/src/models/components/getbankfeedaccountresponse.ts +128 -0
- package/src/models/components/getbankfeedaccountsresponse.ts +156 -0
- package/src/models/components/getbankfeedstatementresponse.ts +130 -0
- package/src/models/components/getbankfeedstatementsresponse.ts +156 -0
- package/src/models/components/hriscompany.ts +4 -10
- package/src/models/components/index.ts +13 -1
- package/src/models/components/invoice.ts +4 -10
- package/src/models/components/invoiceitem.ts +4 -10
- package/src/models/components/job.ts +4 -10
- package/src/models/components/journalentry.ts +4 -10
- package/src/models/components/lead.ts +12 -18
- package/src/models/components/leadinput.ts +8 -8
- package/src/models/components/ledgeraccount.ts +4 -10
- package/src/models/components/message.ts +4 -10
- package/src/models/components/note.ts +4 -10
- package/src/models/components/opportunity.ts +4 -10
- package/src/models/components/payment.ts +4 -10
- package/src/models/components/paymentsfilter.ts +6 -0
- package/src/models/components/payroll.ts +4 -10
- package/src/models/components/person.ts +4 -10
- package/src/models/components/profitandloss.ts +12 -18
- package/src/models/components/purchaseorder.ts +22 -10
- package/src/models/components/subsidiary.ts +4 -10
- package/src/models/components/supplier.ts +4 -10
- package/src/models/components/taxrate.ts +4 -10
- package/src/models/components/ticket.ts +4 -10
- package/src/models/components/timeoffrequest.ts +4 -10
- package/src/models/components/trackingcategory.ts +4 -10
- package/src/models/components/unifiedfile.ts +4 -10
- package/src/models/components/updatebankfeedaccountresponse.ts +133 -0
- package/src/models/components/updatebankfeedstatementresponse.ts +133 -0
- package/src/models/components/user.ts +4 -10
- package/src/models/operations/accountingbankfeedaccountsadd.ts +281 -0
- package/src/models/operations/accountingbankfeedaccountsall.ts +305 -0
- package/src/models/operations/accountingbankfeedaccountsdelete.ts +294 -0
- package/src/models/operations/accountingbankfeedaccountsone.ts +283 -0
- package/src/models/operations/accountingbankfeedaccountsupdate.ts +306 -0
- package/src/models/operations/accountingbankfeedstatementsadd.ts +289 -0
- package/src/models/operations/accountingbankfeedstatementsall.ts +313 -0
- package/src/models/operations/accountingbankfeedstatementsdelete.ts +295 -0
- package/src/models/operations/accountingbankfeedstatementsone.ts +291 -0
- package/src/models/operations/accountingbankfeedstatementsupdate.ts +307 -0
- package/src/models/operations/index.ts +10 -0
- package/src/sdk/accounting.ts +12 -0
- package/src/sdk/bankfeedaccounts.ts +105 -0
- package/src/sdk/bankfeedstatements.ts +105 -0
- package/models/components/custommappings.d.ts +0 -28
- package/models/components/custommappings.d.ts.map +0 -1
- package/models/components/custommappings.js.map +0 -1
- package/src/models/components/custommappings.ts +0 -57
|
@@ -30,12 +30,6 @@ import {
|
|
|
30
30
|
CustomField$Outbound,
|
|
31
31
|
CustomField$outboundSchema,
|
|
32
32
|
} from "./customfield.js";
|
|
33
|
-
import {
|
|
34
|
-
CustomMappings,
|
|
35
|
-
CustomMappings$inboundSchema,
|
|
36
|
-
CustomMappings$Outbound,
|
|
37
|
-
CustomMappings$outboundSchema,
|
|
38
|
-
} from "./custommappings.js";
|
|
39
33
|
import {
|
|
40
34
|
PassThroughBody,
|
|
41
35
|
PassThroughBody$inboundSchema,
|
|
@@ -247,7 +241,7 @@ export type Activity = {
|
|
|
247
241
|
/**
|
|
248
242
|
* When custom mappings are configured on the resource, the result is included here.
|
|
249
243
|
*/
|
|
250
|
-
customMappings?:
|
|
244
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
251
245
|
/**
|
|
252
246
|
* The user who last updated the activity
|
|
253
247
|
*/
|
|
@@ -530,7 +524,7 @@ export const Activity$inboundSchema: z.ZodType<
|
|
|
530
524
|
video_conference_id: z.nullable(z.string()).optional(),
|
|
531
525
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
532
526
|
attendees: z.array(ActivityAttendee$inboundSchema).optional(),
|
|
533
|
-
custom_mappings: z.nullable(
|
|
527
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
534
528
|
updated_by: z.nullable(z.string()).optional(),
|
|
535
529
|
created_by: z.nullable(z.string()).optional(),
|
|
536
530
|
updated_at: z.nullable(z.string()).optional(),
|
|
@@ -628,7 +622,7 @@ export type Activity$Outbound = {
|
|
|
628
622
|
video_conference_id?: string | null | undefined;
|
|
629
623
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
630
624
|
attendees?: Array<ActivityAttendee$Outbound> | undefined;
|
|
631
|
-
custom_mappings?:
|
|
625
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
632
626
|
updated_by?: string | null | undefined;
|
|
633
627
|
created_by?: string | null | undefined;
|
|
634
628
|
updated_at?: string | null | undefined;
|
|
@@ -688,7 +682,7 @@ export const Activity$outboundSchema: z.ZodType<
|
|
|
688
682
|
videoConferenceId: z.nullable(z.string()).optional(),
|
|
689
683
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
690
684
|
attendees: z.array(ActivityAttendee$outboundSchema).optional(),
|
|
691
|
-
customMappings: z.nullable(
|
|
685
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
692
686
|
updatedBy: z.nullable(z.string()).optional(),
|
|
693
687
|
createdBy: z.nullable(z.string()).optional(),
|
|
694
688
|
updatedAt: z.nullable(z.string()).optional(),
|
|
@@ -21,12 +21,6 @@ import {
|
|
|
21
21
|
CustomField$Outbound,
|
|
22
22
|
CustomField$outboundSchema,
|
|
23
23
|
} from "./customfield.js";
|
|
24
|
-
import {
|
|
25
|
-
CustomMappings,
|
|
26
|
-
CustomMappings$inboundSchema,
|
|
27
|
-
CustomMappings$Outbound,
|
|
28
|
-
CustomMappings$outboundSchema,
|
|
29
|
-
} from "./custommappings.js";
|
|
30
24
|
import {
|
|
31
25
|
Email,
|
|
32
26
|
Email$inboundSchema,
|
|
@@ -161,7 +155,7 @@ export type Applicant = {
|
|
|
161
155
|
/**
|
|
162
156
|
* When custom mappings are configured on the resource, the result is included here.
|
|
163
157
|
*/
|
|
164
|
-
customMappings?:
|
|
158
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
165
159
|
/**
|
|
166
160
|
* Flag to indicate if the object is deleted.
|
|
167
161
|
*/
|
|
@@ -442,7 +436,7 @@ export const Applicant$inboundSchema: z.ZodType<
|
|
|
442
436
|
rejected_at: z.nullable(
|
|
443
437
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
444
438
|
).optional(),
|
|
445
|
-
custom_mappings: z.nullable(
|
|
439
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
446
440
|
deleted: z.nullable(z.boolean()).optional(),
|
|
447
441
|
deleted_by: z.nullable(z.string()).optional(),
|
|
448
442
|
deleted_at: z.nullable(
|
|
@@ -528,7 +522,7 @@ export type Applicant$Outbound = {
|
|
|
528
522
|
cv_url?: string | undefined;
|
|
529
523
|
record_url?: string | null | undefined;
|
|
530
524
|
rejected_at?: string | null | undefined;
|
|
531
|
-
custom_mappings?:
|
|
525
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
532
526
|
deleted?: boolean | null | undefined;
|
|
533
527
|
deleted_by?: string | null | undefined;
|
|
534
528
|
deleted_at?: string | null | undefined;
|
|
@@ -583,7 +577,7 @@ export const Applicant$outboundSchema: z.ZodType<
|
|
|
583
577
|
cvUrl: z.string().optional(),
|
|
584
578
|
recordUrl: z.nullable(z.string()).optional(),
|
|
585
579
|
rejectedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
586
|
-
customMappings: z.nullable(
|
|
580
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
587
581
|
deleted: z.nullable(z.boolean()).optional(),
|
|
588
582
|
deletedBy: z.nullable(z.string()).optional(),
|
|
589
583
|
deletedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
PassThroughBody,
|
|
19
13
|
PassThroughBody$inboundSchema,
|
|
@@ -50,7 +44,7 @@ export type Application = {
|
|
|
50
44
|
/**
|
|
51
45
|
* When custom mappings are configured on the resource, the result is included here.
|
|
52
46
|
*/
|
|
53
|
-
customMappings?:
|
|
47
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
54
48
|
/**
|
|
55
49
|
* The user who last updated the object.
|
|
56
50
|
*/
|
|
@@ -166,7 +160,7 @@ export const Application$inboundSchema: z.ZodType<
|
|
|
166
160
|
job_id: z.nullable(z.string()),
|
|
167
161
|
status: z.nullable(ApplicationStatus$inboundSchema).optional(),
|
|
168
162
|
stage: z.lazy(() => Stage$inboundSchema).optional(),
|
|
169
|
-
custom_mappings: z.nullable(
|
|
163
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
170
164
|
updated_by: z.nullable(z.string()).optional(),
|
|
171
165
|
created_by: z.nullable(z.string()).optional(),
|
|
172
166
|
updated_at: z.nullable(
|
|
@@ -196,7 +190,7 @@ export type Application$Outbound = {
|
|
|
196
190
|
job_id: string | null;
|
|
197
191
|
status?: string | null | undefined;
|
|
198
192
|
stage?: Stage$Outbound | undefined;
|
|
199
|
-
custom_mappings?:
|
|
193
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
200
194
|
updated_by?: string | null | undefined;
|
|
201
195
|
created_by?: string | null | undefined;
|
|
202
196
|
updated_at?: string | null | undefined;
|
|
@@ -215,7 +209,7 @@ export const Application$outboundSchema: z.ZodType<
|
|
|
215
209
|
jobId: z.nullable(z.string()),
|
|
216
210
|
status: z.nullable(ApplicationStatus$outboundSchema).optional(),
|
|
217
211
|
stage: z.lazy(() => Stage$outboundSchema).optional(),
|
|
218
|
-
customMappings: z.nullable(
|
|
212
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
219
213
|
updatedBy: z.nullable(z.string()).optional(),
|
|
220
214
|
createdBy: z.nullable(z.string()).optional(),
|
|
221
215
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -12,12 +12,6 @@ import {
|
|
|
12
12
|
Currency$inboundSchema,
|
|
13
13
|
Currency$outboundSchema,
|
|
14
14
|
} from "./currency.js";
|
|
15
|
-
import {
|
|
16
|
-
CustomMappings,
|
|
17
|
-
CustomMappings$inboundSchema,
|
|
18
|
-
CustomMappings$Outbound,
|
|
19
|
-
CustomMappings$outboundSchema,
|
|
20
|
-
} from "./custommappings.js";
|
|
21
15
|
|
|
22
16
|
/**
|
|
23
17
|
* A balance sheet assets account represents the financial position of a company at a specific point in time.
|
|
@@ -163,7 +157,7 @@ export type Reports = {
|
|
|
163
157
|
/**
|
|
164
158
|
* When custom mappings are configured on the resource, the result is included here.
|
|
165
159
|
*/
|
|
166
|
-
customMappings?:
|
|
160
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
167
161
|
/**
|
|
168
162
|
* The user who last updated the object.
|
|
169
163
|
*/
|
|
@@ -505,7 +499,7 @@ export const Reports$inboundSchema: z.ZodType<Reports, z.ZodTypeDef, unknown> =
|
|
|
505
499
|
liabilities: z.lazy(() => BalanceSheetLiabilitiesAccount$inboundSchema),
|
|
506
500
|
equity: z.lazy(() => BalanceSheetEquityAccount$inboundSchema),
|
|
507
501
|
net_assets: z.number().optional(),
|
|
508
|
-
custom_mappings: z.nullable(
|
|
502
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
509
503
|
updated_by: z.nullable(z.string()).optional(),
|
|
510
504
|
created_by: z.nullable(z.string()).optional(),
|
|
511
505
|
updated_at: z.nullable(
|
|
@@ -543,7 +537,7 @@ export type Reports$Outbound = {
|
|
|
543
537
|
liabilities: BalanceSheetLiabilitiesAccount$Outbound;
|
|
544
538
|
equity: BalanceSheetEquityAccount$Outbound;
|
|
545
539
|
net_assets?: number | undefined;
|
|
546
|
-
custom_mappings?:
|
|
540
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
547
541
|
updated_by?: string | null | undefined;
|
|
548
542
|
created_by?: string | null | undefined;
|
|
549
543
|
updated_at?: string | null | undefined;
|
|
@@ -568,7 +562,7 @@ export const Reports$outboundSchema: z.ZodType<
|
|
|
568
562
|
liabilities: z.lazy(() => BalanceSheetLiabilitiesAccount$outboundSchema),
|
|
569
563
|
equity: z.lazy(() => BalanceSheetEquityAccount$outboundSchema),
|
|
570
564
|
netAssets: z.number().optional(),
|
|
571
|
-
customMappings: z.nullable(
|
|
565
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
572
566
|
updatedBy: z.nullable(z.string()).optional(),
|
|
573
567
|
createdBy: z.nullable(z.string()).optional(),
|
|
574
568
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Currency,
|
|
13
|
+
Currency$inboundSchema,
|
|
14
|
+
Currency$outboundSchema,
|
|
15
|
+
} from "./currency.js";
|
|
16
|
+
import {
|
|
17
|
+
CustomField,
|
|
18
|
+
CustomField$inboundSchema,
|
|
19
|
+
CustomField$Outbound,
|
|
20
|
+
CustomField$outboundSchema,
|
|
21
|
+
} from "./customfield.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Type of the bank account.
|
|
25
|
+
*/
|
|
26
|
+
export const BankAccountType = {
|
|
27
|
+
Bank: "bank",
|
|
28
|
+
CreditCard: "credit_card",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Type of the bank account.
|
|
32
|
+
*/
|
|
33
|
+
export type BankAccountType = ClosedEnum<typeof BankAccountType>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Current status of the bank feed.
|
|
37
|
+
*/
|
|
38
|
+
export const FeedStatus = {
|
|
39
|
+
Pending: "pending",
|
|
40
|
+
Rejected: "rejected",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* Current status of the bank feed.
|
|
44
|
+
*/
|
|
45
|
+
export type FeedStatus = ClosedEnum<typeof FeedStatus>;
|
|
46
|
+
|
|
47
|
+
export type BankFeedAccount = {
|
|
48
|
+
/**
|
|
49
|
+
* A unique identifier for an object.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Type of the bank account.
|
|
54
|
+
*/
|
|
55
|
+
bankAccountType?: BankAccountType | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The source account's unique identifier.
|
|
58
|
+
*/
|
|
59
|
+
sourceAccountId?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The target account's unique identifier in the accounting connector.
|
|
62
|
+
*/
|
|
63
|
+
targetAccountId?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Name associated with the target account.
|
|
66
|
+
*/
|
|
67
|
+
targetAccountName?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Account number of the destination bank account.
|
|
70
|
+
*/
|
|
71
|
+
targetAccountNumber?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
74
|
+
*/
|
|
75
|
+
currency?: Currency | null | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Current status of the bank feed.
|
|
78
|
+
*/
|
|
79
|
+
feedStatus?: FeedStatus | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
82
|
+
*/
|
|
83
|
+
country?: string | null | undefined;
|
|
84
|
+
customFields?: Array<CustomField> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
87
|
+
*/
|
|
88
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The date and time when the object was created.
|
|
91
|
+
*/
|
|
92
|
+
createdAt?: Date | null | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The date and time when the object was last updated.
|
|
95
|
+
*/
|
|
96
|
+
updatedAt?: Date | null | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The user who last updated the object.
|
|
99
|
+
*/
|
|
100
|
+
updatedBy?: string | null | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* The user who created the object.
|
|
103
|
+
*/
|
|
104
|
+
createdBy?: string | null | undefined;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type BankFeedAccountInput = {
|
|
108
|
+
/**
|
|
109
|
+
* Type of the bank account.
|
|
110
|
+
*/
|
|
111
|
+
bankAccountType?: BankAccountType | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The source account's unique identifier.
|
|
114
|
+
*/
|
|
115
|
+
sourceAccountId?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* The target account's unique identifier in the accounting connector.
|
|
118
|
+
*/
|
|
119
|
+
targetAccountId?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Name associated with the target account.
|
|
122
|
+
*/
|
|
123
|
+
targetAccountName?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Account number of the destination bank account.
|
|
126
|
+
*/
|
|
127
|
+
targetAccountNumber?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
130
|
+
*/
|
|
131
|
+
currency?: Currency | null | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Current status of the bank feed.
|
|
134
|
+
*/
|
|
135
|
+
feedStatus?: FeedStatus | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
138
|
+
*/
|
|
139
|
+
country?: string | null | undefined;
|
|
140
|
+
customFields?: Array<CustomField> | undefined;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const BankAccountType$inboundSchema: z.ZodNativeEnum<
|
|
145
|
+
typeof BankAccountType
|
|
146
|
+
> = z.nativeEnum(BankAccountType);
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const BankAccountType$outboundSchema: z.ZodNativeEnum<
|
|
150
|
+
typeof BankAccountType
|
|
151
|
+
> = BankAccountType$inboundSchema;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
+
*/
|
|
157
|
+
export namespace BankAccountType$ {
|
|
158
|
+
/** @deprecated use `BankAccountType$inboundSchema` instead. */
|
|
159
|
+
export const inboundSchema = BankAccountType$inboundSchema;
|
|
160
|
+
/** @deprecated use `BankAccountType$outboundSchema` instead. */
|
|
161
|
+
export const outboundSchema = BankAccountType$outboundSchema;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const FeedStatus$inboundSchema: z.ZodNativeEnum<typeof FeedStatus> = z
|
|
166
|
+
.nativeEnum(FeedStatus);
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const FeedStatus$outboundSchema: z.ZodNativeEnum<typeof FeedStatus> =
|
|
170
|
+
FeedStatus$inboundSchema;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
175
|
+
*/
|
|
176
|
+
export namespace FeedStatus$ {
|
|
177
|
+
/** @deprecated use `FeedStatus$inboundSchema` instead. */
|
|
178
|
+
export const inboundSchema = FeedStatus$inboundSchema;
|
|
179
|
+
/** @deprecated use `FeedStatus$outboundSchema` instead. */
|
|
180
|
+
export const outboundSchema = FeedStatus$outboundSchema;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const BankFeedAccount$inboundSchema: z.ZodType<
|
|
185
|
+
BankFeedAccount,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
unknown
|
|
188
|
+
> = z.object({
|
|
189
|
+
id: z.string(),
|
|
190
|
+
bank_account_type: BankAccountType$inboundSchema.optional(),
|
|
191
|
+
source_account_id: z.string().optional(),
|
|
192
|
+
target_account_id: z.string().optional(),
|
|
193
|
+
target_account_name: z.string().optional(),
|
|
194
|
+
target_account_number: z.string().optional(),
|
|
195
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
196
|
+
feed_status: FeedStatus$inboundSchema.optional(),
|
|
197
|
+
country: z.nullable(z.string()).optional(),
|
|
198
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
199
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
200
|
+
created_at: z.nullable(
|
|
201
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
202
|
+
).optional(),
|
|
203
|
+
updated_at: z.nullable(
|
|
204
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
205
|
+
).optional(),
|
|
206
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
207
|
+
created_by: z.nullable(z.string()).optional(),
|
|
208
|
+
}).transform((v) => {
|
|
209
|
+
return remap$(v, {
|
|
210
|
+
"bank_account_type": "bankAccountType",
|
|
211
|
+
"source_account_id": "sourceAccountId",
|
|
212
|
+
"target_account_id": "targetAccountId",
|
|
213
|
+
"target_account_name": "targetAccountName",
|
|
214
|
+
"target_account_number": "targetAccountNumber",
|
|
215
|
+
"feed_status": "feedStatus",
|
|
216
|
+
"custom_fields": "customFields",
|
|
217
|
+
"custom_mappings": "customMappings",
|
|
218
|
+
"created_at": "createdAt",
|
|
219
|
+
"updated_at": "updatedAt",
|
|
220
|
+
"updated_by": "updatedBy",
|
|
221
|
+
"created_by": "createdBy",
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export type BankFeedAccount$Outbound = {
|
|
227
|
+
id: string;
|
|
228
|
+
bank_account_type?: string | undefined;
|
|
229
|
+
source_account_id?: string | undefined;
|
|
230
|
+
target_account_id?: string | undefined;
|
|
231
|
+
target_account_name?: string | undefined;
|
|
232
|
+
target_account_number?: string | undefined;
|
|
233
|
+
currency?: string | null | undefined;
|
|
234
|
+
feed_status?: string | undefined;
|
|
235
|
+
country?: string | null | undefined;
|
|
236
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
237
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
238
|
+
created_at?: string | null | undefined;
|
|
239
|
+
updated_at?: string | null | undefined;
|
|
240
|
+
updated_by?: string | null | undefined;
|
|
241
|
+
created_by?: string | null | undefined;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const BankFeedAccount$outboundSchema: z.ZodType<
|
|
246
|
+
BankFeedAccount$Outbound,
|
|
247
|
+
z.ZodTypeDef,
|
|
248
|
+
BankFeedAccount
|
|
249
|
+
> = z.object({
|
|
250
|
+
id: z.string(),
|
|
251
|
+
bankAccountType: BankAccountType$outboundSchema.optional(),
|
|
252
|
+
sourceAccountId: z.string().optional(),
|
|
253
|
+
targetAccountId: z.string().optional(),
|
|
254
|
+
targetAccountName: z.string().optional(),
|
|
255
|
+
targetAccountNumber: z.string().optional(),
|
|
256
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
257
|
+
feedStatus: FeedStatus$outboundSchema.optional(),
|
|
258
|
+
country: z.nullable(z.string()).optional(),
|
|
259
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
260
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
261
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
262
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
263
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
264
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
265
|
+
}).transform((v) => {
|
|
266
|
+
return remap$(v, {
|
|
267
|
+
bankAccountType: "bank_account_type",
|
|
268
|
+
sourceAccountId: "source_account_id",
|
|
269
|
+
targetAccountId: "target_account_id",
|
|
270
|
+
targetAccountName: "target_account_name",
|
|
271
|
+
targetAccountNumber: "target_account_number",
|
|
272
|
+
feedStatus: "feed_status",
|
|
273
|
+
customFields: "custom_fields",
|
|
274
|
+
customMappings: "custom_mappings",
|
|
275
|
+
createdAt: "created_at",
|
|
276
|
+
updatedAt: "updated_at",
|
|
277
|
+
updatedBy: "updated_by",
|
|
278
|
+
createdBy: "created_by",
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
285
|
+
*/
|
|
286
|
+
export namespace BankFeedAccount$ {
|
|
287
|
+
/** @deprecated use `BankFeedAccount$inboundSchema` instead. */
|
|
288
|
+
export const inboundSchema = BankFeedAccount$inboundSchema;
|
|
289
|
+
/** @deprecated use `BankFeedAccount$outboundSchema` instead. */
|
|
290
|
+
export const outboundSchema = BankFeedAccount$outboundSchema;
|
|
291
|
+
/** @deprecated use `BankFeedAccount$Outbound` instead. */
|
|
292
|
+
export type Outbound = BankFeedAccount$Outbound;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export function bankFeedAccountToJSON(
|
|
296
|
+
bankFeedAccount: BankFeedAccount,
|
|
297
|
+
): string {
|
|
298
|
+
return JSON.stringify(BankFeedAccount$outboundSchema.parse(bankFeedAccount));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function bankFeedAccountFromJSON(
|
|
302
|
+
jsonString: string,
|
|
303
|
+
): SafeParseResult<BankFeedAccount, SDKValidationError> {
|
|
304
|
+
return safeParse(
|
|
305
|
+
jsonString,
|
|
306
|
+
(x) => BankFeedAccount$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
+
`Failed to parse 'BankFeedAccount' from JSON`,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/** @internal */
|
|
312
|
+
export const BankFeedAccountInput$inboundSchema: z.ZodType<
|
|
313
|
+
BankFeedAccountInput,
|
|
314
|
+
z.ZodTypeDef,
|
|
315
|
+
unknown
|
|
316
|
+
> = z.object({
|
|
317
|
+
bank_account_type: BankAccountType$inboundSchema.optional(),
|
|
318
|
+
source_account_id: z.string().optional(),
|
|
319
|
+
target_account_id: z.string().optional(),
|
|
320
|
+
target_account_name: z.string().optional(),
|
|
321
|
+
target_account_number: z.string().optional(),
|
|
322
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
323
|
+
feed_status: FeedStatus$inboundSchema.optional(),
|
|
324
|
+
country: z.nullable(z.string()).optional(),
|
|
325
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
326
|
+
}).transform((v) => {
|
|
327
|
+
return remap$(v, {
|
|
328
|
+
"bank_account_type": "bankAccountType",
|
|
329
|
+
"source_account_id": "sourceAccountId",
|
|
330
|
+
"target_account_id": "targetAccountId",
|
|
331
|
+
"target_account_name": "targetAccountName",
|
|
332
|
+
"target_account_number": "targetAccountNumber",
|
|
333
|
+
"feed_status": "feedStatus",
|
|
334
|
+
"custom_fields": "customFields",
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
/** @internal */
|
|
339
|
+
export type BankFeedAccountInput$Outbound = {
|
|
340
|
+
bank_account_type?: string | undefined;
|
|
341
|
+
source_account_id?: string | undefined;
|
|
342
|
+
target_account_id?: string | undefined;
|
|
343
|
+
target_account_name?: string | undefined;
|
|
344
|
+
target_account_number?: string | undefined;
|
|
345
|
+
currency?: string | null | undefined;
|
|
346
|
+
feed_status?: string | undefined;
|
|
347
|
+
country?: string | null | undefined;
|
|
348
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const BankFeedAccountInput$outboundSchema: z.ZodType<
|
|
353
|
+
BankFeedAccountInput$Outbound,
|
|
354
|
+
z.ZodTypeDef,
|
|
355
|
+
BankFeedAccountInput
|
|
356
|
+
> = z.object({
|
|
357
|
+
bankAccountType: BankAccountType$outboundSchema.optional(),
|
|
358
|
+
sourceAccountId: z.string().optional(),
|
|
359
|
+
targetAccountId: z.string().optional(),
|
|
360
|
+
targetAccountName: z.string().optional(),
|
|
361
|
+
targetAccountNumber: z.string().optional(),
|
|
362
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
363
|
+
feedStatus: FeedStatus$outboundSchema.optional(),
|
|
364
|
+
country: z.nullable(z.string()).optional(),
|
|
365
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
366
|
+
}).transform((v) => {
|
|
367
|
+
return remap$(v, {
|
|
368
|
+
bankAccountType: "bank_account_type",
|
|
369
|
+
sourceAccountId: "source_account_id",
|
|
370
|
+
targetAccountId: "target_account_id",
|
|
371
|
+
targetAccountName: "target_account_name",
|
|
372
|
+
targetAccountNumber: "target_account_number",
|
|
373
|
+
feedStatus: "feed_status",
|
|
374
|
+
customFields: "custom_fields",
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @internal
|
|
380
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
381
|
+
*/
|
|
382
|
+
export namespace BankFeedAccountInput$ {
|
|
383
|
+
/** @deprecated use `BankFeedAccountInput$inboundSchema` instead. */
|
|
384
|
+
export const inboundSchema = BankFeedAccountInput$inboundSchema;
|
|
385
|
+
/** @deprecated use `BankFeedAccountInput$outboundSchema` instead. */
|
|
386
|
+
export const outboundSchema = BankFeedAccountInput$outboundSchema;
|
|
387
|
+
/** @deprecated use `BankFeedAccountInput$Outbound` instead. */
|
|
388
|
+
export type Outbound = BankFeedAccountInput$Outbound;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export function bankFeedAccountInputToJSON(
|
|
392
|
+
bankFeedAccountInput: BankFeedAccountInput,
|
|
393
|
+
): string {
|
|
394
|
+
return JSON.stringify(
|
|
395
|
+
BankFeedAccountInput$outboundSchema.parse(bankFeedAccountInput),
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export function bankFeedAccountInputFromJSON(
|
|
400
|
+
jsonString: string,
|
|
401
|
+
): SafeParseResult<BankFeedAccountInput, SDKValidationError> {
|
|
402
|
+
return safeParse(
|
|
403
|
+
jsonString,
|
|
404
|
+
(x) => BankFeedAccountInput$inboundSchema.parse(JSON.parse(x)),
|
|
405
|
+
`Failed to parse 'BankFeedAccountInput' from JSON`,
|
|
406
|
+
);
|
|
407
|
+
}
|