@apideck/unify 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -51
- package/docs/sdks/agedcreditors/README.md +115 -0
- package/docs/sdks/attachments/README.md +97 -0
- package/docs/sdks/bills/README.md +24 -20
- package/docs/sdks/connections/README.md +100 -80
- package/docs/sdks/connectionsettings/README.md +100 -80
- package/docs/sdks/creditnotes/README.md +20 -20
- package/docs/sdks/expenses/README.md +8 -0
- package/docs/sdks/invoiceitems/README.md +16 -0
- package/docs/sdks/invoices/README.md +16 -16
- package/docs/sdks/journalentries/README.md +20 -0
- package/docs/sdks/pipelines/README.md +632 -0
- package/docs/sdks/purchaseorders/README.md +106 -186
- package/docs/sdks/uploadsessions/README.md +95 -0
- package/funcs/accountingAgedCreditorsGet.d.ts +17 -0
- package/funcs/accountingAgedCreditorsGet.d.ts.map +1 -0
- package/funcs/accountingAgedCreditorsGet.js +128 -0
- package/funcs/accountingAgedCreditorsGet.js.map +1 -0
- package/funcs/accountingAttachmentsUpload.d.ts +17 -0
- package/funcs/accountingAttachmentsUpload.d.ts.map +1 -0
- package/funcs/accountingAttachmentsUpload.js +141 -0
- package/funcs/accountingAttachmentsUpload.js.map +1 -0
- package/funcs/crmPipelinesCreate.d.ts +17 -0
- package/funcs/crmPipelinesCreate.d.ts.map +1 -0
- package/funcs/crmPipelinesCreate.js +127 -0
- package/funcs/crmPipelinesCreate.js.map +1 -0
- package/funcs/crmPipelinesDelete.d.ts +17 -0
- package/funcs/crmPipelinesDelete.d.ts.map +1 -0
- package/funcs/crmPipelinesDelete.js +132 -0
- package/funcs/crmPipelinesDelete.js.map +1 -0
- package/funcs/crmPipelinesGet.d.ts +17 -0
- package/funcs/crmPipelinesGet.d.ts.map +1 -0
- package/funcs/crmPipelinesGet.js +133 -0
- package/funcs/crmPipelinesGet.js.map +1 -0
- package/funcs/crmPipelinesUpdate.d.ts +17 -0
- package/funcs/crmPipelinesUpdate.d.ts.map +1 -0
- package/funcs/crmPipelinesUpdate.js +133 -0
- package/funcs/crmPipelinesUpdate.js.map +1 -0
- package/funcs/fileStorageUploadSessionsUpload.d.ts +17 -0
- package/funcs/fileStorageUploadSessionsUpload.d.ts.map +1 -0
- package/funcs/fileStorageUploadSessionsUpload.js +139 -0
- package/funcs/fileStorageUploadSessionsUpload.js.map +1 -0
- package/hooks/types.d.ts +1 -1
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/models/components/{accountinglocation.d.ts → accountinglocationinput.d.ts} +58 -58
- package/models/components/accountinglocationinput.d.ts.map +1 -0
- package/models/components/{accountinglocation.js → accountinglocationinput.js} +56 -56
- package/models/components/accountinglocationinput.js.map +1 -0
- package/models/components/address.d.ts +8 -8
- package/models/components/address.d.ts.map +1 -1
- package/models/components/address.js +13 -14
- package/models/components/address.js.map +1 -1
- package/models/components/agedcreditors.d.ts +51 -0
- package/models/components/agedcreditors.d.ts.map +1 -0
- package/models/components/agedcreditors.js +88 -0
- package/models/components/agedcreditors.js.map +1 -0
- package/models/components/{applicant.d.ts → applicantinput.d.ts} +79 -79
- package/models/components/applicantinput.d.ts.map +1 -0
- package/models/components/{applicant.js → applicantinput.js} +85 -85
- package/models/components/applicantinput.js.map +1 -0
- package/models/components/billlineitem.d.ts +4 -4
- package/models/components/{billpayment.d.ts → billpaymentinput.d.ts} +102 -102
- package/models/components/billpaymentinput.d.ts.map +1 -0
- package/models/components/{billpayment.js → billpaymentinput.js} +100 -100
- package/models/components/billpaymentinput.js.map +1 -0
- package/models/components/connectionimportdata.d.ts +15 -15
- package/models/components/connectionimportdata.d.ts.map +1 -1
- package/models/components/connectionimportdata.js +18 -19
- package/models/components/connectionimportdata.js.map +1 -1
- package/models/components/{connection.d.ts → connectioninput.d.ts} +139 -139
- package/models/components/connectioninput.d.ts.map +1 -0
- package/models/components/{connection.js → connectioninput.js} +150 -150
- package/models/components/connectioninput.js.map +1 -0
- package/models/components/consumerconnection.d.ts +6 -26
- package/models/components/consumerconnection.d.ts.map +1 -1
- package/models/components/consumerconnection.js +3 -26
- package/models/components/consumerconnection.js.map +1 -1
- package/models/components/{contact.d.ts → contactinput.d.ts} +71 -71
- package/models/components/contactinput.d.ts.map +1 -0
- package/models/components/{contact.js → contactinput.js} +72 -71
- package/models/components/{contact.js.map → contactinput.js.map} +1 -1
- package/models/components/createattachmentresponse.d.ts +70 -0
- package/models/components/createattachmentresponse.d.ts.map +1 -0
- package/models/components/createattachmentresponse.js +83 -0
- package/models/components/createattachmentresponse.js.map +1 -0
- package/models/components/createconnectionresponse.d.ts +1 -1
- package/models/components/createconnectionresponse.d.ts.map +1 -1
- package/models/components/createconnectionresponse.js +3 -3
- package/models/components/createconnectionresponse.js.map +1 -1
- package/models/components/createpipelineresponse.d.ts +70 -0
- package/models/components/createpipelineresponse.d.ts.map +1 -0
- package/models/components/createpipelineresponse.js +83 -0
- package/models/components/createpipelineresponse.js.map +1 -0
- package/models/components/{creditnote.d.ts → creditnoteinput.d.ts} +74 -74
- package/models/components/creditnoteinput.d.ts.map +1 -0
- package/models/components/{creditnote.js → creditnoteinput.js} +69 -69
- package/models/components/creditnoteinput.js.map +1 -0
- package/models/components/{customer.d.ts → customerinput.d.ts} +70 -70
- package/models/components/customerinput.d.ts.map +1 -0
- package/models/components/{customer.js → customerinput.js} +64 -64
- package/models/components/customerinput.js.map +1 -0
- package/models/components/deletepipelineresponse.d.ts +70 -0
- package/models/components/deletepipelineresponse.d.ts.map +1 -0
- package/models/components/deletepipelineresponse.js +83 -0
- package/models/components/deletepipelineresponse.js.map +1 -0
- package/models/components/{employeecompensation.d.ts → employeecompensationinput.d.ts} +37 -37
- package/models/components/employeecompensationinput.d.ts.map +1 -0
- package/models/components/{employeecompensation.js → employeecompensationinput.js} +36 -36
- package/models/components/employeecompensationinput.js.map +1 -0
- package/models/components/{employee.d.ts → employeeinput.d.ts} +70 -65
- package/models/components/employeeinput.d.ts.map +1 -0
- package/models/components/{employee.js → employeeinput.js} +67 -63
- package/models/components/employeeinput.js.map +1 -0
- package/models/components/employeeschedules.d.ts +1 -1
- package/models/components/employeeschedules.d.ts.map +1 -1
- package/models/components/employeeschedules.js +3 -3
- package/models/components/employeeschedules.js.map +1 -1
- package/models/components/employeesfilter.d.ts +5 -0
- package/models/components/employeesfilter.d.ts.map +1 -1
- package/models/components/employeesfilter.js +2 -0
- package/models/components/employeesfilter.js.map +1 -1
- package/models/components/{expense.d.ts → expenseinput.d.ts} +61 -61
- package/models/components/expenseinput.d.ts.map +1 -0
- package/models/components/{expense.js → expenseinput.js} +56 -56
- package/models/components/expenseinput.js.map +1 -0
- package/models/components/expenselineitem.d.ts +11 -6
- package/models/components/expenselineitem.d.ts.map +1 -1
- package/models/components/expenselineitem.js +8 -4
- package/models/components/expenselineitem.js.map +1 -1
- package/models/components/expenselineiteminput.d.ts +11 -6
- package/models/components/expenselineiteminput.d.ts.map +1 -1
- package/models/components/expenselineiteminput.js +8 -4
- package/models/components/expenselineiteminput.js.map +1 -1
- package/models/components/formfieldoption.d.ts +10 -2
- package/models/components/formfieldoption.d.ts.map +1 -1
- package/models/components/formfieldoption.js +12 -4
- package/models/components/formfieldoption.js.map +1 -1
- package/models/components/formfieldoptiongroup.d.ts +29 -4
- package/models/components/formfieldoptiongroup.d.ts.map +1 -1
- package/models/components/formfieldoptiongroup.js +34 -5
- package/models/components/formfieldoptiongroup.js.map +1 -1
- package/models/components/getaccountinglocationresponse.d.ts +1 -1
- package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationresponse.js +3 -3
- package/models/components/getaccountinglocationresponse.js.map +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationsresponse.js +3 -3
- package/models/components/getaccountinglocationsresponse.js.map +1 -1
- package/models/components/getagedcreditorsresponse.d.ts +67 -0
- package/models/components/getagedcreditorsresponse.d.ts.map +1 -0
- package/models/components/getagedcreditorsresponse.js +83 -0
- package/models/components/getagedcreditorsresponse.js.map +1 -0
- package/models/components/getapplicantresponse.d.ts +1 -1
- package/models/components/getapplicantresponse.d.ts.map +1 -1
- package/models/components/getapplicantresponse.js +3 -3
- package/models/components/getapplicantresponse.js.map +1 -1
- package/models/components/getapplicantsresponse.d.ts +1 -1
- package/models/components/getapplicantsresponse.d.ts.map +1 -1
- package/models/components/getapplicantsresponse.js +3 -3
- package/models/components/getapplicantsresponse.js.map +1 -1
- package/models/components/getbillpaymentresponse.d.ts +1 -1
- package/models/components/getbillpaymentresponse.d.ts.map +1 -1
- package/models/components/getbillpaymentresponse.js +3 -3
- package/models/components/getbillpaymentresponse.js.map +1 -1
- package/models/components/getbillpaymentsresponse.d.ts +1 -1
- package/models/components/getbillpaymentsresponse.d.ts.map +1 -1
- package/models/components/getbillpaymentsresponse.js +3 -3
- package/models/components/getbillpaymentsresponse.js.map +1 -1
- package/models/components/getconnectionresponse.d.ts +1 -1
- package/models/components/getconnectionresponse.d.ts.map +1 -1
- package/models/components/getconnectionresponse.js +3 -3
- package/models/components/getconnectionresponse.js.map +1 -1
- package/models/components/getconnectionsresponse.d.ts +1 -1
- package/models/components/getconnectionsresponse.d.ts.map +1 -1
- package/models/components/getconnectionsresponse.js +3 -3
- package/models/components/getconnectionsresponse.js.map +1 -1
- package/models/components/getcontactresponse.d.ts +1 -1
- package/models/components/getcontactresponse.d.ts.map +1 -1
- package/models/components/getcontactresponse.js +3 -3
- package/models/components/getcontactresponse.js.map +1 -1
- package/models/components/getcontactsresponse.d.ts +1 -1
- package/models/components/getcontactsresponse.d.ts.map +1 -1
- package/models/components/getcontactsresponse.js +3 -3
- package/models/components/getcontactsresponse.js.map +1 -1
- package/models/components/getcreditnoteresponse.d.ts +1 -1
- package/models/components/getcreditnoteresponse.d.ts.map +1 -1
- package/models/components/getcreditnoteresponse.js +3 -3
- package/models/components/getcreditnoteresponse.js.map +1 -1
- package/models/components/getcreditnotesresponse.d.ts +1 -1
- package/models/components/getcreditnotesresponse.d.ts.map +1 -1
- package/models/components/getcreditnotesresponse.js +3 -3
- package/models/components/getcreditnotesresponse.js.map +1 -1
- package/models/components/getcustomerresponse.d.ts +1 -1
- package/models/components/getcustomerresponse.d.ts.map +1 -1
- package/models/components/getcustomerresponse.js +3 -3
- package/models/components/getcustomerresponse.js.map +1 -1
- package/models/components/getcustomersresponse.d.ts +1 -1
- package/models/components/getcustomersresponse.d.ts.map +1 -1
- package/models/components/getcustomersresponse.js +3 -3
- package/models/components/getcustomersresponse.js.map +1 -1
- package/models/components/getemployeeresponse.d.ts +1 -1
- package/models/components/getemployeeresponse.d.ts.map +1 -1
- package/models/components/getemployeeresponse.js +3 -3
- package/models/components/getemployeeresponse.js.map +1 -1
- package/models/components/getemployeesresponse.d.ts +1 -1
- package/models/components/getemployeesresponse.d.ts.map +1 -1
- package/models/components/getemployeesresponse.js +3 -3
- package/models/components/getemployeesresponse.js.map +1 -1
- package/models/components/getexpenseresponse.d.ts +1 -1
- package/models/components/getexpenseresponse.d.ts.map +1 -1
- package/models/components/getexpenseresponse.js +3 -3
- package/models/components/getexpenseresponse.js.map +1 -1
- package/models/components/getexpensesresponse.d.ts +1 -1
- package/models/components/getexpensesresponse.d.ts.map +1 -1
- package/models/components/getexpensesresponse.js +3 -3
- package/models/components/getexpensesresponse.js.map +1 -1
- package/models/components/gethriscompaniesresponse.d.ts +1 -1
- package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
- package/models/components/gethriscompaniesresponse.js +3 -3
- package/models/components/gethriscompaniesresponse.js.map +1 -1
- package/models/components/gethriscompanyresponse.d.ts +1 -1
- package/models/components/gethriscompanyresponse.d.ts.map +1 -1
- package/models/components/gethriscompanyresponse.js +3 -3
- package/models/components/gethriscompanyresponse.js.map +1 -1
- package/models/components/getinvoiceresponse.d.ts +1 -1
- package/models/components/getinvoiceresponse.d.ts.map +1 -1
- package/models/components/getinvoiceresponse.js +3 -3
- package/models/components/getinvoiceresponse.js.map +1 -1
- package/models/components/getinvoicesresponse.d.ts +1 -1
- package/models/components/getinvoicesresponse.d.ts.map +1 -1
- package/models/components/getinvoicesresponse.js +3 -3
- package/models/components/getinvoicesresponse.js.map +1 -1
- package/models/components/getledgeraccountresponse.d.ts +1 -1
- package/models/components/getledgeraccountresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountresponse.js +3 -3
- package/models/components/getledgeraccountresponse.js.map +1 -1
- package/models/components/getledgeraccountsresponse.d.ts +1 -1
- package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountsresponse.js +3 -3
- package/models/components/getledgeraccountsresponse.js.map +1 -1
- package/models/components/getpipelineresponse.d.ts +67 -0
- package/models/components/getpipelineresponse.d.ts.map +1 -0
- package/models/components/getpipelineresponse.js +83 -0
- package/models/components/getpipelineresponse.js.map +1 -0
- package/models/components/getsupplierresponse.d.ts +1 -1
- package/models/components/getsupplierresponse.d.ts.map +1 -1
- package/models/components/getsupplierresponse.js +3 -3
- package/models/components/getsupplierresponse.js.map +1 -1
- package/models/components/getsuppliersresponse.d.ts +1 -1
- package/models/components/getsuppliersresponse.d.ts.map +1 -1
- package/models/components/getsuppliersresponse.js +3 -3
- package/models/components/getsuppliersresponse.js.map +1 -1
- package/models/components/getticketresponse.d.ts +1 -1
- package/models/components/getticketresponse.d.ts.map +1 -1
- package/models/components/getticketresponse.js +3 -3
- package/models/components/getticketresponse.js.map +1 -1
- package/models/components/getticketsresponse.d.ts +1 -1
- package/models/components/getticketsresponse.d.ts.map +1 -1
- package/models/components/getticketsresponse.js +3 -3
- package/models/components/getticketsresponse.js.map +1 -1
- package/models/components/{hriscompany.d.ts → hriscompanyinput.d.ts} +55 -55
- package/models/components/hriscompanyinput.d.ts.map +1 -0
- package/models/components/{hriscompany.js → hriscompanyinput.js} +54 -54
- package/models/components/hriscompanyinput.js.map +1 -0
- package/models/components/index.d.ts +26 -16
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +26 -16
- package/models/components/index.js.map +1 -1
- package/models/components/{invoice.d.ts → invoiceinput.d.ts} +74 -74
- package/models/components/invoiceinput.d.ts.map +1 -0
- package/models/components/{invoice.js → invoiceinput.js} +72 -72
- package/models/components/{invoice.js.map → invoiceinput.js.map} +1 -1
- package/models/components/invoiceitem.d.ts +46 -0
- package/models/components/invoiceitem.d.ts.map +1 -1
- package/models/components/invoiceitem.js +34 -0
- package/models/components/invoiceitem.js.map +1 -1
- package/models/components/{invoicelineitem.d.ts → invoicelineiteminput.d.ts} +59 -59
- package/models/components/invoicelineiteminput.d.ts.map +1 -0
- package/models/components/{invoicelineitem.js → invoicelineiteminput.js} +54 -54
- package/models/components/invoicelineiteminput.js.map +1 -0
- package/models/components/journalentrylineitem.d.ts +16 -6
- package/models/components/journalentrylineitem.d.ts.map +1 -1
- package/models/components/journalentrylineitem.js +12 -4
- package/models/components/journalentrylineitem.js.map +1 -1
- package/models/components/{ledgeraccount.d.ts → ledgeraccountinput.d.ts} +129 -129
- package/models/components/ledgeraccountinput.d.ts.map +1 -0
- package/models/components/{ledgeraccount.js → ledgeraccountinput.js} +128 -128
- package/models/components/ledgeraccountinput.js.map +1 -0
- package/models/components/linkedecommercecustomer.d.ts +6 -6
- package/models/components/linkedecommercecustomer.d.ts.map +1 -1
- package/models/components/linkedecommercecustomer.js +6 -6
- package/models/components/linkedecommercecustomer.js.map +1 -1
- package/models/components/outstandingbalancebysupplier.d.ts +40 -0
- package/models/components/outstandingbalancebysupplier.d.ts.map +1 -0
- package/models/components/outstandingbalancebysupplier.js +77 -0
- package/models/components/outstandingbalancebysupplier.js.map +1 -0
- package/models/components/pipelineinput.d.ts +117 -0
- package/models/components/pipelineinput.d.ts.map +1 -0
- package/models/components/pipelineinput.js +133 -0
- package/models/components/pipelineinput.js.map +1 -0
- package/models/components/purchaseorder.d.ts +6 -1
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +14 -5
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/simpleformfieldoption.d.ts +27 -2
- package/models/components/simpleformfieldoption.d.ts.map +1 -1
- package/models/components/simpleformfieldoption.js +33 -3
- package/models/components/simpleformfieldoption.js.map +1 -1
- package/models/components/{supplier.d.ts → supplierinput.d.ts} +70 -70
- package/models/components/supplierinput.d.ts.map +1 -0
- package/models/components/{supplier.js → supplierinput.js} +64 -64
- package/models/components/supplierinput.js.map +1 -0
- package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
- package/models/components/ticketinput.d.ts.map +1 -0
- package/models/components/{ticket.js → ticketinput.js} +59 -59
- package/models/components/ticketinput.js.map +1 -0
- package/models/components/updateconnectionresponse.d.ts +1 -1
- package/models/components/updateconnectionresponse.d.ts.map +1 -1
- package/models/components/updateconnectionresponse.js +3 -3
- package/models/components/updateconnectionresponse.js.map +1 -1
- package/models/components/updatepipelineresponse.d.ts +70 -0
- package/models/components/updatepipelineresponse.d.ts.map +1 -0
- package/models/components/updatepipelineresponse.js +83 -0
- package/models/components/updatepipelineresponse.js.map +1 -0
- package/models/components/updateuploadsessionresponse.d.ts +70 -0
- package/models/components/updateuploadsessionresponse.d.ts.map +1 -0
- package/models/components/updateuploadsessionresponse.js +83 -0
- package/models/components/updateuploadsessionresponse.js.map +1 -0
- package/models/operations/accountingagedcreditorsone.d.ts +135 -0
- package/models/operations/accountingagedcreditorsone.d.ts.map +1 -0
- package/models/operations/accountingagedcreditorsone.js +157 -0
- package/models/operations/accountingagedcreditorsone.js.map +1 -0
- package/models/operations/accountingattachmentsupload.d.ts +134 -0
- package/models/operations/accountingattachmentsupload.d.ts.map +1 -0
- package/models/operations/accountingattachmentsupload.js +178 -0
- package/models/operations/accountingattachmentsupload.js.map +1 -0
- package/models/operations/crmpipelinesadd.d.ts +118 -0
- package/models/operations/crmpipelinesadd.d.ts.map +1 -0
- package/models/operations/crmpipelinesadd.js +153 -0
- package/models/operations/crmpipelinesadd.js.map +1 -0
- package/models/operations/crmpipelinesdelete.d.ts +121 -0
- package/models/operations/crmpipelinesdelete.d.ts.map +1 -0
- package/models/operations/crmpipelinesdelete.js +145 -0
- package/models/operations/crmpipelinesdelete.js.map +1 -0
- package/models/operations/crmpipelinesone.d.ts +126 -0
- package/models/operations/crmpipelinesone.d.ts.map +1 -0
- package/models/operations/crmpipelinesone.js +145 -0
- package/models/operations/crmpipelinesone.js.map +1 -0
- package/models/operations/crmpipelinesupdate.d.ts +123 -0
- package/models/operations/crmpipelinesupdate.d.ts.map +1 -0
- package/models/operations/crmpipelinesupdate.js +155 -0
- package/models/operations/crmpipelinesupdate.js.map +1 -0
- package/models/operations/filestorageuploadsessionsupload.d.ts +134 -0
- package/models/operations/filestorageuploadsessionsupload.d.ts.map +1 -0
- package/models/operations/filestorageuploadsessionsupload.js +174 -0
- package/models/operations/filestorageuploadsessionsupload.js.map +1 -0
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +3 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +4 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/agedcreditors.d.ts +12 -0
- package/sdk/agedcreditors.d.ts.map +1 -0
- package/sdk/agedcreditors.js +22 -0
- package/sdk/agedcreditors.js.map +1 -0
- package/sdk/attachments.d.ts +7 -0
- package/sdk/attachments.d.ts.map +1 -1
- package/sdk/attachments.js +10 -0
- package/sdk/attachments.js.map +1 -1
- package/sdk/pipelines.d.ts +28 -0
- package/sdk/pipelines.d.ts.map +1 -1
- package/sdk/pipelines.js +41 -0
- package/sdk/pipelines.js.map +1 -1
- package/sdk/uploadsessions.d.ts +7 -0
- package/sdk/uploadsessions.d.ts.map +1 -1
- package/sdk/uploadsessions.js +10 -0
- package/sdk/uploadsessions.js.map +1 -1
- package/src/funcs/accountingAgedCreditorsGet.ts +228 -0
- package/src/funcs/accountingAttachmentsUpload.ts +241 -0
- package/src/funcs/crmPipelinesCreate.ts +214 -0
- package/src/funcs/crmPipelinesDelete.ts +220 -0
- package/src/funcs/crmPipelinesGet.ts +221 -0
- package/src/funcs/crmPipelinesUpdate.ts +221 -0
- package/src/funcs/fileStorageUploadSessionsUpload.ts +239 -0
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +11 -3
- package/src/models/components/address.ts +15 -14
- package/src/models/components/agedcreditors.ts +120 -0
- package/src/models/components/billlineitem.ts +4 -4
- package/src/models/components/connectionimportdata.ts +24 -33
- package/src/models/components/consumerconnection.ts +4 -53
- package/src/models/components/{contact.ts → contactinput.ts} +232 -233
- package/src/models/components/createattachmentresponse.ts +131 -0
- package/src/models/components/createconnectionresponse.ts +1 -1
- package/src/models/components/createpipelineresponse.ts +131 -0
- package/src/models/components/{creditnote.ts → creditnoteinput.ts} +131 -131
- package/src/models/components/deletepipelineresponse.ts +131 -0
- package/src/models/components/{employee.ts → employeeinput.ts} +123 -114
- package/src/models/components/employeeschedules.ts +1 -1
- package/src/models/components/employeesfilter.ts +7 -0
- package/src/models/components/{expense.ts → expenseinput.ts} +166 -166
- package/src/models/components/expenselineitem.ts +19 -10
- package/src/models/components/expenselineiteminput.ts +19 -10
- package/src/models/components/formfieldoption.ts +25 -7
- package/src/models/components/formfieldoptiongroup.ts +50 -8
- package/src/models/components/getaccountinglocationresponse.ts +1 -1
- package/src/models/components/getaccountinglocationsresponse.ts +1 -1
- package/src/models/components/getagedcreditorsresponse.ts +128 -0
- package/src/models/components/getapplicantresponse.ts +1 -1
- package/src/models/components/getapplicantsresponse.ts +1 -1
- package/src/models/components/getbillpaymentresponse.ts +1 -1
- package/src/models/components/getbillpaymentsresponse.ts +1 -1
- package/src/models/components/getconnectionresponse.ts +1 -1
- package/src/models/components/getconnectionsresponse.ts +1 -1
- package/src/models/components/getcontactresponse.ts +1 -1
- package/src/models/components/getcontactsresponse.ts +1 -1
- package/src/models/components/getcreditnoteresponse.ts +1 -1
- package/src/models/components/getcreditnotesresponse.ts +1 -1
- package/src/models/components/getcustomerresponse.ts +1 -1
- package/src/models/components/getcustomersresponse.ts +1 -1
- package/src/models/components/getemployeeresponse.ts +1 -1
- package/src/models/components/getemployeesresponse.ts +1 -1
- package/src/models/components/getexpenseresponse.ts +1 -1
- package/src/models/components/getexpensesresponse.ts +1 -1
- package/src/models/components/gethriscompaniesresponse.ts +1 -1
- package/src/models/components/gethriscompanyresponse.ts +1 -1
- package/src/models/components/getinvoiceresponse.ts +1 -1
- package/src/models/components/getinvoicesresponse.ts +1 -1
- package/src/models/components/getledgeraccountresponse.ts +1 -1
- package/src/models/components/getledgeraccountsresponse.ts +1 -1
- package/src/models/components/getpipelineresponse.ts +128 -0
- package/src/models/components/getsupplierresponse.ts +1 -1
- package/src/models/components/getsuppliersresponse.ts +1 -1
- package/src/models/components/getticketresponse.ts +1 -1
- package/src/models/components/getticketsresponse.ts +1 -1
- package/src/models/components/index.ts +26 -16
- package/src/models/components/{invoice.ts → invoiceinput.ts} +274 -274
- package/src/models/components/invoiceitem.ts +74 -0
- package/src/models/components/{invoicelineitem.ts → invoicelineiteminput.ts} +104 -104
- package/src/models/components/journalentrylineitem.ts +28 -10
- package/src/models/components/linkedecommercecustomer.ts +12 -12
- package/src/models/components/outstandingbalancebysupplier.ts +109 -0
- package/src/models/components/pipelineinput.ts +233 -0
- package/src/models/components/purchaseorder.ts +19 -1
- package/src/models/components/simpleformfieldoption.ts +42 -4
- package/src/models/components/updateconnectionresponse.ts +1 -1
- package/src/models/components/updatepipelineresponse.ts +131 -0
- package/src/models/components/updateuploadsessionresponse.ts +133 -0
- package/src/models/operations/accountingagedcreditorsone.ts +291 -0
- package/src/models/operations/accountingattachmentsupload.ts +318 -0
- package/src/models/operations/crmpipelinesadd.ts +264 -0
- package/src/models/operations/crmpipelinesdelete.ts +259 -0
- package/src/models/operations/crmpipelinesone.ts +262 -0
- package/src/models/operations/crmpipelinesupdate.ts +271 -0
- package/src/models/operations/filestorageuploadsessionsupload.ts +326 -0
- package/src/models/operations/index.ts +7 -0
- package/src/sdk/accounting.ts +6 -0
- package/src/sdk/agedcreditors.ts +27 -0
- package/src/sdk/attachments.ts +18 -0
- package/src/sdk/pipelines.ts +73 -0
- package/src/sdk/uploadsessions.ts +18 -0
- package/models/components/accountinglocation.d.ts.map +0 -1
- package/models/components/accountinglocation.js.map +0 -1
- package/models/components/applicant.d.ts.map +0 -1
- package/models/components/applicant.js.map +0 -1
- package/models/components/billpayment.d.ts.map +0 -1
- package/models/components/billpayment.js.map +0 -1
- package/models/components/connection.d.ts.map +0 -1
- package/models/components/connection.js.map +0 -1
- package/models/components/contact.d.ts.map +0 -1
- package/models/components/creditnote.d.ts.map +0 -1
- package/models/components/creditnote.js.map +0 -1
- package/models/components/customer.d.ts.map +0 -1
- package/models/components/customer.js.map +0 -1
- package/models/components/employee.d.ts.map +0 -1
- package/models/components/employee.js.map +0 -1
- package/models/components/employeecompensation.d.ts.map +0 -1
- package/models/components/employeecompensation.js.map +0 -1
- package/models/components/expense.d.ts.map +0 -1
- package/models/components/expense.js.map +0 -1
- package/models/components/hriscompany.d.ts.map +0 -1
- package/models/components/hriscompany.js.map +0 -1
- package/models/components/invoice.d.ts.map +0 -1
- package/models/components/invoicelineitem.d.ts.map +0 -1
- package/models/components/invoicelineitem.js.map +0 -1
- package/models/components/ledgeraccount.d.ts.map +0 -1
- package/models/components/ledgeraccount.js.map +0 -1
- package/models/components/supplier.d.ts.map +0 -1
- package/models/components/supplier.js.map +0 -1
- package/models/components/ticket.d.ts.map +0 -1
- package/models/components/ticket.js.map +0 -1
- package/src/models/components/{accountinglocation.ts → accountinglocationinput.ts} +106 -106
- package/src/models/components/{applicant.ts → applicantinput.ts} +157 -157
- package/src/models/components/{billpayment.ts → billpaymentinput.ts} +183 -183
- package/src/models/components/{connection.ts → connectioninput.ts} +347 -347
- package/src/models/components/{customer.ts → customerinput.ts} +121 -121
- package/src/models/components/{employeecompensation.ts → employeecompensationinput.ts} +58 -58
- package/src/models/components/{hriscompany.ts → hriscompanyinput.ts} +101 -101
- package/src/models/components/{ledgeraccount.ts → ledgeraccountinput.ts} +253 -253
- package/src/models/components/{supplier.ts → supplierinput.ts} +121 -121
- package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
|
@@ -114,14 +114,6 @@ export const AccountStatus = {
|
|
|
114
114
|
*/
|
|
115
115
|
export type AccountStatus = ClosedEnum<typeof AccountStatus>;
|
|
116
116
|
|
|
117
|
-
export type Categories = {
|
|
118
|
-
id?: string | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* The name of the category.
|
|
121
|
-
*/
|
|
122
|
-
name?: string | undefined;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
117
|
export type ParentAccount = {
|
|
126
118
|
/**
|
|
127
119
|
* The ID of the parent account.
|
|
@@ -137,17 +129,6 @@ export type ParentAccount = {
|
|
|
137
129
|
displayId?: string | undefined;
|
|
138
130
|
};
|
|
139
131
|
|
|
140
|
-
export type SubAccounts = {
|
|
141
|
-
/**
|
|
142
|
-
* The ID of the sub account.
|
|
143
|
-
*/
|
|
144
|
-
id?: string | undefined;
|
|
145
|
-
/**
|
|
146
|
-
* The name of the sub account.
|
|
147
|
-
*/
|
|
148
|
-
accountSubName?: string | undefined;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
132
|
export type LedgerAccountSubsidiaries = {
|
|
152
133
|
/**
|
|
153
134
|
* The ID of the subsidiary.
|
|
@@ -155,11 +136,7 @@ export type LedgerAccountSubsidiaries = {
|
|
|
155
136
|
id?: string | undefined;
|
|
156
137
|
};
|
|
157
138
|
|
|
158
|
-
export type
|
|
159
|
-
/**
|
|
160
|
-
* A unique identifier for an object.
|
|
161
|
-
*/
|
|
162
|
-
id?: string | undefined;
|
|
139
|
+
export type LedgerAccountInput = {
|
|
163
140
|
/**
|
|
164
141
|
* The human readable display ID used when displaying the account
|
|
165
142
|
*/
|
|
@@ -214,7 +191,7 @@ export type LedgerAccount = {
|
|
|
214
191
|
* The tax type of the account.
|
|
215
192
|
*/
|
|
216
193
|
taxType?: string | null | undefined;
|
|
217
|
-
taxRate?:
|
|
194
|
+
taxRate?: LinkedTaxRateInput | undefined;
|
|
218
195
|
level?: number | null | undefined;
|
|
219
196
|
/**
|
|
220
197
|
* Whether the account is active or not.
|
|
@@ -229,19 +206,11 @@ export type LedgerAccount = {
|
|
|
229
206
|
*/
|
|
230
207
|
header?: boolean | null | undefined;
|
|
231
208
|
bankAccount?: BankAccount | undefined;
|
|
232
|
-
/**
|
|
233
|
-
* The categories of the account.
|
|
234
|
-
*/
|
|
235
|
-
categories?: Array<Categories> | undefined;
|
|
236
209
|
parentAccount?: ParentAccount | undefined;
|
|
237
210
|
/**
|
|
238
211
|
* Whether the account is a sub account or not.
|
|
239
212
|
*/
|
|
240
213
|
subAccount?: boolean | null | undefined;
|
|
241
|
-
/**
|
|
242
|
-
* The sub accounts of the account.
|
|
243
|
-
*/
|
|
244
|
-
subAccounts?: Array<SubAccounts> | undefined;
|
|
245
214
|
/**
|
|
246
215
|
* Reconciliation Date means the last calendar day of each Reconciliation Period.
|
|
247
216
|
*/
|
|
@@ -250,38 +219,41 @@ export type LedgerAccount = {
|
|
|
250
219
|
* The subsidiaries the account belongs to.
|
|
251
220
|
*/
|
|
252
221
|
subsidiaries?: Array<LedgerAccountSubsidiaries> | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
255
|
-
*/
|
|
256
|
-
customMappings?: CustomMappings | null | undefined;
|
|
257
222
|
customFields?: Array<CustomField> | undefined;
|
|
258
223
|
/**
|
|
259
224
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
260
225
|
*/
|
|
261
226
|
rowVersion?: string | null | undefined;
|
|
262
227
|
/**
|
|
263
|
-
* The
|
|
264
|
-
*/
|
|
265
|
-
updatedBy?: string | null | undefined;
|
|
266
|
-
/**
|
|
267
|
-
* The user who created the object.
|
|
228
|
+
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
268
229
|
*/
|
|
269
|
-
|
|
230
|
+
passThrough?: Array<PassThroughBody> | undefined;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export type Categories = {
|
|
234
|
+
id?: string | undefined;
|
|
270
235
|
/**
|
|
271
|
-
* The
|
|
236
|
+
* The name of the category.
|
|
272
237
|
*/
|
|
273
|
-
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type SubAccounts = {
|
|
274
242
|
/**
|
|
275
|
-
* The
|
|
243
|
+
* The ID of the sub account.
|
|
276
244
|
*/
|
|
277
|
-
|
|
245
|
+
id?: string | undefined;
|
|
278
246
|
/**
|
|
279
|
-
* The
|
|
247
|
+
* The name of the sub account.
|
|
280
248
|
*/
|
|
281
|
-
|
|
249
|
+
accountSubName?: string | undefined;
|
|
282
250
|
};
|
|
283
251
|
|
|
284
|
-
export type
|
|
252
|
+
export type LedgerAccount = {
|
|
253
|
+
/**
|
|
254
|
+
* A unique identifier for an object.
|
|
255
|
+
*/
|
|
256
|
+
id?: string | undefined;
|
|
285
257
|
/**
|
|
286
258
|
* The human readable display ID used when displaying the account
|
|
287
259
|
*/
|
|
@@ -336,7 +308,7 @@ export type LedgerAccountInput = {
|
|
|
336
308
|
* The tax type of the account.
|
|
337
309
|
*/
|
|
338
310
|
taxType?: string | null | undefined;
|
|
339
|
-
taxRate?:
|
|
311
|
+
taxRate?: LinkedTaxRate | undefined;
|
|
340
312
|
level?: number | null | undefined;
|
|
341
313
|
/**
|
|
342
314
|
* Whether the account is active or not.
|
|
@@ -351,11 +323,19 @@ export type LedgerAccountInput = {
|
|
|
351
323
|
*/
|
|
352
324
|
header?: boolean | null | undefined;
|
|
353
325
|
bankAccount?: BankAccount | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* The categories of the account.
|
|
328
|
+
*/
|
|
329
|
+
categories?: Array<Categories> | undefined;
|
|
354
330
|
parentAccount?: ParentAccount | undefined;
|
|
355
331
|
/**
|
|
356
332
|
* Whether the account is a sub account or not.
|
|
357
333
|
*/
|
|
358
334
|
subAccount?: boolean | null | undefined;
|
|
335
|
+
/**
|
|
336
|
+
* The sub accounts of the account.
|
|
337
|
+
*/
|
|
338
|
+
subAccounts?: Array<SubAccounts> | undefined;
|
|
359
339
|
/**
|
|
360
340
|
* Reconciliation Date means the last calendar day of each Reconciliation Period.
|
|
361
341
|
*/
|
|
@@ -364,11 +344,31 @@ export type LedgerAccountInput = {
|
|
|
364
344
|
* The subsidiaries the account belongs to.
|
|
365
345
|
*/
|
|
366
346
|
subsidiaries?: Array<LedgerAccountSubsidiaries> | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
349
|
+
*/
|
|
350
|
+
customMappings?: CustomMappings | null | undefined;
|
|
367
351
|
customFields?: Array<CustomField> | undefined;
|
|
368
352
|
/**
|
|
369
353
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
370
354
|
*/
|
|
371
355
|
rowVersion?: string | null | undefined;
|
|
356
|
+
/**
|
|
357
|
+
* The user who last updated the object.
|
|
358
|
+
*/
|
|
359
|
+
updatedBy?: string | null | undefined;
|
|
360
|
+
/**
|
|
361
|
+
* The user who created the object.
|
|
362
|
+
*/
|
|
363
|
+
createdBy?: string | null | undefined;
|
|
364
|
+
/**
|
|
365
|
+
* The date and time when the object was last updated.
|
|
366
|
+
*/
|
|
367
|
+
updatedAt?: Date | null | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* The date and time when the object was created.
|
|
370
|
+
*/
|
|
371
|
+
createdAt?: Date | null | undefined;
|
|
372
372
|
/**
|
|
373
373
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
374
374
|
*/
|
|
@@ -438,59 +438,6 @@ export namespace AccountStatus$ {
|
|
|
438
438
|
export const outboundSchema = AccountStatus$outboundSchema;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
/** @internal */
|
|
442
|
-
export const Categories$inboundSchema: z.ZodType<
|
|
443
|
-
Categories,
|
|
444
|
-
z.ZodTypeDef,
|
|
445
|
-
unknown
|
|
446
|
-
> = z.object({
|
|
447
|
-
id: z.string().optional(),
|
|
448
|
-
name: z.string().optional(),
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
/** @internal */
|
|
452
|
-
export type Categories$Outbound = {
|
|
453
|
-
id?: string | undefined;
|
|
454
|
-
name?: string | undefined;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
/** @internal */
|
|
458
|
-
export const Categories$outboundSchema: z.ZodType<
|
|
459
|
-
Categories$Outbound,
|
|
460
|
-
z.ZodTypeDef,
|
|
461
|
-
Categories
|
|
462
|
-
> = z.object({
|
|
463
|
-
id: z.string().optional(),
|
|
464
|
-
name: z.string().optional(),
|
|
465
|
-
});
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* @internal
|
|
469
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
-
*/
|
|
471
|
-
export namespace Categories$ {
|
|
472
|
-
/** @deprecated use `Categories$inboundSchema` instead. */
|
|
473
|
-
export const inboundSchema = Categories$inboundSchema;
|
|
474
|
-
/** @deprecated use `Categories$outboundSchema` instead. */
|
|
475
|
-
export const outboundSchema = Categories$outboundSchema;
|
|
476
|
-
/** @deprecated use `Categories$Outbound` instead. */
|
|
477
|
-
export type Outbound = Categories$Outbound;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
export function categoriesToJSON(categories: Categories): string {
|
|
481
|
-
return JSON.stringify(Categories$outboundSchema.parse(categories));
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export function categoriesFromJSON(
|
|
485
|
-
jsonString: string,
|
|
486
|
-
): SafeParseResult<Categories, SDKValidationError> {
|
|
487
|
-
return safeParse(
|
|
488
|
-
jsonString,
|
|
489
|
-
(x) => Categories$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
-
`Failed to parse 'Categories' from JSON`,
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
441
|
/** @internal */
|
|
495
442
|
export const ParentAccount$inboundSchema: z.ZodType<
|
|
496
443
|
ParentAccount,
|
|
@@ -555,67 +502,6 @@ export function parentAccountFromJSON(
|
|
|
555
502
|
);
|
|
556
503
|
}
|
|
557
504
|
|
|
558
|
-
/** @internal */
|
|
559
|
-
export const SubAccounts$inboundSchema: z.ZodType<
|
|
560
|
-
SubAccounts,
|
|
561
|
-
z.ZodTypeDef,
|
|
562
|
-
unknown
|
|
563
|
-
> = z.object({
|
|
564
|
-
id: z.string().optional(),
|
|
565
|
-
account_sub_name: z.string().optional(),
|
|
566
|
-
}).transform((v) => {
|
|
567
|
-
return remap$(v, {
|
|
568
|
-
"account_sub_name": "accountSubName",
|
|
569
|
-
});
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
/** @internal */
|
|
573
|
-
export type SubAccounts$Outbound = {
|
|
574
|
-
id?: string | undefined;
|
|
575
|
-
account_sub_name?: string | undefined;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
/** @internal */
|
|
579
|
-
export const SubAccounts$outboundSchema: z.ZodType<
|
|
580
|
-
SubAccounts$Outbound,
|
|
581
|
-
z.ZodTypeDef,
|
|
582
|
-
SubAccounts
|
|
583
|
-
> = z.object({
|
|
584
|
-
id: z.string().optional(),
|
|
585
|
-
accountSubName: z.string().optional(),
|
|
586
|
-
}).transform((v) => {
|
|
587
|
-
return remap$(v, {
|
|
588
|
-
accountSubName: "account_sub_name",
|
|
589
|
-
});
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* @internal
|
|
594
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
595
|
-
*/
|
|
596
|
-
export namespace SubAccounts$ {
|
|
597
|
-
/** @deprecated use `SubAccounts$inboundSchema` instead. */
|
|
598
|
-
export const inboundSchema = SubAccounts$inboundSchema;
|
|
599
|
-
/** @deprecated use `SubAccounts$outboundSchema` instead. */
|
|
600
|
-
export const outboundSchema = SubAccounts$outboundSchema;
|
|
601
|
-
/** @deprecated use `SubAccounts$Outbound` instead. */
|
|
602
|
-
export type Outbound = SubAccounts$Outbound;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
export function subAccountsToJSON(subAccounts: SubAccounts): string {
|
|
606
|
-
return JSON.stringify(SubAccounts$outboundSchema.parse(subAccounts));
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export function subAccountsFromJSON(
|
|
610
|
-
jsonString: string,
|
|
611
|
-
): SafeParseResult<SubAccounts, SDKValidationError> {
|
|
612
|
-
return safeParse(
|
|
613
|
-
jsonString,
|
|
614
|
-
(x) => SubAccounts$inboundSchema.parse(JSON.parse(x)),
|
|
615
|
-
`Failed to parse 'SubAccounts' from JSON`,
|
|
616
|
-
);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
505
|
/** @internal */
|
|
620
506
|
export const LedgerAccountSubsidiaries$inboundSchema: z.ZodType<
|
|
621
507
|
LedgerAccountSubsidiaries,
|
|
@@ -671,12 +557,11 @@ export function ledgerAccountSubsidiariesFromJSON(
|
|
|
671
557
|
}
|
|
672
558
|
|
|
673
559
|
/** @internal */
|
|
674
|
-
export const
|
|
675
|
-
|
|
560
|
+
export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
561
|
+
LedgerAccountInput,
|
|
676
562
|
z.ZodTypeDef,
|
|
677
563
|
unknown
|
|
678
564
|
> = z.object({
|
|
679
|
-
id: z.string().optional(),
|
|
680
565
|
display_id: z.string().optional(),
|
|
681
566
|
nominal_code: z.nullable(z.string()).optional(),
|
|
682
567
|
code: z.nullable(z.string()).optional(),
|
|
@@ -690,32 +575,21 @@ export const LedgerAccount$inboundSchema: z.ZodType<
|
|
|
690
575
|
current_balance: z.nullable(z.number()).optional(),
|
|
691
576
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
692
577
|
tax_type: z.nullable(z.string()).optional(),
|
|
693
|
-
tax_rate:
|
|
578
|
+
tax_rate: LinkedTaxRateInput$inboundSchema.optional(),
|
|
694
579
|
level: z.nullable(z.number()).optional(),
|
|
695
580
|
active: z.nullable(z.boolean()).optional(),
|
|
696
581
|
status: z.nullable(AccountStatus$inboundSchema).optional(),
|
|
697
582
|
header: z.nullable(z.boolean()).optional(),
|
|
698
583
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
699
|
-
categories: z.array(z.lazy(() => Categories$inboundSchema)).optional(),
|
|
700
584
|
parent_account: z.lazy(() => ParentAccount$inboundSchema).optional(),
|
|
701
585
|
sub_account: z.nullable(z.boolean()).optional(),
|
|
702
|
-
sub_accounts: z.array(z.lazy(() => SubAccounts$inboundSchema)).optional(),
|
|
703
586
|
last_reconciliation_date: z.nullable(
|
|
704
587
|
z.string().transform(v => new RFCDate(v)),
|
|
705
588
|
).optional(),
|
|
706
589
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
|
|
707
590
|
.optional(),
|
|
708
|
-
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
709
591
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
710
592
|
row_version: z.nullable(z.string()).optional(),
|
|
711
|
-
updated_by: z.nullable(z.string()).optional(),
|
|
712
|
-
created_by: z.nullable(z.string()).optional(),
|
|
713
|
-
updated_at: z.nullable(
|
|
714
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
715
|
-
).optional(),
|
|
716
|
-
created_at: z.nullable(
|
|
717
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
718
|
-
).optional(),
|
|
719
593
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
720
594
|
}).transform((v) => {
|
|
721
595
|
return remap$(v, {
|
|
@@ -730,22 +604,15 @@ export const LedgerAccount$inboundSchema: z.ZodType<
|
|
|
730
604
|
"bank_account": "bankAccount",
|
|
731
605
|
"parent_account": "parentAccount",
|
|
732
606
|
"sub_account": "subAccount",
|
|
733
|
-
"sub_accounts": "subAccounts",
|
|
734
607
|
"last_reconciliation_date": "lastReconciliationDate",
|
|
735
|
-
"custom_mappings": "customMappings",
|
|
736
608
|
"custom_fields": "customFields",
|
|
737
609
|
"row_version": "rowVersion",
|
|
738
|
-
"updated_by": "updatedBy",
|
|
739
|
-
"created_by": "createdBy",
|
|
740
|
-
"updated_at": "updatedAt",
|
|
741
|
-
"created_at": "createdAt",
|
|
742
610
|
"pass_through": "passThrough",
|
|
743
611
|
});
|
|
744
612
|
});
|
|
745
613
|
|
|
746
614
|
/** @internal */
|
|
747
|
-
export type
|
|
748
|
-
id?: string | undefined;
|
|
615
|
+
export type LedgerAccountInput$Outbound = {
|
|
749
616
|
display_id?: string | undefined;
|
|
750
617
|
nominal_code?: string | null | undefined;
|
|
751
618
|
code?: string | null | undefined;
|
|
@@ -759,35 +626,27 @@ export type LedgerAccount$Outbound = {
|
|
|
759
626
|
current_balance?: number | null | undefined;
|
|
760
627
|
currency?: string | null | undefined;
|
|
761
628
|
tax_type?: string | null | undefined;
|
|
762
|
-
tax_rate?:
|
|
629
|
+
tax_rate?: LinkedTaxRateInput$Outbound | undefined;
|
|
763
630
|
level?: number | null | undefined;
|
|
764
631
|
active?: boolean | null | undefined;
|
|
765
632
|
status?: string | null | undefined;
|
|
766
633
|
header?: boolean | null | undefined;
|
|
767
634
|
bank_account?: BankAccount$Outbound | undefined;
|
|
768
|
-
categories?: Array<Categories$Outbound> | undefined;
|
|
769
635
|
parent_account?: ParentAccount$Outbound | undefined;
|
|
770
636
|
sub_account?: boolean | null | undefined;
|
|
771
|
-
sub_accounts?: Array<SubAccounts$Outbound> | undefined;
|
|
772
637
|
last_reconciliation_date?: string | null | undefined;
|
|
773
638
|
subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
|
|
774
|
-
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
775
639
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
776
640
|
row_version?: string | null | undefined;
|
|
777
|
-
updated_by?: string | null | undefined;
|
|
778
|
-
created_by?: string | null | undefined;
|
|
779
|
-
updated_at?: string | null | undefined;
|
|
780
|
-
created_at?: string | null | undefined;
|
|
781
641
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
782
642
|
};
|
|
783
643
|
|
|
784
644
|
/** @internal */
|
|
785
|
-
export const
|
|
786
|
-
|
|
645
|
+
export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
646
|
+
LedgerAccountInput$Outbound,
|
|
787
647
|
z.ZodTypeDef,
|
|
788
|
-
|
|
648
|
+
LedgerAccountInput
|
|
789
649
|
> = z.object({
|
|
790
|
-
id: z.string().optional(),
|
|
791
650
|
displayId: z.string().optional(),
|
|
792
651
|
nominalCode: z.nullable(z.string()).optional(),
|
|
793
652
|
code: z.nullable(z.string()).optional(),
|
|
@@ -801,28 +660,21 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
801
660
|
currentBalance: z.nullable(z.number()).optional(),
|
|
802
661
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
803
662
|
taxType: z.nullable(z.string()).optional(),
|
|
804
|
-
taxRate:
|
|
663
|
+
taxRate: LinkedTaxRateInput$outboundSchema.optional(),
|
|
805
664
|
level: z.nullable(z.number()).optional(),
|
|
806
665
|
active: z.nullable(z.boolean()).optional(),
|
|
807
666
|
status: z.nullable(AccountStatus$outboundSchema).optional(),
|
|
808
667
|
header: z.nullable(z.boolean()).optional(),
|
|
809
668
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
810
|
-
categories: z.array(z.lazy(() => Categories$outboundSchema)).optional(),
|
|
811
669
|
parentAccount: z.lazy(() => ParentAccount$outboundSchema).optional(),
|
|
812
670
|
subAccount: z.nullable(z.boolean()).optional(),
|
|
813
|
-
subAccounts: z.array(z.lazy(() => SubAccounts$outboundSchema)).optional(),
|
|
814
671
|
lastReconciliationDate: z.nullable(
|
|
815
672
|
z.instanceof(RFCDate).transform(v => v.toString()),
|
|
816
673
|
).optional(),
|
|
817
674
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
|
|
818
675
|
.optional(),
|
|
819
|
-
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
820
676
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
821
677
|
rowVersion: z.nullable(z.string()).optional(),
|
|
822
|
-
updatedBy: z.nullable(z.string()).optional(),
|
|
823
|
-
createdBy: z.nullable(z.string()).optional(),
|
|
824
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
825
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
826
678
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
827
679
|
}).transform((v) => {
|
|
828
680
|
return remap$(v, {
|
|
@@ -837,15 +689,9 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
837
689
|
bankAccount: "bank_account",
|
|
838
690
|
parentAccount: "parent_account",
|
|
839
691
|
subAccount: "sub_account",
|
|
840
|
-
subAccounts: "sub_accounts",
|
|
841
692
|
lastReconciliationDate: "last_reconciliation_date",
|
|
842
|
-
customMappings: "custom_mappings",
|
|
843
693
|
customFields: "custom_fields",
|
|
844
694
|
rowVersion: "row_version",
|
|
845
|
-
updatedBy: "updated_by",
|
|
846
|
-
createdBy: "created_by",
|
|
847
|
-
updatedAt: "updated_at",
|
|
848
|
-
createdAt: "created_at",
|
|
849
695
|
passThrough: "pass_through",
|
|
850
696
|
});
|
|
851
697
|
});
|
|
@@ -854,35 +700,154 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
854
700
|
* @internal
|
|
855
701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
856
702
|
*/
|
|
857
|
-
export namespace
|
|
858
|
-
/** @deprecated use `
|
|
859
|
-
export const inboundSchema =
|
|
860
|
-
/** @deprecated use `
|
|
861
|
-
export const outboundSchema =
|
|
862
|
-
/** @deprecated use `
|
|
863
|
-
export type Outbound =
|
|
703
|
+
export namespace LedgerAccountInput$ {
|
|
704
|
+
/** @deprecated use `LedgerAccountInput$inboundSchema` instead. */
|
|
705
|
+
export const inboundSchema = LedgerAccountInput$inboundSchema;
|
|
706
|
+
/** @deprecated use `LedgerAccountInput$outboundSchema` instead. */
|
|
707
|
+
export const outboundSchema = LedgerAccountInput$outboundSchema;
|
|
708
|
+
/** @deprecated use `LedgerAccountInput$Outbound` instead. */
|
|
709
|
+
export type Outbound = LedgerAccountInput$Outbound;
|
|
864
710
|
}
|
|
865
711
|
|
|
866
|
-
export function
|
|
867
|
-
|
|
712
|
+
export function ledgerAccountInputToJSON(
|
|
713
|
+
ledgerAccountInput: LedgerAccountInput,
|
|
714
|
+
): string {
|
|
715
|
+
return JSON.stringify(
|
|
716
|
+
LedgerAccountInput$outboundSchema.parse(ledgerAccountInput),
|
|
717
|
+
);
|
|
868
718
|
}
|
|
869
719
|
|
|
870
|
-
export function
|
|
720
|
+
export function ledgerAccountInputFromJSON(
|
|
871
721
|
jsonString: string,
|
|
872
|
-
): SafeParseResult<
|
|
722
|
+
): SafeParseResult<LedgerAccountInput, SDKValidationError> {
|
|
873
723
|
return safeParse(
|
|
874
724
|
jsonString,
|
|
875
|
-
(x) =>
|
|
876
|
-
`Failed to parse '
|
|
725
|
+
(x) => LedgerAccountInput$inboundSchema.parse(JSON.parse(x)),
|
|
726
|
+
`Failed to parse 'LedgerAccountInput' from JSON`,
|
|
877
727
|
);
|
|
878
728
|
}
|
|
879
729
|
|
|
880
730
|
/** @internal */
|
|
881
|
-
export const
|
|
882
|
-
|
|
731
|
+
export const Categories$inboundSchema: z.ZodType<
|
|
732
|
+
Categories,
|
|
883
733
|
z.ZodTypeDef,
|
|
884
734
|
unknown
|
|
885
735
|
> = z.object({
|
|
736
|
+
id: z.string().optional(),
|
|
737
|
+
name: z.string().optional(),
|
|
738
|
+
});
|
|
739
|
+
|
|
740
|
+
/** @internal */
|
|
741
|
+
export type Categories$Outbound = {
|
|
742
|
+
id?: string | undefined;
|
|
743
|
+
name?: string | undefined;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
/** @internal */
|
|
747
|
+
export const Categories$outboundSchema: z.ZodType<
|
|
748
|
+
Categories$Outbound,
|
|
749
|
+
z.ZodTypeDef,
|
|
750
|
+
Categories
|
|
751
|
+
> = z.object({
|
|
752
|
+
id: z.string().optional(),
|
|
753
|
+
name: z.string().optional(),
|
|
754
|
+
});
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* @internal
|
|
758
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
759
|
+
*/
|
|
760
|
+
export namespace Categories$ {
|
|
761
|
+
/** @deprecated use `Categories$inboundSchema` instead. */
|
|
762
|
+
export const inboundSchema = Categories$inboundSchema;
|
|
763
|
+
/** @deprecated use `Categories$outboundSchema` instead. */
|
|
764
|
+
export const outboundSchema = Categories$outboundSchema;
|
|
765
|
+
/** @deprecated use `Categories$Outbound` instead. */
|
|
766
|
+
export type Outbound = Categories$Outbound;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export function categoriesToJSON(categories: Categories): string {
|
|
770
|
+
return JSON.stringify(Categories$outboundSchema.parse(categories));
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export function categoriesFromJSON(
|
|
774
|
+
jsonString: string,
|
|
775
|
+
): SafeParseResult<Categories, SDKValidationError> {
|
|
776
|
+
return safeParse(
|
|
777
|
+
jsonString,
|
|
778
|
+
(x) => Categories$inboundSchema.parse(JSON.parse(x)),
|
|
779
|
+
`Failed to parse 'Categories' from JSON`,
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/** @internal */
|
|
784
|
+
export const SubAccounts$inboundSchema: z.ZodType<
|
|
785
|
+
SubAccounts,
|
|
786
|
+
z.ZodTypeDef,
|
|
787
|
+
unknown
|
|
788
|
+
> = z.object({
|
|
789
|
+
id: z.string().optional(),
|
|
790
|
+
account_sub_name: z.string().optional(),
|
|
791
|
+
}).transform((v) => {
|
|
792
|
+
return remap$(v, {
|
|
793
|
+
"account_sub_name": "accountSubName",
|
|
794
|
+
});
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
/** @internal */
|
|
798
|
+
export type SubAccounts$Outbound = {
|
|
799
|
+
id?: string | undefined;
|
|
800
|
+
account_sub_name?: string | undefined;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/** @internal */
|
|
804
|
+
export const SubAccounts$outboundSchema: z.ZodType<
|
|
805
|
+
SubAccounts$Outbound,
|
|
806
|
+
z.ZodTypeDef,
|
|
807
|
+
SubAccounts
|
|
808
|
+
> = z.object({
|
|
809
|
+
id: z.string().optional(),
|
|
810
|
+
accountSubName: z.string().optional(),
|
|
811
|
+
}).transform((v) => {
|
|
812
|
+
return remap$(v, {
|
|
813
|
+
accountSubName: "account_sub_name",
|
|
814
|
+
});
|
|
815
|
+
});
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* @internal
|
|
819
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
820
|
+
*/
|
|
821
|
+
export namespace SubAccounts$ {
|
|
822
|
+
/** @deprecated use `SubAccounts$inboundSchema` instead. */
|
|
823
|
+
export const inboundSchema = SubAccounts$inboundSchema;
|
|
824
|
+
/** @deprecated use `SubAccounts$outboundSchema` instead. */
|
|
825
|
+
export const outboundSchema = SubAccounts$outboundSchema;
|
|
826
|
+
/** @deprecated use `SubAccounts$Outbound` instead. */
|
|
827
|
+
export type Outbound = SubAccounts$Outbound;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export function subAccountsToJSON(subAccounts: SubAccounts): string {
|
|
831
|
+
return JSON.stringify(SubAccounts$outboundSchema.parse(subAccounts));
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export function subAccountsFromJSON(
|
|
835
|
+
jsonString: string,
|
|
836
|
+
): SafeParseResult<SubAccounts, SDKValidationError> {
|
|
837
|
+
return safeParse(
|
|
838
|
+
jsonString,
|
|
839
|
+
(x) => SubAccounts$inboundSchema.parse(JSON.parse(x)),
|
|
840
|
+
`Failed to parse 'SubAccounts' from JSON`,
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/** @internal */
|
|
845
|
+
export const LedgerAccount$inboundSchema: z.ZodType<
|
|
846
|
+
LedgerAccount,
|
|
847
|
+
z.ZodTypeDef,
|
|
848
|
+
unknown
|
|
849
|
+
> = z.object({
|
|
850
|
+
id: z.string().optional(),
|
|
886
851
|
display_id: z.string().optional(),
|
|
887
852
|
nominal_code: z.nullable(z.string()).optional(),
|
|
888
853
|
code: z.nullable(z.string()).optional(),
|
|
@@ -896,21 +861,32 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
|
896
861
|
current_balance: z.nullable(z.number()).optional(),
|
|
897
862
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
898
863
|
tax_type: z.nullable(z.string()).optional(),
|
|
899
|
-
tax_rate:
|
|
864
|
+
tax_rate: LinkedTaxRate$inboundSchema.optional(),
|
|
900
865
|
level: z.nullable(z.number()).optional(),
|
|
901
866
|
active: z.nullable(z.boolean()).optional(),
|
|
902
867
|
status: z.nullable(AccountStatus$inboundSchema).optional(),
|
|
903
868
|
header: z.nullable(z.boolean()).optional(),
|
|
904
869
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
870
|
+
categories: z.array(z.lazy(() => Categories$inboundSchema)).optional(),
|
|
905
871
|
parent_account: z.lazy(() => ParentAccount$inboundSchema).optional(),
|
|
906
872
|
sub_account: z.nullable(z.boolean()).optional(),
|
|
873
|
+
sub_accounts: z.array(z.lazy(() => SubAccounts$inboundSchema)).optional(),
|
|
907
874
|
last_reconciliation_date: z.nullable(
|
|
908
875
|
z.string().transform(v => new RFCDate(v)),
|
|
909
876
|
).optional(),
|
|
910
877
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
|
|
911
878
|
.optional(),
|
|
879
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
912
880
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
913
881
|
row_version: z.nullable(z.string()).optional(),
|
|
882
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
883
|
+
created_by: z.nullable(z.string()).optional(),
|
|
884
|
+
updated_at: z.nullable(
|
|
885
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
886
|
+
).optional(),
|
|
887
|
+
created_at: z.nullable(
|
|
888
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
889
|
+
).optional(),
|
|
914
890
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
915
891
|
}).transform((v) => {
|
|
916
892
|
return remap$(v, {
|
|
@@ -925,15 +901,22 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
|
925
901
|
"bank_account": "bankAccount",
|
|
926
902
|
"parent_account": "parentAccount",
|
|
927
903
|
"sub_account": "subAccount",
|
|
904
|
+
"sub_accounts": "subAccounts",
|
|
928
905
|
"last_reconciliation_date": "lastReconciliationDate",
|
|
906
|
+
"custom_mappings": "customMappings",
|
|
929
907
|
"custom_fields": "customFields",
|
|
930
908
|
"row_version": "rowVersion",
|
|
909
|
+
"updated_by": "updatedBy",
|
|
910
|
+
"created_by": "createdBy",
|
|
911
|
+
"updated_at": "updatedAt",
|
|
912
|
+
"created_at": "createdAt",
|
|
931
913
|
"pass_through": "passThrough",
|
|
932
914
|
});
|
|
933
915
|
});
|
|
934
916
|
|
|
935
917
|
/** @internal */
|
|
936
|
-
export type
|
|
918
|
+
export type LedgerAccount$Outbound = {
|
|
919
|
+
id?: string | undefined;
|
|
937
920
|
display_id?: string | undefined;
|
|
938
921
|
nominal_code?: string | null | undefined;
|
|
939
922
|
code?: string | null | undefined;
|
|
@@ -947,27 +930,35 @@ export type LedgerAccountInput$Outbound = {
|
|
|
947
930
|
current_balance?: number | null | undefined;
|
|
948
931
|
currency?: string | null | undefined;
|
|
949
932
|
tax_type?: string | null | undefined;
|
|
950
|
-
tax_rate?:
|
|
933
|
+
tax_rate?: LinkedTaxRate$Outbound | undefined;
|
|
951
934
|
level?: number | null | undefined;
|
|
952
935
|
active?: boolean | null | undefined;
|
|
953
936
|
status?: string | null | undefined;
|
|
954
937
|
header?: boolean | null | undefined;
|
|
955
938
|
bank_account?: BankAccount$Outbound | undefined;
|
|
939
|
+
categories?: Array<Categories$Outbound> | undefined;
|
|
956
940
|
parent_account?: ParentAccount$Outbound | undefined;
|
|
957
941
|
sub_account?: boolean | null | undefined;
|
|
942
|
+
sub_accounts?: Array<SubAccounts$Outbound> | undefined;
|
|
958
943
|
last_reconciliation_date?: string | null | undefined;
|
|
959
944
|
subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
|
|
945
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
960
946
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
961
947
|
row_version?: string | null | undefined;
|
|
948
|
+
updated_by?: string | null | undefined;
|
|
949
|
+
created_by?: string | null | undefined;
|
|
950
|
+
updated_at?: string | null | undefined;
|
|
951
|
+
created_at?: string | null | undefined;
|
|
962
952
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
963
953
|
};
|
|
964
954
|
|
|
965
955
|
/** @internal */
|
|
966
|
-
export const
|
|
967
|
-
|
|
956
|
+
export const LedgerAccount$outboundSchema: z.ZodType<
|
|
957
|
+
LedgerAccount$Outbound,
|
|
968
958
|
z.ZodTypeDef,
|
|
969
|
-
|
|
959
|
+
LedgerAccount
|
|
970
960
|
> = z.object({
|
|
961
|
+
id: z.string().optional(),
|
|
971
962
|
displayId: z.string().optional(),
|
|
972
963
|
nominalCode: z.nullable(z.string()).optional(),
|
|
973
964
|
code: z.nullable(z.string()).optional(),
|
|
@@ -981,21 +972,28 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
981
972
|
currentBalance: z.nullable(z.number()).optional(),
|
|
982
973
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
983
974
|
taxType: z.nullable(z.string()).optional(),
|
|
984
|
-
taxRate:
|
|
975
|
+
taxRate: LinkedTaxRate$outboundSchema.optional(),
|
|
985
976
|
level: z.nullable(z.number()).optional(),
|
|
986
977
|
active: z.nullable(z.boolean()).optional(),
|
|
987
978
|
status: z.nullable(AccountStatus$outboundSchema).optional(),
|
|
988
979
|
header: z.nullable(z.boolean()).optional(),
|
|
989
980
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
981
|
+
categories: z.array(z.lazy(() => Categories$outboundSchema)).optional(),
|
|
990
982
|
parentAccount: z.lazy(() => ParentAccount$outboundSchema).optional(),
|
|
991
983
|
subAccount: z.nullable(z.boolean()).optional(),
|
|
984
|
+
subAccounts: z.array(z.lazy(() => SubAccounts$outboundSchema)).optional(),
|
|
992
985
|
lastReconciliationDate: z.nullable(
|
|
993
986
|
z.instanceof(RFCDate).transform(v => v.toString()),
|
|
994
987
|
).optional(),
|
|
995
988
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
|
|
996
989
|
.optional(),
|
|
990
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
997
991
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
998
992
|
rowVersion: z.nullable(z.string()).optional(),
|
|
993
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
994
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
995
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
996
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
999
997
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
1000
998
|
}).transform((v) => {
|
|
1001
999
|
return remap$(v, {
|
|
@@ -1010,9 +1008,15 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
1010
1008
|
bankAccount: "bank_account",
|
|
1011
1009
|
parentAccount: "parent_account",
|
|
1012
1010
|
subAccount: "sub_account",
|
|
1011
|
+
subAccounts: "sub_accounts",
|
|
1013
1012
|
lastReconciliationDate: "last_reconciliation_date",
|
|
1013
|
+
customMappings: "custom_mappings",
|
|
1014
1014
|
customFields: "custom_fields",
|
|
1015
1015
|
rowVersion: "row_version",
|
|
1016
|
+
updatedBy: "updated_by",
|
|
1017
|
+
createdBy: "created_by",
|
|
1018
|
+
updatedAt: "updated_at",
|
|
1019
|
+
createdAt: "created_at",
|
|
1016
1020
|
passThrough: "pass_through",
|
|
1017
1021
|
});
|
|
1018
1022
|
});
|
|
@@ -1021,29 +1025,25 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
1021
1025
|
* @internal
|
|
1022
1026
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1023
1027
|
*/
|
|
1024
|
-
export namespace
|
|
1025
|
-
/** @deprecated use `
|
|
1026
|
-
export const inboundSchema =
|
|
1027
|
-
/** @deprecated use `
|
|
1028
|
-
export const outboundSchema =
|
|
1029
|
-
/** @deprecated use `
|
|
1030
|
-
export type Outbound =
|
|
1028
|
+
export namespace LedgerAccount$ {
|
|
1029
|
+
/** @deprecated use `LedgerAccount$inboundSchema` instead. */
|
|
1030
|
+
export const inboundSchema = LedgerAccount$inboundSchema;
|
|
1031
|
+
/** @deprecated use `LedgerAccount$outboundSchema` instead. */
|
|
1032
|
+
export const outboundSchema = LedgerAccount$outboundSchema;
|
|
1033
|
+
/** @deprecated use `LedgerAccount$Outbound` instead. */
|
|
1034
|
+
export type Outbound = LedgerAccount$Outbound;
|
|
1031
1035
|
}
|
|
1032
1036
|
|
|
1033
|
-
export function
|
|
1034
|
-
|
|
1035
|
-
): string {
|
|
1036
|
-
return JSON.stringify(
|
|
1037
|
-
LedgerAccountInput$outboundSchema.parse(ledgerAccountInput),
|
|
1038
|
-
);
|
|
1037
|
+
export function ledgerAccountToJSON(ledgerAccount: LedgerAccount): string {
|
|
1038
|
+
return JSON.stringify(LedgerAccount$outboundSchema.parse(ledgerAccount));
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
|
-
export function
|
|
1041
|
+
export function ledgerAccountFromJSON(
|
|
1042
1042
|
jsonString: string,
|
|
1043
|
-
): SafeParseResult<
|
|
1043
|
+
): SafeParseResult<LedgerAccount, SDKValidationError> {
|
|
1044
1044
|
return safeParse(
|
|
1045
1045
|
jsonString,
|
|
1046
|
-
(x) =>
|
|
1047
|
-
`Failed to parse '
|
|
1046
|
+
(x) => LedgerAccount$inboundSchema.parse(JSON.parse(x)),
|
|
1047
|
+
`Failed to parse 'LedgerAccount' from JSON`,
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|