@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
|
@@ -100,7 +100,7 @@ export type BillPaymentAllocationType = ClosedEnum<
|
|
|
100
100
|
typeof BillPaymentAllocationType
|
|
101
101
|
>;
|
|
102
102
|
|
|
103
|
-
export type
|
|
103
|
+
export type BillPaymentAllocations = {
|
|
104
104
|
/**
|
|
105
105
|
* A unique identifier for an object.
|
|
106
106
|
*/
|
|
@@ -109,7 +109,6 @@ export type Allocations = {
|
|
|
109
109
|
* Type of entity this payment should be attributed to.
|
|
110
110
|
*/
|
|
111
111
|
type?: BillPaymentAllocationType | undefined;
|
|
112
|
-
code?: string | undefined;
|
|
113
112
|
/**
|
|
114
113
|
* Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
|
|
115
114
|
*/
|
|
@@ -120,15 +119,7 @@ export type Allocations = {
|
|
|
120
119
|
allocationId?: string | undefined;
|
|
121
120
|
};
|
|
122
121
|
|
|
123
|
-
export type
|
|
124
|
-
/**
|
|
125
|
-
* A unique identifier for an object.
|
|
126
|
-
*/
|
|
127
|
-
id: string;
|
|
128
|
-
/**
|
|
129
|
-
* The third-party API ID of original entity
|
|
130
|
-
*/
|
|
131
|
-
downstreamId?: string | null | undefined;
|
|
122
|
+
export type BillPaymentInput = {
|
|
132
123
|
/**
|
|
133
124
|
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
134
125
|
*/
|
|
@@ -157,7 +148,7 @@ export type BillPayment = {
|
|
|
157
148
|
* A unique identifier for an object.
|
|
158
149
|
*/
|
|
159
150
|
paymentMethodId?: string | null | undefined;
|
|
160
|
-
account?:
|
|
151
|
+
account?: LinkedLedgerAccountInput | null | undefined;
|
|
161
152
|
/**
|
|
162
153
|
* The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD
|
|
163
154
|
*/
|
|
@@ -165,7 +156,7 @@ export type BillPayment = {
|
|
|
165
156
|
/**
|
|
166
157
|
* The supplier this entity is linked to.
|
|
167
158
|
*/
|
|
168
|
-
supplier?:
|
|
159
|
+
supplier?: LinkedSupplierInput | null | undefined;
|
|
169
160
|
/**
|
|
170
161
|
* The company or subsidiary id the transaction belongs to
|
|
171
162
|
*/
|
|
@@ -182,7 +173,7 @@ export type BillPayment = {
|
|
|
182
173
|
* Type of payment
|
|
183
174
|
*/
|
|
184
175
|
type?: BillPaymentType | undefined;
|
|
185
|
-
allocations?: Array<
|
|
176
|
+
allocations?: Array<BillPaymentAllocations> | undefined;
|
|
186
177
|
/**
|
|
187
178
|
* Note associated with the transaction
|
|
188
179
|
*/
|
|
@@ -204,33 +195,13 @@ export type BillPayment = {
|
|
|
204
195
|
* Id to be displayed.
|
|
205
196
|
*/
|
|
206
197
|
displayId?: string | null | undefined;
|
|
207
|
-
/**
|
|
208
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
209
|
-
*/
|
|
210
|
-
customMappings?: CustomMappings | null | undefined;
|
|
211
|
-
/**
|
|
212
|
-
* The user who last updated the object.
|
|
213
|
-
*/
|
|
214
|
-
updatedBy?: string | null | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* The user who created the object.
|
|
217
|
-
*/
|
|
218
|
-
createdBy?: string | null | undefined;
|
|
219
|
-
/**
|
|
220
|
-
* The date and time when the object was created.
|
|
221
|
-
*/
|
|
222
|
-
createdAt?: Date | null | undefined;
|
|
223
|
-
/**
|
|
224
|
-
* The date and time when the object was last updated.
|
|
225
|
-
*/
|
|
226
|
-
updatedAt?: Date | null | undefined;
|
|
227
198
|
/**
|
|
228
199
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
229
200
|
*/
|
|
230
201
|
passThrough?: Array<PassThroughBody> | undefined;
|
|
231
202
|
};
|
|
232
203
|
|
|
233
|
-
export type
|
|
204
|
+
export type Allocations = {
|
|
234
205
|
/**
|
|
235
206
|
* A unique identifier for an object.
|
|
236
207
|
*/
|
|
@@ -239,6 +210,7 @@ export type BillPaymentAllocations = {
|
|
|
239
210
|
* Type of entity this payment should be attributed to.
|
|
240
211
|
*/
|
|
241
212
|
type?: BillPaymentAllocationType | undefined;
|
|
213
|
+
code?: string | undefined;
|
|
242
214
|
/**
|
|
243
215
|
* Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
|
|
244
216
|
*/
|
|
@@ -249,7 +221,15 @@ export type BillPaymentAllocations = {
|
|
|
249
221
|
allocationId?: string | undefined;
|
|
250
222
|
};
|
|
251
223
|
|
|
252
|
-
export type
|
|
224
|
+
export type BillPayment = {
|
|
225
|
+
/**
|
|
226
|
+
* A unique identifier for an object.
|
|
227
|
+
*/
|
|
228
|
+
id: string;
|
|
229
|
+
/**
|
|
230
|
+
* The third-party API ID of original entity
|
|
231
|
+
*/
|
|
232
|
+
downstreamId?: string | null | undefined;
|
|
253
233
|
/**
|
|
254
234
|
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
255
235
|
*/
|
|
@@ -278,7 +258,7 @@ export type BillPaymentInput = {
|
|
|
278
258
|
* A unique identifier for an object.
|
|
279
259
|
*/
|
|
280
260
|
paymentMethodId?: string | null | undefined;
|
|
281
|
-
account?:
|
|
261
|
+
account?: LinkedLedgerAccount | null | undefined;
|
|
282
262
|
/**
|
|
283
263
|
* The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD
|
|
284
264
|
*/
|
|
@@ -286,7 +266,7 @@ export type BillPaymentInput = {
|
|
|
286
266
|
/**
|
|
287
267
|
* The supplier this entity is linked to.
|
|
288
268
|
*/
|
|
289
|
-
supplier?:
|
|
269
|
+
supplier?: LinkedSupplier | null | undefined;
|
|
290
270
|
/**
|
|
291
271
|
* The company or subsidiary id the transaction belongs to
|
|
292
272
|
*/
|
|
@@ -303,7 +283,7 @@ export type BillPaymentInput = {
|
|
|
303
283
|
* Type of payment
|
|
304
284
|
*/
|
|
305
285
|
type?: BillPaymentType | undefined;
|
|
306
|
-
allocations?: Array<
|
|
286
|
+
allocations?: Array<Allocations> | undefined;
|
|
307
287
|
/**
|
|
308
288
|
* Note associated with the transaction
|
|
309
289
|
*/
|
|
@@ -325,6 +305,26 @@ export type BillPaymentInput = {
|
|
|
325
305
|
* Id to be displayed.
|
|
326
306
|
*/
|
|
327
307
|
displayId?: string | null | undefined;
|
|
308
|
+
/**
|
|
309
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
310
|
+
*/
|
|
311
|
+
customMappings?: CustomMappings | null | undefined;
|
|
312
|
+
/**
|
|
313
|
+
* The user who last updated the object.
|
|
314
|
+
*/
|
|
315
|
+
updatedBy?: string | null | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* The user who created the object.
|
|
318
|
+
*/
|
|
319
|
+
createdBy?: string | null | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* The date and time when the object was created.
|
|
322
|
+
*/
|
|
323
|
+
createdAt?: Date | null | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* The date and time when the object was last updated.
|
|
326
|
+
*/
|
|
327
|
+
updatedAt?: Date | null | undefined;
|
|
328
328
|
/**
|
|
329
329
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
330
330
|
*/
|
|
@@ -374,14 +374,13 @@ export namespace BillPaymentAllocationType$ {
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/** @internal */
|
|
377
|
-
export const
|
|
378
|
-
|
|
377
|
+
export const BillPaymentAllocations$inboundSchema: z.ZodType<
|
|
378
|
+
BillPaymentAllocations,
|
|
379
379
|
z.ZodTypeDef,
|
|
380
380
|
unknown
|
|
381
381
|
> = z.object({
|
|
382
382
|
id: z.nullable(z.string()).optional(),
|
|
383
383
|
type: BillPaymentAllocationType$inboundSchema.optional(),
|
|
384
|
-
code: z.string().optional(),
|
|
385
384
|
amount: z.nullable(z.number()).optional(),
|
|
386
385
|
allocation_id: z.string().optional(),
|
|
387
386
|
}).transform((v) => {
|
|
@@ -391,23 +390,21 @@ export const Allocations$inboundSchema: z.ZodType<
|
|
|
391
390
|
});
|
|
392
391
|
|
|
393
392
|
/** @internal */
|
|
394
|
-
export type
|
|
393
|
+
export type BillPaymentAllocations$Outbound = {
|
|
395
394
|
id?: string | null | undefined;
|
|
396
395
|
type?: string | undefined;
|
|
397
|
-
code?: string | undefined;
|
|
398
396
|
amount?: number | null | undefined;
|
|
399
397
|
allocation_id?: string | undefined;
|
|
400
398
|
};
|
|
401
399
|
|
|
402
400
|
/** @internal */
|
|
403
|
-
export const
|
|
404
|
-
|
|
401
|
+
export const BillPaymentAllocations$outboundSchema: z.ZodType<
|
|
402
|
+
BillPaymentAllocations$Outbound,
|
|
405
403
|
z.ZodTypeDef,
|
|
406
|
-
|
|
404
|
+
BillPaymentAllocations
|
|
407
405
|
> = z.object({
|
|
408
406
|
id: z.nullable(z.string()).optional(),
|
|
409
407
|
type: BillPaymentAllocationType$outboundSchema.optional(),
|
|
410
|
-
code: z.string().optional(),
|
|
411
408
|
amount: z.nullable(z.number()).optional(),
|
|
412
409
|
allocationId: z.string().optional(),
|
|
413
410
|
}).transform((v) => {
|
|
@@ -420,37 +417,39 @@ export const Allocations$outboundSchema: z.ZodType<
|
|
|
420
417
|
* @internal
|
|
421
418
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
422
419
|
*/
|
|
423
|
-
export namespace
|
|
424
|
-
/** @deprecated use `
|
|
425
|
-
export const inboundSchema =
|
|
426
|
-
/** @deprecated use `
|
|
427
|
-
export const outboundSchema =
|
|
428
|
-
/** @deprecated use `
|
|
429
|
-
export type Outbound =
|
|
420
|
+
export namespace BillPaymentAllocations$ {
|
|
421
|
+
/** @deprecated use `BillPaymentAllocations$inboundSchema` instead. */
|
|
422
|
+
export const inboundSchema = BillPaymentAllocations$inboundSchema;
|
|
423
|
+
/** @deprecated use `BillPaymentAllocations$outboundSchema` instead. */
|
|
424
|
+
export const outboundSchema = BillPaymentAllocations$outboundSchema;
|
|
425
|
+
/** @deprecated use `BillPaymentAllocations$Outbound` instead. */
|
|
426
|
+
export type Outbound = BillPaymentAllocations$Outbound;
|
|
430
427
|
}
|
|
431
428
|
|
|
432
|
-
export function
|
|
433
|
-
|
|
429
|
+
export function billPaymentAllocationsToJSON(
|
|
430
|
+
billPaymentAllocations: BillPaymentAllocations,
|
|
431
|
+
): string {
|
|
432
|
+
return JSON.stringify(
|
|
433
|
+
BillPaymentAllocations$outboundSchema.parse(billPaymentAllocations),
|
|
434
|
+
);
|
|
434
435
|
}
|
|
435
436
|
|
|
436
|
-
export function
|
|
437
|
+
export function billPaymentAllocationsFromJSON(
|
|
437
438
|
jsonString: string,
|
|
438
|
-
): SafeParseResult<
|
|
439
|
+
): SafeParseResult<BillPaymentAllocations, SDKValidationError> {
|
|
439
440
|
return safeParse(
|
|
440
441
|
jsonString,
|
|
441
|
-
(x) =>
|
|
442
|
-
`Failed to parse '
|
|
442
|
+
(x) => BillPaymentAllocations$inboundSchema.parse(JSON.parse(x)),
|
|
443
|
+
`Failed to parse 'BillPaymentAllocations' from JSON`,
|
|
443
444
|
);
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
/** @internal */
|
|
447
|
-
export const
|
|
448
|
-
|
|
448
|
+
export const BillPaymentInput$inboundSchema: z.ZodType<
|
|
449
|
+
BillPaymentInput,
|
|
449
450
|
z.ZodTypeDef,
|
|
450
451
|
unknown
|
|
451
452
|
> = z.object({
|
|
452
|
-
id: z.string(),
|
|
453
|
-
downstream_id: z.nullable(z.string()).optional(),
|
|
454
453
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
455
454
|
currency_rate: z.nullable(z.number()).optional(),
|
|
456
455
|
total_amount: z.nullable(z.number()),
|
|
@@ -458,16 +457,17 @@ export const BillPayment$inboundSchema: z.ZodType<
|
|
|
458
457
|
payment_method: z.nullable(z.string()).optional(),
|
|
459
458
|
payment_method_reference: z.nullable(z.string()).optional(),
|
|
460
459
|
payment_method_id: z.nullable(z.string()).optional(),
|
|
461
|
-
account: z.nullable(
|
|
460
|
+
account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
|
|
462
461
|
transaction_date: z.nullable(
|
|
463
462
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
464
463
|
),
|
|
465
|
-
supplier: z.nullable(
|
|
464
|
+
supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(),
|
|
466
465
|
company_id: z.nullable(z.string()).optional(),
|
|
467
466
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
468
467
|
status: PaymentStatus$inboundSchema.optional(),
|
|
469
468
|
type: BillPaymentType$inboundSchema.optional(),
|
|
470
|
-
allocations: z.array(z.lazy(() =>
|
|
469
|
+
allocations: z.array(z.lazy(() => BillPaymentAllocations$inboundSchema))
|
|
470
|
+
.optional(),
|
|
471
471
|
note: z.nullable(z.string()).optional(),
|
|
472
472
|
number: z.nullable(z.string()).optional(),
|
|
473
473
|
tracking_categories: z.nullable(
|
|
@@ -476,19 +476,9 @@ export const BillPayment$inboundSchema: z.ZodType<
|
|
|
476
476
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
477
477
|
row_version: z.nullable(z.string()).optional(),
|
|
478
478
|
display_id: z.nullable(z.string()).optional(),
|
|
479
|
-
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
480
|
-
updated_by: z.nullable(z.string()).optional(),
|
|
481
|
-
created_by: z.nullable(z.string()).optional(),
|
|
482
|
-
created_at: z.nullable(
|
|
483
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
484
|
-
).optional(),
|
|
485
|
-
updated_at: z.nullable(
|
|
486
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
487
|
-
).optional(),
|
|
488
479
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
489
480
|
}).transform((v) => {
|
|
490
481
|
return remap$(v, {
|
|
491
|
-
"downstream_id": "downstreamId",
|
|
492
482
|
"currency_rate": "currencyRate",
|
|
493
483
|
"total_amount": "totalAmount",
|
|
494
484
|
"payment_method": "paymentMethod",
|
|
@@ -500,19 +490,12 @@ export const BillPayment$inboundSchema: z.ZodType<
|
|
|
500
490
|
"custom_fields": "customFields",
|
|
501
491
|
"row_version": "rowVersion",
|
|
502
492
|
"display_id": "displayId",
|
|
503
|
-
"custom_mappings": "customMappings",
|
|
504
|
-
"updated_by": "updatedBy",
|
|
505
|
-
"created_by": "createdBy",
|
|
506
|
-
"created_at": "createdAt",
|
|
507
|
-
"updated_at": "updatedAt",
|
|
508
493
|
"pass_through": "passThrough",
|
|
509
494
|
});
|
|
510
495
|
});
|
|
511
496
|
|
|
512
497
|
/** @internal */
|
|
513
|
-
export type
|
|
514
|
-
id: string;
|
|
515
|
-
downstream_id?: string | null | undefined;
|
|
498
|
+
export type BillPaymentInput$Outbound = {
|
|
516
499
|
currency?: string | null | undefined;
|
|
517
500
|
currency_rate?: number | null | undefined;
|
|
518
501
|
total_amount: number | null;
|
|
@@ -520,14 +503,14 @@ export type BillPayment$Outbound = {
|
|
|
520
503
|
payment_method?: string | null | undefined;
|
|
521
504
|
payment_method_reference?: string | null | undefined;
|
|
522
505
|
payment_method_id?: string | null | undefined;
|
|
523
|
-
account?:
|
|
506
|
+
account?: LinkedLedgerAccountInput$Outbound | null | undefined;
|
|
524
507
|
transaction_date: string | null;
|
|
525
|
-
supplier?:
|
|
508
|
+
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
526
509
|
company_id?: string | null | undefined;
|
|
527
510
|
reconciled?: boolean | null | undefined;
|
|
528
511
|
status?: string | undefined;
|
|
529
512
|
type?: string | undefined;
|
|
530
|
-
allocations?: Array<
|
|
513
|
+
allocations?: Array<BillPaymentAllocations$Outbound> | undefined;
|
|
531
514
|
note?: string | null | undefined;
|
|
532
515
|
number?: string | null | undefined;
|
|
533
516
|
tracking_categories?:
|
|
@@ -537,22 +520,15 @@ export type BillPayment$Outbound = {
|
|
|
537
520
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
538
521
|
row_version?: string | null | undefined;
|
|
539
522
|
display_id?: string | null | undefined;
|
|
540
|
-
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
541
|
-
updated_by?: string | null | undefined;
|
|
542
|
-
created_by?: string | null | undefined;
|
|
543
|
-
created_at?: string | null | undefined;
|
|
544
|
-
updated_at?: string | null | undefined;
|
|
545
523
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
546
524
|
};
|
|
547
525
|
|
|
548
526
|
/** @internal */
|
|
549
|
-
export const
|
|
550
|
-
|
|
527
|
+
export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
528
|
+
BillPaymentInput$Outbound,
|
|
551
529
|
z.ZodTypeDef,
|
|
552
|
-
|
|
530
|
+
BillPaymentInput
|
|
553
531
|
> = z.object({
|
|
554
|
-
id: z.string(),
|
|
555
|
-
downstreamId: z.nullable(z.string()).optional(),
|
|
556
532
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
557
533
|
currencyRate: z.nullable(z.number()).optional(),
|
|
558
534
|
totalAmount: z.nullable(z.number()),
|
|
@@ -560,14 +536,15 @@ export const BillPayment$outboundSchema: z.ZodType<
|
|
|
560
536
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
561
537
|
paymentMethodReference: z.nullable(z.string()).optional(),
|
|
562
538
|
paymentMethodId: z.nullable(z.string()).optional(),
|
|
563
|
-
account: z.nullable(
|
|
539
|
+
account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
|
|
564
540
|
transactionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
565
|
-
supplier: z.nullable(
|
|
541
|
+
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
566
542
|
companyId: z.nullable(z.string()).optional(),
|
|
567
543
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
568
544
|
status: PaymentStatus$outboundSchema.optional(),
|
|
569
545
|
type: BillPaymentType$outboundSchema.optional(),
|
|
570
|
-
allocations: z.array(z.lazy(() =>
|
|
546
|
+
allocations: z.array(z.lazy(() => BillPaymentAllocations$outboundSchema))
|
|
547
|
+
.optional(),
|
|
571
548
|
note: z.nullable(z.string()).optional(),
|
|
572
549
|
number: z.nullable(z.string()).optional(),
|
|
573
550
|
trackingCategories: z.nullable(
|
|
@@ -576,15 +553,9 @@ export const BillPayment$outboundSchema: z.ZodType<
|
|
|
576
553
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
577
554
|
rowVersion: z.nullable(z.string()).optional(),
|
|
578
555
|
displayId: z.nullable(z.string()).optional(),
|
|
579
|
-
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
580
|
-
updatedBy: z.nullable(z.string()).optional(),
|
|
581
|
-
createdBy: z.nullable(z.string()).optional(),
|
|
582
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
583
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
584
556
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
585
557
|
}).transform((v) => {
|
|
586
558
|
return remap$(v, {
|
|
587
|
-
downstreamId: "downstream_id",
|
|
588
559
|
currencyRate: "currency_rate",
|
|
589
560
|
totalAmount: "total_amount",
|
|
590
561
|
paymentMethod: "payment_method",
|
|
@@ -596,11 +567,6 @@ export const BillPayment$outboundSchema: z.ZodType<
|
|
|
596
567
|
customFields: "custom_fields",
|
|
597
568
|
rowVersion: "row_version",
|
|
598
569
|
displayId: "display_id",
|
|
599
|
-
customMappings: "custom_mappings",
|
|
600
|
-
updatedBy: "updated_by",
|
|
601
|
-
createdBy: "created_by",
|
|
602
|
-
createdAt: "created_at",
|
|
603
|
-
updatedAt: "updated_at",
|
|
604
570
|
passThrough: "pass_through",
|
|
605
571
|
});
|
|
606
572
|
});
|
|
@@ -609,37 +575,42 @@ export const BillPayment$outboundSchema: z.ZodType<
|
|
|
609
575
|
* @internal
|
|
610
576
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
611
577
|
*/
|
|
612
|
-
export namespace
|
|
613
|
-
/** @deprecated use `
|
|
614
|
-
export const inboundSchema =
|
|
615
|
-
/** @deprecated use `
|
|
616
|
-
export const outboundSchema =
|
|
617
|
-
/** @deprecated use `
|
|
618
|
-
export type Outbound =
|
|
578
|
+
export namespace BillPaymentInput$ {
|
|
579
|
+
/** @deprecated use `BillPaymentInput$inboundSchema` instead. */
|
|
580
|
+
export const inboundSchema = BillPaymentInput$inboundSchema;
|
|
581
|
+
/** @deprecated use `BillPaymentInput$outboundSchema` instead. */
|
|
582
|
+
export const outboundSchema = BillPaymentInput$outboundSchema;
|
|
583
|
+
/** @deprecated use `BillPaymentInput$Outbound` instead. */
|
|
584
|
+
export type Outbound = BillPaymentInput$Outbound;
|
|
619
585
|
}
|
|
620
586
|
|
|
621
|
-
export function
|
|
622
|
-
|
|
587
|
+
export function billPaymentInputToJSON(
|
|
588
|
+
billPaymentInput: BillPaymentInput,
|
|
589
|
+
): string {
|
|
590
|
+
return JSON.stringify(
|
|
591
|
+
BillPaymentInput$outboundSchema.parse(billPaymentInput),
|
|
592
|
+
);
|
|
623
593
|
}
|
|
624
594
|
|
|
625
|
-
export function
|
|
595
|
+
export function billPaymentInputFromJSON(
|
|
626
596
|
jsonString: string,
|
|
627
|
-
): SafeParseResult<
|
|
597
|
+
): SafeParseResult<BillPaymentInput, SDKValidationError> {
|
|
628
598
|
return safeParse(
|
|
629
599
|
jsonString,
|
|
630
|
-
(x) =>
|
|
631
|
-
`Failed to parse '
|
|
600
|
+
(x) => BillPaymentInput$inboundSchema.parse(JSON.parse(x)),
|
|
601
|
+
`Failed to parse 'BillPaymentInput' from JSON`,
|
|
632
602
|
);
|
|
633
603
|
}
|
|
634
604
|
|
|
635
605
|
/** @internal */
|
|
636
|
-
export const
|
|
637
|
-
|
|
606
|
+
export const Allocations$inboundSchema: z.ZodType<
|
|
607
|
+
Allocations,
|
|
638
608
|
z.ZodTypeDef,
|
|
639
609
|
unknown
|
|
640
610
|
> = z.object({
|
|
641
611
|
id: z.nullable(z.string()).optional(),
|
|
642
612
|
type: BillPaymentAllocationType$inboundSchema.optional(),
|
|
613
|
+
code: z.string().optional(),
|
|
643
614
|
amount: z.nullable(z.number()).optional(),
|
|
644
615
|
allocation_id: z.string().optional(),
|
|
645
616
|
}).transform((v) => {
|
|
@@ -649,21 +620,23 @@ export const BillPaymentAllocations$inboundSchema: z.ZodType<
|
|
|
649
620
|
});
|
|
650
621
|
|
|
651
622
|
/** @internal */
|
|
652
|
-
export type
|
|
623
|
+
export type Allocations$Outbound = {
|
|
653
624
|
id?: string | null | undefined;
|
|
654
625
|
type?: string | undefined;
|
|
626
|
+
code?: string | undefined;
|
|
655
627
|
amount?: number | null | undefined;
|
|
656
628
|
allocation_id?: string | undefined;
|
|
657
629
|
};
|
|
658
630
|
|
|
659
631
|
/** @internal */
|
|
660
|
-
export const
|
|
661
|
-
|
|
632
|
+
export const Allocations$outboundSchema: z.ZodType<
|
|
633
|
+
Allocations$Outbound,
|
|
662
634
|
z.ZodTypeDef,
|
|
663
|
-
|
|
635
|
+
Allocations
|
|
664
636
|
> = z.object({
|
|
665
637
|
id: z.nullable(z.string()).optional(),
|
|
666
638
|
type: BillPaymentAllocationType$outboundSchema.optional(),
|
|
639
|
+
code: z.string().optional(),
|
|
667
640
|
amount: z.nullable(z.number()).optional(),
|
|
668
641
|
allocationId: z.string().optional(),
|
|
669
642
|
}).transform((v) => {
|
|
@@ -676,39 +649,37 @@ export const BillPaymentAllocations$outboundSchema: z.ZodType<
|
|
|
676
649
|
* @internal
|
|
677
650
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
678
651
|
*/
|
|
679
|
-
export namespace
|
|
680
|
-
/** @deprecated use `
|
|
681
|
-
export const inboundSchema =
|
|
682
|
-
/** @deprecated use `
|
|
683
|
-
export const outboundSchema =
|
|
684
|
-
/** @deprecated use `
|
|
685
|
-
export type Outbound =
|
|
652
|
+
export namespace Allocations$ {
|
|
653
|
+
/** @deprecated use `Allocations$inboundSchema` instead. */
|
|
654
|
+
export const inboundSchema = Allocations$inboundSchema;
|
|
655
|
+
/** @deprecated use `Allocations$outboundSchema` instead. */
|
|
656
|
+
export const outboundSchema = Allocations$outboundSchema;
|
|
657
|
+
/** @deprecated use `Allocations$Outbound` instead. */
|
|
658
|
+
export type Outbound = Allocations$Outbound;
|
|
686
659
|
}
|
|
687
660
|
|
|
688
|
-
export function
|
|
689
|
-
|
|
690
|
-
): string {
|
|
691
|
-
return JSON.stringify(
|
|
692
|
-
BillPaymentAllocations$outboundSchema.parse(billPaymentAllocations),
|
|
693
|
-
);
|
|
661
|
+
export function allocationsToJSON(allocations: Allocations): string {
|
|
662
|
+
return JSON.stringify(Allocations$outboundSchema.parse(allocations));
|
|
694
663
|
}
|
|
695
664
|
|
|
696
|
-
export function
|
|
665
|
+
export function allocationsFromJSON(
|
|
697
666
|
jsonString: string,
|
|
698
|
-
): SafeParseResult<
|
|
667
|
+
): SafeParseResult<Allocations, SDKValidationError> {
|
|
699
668
|
return safeParse(
|
|
700
669
|
jsonString,
|
|
701
|
-
(x) =>
|
|
702
|
-
`Failed to parse '
|
|
670
|
+
(x) => Allocations$inboundSchema.parse(JSON.parse(x)),
|
|
671
|
+
`Failed to parse 'Allocations' from JSON`,
|
|
703
672
|
);
|
|
704
673
|
}
|
|
705
674
|
|
|
706
675
|
/** @internal */
|
|
707
|
-
export const
|
|
708
|
-
|
|
676
|
+
export const BillPayment$inboundSchema: z.ZodType<
|
|
677
|
+
BillPayment,
|
|
709
678
|
z.ZodTypeDef,
|
|
710
679
|
unknown
|
|
711
680
|
> = z.object({
|
|
681
|
+
id: z.string(),
|
|
682
|
+
downstream_id: z.nullable(z.string()).optional(),
|
|
712
683
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
713
684
|
currency_rate: z.nullable(z.number()).optional(),
|
|
714
685
|
total_amount: z.nullable(z.number()),
|
|
@@ -716,17 +687,16 @@ export const BillPaymentInput$inboundSchema: z.ZodType<
|
|
|
716
687
|
payment_method: z.nullable(z.string()).optional(),
|
|
717
688
|
payment_method_reference: z.nullable(z.string()).optional(),
|
|
718
689
|
payment_method_id: z.nullable(z.string()).optional(),
|
|
719
|
-
account: z.nullable(
|
|
690
|
+
account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
|
|
720
691
|
transaction_date: z.nullable(
|
|
721
692
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
722
693
|
),
|
|
723
|
-
supplier: z.nullable(
|
|
694
|
+
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
724
695
|
company_id: z.nullable(z.string()).optional(),
|
|
725
696
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
726
697
|
status: PaymentStatus$inboundSchema.optional(),
|
|
727
698
|
type: BillPaymentType$inboundSchema.optional(),
|
|
728
|
-
allocations: z.array(z.lazy(() =>
|
|
729
|
-
.optional(),
|
|
699
|
+
allocations: z.array(z.lazy(() => Allocations$inboundSchema)).optional(),
|
|
730
700
|
note: z.nullable(z.string()).optional(),
|
|
731
701
|
number: z.nullable(z.string()).optional(),
|
|
732
702
|
tracking_categories: z.nullable(
|
|
@@ -735,9 +705,19 @@ export const BillPaymentInput$inboundSchema: z.ZodType<
|
|
|
735
705
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
736
706
|
row_version: z.nullable(z.string()).optional(),
|
|
737
707
|
display_id: z.nullable(z.string()).optional(),
|
|
708
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
709
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
710
|
+
created_by: z.nullable(z.string()).optional(),
|
|
711
|
+
created_at: z.nullable(
|
|
712
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
713
|
+
).optional(),
|
|
714
|
+
updated_at: z.nullable(
|
|
715
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
716
|
+
).optional(),
|
|
738
717
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
739
718
|
}).transform((v) => {
|
|
740
719
|
return remap$(v, {
|
|
720
|
+
"downstream_id": "downstreamId",
|
|
741
721
|
"currency_rate": "currencyRate",
|
|
742
722
|
"total_amount": "totalAmount",
|
|
743
723
|
"payment_method": "paymentMethod",
|
|
@@ -749,12 +729,19 @@ export const BillPaymentInput$inboundSchema: z.ZodType<
|
|
|
749
729
|
"custom_fields": "customFields",
|
|
750
730
|
"row_version": "rowVersion",
|
|
751
731
|
"display_id": "displayId",
|
|
732
|
+
"custom_mappings": "customMappings",
|
|
733
|
+
"updated_by": "updatedBy",
|
|
734
|
+
"created_by": "createdBy",
|
|
735
|
+
"created_at": "createdAt",
|
|
736
|
+
"updated_at": "updatedAt",
|
|
752
737
|
"pass_through": "passThrough",
|
|
753
738
|
});
|
|
754
739
|
});
|
|
755
740
|
|
|
756
741
|
/** @internal */
|
|
757
|
-
export type
|
|
742
|
+
export type BillPayment$Outbound = {
|
|
743
|
+
id: string;
|
|
744
|
+
downstream_id?: string | null | undefined;
|
|
758
745
|
currency?: string | null | undefined;
|
|
759
746
|
currency_rate?: number | null | undefined;
|
|
760
747
|
total_amount: number | null;
|
|
@@ -762,14 +749,14 @@ export type BillPaymentInput$Outbound = {
|
|
|
762
749
|
payment_method?: string | null | undefined;
|
|
763
750
|
payment_method_reference?: string | null | undefined;
|
|
764
751
|
payment_method_id?: string | null | undefined;
|
|
765
|
-
account?:
|
|
752
|
+
account?: LinkedLedgerAccount$Outbound | null | undefined;
|
|
766
753
|
transaction_date: string | null;
|
|
767
|
-
supplier?:
|
|
754
|
+
supplier?: LinkedSupplier$Outbound | null | undefined;
|
|
768
755
|
company_id?: string | null | undefined;
|
|
769
756
|
reconciled?: boolean | null | undefined;
|
|
770
757
|
status?: string | undefined;
|
|
771
758
|
type?: string | undefined;
|
|
772
|
-
allocations?: Array<
|
|
759
|
+
allocations?: Array<Allocations$Outbound> | undefined;
|
|
773
760
|
note?: string | null | undefined;
|
|
774
761
|
number?: string | null | undefined;
|
|
775
762
|
tracking_categories?:
|
|
@@ -779,15 +766,22 @@ export type BillPaymentInput$Outbound = {
|
|
|
779
766
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
780
767
|
row_version?: string | null | undefined;
|
|
781
768
|
display_id?: string | null | undefined;
|
|
769
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
770
|
+
updated_by?: string | null | undefined;
|
|
771
|
+
created_by?: string | null | undefined;
|
|
772
|
+
created_at?: string | null | undefined;
|
|
773
|
+
updated_at?: string | null | undefined;
|
|
782
774
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
783
775
|
};
|
|
784
776
|
|
|
785
777
|
/** @internal */
|
|
786
|
-
export const
|
|
787
|
-
|
|
778
|
+
export const BillPayment$outboundSchema: z.ZodType<
|
|
779
|
+
BillPayment$Outbound,
|
|
788
780
|
z.ZodTypeDef,
|
|
789
|
-
|
|
781
|
+
BillPayment
|
|
790
782
|
> = z.object({
|
|
783
|
+
id: z.string(),
|
|
784
|
+
downstreamId: z.nullable(z.string()).optional(),
|
|
791
785
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
792
786
|
currencyRate: z.nullable(z.number()).optional(),
|
|
793
787
|
totalAmount: z.nullable(z.number()),
|
|
@@ -795,15 +789,14 @@ export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
|
795
789
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
796
790
|
paymentMethodReference: z.nullable(z.string()).optional(),
|
|
797
791
|
paymentMethodId: z.nullable(z.string()).optional(),
|
|
798
|
-
account: z.nullable(
|
|
792
|
+
account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
|
|
799
793
|
transactionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
800
|
-
supplier: z.nullable(
|
|
794
|
+
supplier: z.nullable(LinkedSupplier$outboundSchema).optional(),
|
|
801
795
|
companyId: z.nullable(z.string()).optional(),
|
|
802
796
|
reconciled: z.nullable(z.boolean()).optional(),
|
|
803
797
|
status: PaymentStatus$outboundSchema.optional(),
|
|
804
798
|
type: BillPaymentType$outboundSchema.optional(),
|
|
805
|
-
allocations: z.array(z.lazy(() =>
|
|
806
|
-
.optional(),
|
|
799
|
+
allocations: z.array(z.lazy(() => Allocations$outboundSchema)).optional(),
|
|
807
800
|
note: z.nullable(z.string()).optional(),
|
|
808
801
|
number: z.nullable(z.string()).optional(),
|
|
809
802
|
trackingCategories: z.nullable(
|
|
@@ -812,9 +805,15 @@ export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
|
812
805
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
813
806
|
rowVersion: z.nullable(z.string()).optional(),
|
|
814
807
|
displayId: z.nullable(z.string()).optional(),
|
|
808
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
809
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
810
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
811
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
812
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
815
813
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
816
814
|
}).transform((v) => {
|
|
817
815
|
return remap$(v, {
|
|
816
|
+
downstreamId: "downstream_id",
|
|
818
817
|
currencyRate: "currency_rate",
|
|
819
818
|
totalAmount: "total_amount",
|
|
820
819
|
paymentMethod: "payment_method",
|
|
@@ -826,6 +825,11 @@ export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
|
826
825
|
customFields: "custom_fields",
|
|
827
826
|
rowVersion: "row_version",
|
|
828
827
|
displayId: "display_id",
|
|
828
|
+
customMappings: "custom_mappings",
|
|
829
|
+
updatedBy: "updated_by",
|
|
830
|
+
createdBy: "created_by",
|
|
831
|
+
createdAt: "created_at",
|
|
832
|
+
updatedAt: "updated_at",
|
|
829
833
|
passThrough: "pass_through",
|
|
830
834
|
});
|
|
831
835
|
});
|
|
@@ -834,29 +838,25 @@ export const BillPaymentInput$outboundSchema: z.ZodType<
|
|
|
834
838
|
* @internal
|
|
835
839
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
836
840
|
*/
|
|
837
|
-
export namespace
|
|
838
|
-
/** @deprecated use `
|
|
839
|
-
export const inboundSchema =
|
|
840
|
-
/** @deprecated use `
|
|
841
|
-
export const outboundSchema =
|
|
842
|
-
/** @deprecated use `
|
|
843
|
-
export type Outbound =
|
|
841
|
+
export namespace BillPayment$ {
|
|
842
|
+
/** @deprecated use `BillPayment$inboundSchema` instead. */
|
|
843
|
+
export const inboundSchema = BillPayment$inboundSchema;
|
|
844
|
+
/** @deprecated use `BillPayment$outboundSchema` instead. */
|
|
845
|
+
export const outboundSchema = BillPayment$outboundSchema;
|
|
846
|
+
/** @deprecated use `BillPayment$Outbound` instead. */
|
|
847
|
+
export type Outbound = BillPayment$Outbound;
|
|
844
848
|
}
|
|
845
849
|
|
|
846
|
-
export function
|
|
847
|
-
|
|
848
|
-
): string {
|
|
849
|
-
return JSON.stringify(
|
|
850
|
-
BillPaymentInput$outboundSchema.parse(billPaymentInput),
|
|
851
|
-
);
|
|
850
|
+
export function billPaymentToJSON(billPayment: BillPayment): string {
|
|
851
|
+
return JSON.stringify(BillPayment$outboundSchema.parse(billPayment));
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
export function
|
|
854
|
+
export function billPaymentFromJSON(
|
|
855
855
|
jsonString: string,
|
|
856
|
-
): SafeParseResult<
|
|
856
|
+
): SafeParseResult<BillPayment, SDKValidationError> {
|
|
857
857
|
return safeParse(
|
|
858
858
|
jsonString,
|
|
859
|
-
(x) =>
|
|
860
|
-
`Failed to parse '
|
|
859
|
+
(x) => BillPayment$inboundSchema.parse(JSON.parse(x)),
|
|
860
|
+
`Failed to parse 'BillPayment' from JSON`,
|
|
861
861
|
);
|
|
862
862
|
}
|