@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
UnifiedId,
|
|
12
|
+
UnifiedId$inboundSchema,
|
|
13
|
+
UnifiedId$Outbound,
|
|
14
|
+
UnifiedId$outboundSchema,
|
|
15
|
+
} from "./unifiedid.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Pipeline created
|
|
19
|
+
*/
|
|
20
|
+
export type CreatePipelineResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* HTTP Response Status Code
|
|
23
|
+
*/
|
|
24
|
+
statusCode: number;
|
|
25
|
+
/**
|
|
26
|
+
* HTTP Response Status
|
|
27
|
+
*/
|
|
28
|
+
status: string;
|
|
29
|
+
/**
|
|
30
|
+
* Apideck ID of service provider
|
|
31
|
+
*/
|
|
32
|
+
service: string;
|
|
33
|
+
/**
|
|
34
|
+
* Unified API resource name
|
|
35
|
+
*/
|
|
36
|
+
resource: string;
|
|
37
|
+
/**
|
|
38
|
+
* Operation performed
|
|
39
|
+
*/
|
|
40
|
+
operation: string;
|
|
41
|
+
/**
|
|
42
|
+
* A object containing a unique identifier for the resource that was created, updated, or deleted.
|
|
43
|
+
*/
|
|
44
|
+
data: UnifiedId;
|
|
45
|
+
/**
|
|
46
|
+
* Raw response from the integration when raw=true query param is provided
|
|
47
|
+
*/
|
|
48
|
+
raw?: { [k: string]: any } | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const CreatePipelineResponse$inboundSchema: z.ZodType<
|
|
53
|
+
CreatePipelineResponse,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
status_code: z.number().int(),
|
|
58
|
+
status: z.string(),
|
|
59
|
+
service: z.string(),
|
|
60
|
+
resource: z.string(),
|
|
61
|
+
operation: z.string(),
|
|
62
|
+
data: UnifiedId$inboundSchema,
|
|
63
|
+
_raw: z.nullable(z.record(z.any())).optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
"status_code": "statusCode",
|
|
67
|
+
"_raw": "raw",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type CreatePipelineResponse$Outbound = {
|
|
73
|
+
status_code: number;
|
|
74
|
+
status: string;
|
|
75
|
+
service: string;
|
|
76
|
+
resource: string;
|
|
77
|
+
operation: string;
|
|
78
|
+
data: UnifiedId$Outbound;
|
|
79
|
+
_raw?: { [k: string]: any } | null | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const CreatePipelineResponse$outboundSchema: z.ZodType<
|
|
84
|
+
CreatePipelineResponse$Outbound,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
CreatePipelineResponse
|
|
87
|
+
> = z.object({
|
|
88
|
+
statusCode: z.number().int(),
|
|
89
|
+
status: z.string(),
|
|
90
|
+
service: z.string(),
|
|
91
|
+
resource: z.string(),
|
|
92
|
+
operation: z.string(),
|
|
93
|
+
data: UnifiedId$outboundSchema,
|
|
94
|
+
raw: z.nullable(z.record(z.any())).optional(),
|
|
95
|
+
}).transform((v) => {
|
|
96
|
+
return remap$(v, {
|
|
97
|
+
statusCode: "status_code",
|
|
98
|
+
raw: "_raw",
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
export namespace CreatePipelineResponse$ {
|
|
107
|
+
/** @deprecated use `CreatePipelineResponse$inboundSchema` instead. */
|
|
108
|
+
export const inboundSchema = CreatePipelineResponse$inboundSchema;
|
|
109
|
+
/** @deprecated use `CreatePipelineResponse$outboundSchema` instead. */
|
|
110
|
+
export const outboundSchema = CreatePipelineResponse$outboundSchema;
|
|
111
|
+
/** @deprecated use `CreatePipelineResponse$Outbound` instead. */
|
|
112
|
+
export type Outbound = CreatePipelineResponse$Outbound;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function createPipelineResponseToJSON(
|
|
116
|
+
createPipelineResponse: CreatePipelineResponse,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
CreatePipelineResponse$outboundSchema.parse(createPipelineResponse),
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function createPipelineResponseFromJSON(
|
|
124
|
+
jsonString: string,
|
|
125
|
+
): SafeParseResult<CreatePipelineResponse, SDKValidationError> {
|
|
126
|
+
return safeParse(
|
|
127
|
+
jsonString,
|
|
128
|
+
(x) => CreatePipelineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
129
|
+
`Failed to parse 'CreatePipelineResponse' from JSON`,
|
|
130
|
+
);
|
|
131
|
+
}
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
InvoiceLineItemInput$inboundSchema,
|
|
51
51
|
InvoiceLineItemInput$Outbound,
|
|
52
52
|
InvoiceLineItemInput$outboundSchema,
|
|
53
|
-
} from "./
|
|
53
|
+
} from "./invoicelineiteminput.js";
|
|
54
54
|
import {
|
|
55
55
|
LinkedCustomer,
|
|
56
56
|
LinkedCustomer$inboundSchema,
|
|
@@ -115,11 +115,7 @@ export const CreditNoteType = {
|
|
|
115
115
|
*/
|
|
116
116
|
export type CreditNoteType = ClosedEnum<typeof CreditNoteType>;
|
|
117
117
|
|
|
118
|
-
export type
|
|
119
|
-
/**
|
|
120
|
-
* Unique identifier representing the entity
|
|
121
|
-
*/
|
|
122
|
-
id: string;
|
|
118
|
+
export type CreditNoteInput = {
|
|
123
119
|
/**
|
|
124
120
|
* Credit note number.
|
|
125
121
|
*/
|
|
@@ -127,7 +123,7 @@ export type CreditNote = {
|
|
|
127
123
|
/**
|
|
128
124
|
* The customer this entity is linked to.
|
|
129
125
|
*/
|
|
130
|
-
customer?:
|
|
126
|
+
customer?: LinkedCustomerInput | null | undefined;
|
|
131
127
|
/**
|
|
132
128
|
* The company or subsidiary id the transaction belongs to
|
|
133
129
|
*/
|
|
@@ -188,9 +184,9 @@ export type CreditNote = {
|
|
|
188
184
|
* Type of payment
|
|
189
185
|
*/
|
|
190
186
|
type?: CreditNoteType | undefined;
|
|
191
|
-
account?:
|
|
192
|
-
lineItems?: Array<
|
|
193
|
-
allocations?: Array<
|
|
187
|
+
account?: LinkedLedgerAccountInput | null | undefined;
|
|
188
|
+
lineItems?: Array<InvoiceLineItemInput> | undefined;
|
|
189
|
+
allocations?: Array<AllocationInput> | undefined;
|
|
194
190
|
/**
|
|
195
191
|
* Optional note to be associated with the credit note.
|
|
196
192
|
*/
|
|
@@ -205,38 +201,22 @@ export type CreditNote = {
|
|
|
205
201
|
* A list of linked tracking categories.
|
|
206
202
|
*/
|
|
207
203
|
trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
|
|
208
|
-
/**
|
|
209
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
210
|
-
*/
|
|
211
|
-
customMappings?: CustomMappings | null | undefined;
|
|
212
204
|
customFields?: Array<CustomField> | undefined;
|
|
213
205
|
/**
|
|
214
206
|
* 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.
|
|
215
207
|
*/
|
|
216
208
|
rowVersion?: string | null | undefined;
|
|
217
|
-
/**
|
|
218
|
-
* The user who last updated the object.
|
|
219
|
-
*/
|
|
220
|
-
updatedBy?: string | null | undefined;
|
|
221
|
-
/**
|
|
222
|
-
* The user who created the object.
|
|
223
|
-
*/
|
|
224
|
-
createdBy?: string | null | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* The date and time when the object was last updated.
|
|
227
|
-
*/
|
|
228
|
-
updatedAt?: Date | null | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* The date and time when the object was created.
|
|
231
|
-
*/
|
|
232
|
-
createdAt?: Date | null | undefined;
|
|
233
209
|
/**
|
|
234
210
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
235
211
|
*/
|
|
236
212
|
passThrough?: Array<PassThroughBody> | undefined;
|
|
237
213
|
};
|
|
238
214
|
|
|
239
|
-
export type
|
|
215
|
+
export type CreditNote = {
|
|
216
|
+
/**
|
|
217
|
+
* Unique identifier representing the entity
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
240
220
|
/**
|
|
241
221
|
* Credit note number.
|
|
242
222
|
*/
|
|
@@ -244,7 +224,7 @@ export type CreditNoteInput = {
|
|
|
244
224
|
/**
|
|
245
225
|
* The customer this entity is linked to.
|
|
246
226
|
*/
|
|
247
|
-
customer?:
|
|
227
|
+
customer?: LinkedCustomer | null | undefined;
|
|
248
228
|
/**
|
|
249
229
|
* The company or subsidiary id the transaction belongs to
|
|
250
230
|
*/
|
|
@@ -305,9 +285,9 @@ export type CreditNoteInput = {
|
|
|
305
285
|
* Type of payment
|
|
306
286
|
*/
|
|
307
287
|
type?: CreditNoteType | undefined;
|
|
308
|
-
account?:
|
|
309
|
-
lineItems?: Array<
|
|
310
|
-
allocations?: Array<
|
|
288
|
+
account?: LinkedLedgerAccount | null | undefined;
|
|
289
|
+
lineItems?: Array<InvoiceLineItem> | undefined;
|
|
290
|
+
allocations?: Array<Allocation> | undefined;
|
|
311
291
|
/**
|
|
312
292
|
* Optional note to be associated with the credit note.
|
|
313
293
|
*/
|
|
@@ -322,11 +302,31 @@ export type CreditNoteInput = {
|
|
|
322
302
|
* A list of linked tracking categories.
|
|
323
303
|
*/
|
|
324
304
|
trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
307
|
+
*/
|
|
308
|
+
customMappings?: CustomMappings | null | undefined;
|
|
325
309
|
customFields?: Array<CustomField> | undefined;
|
|
326
310
|
/**
|
|
327
311
|
* 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.
|
|
328
312
|
*/
|
|
329
313
|
rowVersion?: string | null | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* The user who last updated the object.
|
|
316
|
+
*/
|
|
317
|
+
updatedBy?: string | null | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* The user who created the object.
|
|
320
|
+
*/
|
|
321
|
+
createdBy?: string | null | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* The date and time when the object was last updated.
|
|
324
|
+
*/
|
|
325
|
+
updatedAt?: Date | null | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* The date and time when the object was created.
|
|
328
|
+
*/
|
|
329
|
+
createdAt?: Date | null | undefined;
|
|
330
330
|
/**
|
|
331
331
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
332
332
|
*/
|
|
@@ -376,14 +376,13 @@ export namespace CreditNoteType$ {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
/** @internal */
|
|
379
|
-
export const
|
|
380
|
-
|
|
379
|
+
export const CreditNoteInput$inboundSchema: z.ZodType<
|
|
380
|
+
CreditNoteInput,
|
|
381
381
|
z.ZodTypeDef,
|
|
382
382
|
unknown
|
|
383
383
|
> = z.object({
|
|
384
|
-
id: z.string(),
|
|
385
384
|
number: z.nullable(z.string()).optional(),
|
|
386
|
-
customer: z.nullable(
|
|
385
|
+
customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
|
|
387
386
|
company_id: z.nullable(z.string()).optional(),
|
|
388
387
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
389
388
|
currency_rate: z.nullable(z.number()).optional(),
|
|
@@ -402,9 +401,9 @@ export const CreditNote$inboundSchema: z.ZodType<
|
|
|
402
401
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
403
402
|
).optional(),
|
|
404
403
|
type: CreditNoteType$inboundSchema.optional(),
|
|
405
|
-
account: z.nullable(
|
|
406
|
-
line_items: z.array(
|
|
407
|
-
allocations: z.array(
|
|
404
|
+
account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
|
|
405
|
+
line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(),
|
|
406
|
+
allocations: z.array(AllocationInput$inboundSchema).optional(),
|
|
408
407
|
note: z.nullable(z.string()).optional(),
|
|
409
408
|
terms: z.nullable(z.string()).optional(),
|
|
410
409
|
billing_address: Address$inboundSchema.optional(),
|
|
@@ -412,17 +411,8 @@ export const CreditNote$inboundSchema: z.ZodType<
|
|
|
412
411
|
tracking_categories: z.nullable(
|
|
413
412
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
414
413
|
).optional(),
|
|
415
|
-
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
416
414
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
417
415
|
row_version: z.nullable(z.string()).optional(),
|
|
418
|
-
updated_by: z.nullable(z.string()).optional(),
|
|
419
|
-
created_by: z.nullable(z.string()).optional(),
|
|
420
|
-
updated_at: z.nullable(
|
|
421
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
422
|
-
).optional(),
|
|
423
|
-
created_at: z.nullable(
|
|
424
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
425
|
-
).optional(),
|
|
426
416
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
427
417
|
}).transform((v) => {
|
|
428
418
|
return remap$(v, {
|
|
@@ -440,22 +430,16 @@ export const CreditNote$inboundSchema: z.ZodType<
|
|
|
440
430
|
"billing_address": "billingAddress",
|
|
441
431
|
"shipping_address": "shippingAddress",
|
|
442
432
|
"tracking_categories": "trackingCategories",
|
|
443
|
-
"custom_mappings": "customMappings",
|
|
444
433
|
"custom_fields": "customFields",
|
|
445
434
|
"row_version": "rowVersion",
|
|
446
|
-
"updated_by": "updatedBy",
|
|
447
|
-
"created_by": "createdBy",
|
|
448
|
-
"updated_at": "updatedAt",
|
|
449
|
-
"created_at": "createdAt",
|
|
450
435
|
"pass_through": "passThrough",
|
|
451
436
|
});
|
|
452
437
|
});
|
|
453
438
|
|
|
454
439
|
/** @internal */
|
|
455
|
-
export type
|
|
456
|
-
id: string;
|
|
440
|
+
export type CreditNoteInput$Outbound = {
|
|
457
441
|
number?: string | null | undefined;
|
|
458
|
-
customer?:
|
|
442
|
+
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
459
443
|
company_id?: string | null | undefined;
|
|
460
444
|
currency?: string | null | undefined;
|
|
461
445
|
currency_rate?: number | null | undefined;
|
|
@@ -471,9 +455,9 @@ export type CreditNote$Outbound = {
|
|
|
471
455
|
date_issued?: string | undefined;
|
|
472
456
|
date_paid?: string | null | undefined;
|
|
473
457
|
type?: string | undefined;
|
|
474
|
-
account?:
|
|
475
|
-
line_items?: Array<
|
|
476
|
-
allocations?: Array<
|
|
458
|
+
account?: LinkedLedgerAccountInput$Outbound | null | undefined;
|
|
459
|
+
line_items?: Array<InvoiceLineItemInput$Outbound> | undefined;
|
|
460
|
+
allocations?: Array<AllocationInput$Outbound> | undefined;
|
|
477
461
|
note?: string | null | undefined;
|
|
478
462
|
terms?: string | null | undefined;
|
|
479
463
|
billing_address?: Address$Outbound | undefined;
|
|
@@ -482,25 +466,19 @@ export type CreditNote$Outbound = {
|
|
|
482
466
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
483
467
|
| null
|
|
484
468
|
| undefined;
|
|
485
|
-
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
486
469
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
487
470
|
row_version?: string | null | undefined;
|
|
488
|
-
updated_by?: string | null | undefined;
|
|
489
|
-
created_by?: string | null | undefined;
|
|
490
|
-
updated_at?: string | null | undefined;
|
|
491
|
-
created_at?: string | null | undefined;
|
|
492
471
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
493
472
|
};
|
|
494
473
|
|
|
495
474
|
/** @internal */
|
|
496
|
-
export const
|
|
497
|
-
|
|
475
|
+
export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
476
|
+
CreditNoteInput$Outbound,
|
|
498
477
|
z.ZodTypeDef,
|
|
499
|
-
|
|
478
|
+
CreditNoteInput
|
|
500
479
|
> = z.object({
|
|
501
|
-
id: z.string(),
|
|
502
480
|
number: z.nullable(z.string()).optional(),
|
|
503
|
-
customer: z.nullable(
|
|
481
|
+
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
504
482
|
companyId: z.nullable(z.string()).optional(),
|
|
505
483
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
506
484
|
currencyRate: z.nullable(z.number()).optional(),
|
|
@@ -516,9 +494,9 @@ export const CreditNote$outboundSchema: z.ZodType<
|
|
|
516
494
|
dateIssued: z.date().transform(v => v.toISOString()).optional(),
|
|
517
495
|
datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
518
496
|
type: CreditNoteType$outboundSchema.optional(),
|
|
519
|
-
account: z.nullable(
|
|
520
|
-
lineItems: z.array(
|
|
521
|
-
allocations: z.array(
|
|
497
|
+
account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
|
|
498
|
+
lineItems: z.array(InvoiceLineItemInput$outboundSchema).optional(),
|
|
499
|
+
allocations: z.array(AllocationInput$outboundSchema).optional(),
|
|
522
500
|
note: z.nullable(z.string()).optional(),
|
|
523
501
|
terms: z.nullable(z.string()).optional(),
|
|
524
502
|
billingAddress: Address$outboundSchema.optional(),
|
|
@@ -526,13 +504,8 @@ export const CreditNote$outboundSchema: z.ZodType<
|
|
|
526
504
|
trackingCategories: z.nullable(
|
|
527
505
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
528
506
|
).optional(),
|
|
529
|
-
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
530
507
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
531
508
|
rowVersion: z.nullable(z.string()).optional(),
|
|
532
|
-
updatedBy: z.nullable(z.string()).optional(),
|
|
533
|
-
createdBy: z.nullable(z.string()).optional(),
|
|
534
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
535
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
536
509
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
537
510
|
}).transform((v) => {
|
|
538
511
|
return remap$(v, {
|
|
@@ -550,13 +523,8 @@ export const CreditNote$outboundSchema: z.ZodType<
|
|
|
550
523
|
billingAddress: "billing_address",
|
|
551
524
|
shippingAddress: "shipping_address",
|
|
552
525
|
trackingCategories: "tracking_categories",
|
|
553
|
-
customMappings: "custom_mappings",
|
|
554
526
|
customFields: "custom_fields",
|
|
555
527
|
rowVersion: "row_version",
|
|
556
|
-
updatedBy: "updated_by",
|
|
557
|
-
createdBy: "created_by",
|
|
558
|
-
updatedAt: "updated_at",
|
|
559
|
-
createdAt: "created_at",
|
|
560
528
|
passThrough: "pass_through",
|
|
561
529
|
});
|
|
562
530
|
});
|
|
@@ -565,37 +533,40 @@ export const CreditNote$outboundSchema: z.ZodType<
|
|
|
565
533
|
* @internal
|
|
566
534
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
567
535
|
*/
|
|
568
|
-
export namespace
|
|
569
|
-
/** @deprecated use `
|
|
570
|
-
export const inboundSchema =
|
|
571
|
-
/** @deprecated use `
|
|
572
|
-
export const outboundSchema =
|
|
573
|
-
/** @deprecated use `
|
|
574
|
-
export type Outbound =
|
|
536
|
+
export namespace CreditNoteInput$ {
|
|
537
|
+
/** @deprecated use `CreditNoteInput$inboundSchema` instead. */
|
|
538
|
+
export const inboundSchema = CreditNoteInput$inboundSchema;
|
|
539
|
+
/** @deprecated use `CreditNoteInput$outboundSchema` instead. */
|
|
540
|
+
export const outboundSchema = CreditNoteInput$outboundSchema;
|
|
541
|
+
/** @deprecated use `CreditNoteInput$Outbound` instead. */
|
|
542
|
+
export type Outbound = CreditNoteInput$Outbound;
|
|
575
543
|
}
|
|
576
544
|
|
|
577
|
-
export function
|
|
578
|
-
|
|
545
|
+
export function creditNoteInputToJSON(
|
|
546
|
+
creditNoteInput: CreditNoteInput,
|
|
547
|
+
): string {
|
|
548
|
+
return JSON.stringify(CreditNoteInput$outboundSchema.parse(creditNoteInput));
|
|
579
549
|
}
|
|
580
550
|
|
|
581
|
-
export function
|
|
551
|
+
export function creditNoteInputFromJSON(
|
|
582
552
|
jsonString: string,
|
|
583
|
-
): SafeParseResult<
|
|
553
|
+
): SafeParseResult<CreditNoteInput, SDKValidationError> {
|
|
584
554
|
return safeParse(
|
|
585
555
|
jsonString,
|
|
586
|
-
(x) =>
|
|
587
|
-
`Failed to parse '
|
|
556
|
+
(x) => CreditNoteInput$inboundSchema.parse(JSON.parse(x)),
|
|
557
|
+
`Failed to parse 'CreditNoteInput' from JSON`,
|
|
588
558
|
);
|
|
589
559
|
}
|
|
590
560
|
|
|
591
561
|
/** @internal */
|
|
592
|
-
export const
|
|
593
|
-
|
|
562
|
+
export const CreditNote$inboundSchema: z.ZodType<
|
|
563
|
+
CreditNote,
|
|
594
564
|
z.ZodTypeDef,
|
|
595
565
|
unknown
|
|
596
566
|
> = z.object({
|
|
567
|
+
id: z.string(),
|
|
597
568
|
number: z.nullable(z.string()).optional(),
|
|
598
|
-
customer: z.nullable(
|
|
569
|
+
customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
|
|
599
570
|
company_id: z.nullable(z.string()).optional(),
|
|
600
571
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
601
572
|
currency_rate: z.nullable(z.number()).optional(),
|
|
@@ -614,9 +585,9 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
|
|
|
614
585
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
615
586
|
).optional(),
|
|
616
587
|
type: CreditNoteType$inboundSchema.optional(),
|
|
617
|
-
account: z.nullable(
|
|
618
|
-
line_items: z.array(
|
|
619
|
-
allocations: z.array(
|
|
588
|
+
account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
|
|
589
|
+
line_items: z.array(InvoiceLineItem$inboundSchema).optional(),
|
|
590
|
+
allocations: z.array(Allocation$inboundSchema).optional(),
|
|
620
591
|
note: z.nullable(z.string()).optional(),
|
|
621
592
|
terms: z.nullable(z.string()).optional(),
|
|
622
593
|
billing_address: Address$inboundSchema.optional(),
|
|
@@ -624,8 +595,17 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
|
|
|
624
595
|
tracking_categories: z.nullable(
|
|
625
596
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
626
597
|
).optional(),
|
|
598
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
627
599
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
628
600
|
row_version: z.nullable(z.string()).optional(),
|
|
601
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
602
|
+
created_by: z.nullable(z.string()).optional(),
|
|
603
|
+
updated_at: z.nullable(
|
|
604
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
605
|
+
).optional(),
|
|
606
|
+
created_at: z.nullable(
|
|
607
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
608
|
+
).optional(),
|
|
629
609
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
630
610
|
}).transform((v) => {
|
|
631
611
|
return remap$(v, {
|
|
@@ -643,16 +623,22 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
|
|
|
643
623
|
"billing_address": "billingAddress",
|
|
644
624
|
"shipping_address": "shippingAddress",
|
|
645
625
|
"tracking_categories": "trackingCategories",
|
|
626
|
+
"custom_mappings": "customMappings",
|
|
646
627
|
"custom_fields": "customFields",
|
|
647
628
|
"row_version": "rowVersion",
|
|
629
|
+
"updated_by": "updatedBy",
|
|
630
|
+
"created_by": "createdBy",
|
|
631
|
+
"updated_at": "updatedAt",
|
|
632
|
+
"created_at": "createdAt",
|
|
648
633
|
"pass_through": "passThrough",
|
|
649
634
|
});
|
|
650
635
|
});
|
|
651
636
|
|
|
652
637
|
/** @internal */
|
|
653
|
-
export type
|
|
638
|
+
export type CreditNote$Outbound = {
|
|
639
|
+
id: string;
|
|
654
640
|
number?: string | null | undefined;
|
|
655
|
-
customer?:
|
|
641
|
+
customer?: LinkedCustomer$Outbound | null | undefined;
|
|
656
642
|
company_id?: string | null | undefined;
|
|
657
643
|
currency?: string | null | undefined;
|
|
658
644
|
currency_rate?: number | null | undefined;
|
|
@@ -668,9 +654,9 @@ export type CreditNoteInput$Outbound = {
|
|
|
668
654
|
date_issued?: string | undefined;
|
|
669
655
|
date_paid?: string | null | undefined;
|
|
670
656
|
type?: string | undefined;
|
|
671
|
-
account?:
|
|
672
|
-
line_items?: Array<
|
|
673
|
-
allocations?: Array<
|
|
657
|
+
account?: LinkedLedgerAccount$Outbound | null | undefined;
|
|
658
|
+
line_items?: Array<InvoiceLineItem$Outbound> | undefined;
|
|
659
|
+
allocations?: Array<Allocation$Outbound> | undefined;
|
|
674
660
|
note?: string | null | undefined;
|
|
675
661
|
terms?: string | null | undefined;
|
|
676
662
|
billing_address?: Address$Outbound | undefined;
|
|
@@ -679,19 +665,25 @@ export type CreditNoteInput$Outbound = {
|
|
|
679
665
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
680
666
|
| null
|
|
681
667
|
| undefined;
|
|
668
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
682
669
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
683
670
|
row_version?: string | null | undefined;
|
|
671
|
+
updated_by?: string | null | undefined;
|
|
672
|
+
created_by?: string | null | undefined;
|
|
673
|
+
updated_at?: string | null | undefined;
|
|
674
|
+
created_at?: string | null | undefined;
|
|
684
675
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
685
676
|
};
|
|
686
677
|
|
|
687
678
|
/** @internal */
|
|
688
|
-
export const
|
|
689
|
-
|
|
679
|
+
export const CreditNote$outboundSchema: z.ZodType<
|
|
680
|
+
CreditNote$Outbound,
|
|
690
681
|
z.ZodTypeDef,
|
|
691
|
-
|
|
682
|
+
CreditNote
|
|
692
683
|
> = z.object({
|
|
684
|
+
id: z.string(),
|
|
693
685
|
number: z.nullable(z.string()).optional(),
|
|
694
|
-
customer: z.nullable(
|
|
686
|
+
customer: z.nullable(LinkedCustomer$outboundSchema).optional(),
|
|
695
687
|
companyId: z.nullable(z.string()).optional(),
|
|
696
688
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
697
689
|
currencyRate: z.nullable(z.number()).optional(),
|
|
@@ -707,9 +699,9 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
|
707
699
|
dateIssued: z.date().transform(v => v.toISOString()).optional(),
|
|
708
700
|
datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
709
701
|
type: CreditNoteType$outboundSchema.optional(),
|
|
710
|
-
account: z.nullable(
|
|
711
|
-
lineItems: z.array(
|
|
712
|
-
allocations: z.array(
|
|
702
|
+
account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
|
|
703
|
+
lineItems: z.array(InvoiceLineItem$outboundSchema).optional(),
|
|
704
|
+
allocations: z.array(Allocation$outboundSchema).optional(),
|
|
713
705
|
note: z.nullable(z.string()).optional(),
|
|
714
706
|
terms: z.nullable(z.string()).optional(),
|
|
715
707
|
billingAddress: Address$outboundSchema.optional(),
|
|
@@ -717,8 +709,13 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
|
717
709
|
trackingCategories: z.nullable(
|
|
718
710
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
719
711
|
).optional(),
|
|
712
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
720
713
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
721
714
|
rowVersion: z.nullable(z.string()).optional(),
|
|
715
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
716
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
717
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
718
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
722
719
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
723
720
|
}).transform((v) => {
|
|
724
721
|
return remap$(v, {
|
|
@@ -736,8 +733,13 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
|
736
733
|
billingAddress: "billing_address",
|
|
737
734
|
shippingAddress: "shipping_address",
|
|
738
735
|
trackingCategories: "tracking_categories",
|
|
736
|
+
customMappings: "custom_mappings",
|
|
739
737
|
customFields: "custom_fields",
|
|
740
738
|
rowVersion: "row_version",
|
|
739
|
+
updatedBy: "updated_by",
|
|
740
|
+
createdBy: "created_by",
|
|
741
|
+
updatedAt: "updated_at",
|
|
742
|
+
createdAt: "created_at",
|
|
741
743
|
passThrough: "pass_through",
|
|
742
744
|
});
|
|
743
745
|
});
|
|
@@ -746,27 +748,25 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
|
|
|
746
748
|
* @internal
|
|
747
749
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
748
750
|
*/
|
|
749
|
-
export namespace
|
|
750
|
-
/** @deprecated use `
|
|
751
|
-
export const inboundSchema =
|
|
752
|
-
/** @deprecated use `
|
|
753
|
-
export const outboundSchema =
|
|
754
|
-
/** @deprecated use `
|
|
755
|
-
export type Outbound =
|
|
751
|
+
export namespace CreditNote$ {
|
|
752
|
+
/** @deprecated use `CreditNote$inboundSchema` instead. */
|
|
753
|
+
export const inboundSchema = CreditNote$inboundSchema;
|
|
754
|
+
/** @deprecated use `CreditNote$outboundSchema` instead. */
|
|
755
|
+
export const outboundSchema = CreditNote$outboundSchema;
|
|
756
|
+
/** @deprecated use `CreditNote$Outbound` instead. */
|
|
757
|
+
export type Outbound = CreditNote$Outbound;
|
|
756
758
|
}
|
|
757
759
|
|
|
758
|
-
export function
|
|
759
|
-
|
|
760
|
-
): string {
|
|
761
|
-
return JSON.stringify(CreditNoteInput$outboundSchema.parse(creditNoteInput));
|
|
760
|
+
export function creditNoteToJSON(creditNote: CreditNote): string {
|
|
761
|
+
return JSON.stringify(CreditNote$outboundSchema.parse(creditNote));
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
export function
|
|
764
|
+
export function creditNoteFromJSON(
|
|
765
765
|
jsonString: string,
|
|
766
|
-
): SafeParseResult<
|
|
766
|
+
): SafeParseResult<CreditNote, SDKValidationError> {
|
|
767
767
|
return safeParse(
|
|
768
768
|
jsonString,
|
|
769
|
-
(x) =>
|
|
770
|
-
`Failed to parse '
|
|
769
|
+
(x) => CreditNote$inboundSchema.parse(JSON.parse(x)),
|
|
770
|
+
`Failed to parse 'CreditNote' from JSON`,
|
|
771
771
|
);
|
|
772
772
|
}
|