@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
|
@@ -59,6 +59,52 @@ import {
|
|
|
59
59
|
WebhookSubscription$outboundSchema,
|
|
60
60
|
} from "./webhooksubscription.js";
|
|
61
61
|
|
|
62
|
+
export type Value5 = string | number | number;
|
|
63
|
+
|
|
64
|
+
export type ConnectionValue =
|
|
65
|
+
| string
|
|
66
|
+
| number
|
|
67
|
+
| number
|
|
68
|
+
| boolean
|
|
69
|
+
| Array<string | number | number>;
|
|
70
|
+
|
|
71
|
+
export type ConnectionDefaults = {
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
options?: Array<FormFieldOption> | undefined;
|
|
74
|
+
value?:
|
|
75
|
+
| string
|
|
76
|
+
| number
|
|
77
|
+
| number
|
|
78
|
+
| boolean
|
|
79
|
+
| Array<string | number | number>
|
|
80
|
+
| undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type ConnectionConfiguration = {
|
|
84
|
+
resource?: string | undefined;
|
|
85
|
+
defaults?: Array<ConnectionDefaults> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type ConnectionInput = {
|
|
89
|
+
/**
|
|
90
|
+
* Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
|
|
91
|
+
*/
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
95
|
+
*/
|
|
96
|
+
settings?: { [k: string]: any } | null | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Attach your own consumer specific metadata
|
|
99
|
+
*/
|
|
100
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
101
|
+
configuration?: Array<ConnectionConfiguration> | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* List of custom mappings configured for this connection
|
|
104
|
+
*/
|
|
105
|
+
customMappings?: Array<CustomMappingInput> | undefined;
|
|
106
|
+
};
|
|
107
|
+
|
|
62
108
|
/**
|
|
63
109
|
* Status of the connection.
|
|
64
110
|
*/
|
|
@@ -78,15 +124,6 @@ export const Target = {
|
|
|
78
124
|
} as const;
|
|
79
125
|
export type Target = ClosedEnum<typeof Target>;
|
|
80
126
|
|
|
81
|
-
export type Value5 = string | number | number;
|
|
82
|
-
|
|
83
|
-
export type ConnectionValue =
|
|
84
|
-
| string
|
|
85
|
-
| number
|
|
86
|
-
| number
|
|
87
|
-
| boolean
|
|
88
|
-
| Array<string | number | number>;
|
|
89
|
-
|
|
90
127
|
export type Defaults = {
|
|
91
128
|
target?: Target | undefined;
|
|
92
129
|
id?: string | undefined;
|
|
@@ -202,83 +239,6 @@ export type Connection = {
|
|
|
202
239
|
updatedAt?: number | null | undefined;
|
|
203
240
|
};
|
|
204
241
|
|
|
205
|
-
export type ConnectionDefaults = {
|
|
206
|
-
id?: string | undefined;
|
|
207
|
-
options?: Array<FormFieldOption> | undefined;
|
|
208
|
-
value?:
|
|
209
|
-
| string
|
|
210
|
-
| number
|
|
211
|
-
| number
|
|
212
|
-
| boolean
|
|
213
|
-
| Array<string | number | number>
|
|
214
|
-
| undefined;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type ConnectionConfiguration = {
|
|
218
|
-
resource?: string | undefined;
|
|
219
|
-
defaults?: Array<ConnectionDefaults> | undefined;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
export type ConnectionInput = {
|
|
223
|
-
/**
|
|
224
|
-
* Whether the connection is enabled or not. You can enable or disable a connection using the Update Connection API.
|
|
225
|
-
*/
|
|
226
|
-
enabled?: boolean | undefined;
|
|
227
|
-
/**
|
|
228
|
-
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
229
|
-
*/
|
|
230
|
-
settings?: { [k: string]: any } | null | undefined;
|
|
231
|
-
/**
|
|
232
|
-
* Attach your own consumer specific metadata
|
|
233
|
-
*/
|
|
234
|
-
metadata?: { [k: string]: any } | null | undefined;
|
|
235
|
-
configuration?: Array<ConnectionConfiguration> | undefined;
|
|
236
|
-
/**
|
|
237
|
-
* List of custom mappings configured for this connection
|
|
238
|
-
*/
|
|
239
|
-
customMappings?: Array<CustomMappingInput> | undefined;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/** @internal */
|
|
243
|
-
export const ConnectionStatus$inboundSchema: z.ZodNativeEnum<
|
|
244
|
-
typeof ConnectionStatus
|
|
245
|
-
> = z.nativeEnum(ConnectionStatus);
|
|
246
|
-
|
|
247
|
-
/** @internal */
|
|
248
|
-
export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
|
|
249
|
-
typeof ConnectionStatus
|
|
250
|
-
> = ConnectionStatus$inboundSchema;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @internal
|
|
254
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
255
|
-
*/
|
|
256
|
-
export namespace ConnectionStatus$ {
|
|
257
|
-
/** @deprecated use `ConnectionStatus$inboundSchema` instead. */
|
|
258
|
-
export const inboundSchema = ConnectionStatus$inboundSchema;
|
|
259
|
-
/** @deprecated use `ConnectionStatus$outboundSchema` instead. */
|
|
260
|
-
export const outboundSchema = ConnectionStatus$outboundSchema;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/** @internal */
|
|
264
|
-
export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
|
|
265
|
-
.nativeEnum(Target);
|
|
266
|
-
|
|
267
|
-
/** @internal */
|
|
268
|
-
export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
|
|
269
|
-
Target$inboundSchema;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
274
|
-
*/
|
|
275
|
-
export namespace Target$ {
|
|
276
|
-
/** @deprecated use `Target$inboundSchema` instead. */
|
|
277
|
-
export const inboundSchema = Target$inboundSchema;
|
|
278
|
-
/** @deprecated use `Target$outboundSchema` instead. */
|
|
279
|
-
export const outboundSchema = Target$outboundSchema;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
242
|
/** @internal */
|
|
283
243
|
export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
|
|
284
244
|
.union([z.string(), z.number().int(), z.number()]);
|
|
@@ -384,12 +344,11 @@ export function connectionValueFromJSON(
|
|
|
384
344
|
}
|
|
385
345
|
|
|
386
346
|
/** @internal */
|
|
387
|
-
export const
|
|
388
|
-
|
|
347
|
+
export const ConnectionDefaults$inboundSchema: z.ZodType<
|
|
348
|
+
ConnectionDefaults,
|
|
389
349
|
z.ZodTypeDef,
|
|
390
350
|
unknown
|
|
391
351
|
> = z.object({
|
|
392
|
-
target: Target$inboundSchema.optional(),
|
|
393
352
|
id: z.string().optional(),
|
|
394
353
|
options: z.array(FormFieldOption$inboundSchema).optional(),
|
|
395
354
|
value: z.union([
|
|
@@ -402,8 +361,7 @@ export const Defaults$inboundSchema: z.ZodType<
|
|
|
402
361
|
});
|
|
403
362
|
|
|
404
363
|
/** @internal */
|
|
405
|
-
export type
|
|
406
|
-
target?: string | undefined;
|
|
364
|
+
export type ConnectionDefaults$Outbound = {
|
|
407
365
|
id?: string | undefined;
|
|
408
366
|
options?: Array<FormFieldOption$Outbound> | undefined;
|
|
409
367
|
value?:
|
|
@@ -416,12 +374,11 @@ export type Defaults$Outbound = {
|
|
|
416
374
|
};
|
|
417
375
|
|
|
418
376
|
/** @internal */
|
|
419
|
-
export const
|
|
420
|
-
|
|
377
|
+
export const ConnectionDefaults$outboundSchema: z.ZodType<
|
|
378
|
+
ConnectionDefaults$Outbound,
|
|
421
379
|
z.ZodTypeDef,
|
|
422
|
-
|
|
380
|
+
ConnectionDefaults
|
|
423
381
|
> = z.object({
|
|
424
|
-
target: Target$outboundSchema.optional(),
|
|
425
382
|
id: z.string().optional(),
|
|
426
383
|
options: z.array(FormFieldOption$outboundSchema).optional(),
|
|
427
384
|
value: z.union([
|
|
@@ -437,236 +394,132 @@ export const Defaults$outboundSchema: z.ZodType<
|
|
|
437
394
|
* @internal
|
|
438
395
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
439
396
|
*/
|
|
440
|
-
export namespace
|
|
441
|
-
/** @deprecated use `
|
|
442
|
-
export const inboundSchema =
|
|
443
|
-
/** @deprecated use `
|
|
444
|
-
export const outboundSchema =
|
|
445
|
-
/** @deprecated use `
|
|
446
|
-
export type Outbound =
|
|
397
|
+
export namespace ConnectionDefaults$ {
|
|
398
|
+
/** @deprecated use `ConnectionDefaults$inboundSchema` instead. */
|
|
399
|
+
export const inboundSchema = ConnectionDefaults$inboundSchema;
|
|
400
|
+
/** @deprecated use `ConnectionDefaults$outboundSchema` instead. */
|
|
401
|
+
export const outboundSchema = ConnectionDefaults$outboundSchema;
|
|
402
|
+
/** @deprecated use `ConnectionDefaults$Outbound` instead. */
|
|
403
|
+
export type Outbound = ConnectionDefaults$Outbound;
|
|
447
404
|
}
|
|
448
405
|
|
|
449
|
-
export function
|
|
450
|
-
|
|
406
|
+
export function connectionDefaultsToJSON(
|
|
407
|
+
connectionDefaults: ConnectionDefaults,
|
|
408
|
+
): string {
|
|
409
|
+
return JSON.stringify(
|
|
410
|
+
ConnectionDefaults$outboundSchema.parse(connectionDefaults),
|
|
411
|
+
);
|
|
451
412
|
}
|
|
452
413
|
|
|
453
|
-
export function
|
|
414
|
+
export function connectionDefaultsFromJSON(
|
|
454
415
|
jsonString: string,
|
|
455
|
-
): SafeParseResult<
|
|
416
|
+
): SafeParseResult<ConnectionDefaults, SDKValidationError> {
|
|
456
417
|
return safeParse(
|
|
457
418
|
jsonString,
|
|
458
|
-
(x) =>
|
|
459
|
-
`Failed to parse '
|
|
419
|
+
(x) => ConnectionDefaults$inboundSchema.parse(JSON.parse(x)),
|
|
420
|
+
`Failed to parse 'ConnectionDefaults' from JSON`,
|
|
460
421
|
);
|
|
461
422
|
}
|
|
462
423
|
|
|
463
424
|
/** @internal */
|
|
464
|
-
export const
|
|
465
|
-
|
|
425
|
+
export const ConnectionConfiguration$inboundSchema: z.ZodType<
|
|
426
|
+
ConnectionConfiguration,
|
|
466
427
|
z.ZodTypeDef,
|
|
467
428
|
unknown
|
|
468
429
|
> = z.object({
|
|
469
430
|
resource: z.string().optional(),
|
|
470
|
-
defaults: z.array(z.lazy(() =>
|
|
431
|
+
defaults: z.array(z.lazy(() => ConnectionDefaults$inboundSchema)).optional(),
|
|
471
432
|
});
|
|
472
433
|
|
|
473
434
|
/** @internal */
|
|
474
|
-
export type
|
|
435
|
+
export type ConnectionConfiguration$Outbound = {
|
|
475
436
|
resource?: string | undefined;
|
|
476
|
-
defaults?: Array<
|
|
437
|
+
defaults?: Array<ConnectionDefaults$Outbound> | undefined;
|
|
477
438
|
};
|
|
478
439
|
|
|
479
440
|
/** @internal */
|
|
480
|
-
export const
|
|
481
|
-
|
|
441
|
+
export const ConnectionConfiguration$outboundSchema: z.ZodType<
|
|
442
|
+
ConnectionConfiguration$Outbound,
|
|
482
443
|
z.ZodTypeDef,
|
|
483
|
-
|
|
444
|
+
ConnectionConfiguration
|
|
484
445
|
> = z.object({
|
|
485
446
|
resource: z.string().optional(),
|
|
486
|
-
defaults: z.array(z.lazy(() =>
|
|
447
|
+
defaults: z.array(z.lazy(() => ConnectionDefaults$outboundSchema)).optional(),
|
|
487
448
|
});
|
|
488
449
|
|
|
489
450
|
/**
|
|
490
451
|
* @internal
|
|
491
452
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
492
453
|
*/
|
|
493
|
-
export namespace
|
|
494
|
-
/** @deprecated use `
|
|
495
|
-
export const inboundSchema =
|
|
496
|
-
/** @deprecated use `
|
|
497
|
-
export const outboundSchema =
|
|
498
|
-
/** @deprecated use `
|
|
499
|
-
export type Outbound =
|
|
454
|
+
export namespace ConnectionConfiguration$ {
|
|
455
|
+
/** @deprecated use `ConnectionConfiguration$inboundSchema` instead. */
|
|
456
|
+
export const inboundSchema = ConnectionConfiguration$inboundSchema;
|
|
457
|
+
/** @deprecated use `ConnectionConfiguration$outboundSchema` instead. */
|
|
458
|
+
export const outboundSchema = ConnectionConfiguration$outboundSchema;
|
|
459
|
+
/** @deprecated use `ConnectionConfiguration$Outbound` instead. */
|
|
460
|
+
export type Outbound = ConnectionConfiguration$Outbound;
|
|
500
461
|
}
|
|
501
462
|
|
|
502
|
-
export function
|
|
503
|
-
|
|
463
|
+
export function connectionConfigurationToJSON(
|
|
464
|
+
connectionConfiguration: ConnectionConfiguration,
|
|
465
|
+
): string {
|
|
466
|
+
return JSON.stringify(
|
|
467
|
+
ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
|
|
468
|
+
);
|
|
504
469
|
}
|
|
505
470
|
|
|
506
|
-
export function
|
|
471
|
+
export function connectionConfigurationFromJSON(
|
|
507
472
|
jsonString: string,
|
|
508
|
-
): SafeParseResult<
|
|
473
|
+
): SafeParseResult<ConnectionConfiguration, SDKValidationError> {
|
|
509
474
|
return safeParse(
|
|
510
475
|
jsonString,
|
|
511
|
-
(x) =>
|
|
512
|
-
`Failed to parse '
|
|
476
|
+
(x) => ConnectionConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
477
|
+
`Failed to parse 'ConnectionConfiguration' from JSON`,
|
|
513
478
|
);
|
|
514
479
|
}
|
|
515
480
|
|
|
516
481
|
/** @internal */
|
|
517
|
-
export const
|
|
518
|
-
|
|
482
|
+
export const ConnectionInput$inboundSchema: z.ZodType<
|
|
483
|
+
ConnectionInput,
|
|
519
484
|
z.ZodTypeDef,
|
|
520
485
|
unknown
|
|
521
486
|
> = z.object({
|
|
522
|
-
id: z.string().optional(),
|
|
523
|
-
service_id: z.string().optional(),
|
|
524
|
-
name: z.string().optional(),
|
|
525
|
-
tag_line: z.string().optional(),
|
|
526
|
-
unified_api: z.string().optional(),
|
|
527
|
-
state: ConnectionState$inboundSchema.optional(),
|
|
528
|
-
integration_state: IntegrationState$inboundSchema.optional(),
|
|
529
|
-
auth_type: AuthType$inboundSchema.optional(),
|
|
530
|
-
oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
|
|
531
|
-
status: ConnectionStatus$inboundSchema.optional(),
|
|
532
487
|
enabled: z.boolean().optional(),
|
|
533
|
-
website: z.string().optional(),
|
|
534
|
-
icon: z.string().optional(),
|
|
535
|
-
logo: z.string().optional(),
|
|
536
|
-
authorize_url: z.nullable(z.string()).optional(),
|
|
537
|
-
revoke_url: z.nullable(z.string()).optional(),
|
|
538
488
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
539
489
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
resource_schema_support: z.array(z.string()).optional(),
|
|
544
|
-
resource_settings_support: z.array(z.string()).optional(),
|
|
545
|
-
validation_support: z.boolean().optional(),
|
|
546
|
-
schema_support: z.boolean().optional(),
|
|
547
|
-
settings_required_for_authorization: z.array(z.string()).optional(),
|
|
548
|
-
subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
|
|
549
|
-
has_guide: z.boolean().optional(),
|
|
550
|
-
created_at: z.number().optional(),
|
|
551
|
-
custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
|
|
552
|
-
updated_at: z.nullable(z.number()).optional(),
|
|
490
|
+
configuration: z.array(z.lazy(() => ConnectionConfiguration$inboundSchema))
|
|
491
|
+
.optional(),
|
|
492
|
+
custom_mappings: z.array(CustomMappingInput$inboundSchema).optional(),
|
|
553
493
|
}).transform((v) => {
|
|
554
494
|
return remap$(v, {
|
|
555
|
-
"service_id": "serviceId",
|
|
556
|
-
"tag_line": "tagLine",
|
|
557
|
-
"unified_api": "unifiedApi",
|
|
558
|
-
"integration_state": "integrationState",
|
|
559
|
-
"auth_type": "authType",
|
|
560
|
-
"oauth_grant_type": "oauthGrantType",
|
|
561
|
-
"authorize_url": "authorizeUrl",
|
|
562
|
-
"revoke_url": "revokeUrl",
|
|
563
|
-
"form_fields": "formFields",
|
|
564
|
-
"configurable_resources": "configurableResources",
|
|
565
|
-
"resource_schema_support": "resourceSchemaSupport",
|
|
566
|
-
"resource_settings_support": "resourceSettingsSupport",
|
|
567
|
-
"validation_support": "validationSupport",
|
|
568
|
-
"schema_support": "schemaSupport",
|
|
569
|
-
"settings_required_for_authorization": "settingsRequiredForAuthorization",
|
|
570
|
-
"has_guide": "hasGuide",
|
|
571
|
-
"created_at": "createdAt",
|
|
572
495
|
"custom_mappings": "customMappings",
|
|
573
|
-
"updated_at": "updatedAt",
|
|
574
496
|
});
|
|
575
497
|
});
|
|
576
498
|
|
|
577
499
|
/** @internal */
|
|
578
|
-
export type
|
|
579
|
-
id?: string | undefined;
|
|
580
|
-
service_id?: string | undefined;
|
|
581
|
-
name?: string | undefined;
|
|
582
|
-
tag_line?: string | undefined;
|
|
583
|
-
unified_api?: string | undefined;
|
|
584
|
-
state?: string | undefined;
|
|
585
|
-
integration_state?: string | undefined;
|
|
586
|
-
auth_type?: string | undefined;
|
|
587
|
-
oauth_grant_type?: string | undefined;
|
|
588
|
-
status?: string | undefined;
|
|
500
|
+
export type ConnectionInput$Outbound = {
|
|
589
501
|
enabled?: boolean | undefined;
|
|
590
|
-
website?: string | undefined;
|
|
591
|
-
icon?: string | undefined;
|
|
592
|
-
logo?: string | undefined;
|
|
593
|
-
authorize_url?: string | null | undefined;
|
|
594
|
-
revoke_url?: string | null | undefined;
|
|
595
502
|
settings?: { [k: string]: any } | null | undefined;
|
|
596
503
|
metadata?: { [k: string]: any } | null | undefined;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
configurable_resources?: Array<string> | undefined;
|
|
600
|
-
resource_schema_support?: Array<string> | undefined;
|
|
601
|
-
resource_settings_support?: Array<string> | undefined;
|
|
602
|
-
validation_support?: boolean | undefined;
|
|
603
|
-
schema_support?: boolean | undefined;
|
|
604
|
-
settings_required_for_authorization?: Array<string> | undefined;
|
|
605
|
-
subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
|
|
606
|
-
has_guide?: boolean | undefined;
|
|
607
|
-
created_at?: number | undefined;
|
|
608
|
-
custom_mappings?: Array<CustomMapping$Outbound> | undefined;
|
|
609
|
-
updated_at?: number | null | undefined;
|
|
504
|
+
configuration?: Array<ConnectionConfiguration$Outbound> | undefined;
|
|
505
|
+
custom_mappings?: Array<CustomMappingInput$Outbound> | undefined;
|
|
610
506
|
};
|
|
611
507
|
|
|
612
508
|
/** @internal */
|
|
613
|
-
export const
|
|
614
|
-
|
|
509
|
+
export const ConnectionInput$outboundSchema: z.ZodType<
|
|
510
|
+
ConnectionInput$Outbound,
|
|
615
511
|
z.ZodTypeDef,
|
|
616
|
-
|
|
512
|
+
ConnectionInput
|
|
617
513
|
> = z.object({
|
|
618
|
-
id: z.string().optional(),
|
|
619
|
-
serviceId: z.string().optional(),
|
|
620
|
-
name: z.string().optional(),
|
|
621
|
-
tagLine: z.string().optional(),
|
|
622
|
-
unifiedApi: z.string().optional(),
|
|
623
|
-
state: ConnectionState$outboundSchema.optional(),
|
|
624
|
-
integrationState: IntegrationState$outboundSchema.optional(),
|
|
625
|
-
authType: AuthType$outboundSchema.optional(),
|
|
626
|
-
oauthGrantType: OAuthGrantType$outboundSchema.optional(),
|
|
627
|
-
status: ConnectionStatus$outboundSchema.optional(),
|
|
628
514
|
enabled: z.boolean().optional(),
|
|
629
|
-
website: z.string().optional(),
|
|
630
|
-
icon: z.string().optional(),
|
|
631
|
-
logo: z.string().optional(),
|
|
632
|
-
authorizeUrl: z.nullable(z.string()).optional(),
|
|
633
|
-
revokeUrl: z.nullable(z.string()).optional(),
|
|
634
515
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
635
516
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
resourceSchemaSupport: z.array(z.string()).optional(),
|
|
640
|
-
resourceSettingsSupport: z.array(z.string()).optional(),
|
|
641
|
-
validationSupport: z.boolean().optional(),
|
|
642
|
-
schemaSupport: z.boolean().optional(),
|
|
643
|
-
settingsRequiredForAuthorization: z.array(z.string()).optional(),
|
|
644
|
-
subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
|
|
645
|
-
hasGuide: z.boolean().optional(),
|
|
646
|
-
createdAt: z.number().optional(),
|
|
647
|
-
customMappings: z.array(CustomMapping$outboundSchema).optional(),
|
|
648
|
-
updatedAt: z.nullable(z.number()).optional(),
|
|
517
|
+
configuration: z.array(z.lazy(() => ConnectionConfiguration$outboundSchema))
|
|
518
|
+
.optional(),
|
|
519
|
+
customMappings: z.array(CustomMappingInput$outboundSchema).optional(),
|
|
649
520
|
}).transform((v) => {
|
|
650
521
|
return remap$(v, {
|
|
651
|
-
serviceId: "service_id",
|
|
652
|
-
tagLine: "tag_line",
|
|
653
|
-
unifiedApi: "unified_api",
|
|
654
|
-
integrationState: "integration_state",
|
|
655
|
-
authType: "auth_type",
|
|
656
|
-
oauthGrantType: "oauth_grant_type",
|
|
657
|
-
authorizeUrl: "authorize_url",
|
|
658
|
-
revokeUrl: "revoke_url",
|
|
659
|
-
formFields: "form_fields",
|
|
660
|
-
configurableResources: "configurable_resources",
|
|
661
|
-
resourceSchemaSupport: "resource_schema_support",
|
|
662
|
-
resourceSettingsSupport: "resource_settings_support",
|
|
663
|
-
validationSupport: "validation_support",
|
|
664
|
-
schemaSupport: "schema_support",
|
|
665
|
-
settingsRequiredForAuthorization: "settings_required_for_authorization",
|
|
666
|
-
hasGuide: "has_guide",
|
|
667
|
-
createdAt: "created_at",
|
|
668
522
|
customMappings: "custom_mappings",
|
|
669
|
-
updatedAt: "updated_at",
|
|
670
523
|
});
|
|
671
524
|
});
|
|
672
525
|
|
|
@@ -674,35 +527,78 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
674
527
|
* @internal
|
|
675
528
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
676
529
|
*/
|
|
677
|
-
export namespace
|
|
678
|
-
/** @deprecated use `
|
|
679
|
-
export const inboundSchema =
|
|
680
|
-
/** @deprecated use `
|
|
681
|
-
export const outboundSchema =
|
|
682
|
-
/** @deprecated use `
|
|
683
|
-
export type Outbound =
|
|
530
|
+
export namespace ConnectionInput$ {
|
|
531
|
+
/** @deprecated use `ConnectionInput$inboundSchema` instead. */
|
|
532
|
+
export const inboundSchema = ConnectionInput$inboundSchema;
|
|
533
|
+
/** @deprecated use `ConnectionInput$outboundSchema` instead. */
|
|
534
|
+
export const outboundSchema = ConnectionInput$outboundSchema;
|
|
535
|
+
/** @deprecated use `ConnectionInput$Outbound` instead. */
|
|
536
|
+
export type Outbound = ConnectionInput$Outbound;
|
|
684
537
|
}
|
|
685
538
|
|
|
686
|
-
export function
|
|
687
|
-
|
|
539
|
+
export function connectionInputToJSON(
|
|
540
|
+
connectionInput: ConnectionInput,
|
|
541
|
+
): string {
|
|
542
|
+
return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
|
|
688
543
|
}
|
|
689
544
|
|
|
690
|
-
export function
|
|
545
|
+
export function connectionInputFromJSON(
|
|
691
546
|
jsonString: string,
|
|
692
|
-
): SafeParseResult<
|
|
547
|
+
): SafeParseResult<ConnectionInput, SDKValidationError> {
|
|
693
548
|
return safeParse(
|
|
694
549
|
jsonString,
|
|
695
|
-
(x) =>
|
|
696
|
-
`Failed to parse '
|
|
550
|
+
(x) => ConnectionInput$inboundSchema.parse(JSON.parse(x)),
|
|
551
|
+
`Failed to parse 'ConnectionInput' from JSON`,
|
|
697
552
|
);
|
|
698
553
|
}
|
|
699
554
|
|
|
700
555
|
/** @internal */
|
|
701
|
-
export const
|
|
702
|
-
|
|
556
|
+
export const ConnectionStatus$inboundSchema: z.ZodNativeEnum<
|
|
557
|
+
typeof ConnectionStatus
|
|
558
|
+
> = z.nativeEnum(ConnectionStatus);
|
|
559
|
+
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const ConnectionStatus$outboundSchema: z.ZodNativeEnum<
|
|
562
|
+
typeof ConnectionStatus
|
|
563
|
+
> = ConnectionStatus$inboundSchema;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @internal
|
|
567
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
568
|
+
*/
|
|
569
|
+
export namespace ConnectionStatus$ {
|
|
570
|
+
/** @deprecated use `ConnectionStatus$inboundSchema` instead. */
|
|
571
|
+
export const inboundSchema = ConnectionStatus$inboundSchema;
|
|
572
|
+
/** @deprecated use `ConnectionStatus$outboundSchema` instead. */
|
|
573
|
+
export const outboundSchema = ConnectionStatus$outboundSchema;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/** @internal */
|
|
577
|
+
export const Target$inboundSchema: z.ZodNativeEnum<typeof Target> = z
|
|
578
|
+
.nativeEnum(Target);
|
|
579
|
+
|
|
580
|
+
/** @internal */
|
|
581
|
+
export const Target$outboundSchema: z.ZodNativeEnum<typeof Target> =
|
|
582
|
+
Target$inboundSchema;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @internal
|
|
586
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
587
|
+
*/
|
|
588
|
+
export namespace Target$ {
|
|
589
|
+
/** @deprecated use `Target$inboundSchema` instead. */
|
|
590
|
+
export const inboundSchema = Target$inboundSchema;
|
|
591
|
+
/** @deprecated use `Target$outboundSchema` instead. */
|
|
592
|
+
export const outboundSchema = Target$outboundSchema;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/** @internal */
|
|
596
|
+
export const Defaults$inboundSchema: z.ZodType<
|
|
597
|
+
Defaults,
|
|
703
598
|
z.ZodTypeDef,
|
|
704
599
|
unknown
|
|
705
600
|
> = z.object({
|
|
601
|
+
target: Target$inboundSchema.optional(),
|
|
706
602
|
id: z.string().optional(),
|
|
707
603
|
options: z.array(FormFieldOption$inboundSchema).optional(),
|
|
708
604
|
value: z.union([
|
|
@@ -715,7 +611,8 @@ export const ConnectionDefaults$inboundSchema: z.ZodType<
|
|
|
715
611
|
});
|
|
716
612
|
|
|
717
613
|
/** @internal */
|
|
718
|
-
export type
|
|
614
|
+
export type Defaults$Outbound = {
|
|
615
|
+
target?: string | undefined;
|
|
719
616
|
id?: string | undefined;
|
|
720
617
|
options?: Array<FormFieldOption$Outbound> | undefined;
|
|
721
618
|
value?:
|
|
@@ -728,11 +625,12 @@ export type ConnectionDefaults$Outbound = {
|
|
|
728
625
|
};
|
|
729
626
|
|
|
730
627
|
/** @internal */
|
|
731
|
-
export const
|
|
732
|
-
|
|
628
|
+
export const Defaults$outboundSchema: z.ZodType<
|
|
629
|
+
Defaults$Outbound,
|
|
733
630
|
z.ZodTypeDef,
|
|
734
|
-
|
|
631
|
+
Defaults
|
|
735
632
|
> = z.object({
|
|
633
|
+
target: Target$outboundSchema.optional(),
|
|
736
634
|
id: z.string().optional(),
|
|
737
635
|
options: z.array(FormFieldOption$outboundSchema).optional(),
|
|
738
636
|
value: z.union([
|
|
@@ -748,132 +646,236 @@ export const ConnectionDefaults$outboundSchema: z.ZodType<
|
|
|
748
646
|
* @internal
|
|
749
647
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
750
648
|
*/
|
|
751
|
-
export namespace
|
|
752
|
-
/** @deprecated use `
|
|
753
|
-
export const inboundSchema =
|
|
754
|
-
/** @deprecated use `
|
|
755
|
-
export const outboundSchema =
|
|
756
|
-
/** @deprecated use `
|
|
757
|
-
export type Outbound =
|
|
649
|
+
export namespace Defaults$ {
|
|
650
|
+
/** @deprecated use `Defaults$inboundSchema` instead. */
|
|
651
|
+
export const inboundSchema = Defaults$inboundSchema;
|
|
652
|
+
/** @deprecated use `Defaults$outboundSchema` instead. */
|
|
653
|
+
export const outboundSchema = Defaults$outboundSchema;
|
|
654
|
+
/** @deprecated use `Defaults$Outbound` instead. */
|
|
655
|
+
export type Outbound = Defaults$Outbound;
|
|
758
656
|
}
|
|
759
657
|
|
|
760
|
-
export function
|
|
761
|
-
|
|
762
|
-
): string {
|
|
763
|
-
return JSON.stringify(
|
|
764
|
-
ConnectionDefaults$outboundSchema.parse(connectionDefaults),
|
|
765
|
-
);
|
|
658
|
+
export function defaultsToJSON(defaults: Defaults): string {
|
|
659
|
+
return JSON.stringify(Defaults$outboundSchema.parse(defaults));
|
|
766
660
|
}
|
|
767
661
|
|
|
768
|
-
export function
|
|
662
|
+
export function defaultsFromJSON(
|
|
769
663
|
jsonString: string,
|
|
770
|
-
): SafeParseResult<
|
|
664
|
+
): SafeParseResult<Defaults, SDKValidationError> {
|
|
771
665
|
return safeParse(
|
|
772
666
|
jsonString,
|
|
773
|
-
(x) =>
|
|
774
|
-
`Failed to parse '
|
|
667
|
+
(x) => Defaults$inboundSchema.parse(JSON.parse(x)),
|
|
668
|
+
`Failed to parse 'Defaults' from JSON`,
|
|
775
669
|
);
|
|
776
670
|
}
|
|
777
671
|
|
|
778
672
|
/** @internal */
|
|
779
|
-
export const
|
|
780
|
-
|
|
673
|
+
export const Configuration$inboundSchema: z.ZodType<
|
|
674
|
+
Configuration,
|
|
781
675
|
z.ZodTypeDef,
|
|
782
676
|
unknown
|
|
783
677
|
> = z.object({
|
|
784
678
|
resource: z.string().optional(),
|
|
785
|
-
defaults: z.array(z.lazy(() =>
|
|
679
|
+
defaults: z.array(z.lazy(() => Defaults$inboundSchema)).optional(),
|
|
786
680
|
});
|
|
787
681
|
|
|
788
682
|
/** @internal */
|
|
789
|
-
export type
|
|
683
|
+
export type Configuration$Outbound = {
|
|
790
684
|
resource?: string | undefined;
|
|
791
|
-
defaults?: Array<
|
|
685
|
+
defaults?: Array<Defaults$Outbound> | undefined;
|
|
792
686
|
};
|
|
793
687
|
|
|
794
688
|
/** @internal */
|
|
795
|
-
export const
|
|
796
|
-
|
|
689
|
+
export const Configuration$outboundSchema: z.ZodType<
|
|
690
|
+
Configuration$Outbound,
|
|
797
691
|
z.ZodTypeDef,
|
|
798
|
-
|
|
692
|
+
Configuration
|
|
799
693
|
> = z.object({
|
|
800
694
|
resource: z.string().optional(),
|
|
801
|
-
defaults: z.array(z.lazy(() =>
|
|
695
|
+
defaults: z.array(z.lazy(() => Defaults$outboundSchema)).optional(),
|
|
802
696
|
});
|
|
803
697
|
|
|
804
698
|
/**
|
|
805
699
|
* @internal
|
|
806
700
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
807
701
|
*/
|
|
808
|
-
export namespace
|
|
809
|
-
/** @deprecated use `
|
|
810
|
-
export const inboundSchema =
|
|
811
|
-
/** @deprecated use `
|
|
812
|
-
export const outboundSchema =
|
|
813
|
-
/** @deprecated use `
|
|
814
|
-
export type Outbound =
|
|
702
|
+
export namespace Configuration$ {
|
|
703
|
+
/** @deprecated use `Configuration$inboundSchema` instead. */
|
|
704
|
+
export const inboundSchema = Configuration$inboundSchema;
|
|
705
|
+
/** @deprecated use `Configuration$outboundSchema` instead. */
|
|
706
|
+
export const outboundSchema = Configuration$outboundSchema;
|
|
707
|
+
/** @deprecated use `Configuration$Outbound` instead. */
|
|
708
|
+
export type Outbound = Configuration$Outbound;
|
|
815
709
|
}
|
|
816
710
|
|
|
817
|
-
export function
|
|
818
|
-
|
|
819
|
-
): string {
|
|
820
|
-
return JSON.stringify(
|
|
821
|
-
ConnectionConfiguration$outboundSchema.parse(connectionConfiguration),
|
|
822
|
-
);
|
|
711
|
+
export function configurationToJSON(configuration: Configuration): string {
|
|
712
|
+
return JSON.stringify(Configuration$outboundSchema.parse(configuration));
|
|
823
713
|
}
|
|
824
714
|
|
|
825
|
-
export function
|
|
715
|
+
export function configurationFromJSON(
|
|
826
716
|
jsonString: string,
|
|
827
|
-
): SafeParseResult<
|
|
717
|
+
): SafeParseResult<Configuration, SDKValidationError> {
|
|
828
718
|
return safeParse(
|
|
829
719
|
jsonString,
|
|
830
|
-
(x) =>
|
|
831
|
-
`Failed to parse '
|
|
720
|
+
(x) => Configuration$inboundSchema.parse(JSON.parse(x)),
|
|
721
|
+
`Failed to parse 'Configuration' from JSON`,
|
|
832
722
|
);
|
|
833
723
|
}
|
|
834
724
|
|
|
835
725
|
/** @internal */
|
|
836
|
-
export const
|
|
837
|
-
|
|
726
|
+
export const Connection$inboundSchema: z.ZodType<
|
|
727
|
+
Connection,
|
|
838
728
|
z.ZodTypeDef,
|
|
839
729
|
unknown
|
|
840
730
|
> = z.object({
|
|
731
|
+
id: z.string().optional(),
|
|
732
|
+
service_id: z.string().optional(),
|
|
733
|
+
name: z.string().optional(),
|
|
734
|
+
tag_line: z.string().optional(),
|
|
735
|
+
unified_api: z.string().optional(),
|
|
736
|
+
state: ConnectionState$inboundSchema.optional(),
|
|
737
|
+
integration_state: IntegrationState$inboundSchema.optional(),
|
|
738
|
+
auth_type: AuthType$inboundSchema.optional(),
|
|
739
|
+
oauth_grant_type: OAuthGrantType$inboundSchema.optional(),
|
|
740
|
+
status: ConnectionStatus$inboundSchema.optional(),
|
|
841
741
|
enabled: z.boolean().optional(),
|
|
742
|
+
website: z.string().optional(),
|
|
743
|
+
icon: z.string().optional(),
|
|
744
|
+
logo: z.string().optional(),
|
|
745
|
+
authorize_url: z.nullable(z.string()).optional(),
|
|
746
|
+
revoke_url: z.nullable(z.string()).optional(),
|
|
842
747
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
843
748
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
749
|
+
form_fields: z.array(FormField$inboundSchema).optional(),
|
|
750
|
+
configuration: z.array(z.lazy(() => Configuration$inboundSchema)).optional(),
|
|
751
|
+
configurable_resources: z.array(z.string()).optional(),
|
|
752
|
+
resource_schema_support: z.array(z.string()).optional(),
|
|
753
|
+
resource_settings_support: z.array(z.string()).optional(),
|
|
754
|
+
validation_support: z.boolean().optional(),
|
|
755
|
+
schema_support: z.boolean().optional(),
|
|
756
|
+
settings_required_for_authorization: z.array(z.string()).optional(),
|
|
757
|
+
subscriptions: z.array(WebhookSubscription$inboundSchema).optional(),
|
|
758
|
+
has_guide: z.boolean().optional(),
|
|
759
|
+
created_at: z.number().optional(),
|
|
760
|
+
custom_mappings: z.array(CustomMapping$inboundSchema).optional(),
|
|
761
|
+
updated_at: z.nullable(z.number()).optional(),
|
|
847
762
|
}).transform((v) => {
|
|
848
763
|
return remap$(v, {
|
|
764
|
+
"service_id": "serviceId",
|
|
765
|
+
"tag_line": "tagLine",
|
|
766
|
+
"unified_api": "unifiedApi",
|
|
767
|
+
"integration_state": "integrationState",
|
|
768
|
+
"auth_type": "authType",
|
|
769
|
+
"oauth_grant_type": "oauthGrantType",
|
|
770
|
+
"authorize_url": "authorizeUrl",
|
|
771
|
+
"revoke_url": "revokeUrl",
|
|
772
|
+
"form_fields": "formFields",
|
|
773
|
+
"configurable_resources": "configurableResources",
|
|
774
|
+
"resource_schema_support": "resourceSchemaSupport",
|
|
775
|
+
"resource_settings_support": "resourceSettingsSupport",
|
|
776
|
+
"validation_support": "validationSupport",
|
|
777
|
+
"schema_support": "schemaSupport",
|
|
778
|
+
"settings_required_for_authorization": "settingsRequiredForAuthorization",
|
|
779
|
+
"has_guide": "hasGuide",
|
|
780
|
+
"created_at": "createdAt",
|
|
849
781
|
"custom_mappings": "customMappings",
|
|
782
|
+
"updated_at": "updatedAt",
|
|
850
783
|
});
|
|
851
784
|
});
|
|
852
785
|
|
|
853
786
|
/** @internal */
|
|
854
|
-
export type
|
|
787
|
+
export type Connection$Outbound = {
|
|
788
|
+
id?: string | undefined;
|
|
789
|
+
service_id?: string | undefined;
|
|
790
|
+
name?: string | undefined;
|
|
791
|
+
tag_line?: string | undefined;
|
|
792
|
+
unified_api?: string | undefined;
|
|
793
|
+
state?: string | undefined;
|
|
794
|
+
integration_state?: string | undefined;
|
|
795
|
+
auth_type?: string | undefined;
|
|
796
|
+
oauth_grant_type?: string | undefined;
|
|
797
|
+
status?: string | undefined;
|
|
855
798
|
enabled?: boolean | undefined;
|
|
799
|
+
website?: string | undefined;
|
|
800
|
+
icon?: string | undefined;
|
|
801
|
+
logo?: string | undefined;
|
|
802
|
+
authorize_url?: string | null | undefined;
|
|
803
|
+
revoke_url?: string | null | undefined;
|
|
856
804
|
settings?: { [k: string]: any } | null | undefined;
|
|
857
805
|
metadata?: { [k: string]: any } | null | undefined;
|
|
858
|
-
|
|
859
|
-
|
|
806
|
+
form_fields?: Array<FormField$Outbound> | undefined;
|
|
807
|
+
configuration?: Array<Configuration$Outbound> | undefined;
|
|
808
|
+
configurable_resources?: Array<string> | undefined;
|
|
809
|
+
resource_schema_support?: Array<string> | undefined;
|
|
810
|
+
resource_settings_support?: Array<string> | undefined;
|
|
811
|
+
validation_support?: boolean | undefined;
|
|
812
|
+
schema_support?: boolean | undefined;
|
|
813
|
+
settings_required_for_authorization?: Array<string> | undefined;
|
|
814
|
+
subscriptions?: Array<WebhookSubscription$Outbound> | undefined;
|
|
815
|
+
has_guide?: boolean | undefined;
|
|
816
|
+
created_at?: number | undefined;
|
|
817
|
+
custom_mappings?: Array<CustomMapping$Outbound> | undefined;
|
|
818
|
+
updated_at?: number | null | undefined;
|
|
860
819
|
};
|
|
861
820
|
|
|
862
821
|
/** @internal */
|
|
863
|
-
export const
|
|
864
|
-
|
|
822
|
+
export const Connection$outboundSchema: z.ZodType<
|
|
823
|
+
Connection$Outbound,
|
|
865
824
|
z.ZodTypeDef,
|
|
866
|
-
|
|
825
|
+
Connection
|
|
867
826
|
> = z.object({
|
|
827
|
+
id: z.string().optional(),
|
|
828
|
+
serviceId: z.string().optional(),
|
|
829
|
+
name: z.string().optional(),
|
|
830
|
+
tagLine: z.string().optional(),
|
|
831
|
+
unifiedApi: z.string().optional(),
|
|
832
|
+
state: ConnectionState$outboundSchema.optional(),
|
|
833
|
+
integrationState: IntegrationState$outboundSchema.optional(),
|
|
834
|
+
authType: AuthType$outboundSchema.optional(),
|
|
835
|
+
oauthGrantType: OAuthGrantType$outboundSchema.optional(),
|
|
836
|
+
status: ConnectionStatus$outboundSchema.optional(),
|
|
868
837
|
enabled: z.boolean().optional(),
|
|
838
|
+
website: z.string().optional(),
|
|
839
|
+
icon: z.string().optional(),
|
|
840
|
+
logo: z.string().optional(),
|
|
841
|
+
authorizeUrl: z.nullable(z.string()).optional(),
|
|
842
|
+
revokeUrl: z.nullable(z.string()).optional(),
|
|
869
843
|
settings: z.nullable(z.record(z.any())).optional(),
|
|
870
844
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
845
|
+
formFields: z.array(FormField$outboundSchema).optional(),
|
|
846
|
+
configuration: z.array(z.lazy(() => Configuration$outboundSchema)).optional(),
|
|
847
|
+
configurableResources: z.array(z.string()).optional(),
|
|
848
|
+
resourceSchemaSupport: z.array(z.string()).optional(),
|
|
849
|
+
resourceSettingsSupport: z.array(z.string()).optional(),
|
|
850
|
+
validationSupport: z.boolean().optional(),
|
|
851
|
+
schemaSupport: z.boolean().optional(),
|
|
852
|
+
settingsRequiredForAuthorization: z.array(z.string()).optional(),
|
|
853
|
+
subscriptions: z.array(WebhookSubscription$outboundSchema).optional(),
|
|
854
|
+
hasGuide: z.boolean().optional(),
|
|
855
|
+
createdAt: z.number().optional(),
|
|
856
|
+
customMappings: z.array(CustomMapping$outboundSchema).optional(),
|
|
857
|
+
updatedAt: z.nullable(z.number()).optional(),
|
|
874
858
|
}).transform((v) => {
|
|
875
859
|
return remap$(v, {
|
|
860
|
+
serviceId: "service_id",
|
|
861
|
+
tagLine: "tag_line",
|
|
862
|
+
unifiedApi: "unified_api",
|
|
863
|
+
integrationState: "integration_state",
|
|
864
|
+
authType: "auth_type",
|
|
865
|
+
oauthGrantType: "oauth_grant_type",
|
|
866
|
+
authorizeUrl: "authorize_url",
|
|
867
|
+
revokeUrl: "revoke_url",
|
|
868
|
+
formFields: "form_fields",
|
|
869
|
+
configurableResources: "configurable_resources",
|
|
870
|
+
resourceSchemaSupport: "resource_schema_support",
|
|
871
|
+
resourceSettingsSupport: "resource_settings_support",
|
|
872
|
+
validationSupport: "validation_support",
|
|
873
|
+
schemaSupport: "schema_support",
|
|
874
|
+
settingsRequiredForAuthorization: "settings_required_for_authorization",
|
|
875
|
+
hasGuide: "has_guide",
|
|
876
|
+
createdAt: "created_at",
|
|
876
877
|
customMappings: "custom_mappings",
|
|
878
|
+
updatedAt: "updated_at",
|
|
877
879
|
});
|
|
878
880
|
});
|
|
879
881
|
|
|
@@ -881,27 +883,25 @@ export const ConnectionInput$outboundSchema: z.ZodType<
|
|
|
881
883
|
* @internal
|
|
882
884
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
883
885
|
*/
|
|
884
|
-
export namespace
|
|
885
|
-
/** @deprecated use `
|
|
886
|
-
export const inboundSchema =
|
|
887
|
-
/** @deprecated use `
|
|
888
|
-
export const outboundSchema =
|
|
889
|
-
/** @deprecated use `
|
|
890
|
-
export type Outbound =
|
|
886
|
+
export namespace Connection$ {
|
|
887
|
+
/** @deprecated use `Connection$inboundSchema` instead. */
|
|
888
|
+
export const inboundSchema = Connection$inboundSchema;
|
|
889
|
+
/** @deprecated use `Connection$outboundSchema` instead. */
|
|
890
|
+
export const outboundSchema = Connection$outboundSchema;
|
|
891
|
+
/** @deprecated use `Connection$Outbound` instead. */
|
|
892
|
+
export type Outbound = Connection$Outbound;
|
|
891
893
|
}
|
|
892
894
|
|
|
893
|
-
export function
|
|
894
|
-
|
|
895
|
-
): string {
|
|
896
|
-
return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput));
|
|
895
|
+
export function connectionToJSON(connection: Connection): string {
|
|
896
|
+
return JSON.stringify(Connection$outboundSchema.parse(connection));
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
export function
|
|
899
|
+
export function connectionFromJSON(
|
|
900
900
|
jsonString: string,
|
|
901
|
-
): SafeParseResult<
|
|
901
|
+
): SafeParseResult<Connection, SDKValidationError> {
|
|
902
902
|
return safeParse(
|
|
903
903
|
jsonString,
|
|
904
|
-
(x) =>
|
|
905
|
-
`Failed to parse '
|
|
904
|
+
(x) => Connection$inboundSchema.parse(JSON.parse(x)),
|
|
905
|
+
`Failed to parse 'Connection' from JSON`,
|
|
906
906
|
);
|
|
907
907
|
}
|