From 68e45f83eeff3a1084fa5f2a2f1dcee6e794fe4f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Nov 2025 16:09:04 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes Detected: * `apideck.accounting.expenses.list()`: `response.data.[]` **Changed** **Breaking** :warning: * `apideck.accounting.expenses.update()`: * `request.expense` **Changed** **Breaking** :warning: * `apideck.accounting.expenses.get()`: `response.data` **Changed** **Breaking** :warning: * `apideck.accounting.expenses.create()`: * `request.expense` **Changed** **Breaking** :warning: * `apideck.accounting.creditNotes.create()`: * `request.creditNote` **Changed** * `apideck.accounting.journalEntries.update()`: * `request.journalEntry.lineItems.[]` **Changed** * `apideck.accounting.invoiceItems.create()`: * `request.invoiceItem` **Changed** * `apideck.accounting.invoiceItems.update()`: * `request.invoiceItem` **Changed** * `apideck.accounting.bills.create()`: * `request.bill.lineItems.[]` **Changed** * `apideck.accounting.creditNotes.update()`: * `request.creditNote` **Changed** * `apideck.accounting.customers.create()`: * `request.customer` **Changed** * `apideck.accounting.customers.update()`: * `request.customer` **Changed** * `apideck.accounting.suppliers.create()`: * `request.supplier` **Changed** * `apideck.accounting.suppliers.update()`: * `request.supplier` **Changed** * `apideck.accounting.payments.create()`: * `request.payment.account.name` **Added** * `apideck.accounting.payments.update()`: * `request.payment.account.name` **Added** * `apideck.accounting.journalEntries.create()`: * `request.journalEntry.lineItems.[]` **Changed** * `apideck.accounting.ledgerAccounts.update()`: * `request.ledgerAccount.taxRate.code` **Added** * `apideck.accounting.purchaseOrders.create()`: * `request.purchaseOrder.lineItems.[]` **Changed** * `apideck.accounting.purchaseOrders.update()`: * `request.purchaseOrder.lineItems.[]` **Changed** * `apideck.accounting.bankAccounts.create()`: * `request.accountingBankAccount.ledgerAccount.name` **Added** * `apideck.accounting.bankAccounts.update()`: * `request.accountingBankAccount.ledgerAccount.name` **Added** * `apideck.accounting.billPayments.create()`: * `request.billPayment.account.name` **Added** * `apideck.accounting.billPayments.update()`: * `request.billPayment.account.name` **Added** * `apideck.accounting.ledgerAccounts.create()`: * `request.ledgerAccount.taxRate.code` **Added** * `apideck.accounting.invoices.update()`: * `request.invoice.lineItems.[]` **Changed** * `apideck.accounting.invoices.create()`: * `request.invoice.lineItems.[]` **Changed** * `apideck.accounting.bills.update()`: * `request.bill.lineItems.[]` **Changed** * `apideck.accounting.quotes.create()`: * `request.quote.lineItems.[]` **Changed** * `apideck.accounting.quotes.update()`: * `request.quote.lineItems.[]` **Changed** * `apideck.accounting.projects.create()`: * `request.project.taxRate.code` **Added** * `apideck.accounting.projects.update()`: * `request.project.taxRate.code` **Added** --- .speakeasy/gen.lock | 90 +- .speakeasy/gen.yaml | 5 +- .speakeasy/tests.arazzo.yaml | 4 + .speakeasy/workflow.lock | 14 +- RELEASES.md | 12 +- .../components/accountingbankaccountinput.md | 3 +- docs/models/components/bill.md | 10 +- docs/models/components/billinput.md | 15 +- docs/models/components/billlineitem.md | 6 +- docs/models/components/billlineiteminput.md | 10 +- docs/models/components/billlineitemtype.md | 17 - docs/models/components/billpaymentinput.md | 3 +- docs/models/components/creditnoteinput.md | 5 +- docs/models/components/customerinput.md | 4 +- docs/models/components/expense.md | 257 +-- docs/models/components/expense1.md | 110 - docs/models/components/expense1input.md | 96 - docs/models/components/expense2.md | 109 - docs/models/components/expense2input.md | 124 -- docs/models/components/expense2paymenttype.md | 17 - docs/models/components/expense2status.md | 17 - docs/models/components/expense3.md | 95 - docs/models/components/expense3expensetype.md | 17 - docs/models/components/expense3paymenttype.md | 17 - docs/models/components/expense3status.md | 17 - docs/models/components/expenseexpensetype.md | 17 - docs/models/components/expenseinput.md | 236 +- docs/models/components/expenselineitem.md | 17 +- .../models/components/expenselineiteminput.md | 21 +- docs/models/components/getbillresponse.md | 6 +- docs/models/components/getexpenseresponse.md | 49 +- docs/models/components/getexpensesresponse.md | 50 +- docs/models/components/invoiceinput.md | 5 +- docs/models/components/invoiceiteminput.md | 11 +- .../components/invoiceitempurchasedetails.md | 1 + .../components/invoiceitemsalesdetails.md | 1 + .../models/components/invoicelineiteminput.md | 4 +- docs/models/components/journalentryinput.md | 2 + .../components/journalentrylineiteminput.md | 4 +- docs/models/components/ledgeraccountinput.md | 1 + docs/models/components/lineitemtype.md | 17 + .../components/linkedledgeraccountinput.md | 25 - docs/models/components/linkedtaxrateinput.md | 2 + docs/models/components/paymentinput.md | 3 +- docs/models/components/projectinput.md | 1 + docs/models/components/purchaseorderinput.md | 5 +- docs/models/components/quoteinput.md | 2 + docs/models/components/quotelineiteminput.md | 4 +- docs/models/components/supplierinput.md | 4 +- docs/models/components/three.md | 109 - .../accountingbankaccountsaddrequest.md | 1 + .../accountingbankaccountsupdaterequest.md | 1 + .../accountingbillpaymentsaddrequest.md | 1 + .../accountingbillpaymentsupdaterequest.md | 1 + .../operations/accountingbillsaddrequest.md | 9 +- .../accountingbillsupdaterequest.md | 9 +- .../accountingcreditnotesaddrequest.md | 3 + .../accountingcreditnotesupdaterequest.md | 3 + .../accountingcustomersaddrequest.md | 2 + .../accountingcustomersupdaterequest.md | 2 + .../accountingexpensesaddrequest.md | 80 +- .../accountingexpensesupdaterequest.md | 80 +- .../accountinginvoiceitemsaddrequest.md | 5 + .../accountinginvoiceitemsupdaterequest.md | 5 + .../accountinginvoicesaddrequest.md | 3 + .../accountinginvoicesupdaterequest.md | 3 + .../accountingjournalentriesaddrequest.md | 2 + .../accountingjournalentriesupdaterequest.md | 2 + .../accountingledgeraccountsaddrequest.md | 1 + .../accountingledgeraccountsupdaterequest.md | 1 + .../accountingpaymentsaddrequest.md | 1 + .../accountingpaymentsupdaterequest.md | 1 + .../accountingprojectsaddrequest.md | 1 + .../accountingprojectsupdaterequest.md | 1 + .../accountingpurchaseordersaddrequest.md | 3 + .../accountingpurchaseordersupdaterequest.md | 3 + .../operations/accountingquotesaddrequest.md | 2 + .../accountingquotesupdaterequest.md | 2 + .../accountingsuppliersaddrequest.md | 1 + .../accountingsuppliersupdaterequest.md | 1 + docs/sdks/bankaccounts/README.md | 4 + docs/sdks/projects/README.md | 4 + examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/__tests__/bankaccounts.test.ts | 2 + .../handler/pathgetaccountingbills.go | 10 +- .../handler/pathgetaccountingbillsid.go | 6 +- .../handler/pathgetaccountingexpenses.go | 620 +++--- .../handler/pathgetaccountingexpensesid.go | 202 +- .../components/accountingbankaccount.go | 4 +- .../internal/sdk/models/components/bill.go | 14 +- .../sdk/models/components/billlineitem.go | 332 +-- .../models/components/billlineiteminput.go | 297 +++ .../sdk/models/components/billpayment.go | 6 +- .../sdk/models/components/creditnote.go | 10 +- .../sdk/models/components/customer.go | 6 +- .../sdk/models/components/customfield.go | 11 - .../internal/sdk/models/components/expense.go | 665 ++++++ .../sdk/models/components/expenselineitem.go | 59 +- .../models/components/expenselineiteminput.go | 65 +- .../sdk/models/components/expenseunion.go | 1918 ----------------- .../models/components/getexpenseresponse.go | 8 +- .../models/components/getexpensesresponse.go | 8 +- .../internal/sdk/models/components/invoice.go | 10 +- .../sdk/models/components/invoiceitem.go | 14 +- .../sdk/models/components/invoicelineitem.go | 4 +- .../models/components/journalentrylineitem.go | 4 +- .../sdk/models/components/lineitemtype.go | 38 + .../models/components/linkedbankaccount.go | 15 - .../models/components/linkedledgeraccount.go | 15 - .../components/linkedledgeraccountinput.go | 66 - .../sdk/models/components/linkedtaxrate.go | 15 - .../models/components/linkedtaxrateinput.go | 22 +- .../components/linkedtrackingcategory.go | 15 - .../sdk/models/components/passthroughbody.go | 26 - .../sdk/models/components/paymentinput.go | 6 +- .../sdk/models/components/purchaseorder.go | 12 +- .../sdk/models/components/quotelineitem.go | 4 +- .../sdk/models/components/rebilling.go | 12 - .../sdk/models/components/supplier.go | 6 +- .../operations/accountingattachmentsupload.go | 10 +- .../operations/accountingbankaccountsadd.go | 10 +- .../accountingbankaccountsupdate.go | 10 +- .../accountingbankfeedaccountsadd.go | 10 +- .../accountingbankfeedaccountsupdate.go | 10 +- .../accountingbankfeedstatementsadd.go | 10 +- .../accountingbankfeedstatementsupdate.go | 10 +- .../operations/accountingbillpaymentsadd.go | 10 +- .../accountingbillpaymentsupdate.go | 10 +- .../models/operations/accountingbillsadd.go | 8 +- .../operations/accountingbillsupdate.go | 8 +- .../operations/accountingcreditnotesadd.go | 10 +- .../operations/accountingcreditnotesupdate.go | 10 +- .../operations/accountingcustomersadd.go | 8 +- .../operations/accountingcustomersupdate.go | 10 +- .../operations/accountingdepartmentsadd.go | 10 +- .../operations/accountingdepartmentsupdate.go | 10 +- .../operations/accountingexpensesadd.go | 12 +- .../operations/accountingexpensesupdate.go | 12 +- .../operations/accountinginvoiceitemsadd.go | 10 +- .../accountinginvoiceitemsupdate.go | 10 +- .../operations/accountinginvoicesadd.go | 8 +- .../operations/accountinginvoicesupdate.go | 10 +- .../operations/accountingjournalentriesadd.go | 10 +- .../accountingjournalentriesupdate.go | 10 +- .../operations/accountingledgeraccountsadd.go | 10 +- .../accountingledgeraccountsupdate.go | 10 +- .../operations/accountinglocationsadd.go | 10 +- .../operations/accountinglocationsupdate.go | 10 +- .../operations/accountingpaymentsadd.go | 8 +- .../operations/accountingpaymentsupdate.go | 10 +- .../operations/accountingprojectsadd.go | 8 +- .../operations/accountingprojectsupdate.go | 10 +- .../operations/accountingpurchaseordersadd.go | 10 +- .../accountingpurchaseordersupdate.go | 10 +- .../models/operations/accountingquotesadd.go | 8 +- .../operations/accountingquotesupdate.go | 10 +- .../operations/accountingsubsidiariesadd.go | 10 +- .../accountingsubsidiariesupdate.go | 10 +- .../operations/accountingsuppliersadd.go | 8 +- .../operations/accountingsuppliersupdate.go | 10 +- .../operations/accountingtaxratesadd.go | 8 +- .../operations/accountingtaxratesupdate.go | 10 +- .../accountingtrackingcategoriesadd.go | 10 +- .../accountingtrackingcategoriesupdate.go | 10 +- .../sdk/models/operations/atsapplicantsadd.go | 8 +- .../models/operations/atsapplicantsupdate.go | 10 +- .../models/operations/atsapplicationsadd.go | 10 +- .../operations/atsapplicationsupdate.go | 10 +- .../sdk/models/operations/crmactivitiesadd.go | 8 +- .../models/operations/crmactivitiesupdate.go | 10 +- .../sdk/models/operations/crmcompaniesadd.go | 8 +- .../models/operations/crmcompaniesupdate.go | 8 +- .../sdk/models/operations/crmcontactsadd.go | 8 +- .../models/operations/crmcontactsupdate.go | 10 +- .../models/operations/crmcustomobjectsadd.go | 10 +- .../operations/crmcustomobjectschemasadd.go | 10 +- .../crmcustomobjectschemasupdate.go | 10 +- .../operations/crmcustomobjectsupdate.go | 10 +- .../sdk/models/operations/crmleadsadd.go | 8 +- .../sdk/models/operations/crmleadsupdate.go | 8 +- .../sdk/models/operations/crmnotesadd.go | 8 +- .../sdk/models/operations/crmnotesupdate.go | 8 +- .../models/operations/crmopportunitiesadd.go | 10 +- .../operations/crmopportunitiesupdate.go | 10 +- .../sdk/models/operations/crmpipelinesadd.go | 8 +- .../models/operations/crmpipelinesupdate.go | 10 +- .../sdk/models/operations/crmusersadd.go | 8 +- .../sdk/models/operations/crmusersupdate.go | 8 +- .../operations/filestoragedrivegroupsadd.go | 10 +- .../filestoragedrivegroupsupdate.go | 10 +- .../models/operations/filestoragedrivesadd.go | 8 +- .../operations/filestoragedrivesupdate.go | 10 +- .../operations/filestoragefilessearch.go | 10 +- .../operations/filestoragefilesupdate.go | 10 +- .../operations/filestoragefoldersadd.go | 10 +- .../operations/filestoragefolderscopy.go | 10 +- .../operations/filestoragefoldersupdate.go | 10 +- .../operations/filestoragesharedlinksadd.go | 10 +- .../filestoragesharedlinksupdate.go | 10 +- .../filestorageuploadsessionsadd.go | 10 +- .../filestorageuploadsessionsfinish.go | 8 +- .../filestorageuploadsessionsupload.go | 10 +- .../sdk/models/operations/hriscompaniesadd.go | 10 +- .../models/operations/hriscompaniesupdate.go | 10 +- .../models/operations/hrisdepartmentsadd.go | 10 +- .../operations/hrisdepartmentsupdate.go | 10 +- .../sdk/models/operations/hrisemployeesadd.go | 8 +- .../models/operations/hrisemployeesupdate.go | 10 +- .../operations/hristimeoffrequestsadd.go | 10 +- .../operations/hristimeoffrequestsupdate.go | 10 +- ...ssuetrackingcollectionticketcommentsadd.go | 10 +- ...etrackingcollectionticketcommentsupdate.go | 10 +- .../issuetrackingcollectionticketsadd.go | 8 +- .../issuetrackingcollectionticketsupdate.go | 8 +- .../sdk/models/operations/smsmessagesadd.go | 8 +- .../models/operations/smsmessagesupdate.go | 10 +- .../vaultconnectionconsentupdate.go | 6 +- .../vaultconnectionsettingsupdate.go | 6 +- .../operations/vaultconnectionsimport.go | 6 +- .../operations/vaultconnectionstoken.go | 8 +- .../operations/vaultconnectionsupdate.go | 6 +- .../models/operations/vaultconsumersadd.go | 8 +- .../models/operations/vaultconsumersupdate.go | 8 +- .../operations/vaultcreatecallbackstate.go | 6 +- .../models/operations/vaultsessionscreate.go | 6 +- .../vaultvalidateconnectionstate.go | 8 +- .../models/operations/webhookwebhooksadd.go | 8 +- .../operations/webhookwebhooksupdate.go | 8 +- src/__tests__/projects.test.ts | 2 + src/lib/config.ts | 6 +- .../components/accountingbankaccount.ts | 207 +- src/models/components/accountingdepartment.ts | 129 -- .../components/accountingdepartmentsfilter.ts | 35 - src/models/components/accountinglocation.ts | 136 -- .../components/accountinglocationsfilter.ts | 35 - src/models/components/activitiesfilter.ts | 48 - src/models/components/activitiessort.ts | 55 +- src/models/components/activity.ts | 312 --- src/models/components/activityattendee.ts | 133 -- src/models/components/address.ts | 27 - src/models/components/agedcreditors.ts | 52 - src/models/components/ageddebtors.ts | 52 - src/models/components/agedreportfilter.ts | 47 - src/models/components/allocation.ts | 94 - src/models/components/api.ts | 117 +- src/models/components/apiresource.ts | 111 - src/models/components/apiresourcecoverage.ts | 104 - src/models/components/apisfilter.ts | 41 +- src/models/components/apistatus.ts | 12 - src/models/components/applicant.ts | 300 --- src/models/components/applicantsfilter.ts | 39 - src/models/components/application.ts | 131 -- src/models/components/assignee.ts | 33 - src/models/components/assigneeinput.ts | 35 - src/models/components/attachment.ts | 70 - src/models/components/attachmentreference.ts | 38 - .../components/attachmentreferencetype.ts | 12 - src/models/components/authtype.ts | 15 - src/models/components/balancebyperiod.ts | 51 - src/models/components/balancebytransaction.ts | 77 - src/models/components/balancesheet.ts | 307 +-- src/models/components/balancesheetfilter.ts | 64 +- src/models/components/bankaccount.ts | 27 - src/models/components/bankaccount1.ts | 27 - src/models/components/bankaccount2.ts | 27 - src/models/components/bankaccountsfilter.ts | 54 +- src/models/components/bankaccountssort.ts | 54 +- src/models/components/bankfeedaccount.ts | 150 -- src/models/components/bankfeedstatement.ts | 166 -- src/models/components/benefit.ts | 40 - src/models/components/bill.ts | 335 +-- src/models/components/billlineitem.ts | 557 +---- src/models/components/billlineiteminput.ts | 281 +++ src/models/components/billpayment.ts | 307 +-- src/models/components/billsfilter.ts | 60 +- src/models/components/billssort.ts | 53 +- src/models/components/categoriesfilter.ts | 53 +- src/models/components/category.ts | 97 - src/models/components/collection.ts | 52 - src/models/components/collectionssort.ts | 55 +- src/models/components/collectiontag.ts | 39 - src/models/components/collectiontaginput.ts | 35 - .../components/collectionticketcomment.ts | 57 - .../collectionticketcommentinput.ts | 41 - src/models/components/collectionuser.ts | 56 - src/models/components/commentssort.ts | 55 +- src/models/components/companiesfilter.ts | 35 - src/models/components/companiessort.ts | 55 +- src/models/components/company1.ts | 241 --- src/models/components/companyinfo.ts | 180 +- src/models/components/compensation.ts | 68 +- src/models/components/connection.ts | 452 +--- src/models/components/connectionimportdata.ts | 81 - src/models/components/connectionstate.ts | 16 - src/models/components/connector.ts | 350 +-- src/models/components/connectordoc.ts | 69 - src/models/components/connectorevent.ts | 61 - src/models/components/connectorresource.ts | 79 - src/models/components/connectorsetting.ts | 55 - src/models/components/connectorsfilter.ts | 47 +- src/models/components/connectorstatus.ts | 12 - src/models/components/consentrecord.ts | 43 - src/models/components/consentrecordinput.ts | 37 - src/models/components/consentstate.ts | 12 - src/models/components/consumer.ts | 63 - src/models/components/consumerconnection.ts | 82 +- src/models/components/consumermetadata.ts | 15 - ...onsumerrequestcountsindaterangeresponse.ts | 115 - src/models/components/contact.ts | 245 --- src/models/components/contactsfilter.ts | 49 - src/models/components/contactssort.ts | 55 +- src/models/components/copyfolderrequest.ts | 43 - .../createaccountingdepartmentresponse.ts | 62 +- .../createaccountinglocationresponse.ts | 61 +- .../components/createactivityresponse.ts | 59 +- .../components/createapplicantresponse.ts | 59 +- .../components/createapplicationresponse.ts | 59 +- .../components/createattachmentresponse.ts | 59 +- .../components/createbankaccountresponse.ts | 56 +- .../createbankfeedaccountresponse.ts | 61 +- .../createbankfeedstatementresponse.ts | 61 +- .../components/createbillpaymentresponse.ts | 59 +- src/models/components/createbillresponse.ts | 59 +- src/models/components/createcallbackstate.ts | 39 - .../components/createcallbackstateresponse.ts | 85 - .../components/createcommentresponse.ts | 59 +- .../components/createcompanyresponse.ts | 59 +- .../components/createconnectionresponse.ts | 53 +- .../components/createconsumerrequest.ts | 41 - .../components/createconsumerresponse.ts | 53 +- .../components/createcontactresponse.ts | 59 +- .../components/createcreditnoteresponse.ts | 59 +- .../components/createcustomerresponse.ts | 59 +- .../components/createcustomobjectresponse.ts | 59 +- .../createcustomobjectschemaresponse.ts | 56 - .../components/createdepartmentresponse.ts | 59 +- .../components/createdrivegroupresponse.ts | 59 +- src/models/components/createdriveresponse.ts | 59 +- .../components/createemployeeresponse.ts | 59 +- .../components/createexpenseresponse.ts | 59 +- src/models/components/createfolderrequest.ts | 46 - src/models/components/createfolderresponse.ts | 59 +- .../components/createhriscompanyresponse.ts | 59 +- .../components/createinvoiceitemresponse.ts | 59 +- .../components/createinvoiceresponse.ts | 54 - .../components/createjournalentryresponse.ts | 59 +- src/models/components/createleadresponse.ts | 59 +- .../components/createledgeraccountresponse.ts | 61 +- .../components/createmessageresponse.ts | 59 +- src/models/components/createnoteresponse.ts | 59 +- .../components/createopportunityresponse.ts | 59 +- .../components/createpaymentresponse.ts | 59 +- .../components/createpipelineresponse.ts | 59 +- .../components/createprojectresponse.ts | 56 +- .../components/createpurchaseorderresponse.ts | 61 +- src/models/components/createquoteresponse.ts | 56 +- .../components/createsessionresponse.ts | 88 - .../components/createsharedlinkresponse.ts | 59 +- .../components/createsubsidiaryresponse.ts | 59 +- .../components/createsupplierresponse.ts | 59 +- .../components/createtaxrateresponse.ts | 59 +- src/models/components/createticketresponse.ts | 59 +- .../createtimeoffrequestresponse.ts | 61 +- .../createtrackingcategoryresponse.ts | 61 +- .../components/createuploadsessionrequest.ts | 46 - .../components/createuploadsessionresponse.ts | 61 +- src/models/components/createuserresponse.ts | 59 +- src/models/components/createwebhookrequest.ts | 57 +- .../components/createwebhookresponse.ts | 53 +- src/models/components/creditnote.ts | 261 +-- src/models/components/creditnotesfilter.ts | 41 - src/models/components/creditnotessort.ts | 55 +- src/models/components/creditordebit.ts | 12 - src/models/components/currency.ts | 12 - src/models/components/customer.ts | 240 +-- src/models/components/customersfilter.ts | 71 +- src/models/components/customerssort.ts | 55 +- src/models/components/customfield.ts | 45 - src/models/components/customfieldfinder.ts | 43 - src/models/components/custommapping.ts | 52 - src/models/components/custommappinginput.ts | 35 - src/models/components/customobject.ts | 109 - src/models/components/customobjectschema.ts | 146 -- src/models/components/datascopes.ts | 41 - src/models/components/datascopesinput.ts | 37 - src/models/components/datascopesresources.ts | 42 - src/models/components/deduction.ts | 33 - .../deleteaccountingdepartmentresponse.ts | 62 +- .../deleteaccountinglocationresponse.ts | 61 +- .../components/deleteactivityresponse.ts | 59 +- .../components/deleteapplicantresponse.ts | 59 +- .../components/deleteapplicationresponse.ts | 59 +- .../components/deleteattachmentresponse.ts | 59 +- .../components/deletebankaccountresponse.ts | 56 +- .../deletebankfeedaccountresponse.ts | 61 +- .../deletebankfeedstatementresponse.ts | 61 +- .../components/deletebillpaymentresponse.ts | 59 +- src/models/components/deletebillresponse.ts | 59 +- .../components/deletecommentresponse.ts | 59 +- .../components/deletecompanyresponse.ts | 59 +- .../components/deleteconsumerresponse.ts | 85 - .../components/deletecontactresponse.ts | 59 +- .../components/deletecreditnoteresponse.ts | 59 +- .../components/deletecustomerresponse.ts | 59 +- .../components/deletecustomobjectresponse.ts | 59 +- .../deletecustomobjectschemaresponse.ts | 61 +- .../components/deletedepartmentresponse.ts | 59 +- .../components/deletedrivegroupresponse.ts | 59 +- src/models/components/deletedriveresponse.ts | 59 +- .../components/deleteemployeeresponse.ts | 59 +- .../components/deleteexpenseresponse.ts | 59 +- src/models/components/deletefileresponse.ts | 59 +- src/models/components/deletefolderresponse.ts | 59 +- .../components/deletehriscompanyresponse.ts | 59 +- .../components/deleteinvoiceresponse.ts | 54 - .../components/deletejournalentryresponse.ts | 59 +- src/models/components/deleteleadresponse.ts | 59 +- .../components/deleteledgeraccountresponse.ts | 61 +- .../components/deletemessageresponse.ts | 59 +- src/models/components/deletenoteresponse.ts | 59 +- .../components/deleteopportunityresponse.ts | 59 +- .../components/deletepaymentresponse.ts | 59 +- .../components/deletepipelineresponse.ts | 59 +- .../components/deleteprojectresponse.ts | 56 +- .../components/deletepurchaseorderresponse.ts | 61 +- src/models/components/deletequoteresponse.ts | 56 +- .../components/deletesharedlinkresponse.ts | 59 +- .../components/deletesubsidiaryresponse.ts | 59 +- .../components/deletesupplierresponse.ts | 59 +- .../components/deletetaxrateresponse.ts | 59 +- src/models/components/deleteticketresponse.ts | 59 +- .../deletetimeoffrequestresponse.ts | 61 +- .../deletetrackingcategoryresponse.ts | 61 +- .../components/deleteuploadsessionresponse.ts | 61 +- src/models/components/deleteuserresponse.ts | 59 +- .../components/deletewebhookresponse.ts | 53 +- src/models/components/department.ts | 63 - src/models/components/departmentinput.ts | 43 - .../components/deprecatedlinkedsupplier.ts | 56 +- .../deprecatedlinkedsupplierinput.ts | 41 - .../deprecatedlinkedtrackingcategory.ts | 15 - src/models/components/drive.ts | 58 - src/models/components/drivegroup.ts | 61 - src/models/components/drivegroupinput.ts | 44 - src/models/components/drivegroupsfilter.ts | 39 - src/models/components/driveinput.ts | 42 - src/models/components/drivesfilter.ts | 39 - src/models/components/ecommerceaddress.ts | 52 - src/models/components/ecommercecustomer.ts | 174 +- .../components/ecommercecustomersfilter.ts | 40 - src/models/components/ecommercediscount.ts | 39 - src/models/components/ecommerceorder.ts | 156 +- .../components/ecommerceorderlineitem.ts | 117 - src/models/components/ecommerceorderrefund.ts | 53 +- .../components/ecommerceordersfilter.ts | 44 - src/models/components/ecommerceorderstatus.ts | 16 - src/models/components/ecommerceproduct.ts | 334 --- .../components/ecommerceproductsfilter.ts | 42 - src/models/components/ecommercestore.ts | 51 - src/models/components/email.ts | 27 - src/models/components/employee.ts | 440 +--- src/models/components/employeecompensation.ts | 113 - src/models/components/employeejob.ts | 136 -- src/models/components/employeepayroll.ts | 74 +- src/models/components/employeeschedules.ts | 51 +- src/models/components/employeesfilter.ts | 73 +- src/models/components/employeesonefilter.ts | 39 - src/models/components/employeessort.ts | 55 +- src/models/components/employmentstatus.ts | 12 - src/models/components/expense.ts | 1793 +-------------- src/models/components/expenselineitem.ts | 119 +- src/models/components/expenselineiteminput.ts | 110 +- src/models/components/expensesfilter.ts | 79 +- src/models/components/filesfilter.ts | 42 - src/models/components/filessearch.ts | 43 - src/models/components/filessort.ts | 54 +- src/models/components/filetype.ts | 15 - src/models/components/folder.ts | 79 +- src/models/components/formfield.ts | 82 - src/models/components/formfieldoption.ts | 15 - src/models/components/formfieldoptiongroup.ts | 27 - src/models/components/gender.ts | 12 - .../getaccountingdepartmentresponse.ts | 56 - .../getaccountingdepartmentsresponse.ts | 74 +- .../getaccountinglocationresponse.ts | 56 - .../getaccountinglocationsresponse.ts | 74 +- .../components/getactivitiesresponse.ts | 77 +- src/models/components/getactivityresponse.ts | 59 +- .../components/getagedcreditorsresponse.ts | 59 +- .../components/getageddebtorsresponse.ts | 59 +- .../getapiresourcecoverageresponse.ts | 68 +- .../components/getapiresourceresponse.ts | 71 +- src/models/components/getapiresponse.ts | 67 +- src/models/components/getapisresponse.ts | 69 +- src/models/components/getapplicantresponse.ts | 59 +- .../components/getapplicantsresponse.ts | 77 +- .../components/getapplicationresponse.ts | 59 +- .../components/getapplicationsresponse.ts | 77 +- .../components/getattachmentresponse.ts | 59 +- .../components/getattachmentsresponse.ts | 77 +- .../components/getbalancesheetresponse.ts | 59 +- .../components/getbankaccountresponse.ts | 51 - .../components/getbankaccountsresponse.ts | 69 +- .../components/getbankfeedaccountresponse.ts | 54 - .../components/getbankfeedaccountsresponse.ts | 74 +- .../getbankfeedstatementresponse.ts | 56 - .../getbankfeedstatementsresponse.ts | 74 +- .../components/getbillpaymentresponse.ts | 59 +- .../components/getbillpaymentsresponse.ts | 77 +- src/models/components/getbillresponse.ts | 57 +- src/models/components/getbillsresponse.ts | 77 +- .../components/getcategoriesresponse.ts | 77 +- src/models/components/getcategoryresponse.ts | 59 +- .../components/getcollectionresponse.ts | 59 +- .../components/getcollectionsresponse.ts | 77 +- .../components/getcollectiontagsresponse.ts | 77 +- .../components/getcollectionuserresponse.ts | 54 - .../components/getcollectionusersresponse.ts | 72 +- src/models/components/getcommentresponse.ts | 54 - src/models/components/getcommentsresponse.ts | 72 +- src/models/components/getcompaniesresponse.ts | 77 +- .../components/getcompanyinforesponse.ts | 59 +- src/models/components/getcompanyresponse.ts | 59 +- .../components/getconnectionresponse.ts | 53 +- .../components/getconnectionsresponse.ts | 53 +- .../getconnectorresourceresponse.ts | 68 +- src/models/components/getconnectorresponse.ts | 71 +- .../components/getconnectorsresponse.ts | 71 +- .../components/getconsentrecordsresponse.ts | 53 +- src/models/components/getconsumerresponse.ts | 53 +- src/models/components/getconsumersresponse.ts | 120 +- src/models/components/getcontactresponse.ts | 59 +- src/models/components/getcontactsresponse.ts | 77 +- .../components/getcreditnoteresponse.ts | 59 +- .../components/getcreditnotesresponse.ts | 77 +- src/models/components/getcustomerresponse.ts | 59 +- src/models/components/getcustomersresponse.ts | 77 +- .../components/getcustomfieldsresponse.ts | 48 - .../components/getcustommappingsresponse.ts | 53 +- .../components/getcustomobjectresponse.ts | 59 +- .../getcustomobjectschemaresponse.ts | 56 - .../getcustomobjectschemasresponse.ts | 74 +- .../components/getcustomobjectsresponse.ts | 77 +- .../components/getdepartmentresponse.ts | 59 +- .../components/getdepartmentsresponse.ts | 77 +- .../components/getdrivegroupresponse.ts | 59 +- .../components/getdrivegroupsresponse.ts | 77 +- src/models/components/getdriveresponse.ts | 59 +- src/models/components/getdrivesresponse.ts | 77 +- .../getecommercecustomerresponse.ts | 56 - .../getecommercecustomersresponse.ts | 74 +- .../components/getecommerceorderresponse.ts | 54 - .../components/getecommerceordersresponse.ts | 72 +- .../components/getemployeepayrollresponse.ts | 54 - .../components/getemployeepayrollsresponse.ts | 56 - src/models/components/getemployeeresponse.ts | 59 +- .../getemployeeschedulesresponse.ts | 56 - src/models/components/getemployeesresponse.ts | 77 +- src/models/components/getexpenseresponse.ts | 59 +- src/models/components/getexpensesresponse.ts | 77 +- src/models/components/getfileresponse.ts | 57 +- src/models/components/getfilesresponse.ts | 77 +- src/models/components/getfolderresponse.ts | 59 +- .../components/gethriscompaniesresponse.ts | 77 +- .../components/gethriscompanyresponse.ts | 59 +- .../components/getinvoiceitemresponse.ts | 59 +- .../components/getinvoiceitemsresponse.ts | 77 +- src/models/components/getinvoiceresponse.ts | 59 +- src/models/components/getinvoicesresponse.ts | 77 +- src/models/components/getjobresponse.ts | 55 +- src/models/components/getjobsresponse.ts | 75 +- .../components/getjournalentriesresponse.ts | 77 +- .../components/getjournalentryresponse.ts | 59 +- src/models/components/getleadresponse.ts | 57 +- src/models/components/getleadsresponse.ts | 77 +- .../components/getledgeraccountresponse.ts | 59 +- .../components/getledgeraccountsresponse.ts | 77 +- src/models/components/getlogsresponse.ts | 69 +- src/models/components/getmessageresponse.ts | 59 +- src/models/components/getmessagesresponse.ts | 77 +- src/models/components/getnoteresponse.ts | 57 +- src/models/components/getnotesresponse.ts | 77 +- .../components/getopportunitiesresponse.ts | 77 +- .../components/getopportunityresponse.ts | 59 +- src/models/components/getpaymentresponse.ts | 59 +- src/models/components/getpaymentsresponse.ts | 77 +- src/models/components/getpayrollresponse.ts | 59 +- src/models/components/getpayrollsresponse.ts | 59 +- src/models/components/getpipelineresponse.ts | 59 +- src/models/components/getpipelinesresponse.ts | 77 +- src/models/components/getproductresponse.ts | 54 - src/models/components/getproductsresponse.ts | 72 +- .../components/getprofitandlossresponse.ts | 59 +- src/models/components/getprojectresponse.ts | 56 +- src/models/components/getprojectsresponse.ts | 74 +- .../components/getpurchaseorderresponse.ts | 59 +- .../components/getpurchaseordersresponse.ts | 77 +- src/models/components/getquoteresponse.ts | 56 +- src/models/components/getquotesresponse.ts | 74 +- .../components/getsharedlinkresponse.ts | 59 +- .../components/getsharedlinksresponse.ts | 77 +- src/models/components/getstoreresponse.ts | 54 - .../components/getsubsidiariesresponse.ts | 77 +- .../components/getsubsidiaryresponse.ts | 59 +- src/models/components/getsupplierresponse.ts | 59 +- src/models/components/getsuppliersresponse.ts | 77 +- src/models/components/gettaxrateresponse.ts | 59 +- src/models/components/gettaxratesresponse.ts | 77 +- src/models/components/getticketresponse.ts | 59 +- src/models/components/getticketsresponse.ts | 77 +- .../components/gettimeoffrequestresponse.ts | 54 - .../components/gettimeoffrequestsresponse.ts | 72 +- .../gettrackingcategoriesresponse.ts | 74 +- .../components/gettrackingcategoryresponse.ts | 56 - .../components/getuploadsessionresponse.ts | 59 +- src/models/components/getuserresponse.ts | 57 +- src/models/components/getusersresponse.ts | 77 +- .../components/getwebhookeventlogsresponse.ts | 68 +- src/models/components/getwebhookresponse.ts | 53 +- src/models/components/getwebhooksresponse.ts | 71 +- src/models/components/hriscompany.ts | 145 -- src/models/components/httpmetadata.ts | 42 - src/models/components/index.ts | 3 +- src/models/components/integrationstate.ts | 16 - src/models/components/invoice.ts | 348 +-- src/models/components/invoiceitem.ts | 431 +--- src/models/components/invoiceitemfilter.ts | 77 +- src/models/components/invoiceitemsfilter.ts | 77 +- src/models/components/invoiceitemssort.ts | 55 +- src/models/components/invoicelineitem.ts | 258 +-- src/models/components/invoiceresponse.ts | 39 - src/models/components/invoicesfilter.ts | 48 - src/models/components/invoicessort.ts | 55 +- src/models/components/issuesfilter.ts | 42 - src/models/components/job.ts | 347 +-- src/models/components/jobstatus.ts | 15 - src/models/components/journalentriesfilter.ts | 60 +- src/models/components/journalentriessort.ts | 55 +- src/models/components/journalentry.ts | 204 -- src/models/components/journalentrylineitem.ts | 187 +- src/models/components/lead.ts | 153 +- src/models/components/leadinput.ts | 94 +- src/models/components/leadsfilter.ts | 45 - src/models/components/leadssort.ts | 54 +- src/models/components/ledgeraccount.ts | 348 +-- src/models/components/ledgeraccountsfilter.ts | 60 +- src/models/components/ledgeraccountssort.ts | 55 +- src/models/components/lineitemtype.ts | 26 + src/models/components/linkedattachment.ts | 15 - src/models/components/linkedbankaccount.ts | 15 - .../components/linkedconnectorresource.ts | 49 - src/models/components/linkedcustomer.ts | 47 - src/models/components/linkedcustomerinput.ts | 42 - .../components/linkedecommercecustomer.ts | 68 +- src/models/components/linkedecommerceorder.ts | 40 - src/models/components/linkedfolder.ts | 33 - src/models/components/linkedinvoiceitem.ts | 15 - src/models/components/linkedledgeraccount.ts | 15 - .../components/linkedledgeraccountinput.ts | 110 - src/models/components/linkedparentcustomer.ts | 15 - src/models/components/linkedpurchaseorder.ts | 15 - src/models/components/linkedsupplier.ts | 52 +- src/models/components/linkedsupplierinput.ts | 42 - src/models/components/linkedtaxdetail.ts | 15 - src/models/components/linkedtaxrate.ts | 37 - src/models/components/linkedtaxrateinput.ts | 42 +- .../components/linkedtaxstatusdetail.ts | 15 - .../components/linkedtrackingcategory.ts | 15 - src/models/components/linkedworktag.ts | 15 - src/models/components/links.ts | 35 - src/models/components/log.ts | 163 -- src/models/components/logsfilter.ts | 45 - src/models/components/message.ts | 262 +-- src/models/components/meta.ts | 69 - src/models/components/note.ts | 75 - src/models/components/noteinput.ts | 55 - src/models/components/oauthgranttype.ts | 16 - src/models/components/opportunitiesfilter.ts | 49 - src/models/components/opportunitiessort.ts | 55 +- src/models/components/opportunity.ts | 169 +- src/models/components/opportunityinput.ts | 98 +- src/models/components/orderssort.ts | 54 +- .../outstandingbalancebycurrency.ts | 54 +- .../outstandingbalancebycustomer.ts | 53 - .../outstandingbalancebysupplier.ts | 53 - src/models/components/owner.ts | 35 - src/models/components/paginationcoverage.ts | 60 - src/models/components/passthroughbody.ts | 30 - src/models/components/payment.ts | 163 +- src/models/components/paymentfrequency.ts | 12 - src/models/components/paymentinput.ts | 114 +- src/models/components/paymentsfilter.ts | 45 - src/models/components/paymentssort.ts | 55 +- src/models/components/paymentstatus.ts | 12 - src/models/components/paymenttype.ts | 12 - src/models/components/paymentunit.ts | 12 - src/models/components/payroll.ts | 72 +- src/models/components/payrollsfilter.ts | 41 - src/models/components/payrolltotals.ts | 59 - src/models/components/person.ts | 63 +- src/models/components/personinput.ts | 54 +- src/models/components/phonenumber.ts | 27 - src/models/components/pipeline.ts | 111 +- src/models/components/pipelineinput.ts | 96 +- src/models/components/profitandloss.ts | 337 +-- src/models/components/profitandlossfilter.ts | 45 - .../components/profitandlossindicator.ts | 35 - src/models/components/profitandlosstype.ts | 16 - src/models/components/project.ts | 366 +--- src/models/components/projectsfilter.ts | 63 +- src/models/components/projectssort.ts | 55 +- src/models/components/purchaseorder.ts | 326 +-- src/models/components/purchaseordersfilter.ts | 43 - src/models/components/purchaseorderssort.ts | 55 +- src/models/components/quote.ts | 249 --- src/models/components/quotelineitem.ts | 222 +- src/models/components/rebilling.ts | 27 - .../components/requestcountallocation.ts | 39 - src/models/components/resourcestatus.ts | 16 - src/models/components/schedule.ts | 187 -- src/models/components/schemasupport.ts | 31 - src/models/components/security.ts | 35 - src/models/components/session.ts | 167 +- src/models/components/sharedlink.ts | 112 - src/models/components/sharedlinktarget.ts | 45 +- .../components/simpleformfieldoption.ts | 57 - src/models/components/sociallink.ts | 15 - src/models/components/sortdirection.ts | 18 +- src/models/components/status.ts | 12 - src/models/components/subsidiary.ts | 126 -- src/models/components/subsidiaryreference.ts | 37 - .../components/subsidiaryreferenceinput.ts | 35 - src/models/components/supplier.ts | 266 +-- src/models/components/suppliersfilter.ts | 50 - src/models/components/supplierssort.ts | 55 +- src/models/components/supportedproperty.ts | 43 - src/models/components/tax.ts | 32 - src/models/components/taxrate.ts | 199 -- src/models/components/taxratesfilter.ts | 39 - src/models/components/team.ts | 15 - src/models/components/ticket.ts | 152 +- src/models/components/ticketssort.ts | 55 +- src/models/components/timeoffrequest.ts | 199 -- .../components/timeoffrequestsfilter.ts | 67 +- src/models/components/trackingcategory.ts | 150 -- src/models/components/trackingitem.ts | 41 - .../components/unexpectederrorresponse.ts | 77 - src/models/components/unifiedapiid.ts | 12 - src/models/components/unifiedfile.ts | 133 +- src/models/components/unifiedid.ts | 31 - .../updateaccountingdepartmentresponse.ts | 62 +- .../updateaccountinglocationresponse.ts | 61 +- .../components/updateactivityresponse.ts | 59 +- .../components/updateapplicantresponse.ts | 59 +- .../components/updateapplicationresponse.ts | 59 +- .../components/updatebankaccountresponse.ts | 56 +- .../updatebankfeedaccountresponse.ts | 61 +- .../updatebankfeedstatementresponse.ts | 61 +- .../components/updatebillpaymentresponse.ts | 59 +- src/models/components/updatebillresponse.ts | 59 +- .../components/updatecommentresponse.ts | 59 +- .../components/updatecompanyresponse.ts | 59 +- .../components/updateconnectionresponse.ts | 53 +- src/models/components/updateconsentrequest.ts | 121 +- .../components/updateconsentresponse.ts | 53 +- .../components/updateconsumerrequest.ts | 36 - .../components/updateconsumerresponse.ts | 53 +- .../components/updatecontactresponse.ts | 59 +- .../components/updatecreditnoteresponse.ts | 59 +- .../components/updatecustomerresponse.ts | 59 +- .../components/updatecustomobjectresponse.ts | 59 +- .../updatecustomobjectschemaresponse.ts | 61 +- .../components/updatedepartmentresponse.ts | 59 +- .../components/updatedrivegroupresponse.ts | 59 +- src/models/components/updatedriveresponse.ts | 59 +- .../components/updateemployeeresponse.ts | 59 +- .../components/updateexpenseresponse.ts | 59 +- src/models/components/updatefilerequest.ts | 44 - src/models/components/updatefileresponse.ts | 59 +- src/models/components/updatefolderrequest.ts | 44 - src/models/components/updatefolderresponse.ts | 59 +- .../components/updatehriscompanyresponse.ts | 59 +- .../components/updateinvoiceitemsresponse.ts | 59 +- .../components/updateinvoiceresponse.ts | 54 - .../components/updatejournalentryresponse.ts | 59 +- src/models/components/updateleadresponse.ts | 59 +- .../components/updateledgeraccountresponse.ts | 61 +- .../components/updatemessageresponse.ts | 59 +- src/models/components/updatenoteresponse.ts | 59 +- .../components/updateopportunityresponse.ts | 59 +- .../components/updatepaymentresponse.ts | 59 +- .../components/updatepipelineresponse.ts | 59 +- .../components/updateprojectresponse.ts | 56 +- .../components/updatepurchaseorderresponse.ts | 61 +- src/models/components/updatequoteresponse.ts | 56 +- .../components/updatesharedlinkresponse.ts | 59 +- .../components/updatesubsidiaryresponse.ts | 59 +- .../components/updatesupplierresponse.ts | 59 +- .../components/updatetaxrateresponse.ts | 59 +- src/models/components/updateticketresponse.ts | 59 +- .../updatetimeoffrequestresponse.ts | 61 +- .../updatetrackingcategoryresponse.ts | 61 +- .../components/updateuploadsessionresponse.ts | 61 +- src/models/components/updateuserresponse.ts | 59 +- src/models/components/updatewebhookrequest.ts | 49 +- .../components/updatewebhookresponse.ts | 53 +- src/models/components/uploadsession.ts | 48 - src/models/components/user.ts | 104 +- src/models/components/userinput.ts | 72 +- .../validateconnectionstateresponse.ts | 90 - src/models/components/webhook.ts | 87 +- src/models/components/webhookeventlog.ts | 164 +- .../components/webhookeventlogsfilter.ts | 79 - src/models/components/webhookeventtype.ts | 12 - src/models/components/webhooksubscription.ts | 51 - src/models/components/webhooksupport.ts | 214 -- src/models/components/website.ts | 27 - src/models/errors/badrequestresponse.ts | 73 - src/models/errors/notfoundresponse.ts | 77 - src/models/errors/paymentrequiredresponse.ts | 46 - src/models/errors/unauthorizedresponse.ts | 222 -- src/models/errors/unprocessableresponse.ts | 81 - .../operations/accountingagedcreditorsone.ts | 157 -- .../operations/accountingageddebtorsone.ts | 154 -- .../operations/accountingattachmentsall.ts | 157 -- .../operations/accountingattachmentsdelete.ts | 161 -- .../accountingattachmentsdownload.ts | 161 -- .../operations/accountingattachmentsone.ts | 154 -- .../operations/accountingattachmentsupload.ts | 169 -- .../operations/accountingbalancesheetone.ts | 154 -- .../operations/accountingbankaccountsadd.ts | 153 -- .../operations/accountingbankaccountsall.ts | 158 -- .../accountingbankaccountsdelete.ts | 156 -- .../operations/accountingbankaccountsone.ts | 150 -- .../accountingbankaccountsupdate.ts | 161 -- .../accountingbankfeedaccountsadd.ts | 160 -- .../accountingbankfeedaccountsall.ts | 163 -- .../accountingbankfeedaccountsdelete.ts | 168 -- .../accountingbankfeedaccountsone.ts | 157 -- .../accountingbankfeedaccountsupdate.ts | 173 -- .../accountingbankfeedstatementsadd.ts | 162 -- .../accountingbankfeedstatementsall.ts | 165 -- .../accountingbankfeedstatementsdelete.ts | 170 -- .../accountingbankfeedstatementsone.ts | 159 -- .../accountingbankfeedstatementsupdate.ts | 175 -- .../operations/accountingbillpaymentsadd.ts | 153 -- .../operations/accountingbillpaymentsall.ts | 158 -- .../accountingbillpaymentsdelete.ts | 156 -- .../operations/accountingbillpaymentsone.ts | 150 -- .../accountingbillpaymentsupdate.ts | 161 -- src/models/operations/accountingbillsadd.ts | 145 -- src/models/operations/accountingbillsall.ts | 150 -- .../operations/accountingbillsdelete.ts | 145 -- src/models/operations/accountingbillsone.ts | 142 -- .../operations/accountingbillsupdate.ts | 150 -- .../operations/accountingcategoriesall.ts | 149 -- .../operations/accountingcategoriesone.ts | 147 -- .../operations/accountingcompanyinfoone.ts | 148 -- .../operations/accountingcreditnotesadd.ts | 152 -- .../operations/accountingcreditnotesall.ts | 157 -- .../operations/accountingcreditnotesdelete.ts | 154 -- .../operations/accountingcreditnotesone.ts | 147 -- .../operations/accountingcreditnotesupdate.ts | 159 -- .../operations/accountingcustomersadd.ts | 152 -- .../operations/accountingcustomersall.ts | 155 -- .../operations/accountingcustomersdelete.ts | 149 -- .../operations/accountingcustomersone.ts | 146 -- .../operations/accountingcustomersupdate.ts | 154 -- .../operations/accountingdepartmentsadd.ts | 152 -- .../operations/accountingdepartmentsall.ts | 151 -- .../operations/accountingdepartmentsdelete.ts | 154 -- .../operations/accountingdepartmentsone.ts | 149 -- .../operations/accountingdepartmentsupdate.ts | 159 -- .../operations/accountingexpensesadd.ts | 150 -- .../operations/accountingexpensesall.ts | 147 -- .../operations/accountingexpensesdelete.ts | 146 -- .../operations/accountingexpensesone.ts | 145 -- .../operations/accountingexpensesupdate.ts | 151 -- .../operations/accountinginvoiceitemsadd.ts | 153 -- .../operations/accountinginvoiceitemsall.ts | 158 -- .../accountinginvoiceitemsdelete.ts | 154 -- .../operations/accountinginvoiceitemsone.ts | 151 -- .../accountinginvoiceitemsupdate.ts | 161 -- .../operations/accountinginvoicesadd.ts | 150 -- .../operations/accountinginvoicesall.ts | 154 -- .../operations/accountinginvoicesdelete.ts | 146 -- .../operations/accountinginvoicesone.ts | 146 -- .../operations/accountinginvoicesupdate.ts | 151 -- .../operations/accountingjournalentriesadd.ts | 158 -- .../operations/accountingjournalentriesall.ts | 163 -- .../accountingjournalentriesdelete.ts | 157 -- .../operations/accountingjournalentriesone.ts | 155 -- .../accountingjournalentriesupdate.ts | 162 -- .../operations/accountingledgeraccountsadd.ts | 158 -- .../operations/accountingledgeraccountsall.ts | 163 -- .../accountingledgeraccountsdelete.ts | 157 -- .../operations/accountingledgeraccountsone.ts | 155 -- .../accountingledgeraccountsupdate.ts | 162 -- .../operations/accountinglocationsadd.ts | 152 -- .../operations/accountinglocationsall.ts | 151 -- .../operations/accountinglocationsdelete.ts | 149 -- .../operations/accountinglocationsone.ts | 149 -- .../operations/accountinglocationsupdate.ts | 154 -- .../operations/accountingpaymentsadd.ts | 150 -- .../operations/accountingpaymentsall.ts | 154 -- .../operations/accountingpaymentsdelete.ts | 146 -- .../operations/accountingpaymentsone.ts | 146 -- .../operations/accountingpaymentsupdate.ts | 151 -- .../operations/accountingprofitandlossone.ts | 157 -- .../operations/accountingprojectsadd.ts | 150 -- .../operations/accountingprojectsall.ts | 154 -- .../operations/accountingprojectsdelete.ts | 146 -- .../operations/accountingprojectsone.ts | 145 -- .../operations/accountingprojectsupdate.ts | 151 -- .../operations/accountingpurchaseordersadd.ts | 158 -- .../operations/accountingpurchaseordersall.ts | 162 -- .../accountingpurchaseordersdelete.ts | 157 -- .../operations/accountingpurchaseordersone.ts | 154 -- .../accountingpurchaseordersupdate.ts | 162 -- src/models/operations/accountingquotesadd.ts | 147 -- src/models/operations/accountingquotesall.ts | 144 -- .../operations/accountingquotesdelete.ts | 145 -- src/models/operations/accountingquotesone.ts | 143 -- .../operations/accountingquotesupdate.ts | 150 -- .../operations/accountingsubsidiariesadd.ts | 153 -- .../operations/accountingsubsidiariesall.ts | 151 -- .../accountingsubsidiariesdelete.ts | 156 -- .../operations/accountingsubsidiariesone.ts | 148 -- .../accountingsubsidiariesupdate.ts | 161 -- .../operations/accountingsuppliersadd.ts | 152 -- .../operations/accountingsuppliersall.ts | 155 -- .../operations/accountingsuppliersdelete.ts | 149 -- .../operations/accountingsuppliersone.ts | 146 -- .../operations/accountingsuppliersupdate.ts | 154 -- .../operations/accountingtaxratesadd.ts | 150 -- .../operations/accountingtaxratesall.ts | 153 -- .../operations/accountingtaxratesdelete.ts | 146 -- .../operations/accountingtaxratesone.ts | 146 -- .../operations/accountingtaxratesupdate.ts | 151 -- .../accountingtrackingcategoriesadd.ts | 162 -- .../accountingtrackingcategoriesall.ts | 165 -- .../accountingtrackingcategoriesdelete.ts | 170 -- .../accountingtrackingcategoriesone.ts | 159 -- .../accountingtrackingcategoriesupdate.ts | 175 -- src/models/operations/atsapplicantsadd.ts | 148 -- src/models/operations/atsapplicantsall.ts | 150 -- src/models/operations/atsapplicantsdelete.ts | 146 -- src/models/operations/atsapplicantsone.ts | 143 -- src/models/operations/atsapplicantsupdate.ts | 151 -- src/models/operations/atsapplicationsadd.ts | 148 -- src/models/operations/atsapplicationsall.ts | 150 -- .../operations/atsapplicationsdelete.ts | 148 -- src/models/operations/atsapplicationsone.ts | 144 -- .../operations/atsapplicationsupdate.ts | 153 -- src/models/operations/atsjobsall.ts | 148 -- src/models/operations/atsjobsone.ts | 142 -- .../connectorapiresourcecoverageone.ts | 157 -- .../operations/connectorapiresourcesone.ts | 147 -- src/models/operations/connectorapisall.ts | 137 -- src/models/operations/connectorapisone.ts | 135 -- .../operations/connectorconnectordocsone.ts | 145 -- .../connectorconnectorresourcesone.ts | 158 -- .../operations/connectorconnectorsall.ts | 142 -- .../operations/connectorconnectorsone.ts | 140 -- src/models/operations/crmactivitiesadd.ts | 148 -- src/models/operations/crmactivitiesall.ts | 151 -- src/models/operations/crmactivitiesdelete.ts | 146 -- src/models/operations/crmactivitiesone.ts | 142 -- src/models/operations/crmactivitiesupdate.ts | 151 -- src/models/operations/crmcompaniesadd.ts | 146 -- src/models/operations/crmcompaniesall.ts | 151 -- src/models/operations/crmcompaniesdelete.ts | 142 -- src/models/operations/crmcompaniesone.ts | 142 -- src/models/operations/crmcompaniesupdate.ts | 147 -- src/models/operations/crmcontactsadd.ts | 146 -- src/models/operations/crmcontactsall.ts | 150 -- src/models/operations/crmcontactsdelete.ts | 142 -- src/models/operations/crmcontactsone.ts | 143 -- src/models/operations/crmcontactsupdate.ts | 147 -- src/models/operations/crmcustomobjectsadd.ts | 152 -- src/models/operations/crmcustomobjectsall.ts | 155 -- .../operations/crmcustomobjectschemasadd.ts | 153 -- .../operations/crmcustomobjectschemasall.ts | 155 -- .../crmcustomobjectschemasdelete.ts | 156 -- .../operations/crmcustomobjectschemasone.ts | 149 -- .../crmcustomobjectschemasupdate.ts | 161 -- .../operations/crmcustomobjectsdelete.ts | 153 -- src/models/operations/crmcustomobjectsone.ts | 151 -- .../operations/crmcustomobjectsupdate.ts | 155 -- src/models/operations/crmleadsadd.ts | 145 -- src/models/operations/crmleadsall.ts | 150 -- src/models/operations/crmleadsdelete.ts | 141 -- src/models/operations/crmleadsone.ts | 142 -- src/models/operations/crmleadsupdate.ts | 146 -- src/models/operations/crmnotesadd.ts | 145 -- src/models/operations/crmnotesall.ts | 148 -- src/models/operations/crmnotesdelete.ts | 141 -- src/models/operations/crmnotesone.ts | 142 -- src/models/operations/crmnotesupdate.ts | 146 -- src/models/operations/crmopportunitiesadd.ts | 150 -- src/models/operations/crmopportunitiesall.ts | 155 -- .../operations/crmopportunitiesdelete.ts | 148 -- src/models/operations/crmopportunitiesone.ts | 147 -- .../operations/crmopportunitiesupdate.ts | 153 -- src/models/operations/crmpipelinesadd.ts | 148 -- src/models/operations/crmpipelinesall.ts | 149 -- src/models/operations/crmpipelinesdelete.ts | 144 -- src/models/operations/crmpipelinesone.ts | 142 -- src/models/operations/crmpipelinesupdate.ts | 149 -- src/models/operations/crmusersadd.ts | 145 -- src/models/operations/crmusersall.ts | 148 -- src/models/operations/crmusersdelete.ts | 141 -- src/models/operations/crmusersone.ts | 142 -- src/models/operations/crmusersupdate.ts | 146 -- .../operations/ecommercecustomersall.ts | 156 -- .../operations/ecommercecustomersone.ts | 149 -- src/models/operations/ecommerceordersall.ts | 153 -- src/models/operations/ecommerceordersone.ts | 145 -- src/models/operations/ecommerceproductsall.ts | 153 -- src/models/operations/ecommerceproductsone.ts | 146 -- src/models/operations/ecommercestoresone.ts | 141 -- .../operations/filestoragedrivegroupsadd.ts | 153 -- .../operations/filestoragedrivegroupsall.ts | 157 -- .../filestoragedrivegroupsdelete.ts | 156 -- .../operations/filestoragedrivegroupsone.ts | 148 -- .../filestoragedrivegroupsupdate.ts | 161 -- src/models/operations/filestoragedrivesadd.ts | 149 -- src/models/operations/filestoragedrivesall.ts | 148 -- .../operations/filestoragedrivesdelete.ts | 145 -- src/models/operations/filestoragedrivesone.ts | 146 -- .../operations/filestoragedrivesupdate.ts | 150 -- src/models/operations/filestoragefilesall.ts | 152 -- .../operations/filestoragefilesdelete.ts | 145 -- .../operations/filestoragefilesdownload.ts | 145 -- .../operations/filestoragefilesexport.ts | 146 -- src/models/operations/filestoragefilesone.ts | 144 -- .../operations/filestoragefilessearch.ts | 155 -- .../operations/filestoragefilesupdate.ts | 150 -- .../operations/filestoragefoldersadd.ts | 151 -- .../operations/filestoragefolderscopy.ts | 152 -- .../operations/filestoragefoldersdelete.ts | 146 -- .../operations/filestoragefoldersone.ts | 146 -- .../operations/filestoragefoldersupdate.ts | 151 -- .../operations/filestoragesharedlinksadd.ts | 153 -- .../operations/filestoragesharedlinksall.ts | 156 -- .../filestoragesharedlinksdelete.ts | 156 -- .../operations/filestoragesharedlinksone.ts | 148 -- .../filestoragesharedlinksupdate.ts | 161 -- .../filestorageuploadsessionsadd.ts | 161 -- .../filestorageuploadsessionsdelete.ts | 158 -- .../filestorageuploadsessionsfinish.ts | 199 -- .../filestorageuploadsessionsone.ts | 157 -- .../filestorageuploadsessionsupload.ts | 171 -- src/models/operations/hriscompaniesadd.ts | 148 -- src/models/operations/hriscompaniesall.ts | 151 -- src/models/operations/hriscompaniesdelete.ts | 146 -- src/models/operations/hriscompaniesone.ts | 145 -- src/models/operations/hriscompaniesupdate.ts | 151 -- src/models/operations/hrisdepartmentsadd.ts | 148 -- src/models/operations/hrisdepartmentsall.ts | 151 -- .../operations/hrisdepartmentsdelete.ts | 148 -- src/models/operations/hrisdepartmentsone.ts | 143 -- .../operations/hrisdepartmentsupdate.ts | 153 -- .../operations/hrisemployeepayrollsall.ts | 156 -- .../operations/hrisemployeepayrollsone.ts | 155 -- src/models/operations/hrisemployeesadd.ts | 148 -- src/models/operations/hrisemployeesall.ts | 151 -- .../operations/hrisemployeeschedulesall.ts | 155 -- src/models/operations/hrisemployeesdelete.ts | 146 -- src/models/operations/hrisemployeesone.ts | 148 -- src/models/operations/hrisemployeesupdate.ts | 151 -- src/models/operations/hrispayrollsall.ts | 147 -- src/models/operations/hrispayrollsone.ts | 146 -- .../operations/hristimeoffrequestsadd.ts | 152 -- .../operations/hristimeoffrequestsall.ts | 156 -- .../operations/hristimeoffrequestsdelete.ts | 154 -- .../operations/hristimeoffrequestsone.ts | 154 -- .../operations/hristimeoffrequestsupdate.ts | 156 -- .../operations/issuetrackingcollectionsall.ts | 162 -- .../operations/issuetrackingcollectionsone.ts | 157 -- .../issuetrackingcollectiontagsall.ts | 166 -- ...ssuetrackingcollectionticketcommentsadd.ts | 182 -- ...ssuetrackingcollectionticketcommentsall.ts | 185 -- ...etrackingcollectionticketcommentsdelete.ts | 180 -- ...ssuetrackingcollectionticketcommentsone.ts | 182 -- ...etrackingcollectionticketcommentsupdate.ts | 183 -- .../issuetrackingcollectionticketsadd.ts | 173 -- .../issuetrackingcollectionticketsall.ts | 177 -- .../issuetrackingcollectionticketsdelete.ts | 176 -- .../issuetrackingcollectionticketsone.ts | 173 -- .../issuetrackingcollectionticketsupdate.ts | 178 -- .../issuetrackingcollectionusersall.ts | 167 -- .../issuetrackingcollectionusersone.ts | 164 -- src/models/operations/smsmessagesadd.ts | 146 -- src/models/operations/smsmessagesall.ts | 143 -- src/models/operations/smsmessagesdelete.ts | 142 -- src/models/operations/smsmessagesone.ts | 142 -- src/models/operations/smsmessagesupdate.ts | 147 -- .../operations/vaultconnectionconsentsall.ts | 155 -- .../vaultconnectionconsentupdate.ts | 160 -- .../vaultconnectioncustommappingsall.ts | 175 -- src/models/operations/vaultconnectionsall.ts | 145 -- .../operations/vaultconnectionsdelete.ts | 146 -- .../operations/vaultconnectionsettingsall.ts | 154 -- .../vaultconnectionsettingsupdate.ts | 163 -- .../operations/vaultconnectionsimport.ts | 154 -- src/models/operations/vaultconnectionsone.ts | 148 -- .../operations/vaultconnectionstoken.ts | 183 -- .../operations/vaultconnectionsupdate.ts | 154 -- .../vaultconsumerrequestcountsall.ts | 159 -- src/models/operations/vaultconsumersadd.ts | 142 -- src/models/operations/vaultconsumersall.ts | 137 -- src/models/operations/vaultconsumersdelete.ts | 146 -- src/models/operations/vaultconsumersone.ts | 139 -- src/models/operations/vaultconsumersupdate.ts | 148 -- .../operations/vaultcreatecallbackstate.ts | 154 -- src/models/operations/vaultcustomfieldsall.ts | 155 -- .../operations/vaultcustommappingsall.ts | 152 -- src/models/operations/vaultlogsall.ts | 141 -- src/models/operations/vaultsessionscreate.ts | 146 -- .../vaultvalidateconnectionstate.ts | 202 -- src/models/operations/webhookeventlogsall.ts | 142 -- src/models/operations/webhookwebhooksadd.ts | 140 -- src/models/operations/webhookwebhooksall.ts | 136 -- .../operations/webhookwebhooksdelete.ts | 140 -- src/models/operations/webhookwebhooksone.ts | 135 -- .../operations/webhookwebhooksupdate.ts | 145 -- 1130 files changed, 3856 insertions(+), 95659 deletions(-) delete mode 100644 docs/models/components/billlineitemtype.md delete mode 100644 docs/models/components/expense1.md delete mode 100644 docs/models/components/expense1input.md delete mode 100644 docs/models/components/expense2.md delete mode 100644 docs/models/components/expense2input.md delete mode 100644 docs/models/components/expense2paymenttype.md delete mode 100644 docs/models/components/expense2status.md delete mode 100644 docs/models/components/expense3.md delete mode 100644 docs/models/components/expense3expensetype.md delete mode 100644 docs/models/components/expense3paymenttype.md delete mode 100644 docs/models/components/expense3status.md delete mode 100644 docs/models/components/expenseexpensetype.md create mode 100644 docs/models/components/lineitemtype.md delete mode 100644 docs/models/components/linkedledgeraccountinput.md delete mode 100644 docs/models/components/three.md create mode 100644 src/__tests__/mockserver/internal/sdk/models/components/billlineiteminput.go create mode 100644 src/__tests__/mockserver/internal/sdk/models/components/expense.go delete mode 100644 src/__tests__/mockserver/internal/sdk/models/components/expenseunion.go create mode 100644 src/__tests__/mockserver/internal/sdk/models/components/lineitemtype.go delete mode 100644 src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccountinput.go create mode 100644 src/models/components/billlineiteminput.ts create mode 100644 src/models/components/lineitemtype.ts delete mode 100644 src/models/components/linkedledgeraccountinput.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 61364ed6a..c9d3b9000 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 7bffa198-5d29-4efa-9942-d549cc832085 management: - docChecksum: b4697d92757c75022391a9d638278c4c + docChecksum: 57b4bbe6a7692f54a6b642d0741788e2 docVersion: 10.21.11 - speakeasyVersion: 1.648.0 - generationVersion: 2.737.0 - releaseVersion: 0.34.0 - configChecksum: 4d2601d5aaf177d220eabf2a1a03f45a + speakeasyVersion: 1.650.0 + generationVersion: 2.743.2 + releaseVersion: 0.34.1 + configChecksum: e813c498ccc52a4d10b09b961baac271 repoURL: https://github.com/apideck-libraries/sdk-typescript.git installationURL: https://github.com/apideck-libraries/sdk-typescript published: true @@ -16,7 +16,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.12 - core: 3.26.0 + core: 3.26.3 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 @@ -133,7 +133,6 @@ generatedFiles: - docs/models/components/billinput.md - docs/models/components/billlineitem.md - docs/models/components/billlineiteminput.md - - docs/models/components/billlineitemtype.md - docs/models/components/billpayment.md - docs/models/components/billpaymentallocations.md - docs/models/components/billpaymentallocationtype.md @@ -417,17 +416,6 @@ generatedFiles: - docs/models/components/eventsource.md - docs/models/components/evenweeks.md - docs/models/components/expense.md - - docs/models/components/expense1.md - - docs/models/components/expense1input.md - - docs/models/components/expense2.md - - docs/models/components/expense2input.md - - docs/models/components/expense2paymenttype.md - - docs/models/components/expense2status.md - - docs/models/components/expense3.md - - docs/models/components/expense3expensetype.md - - docs/models/components/expense3paymenttype.md - - docs/models/components/expense3status.md - - docs/models/components/expenseexpensetype.md - docs/models/components/expenseinput.md - docs/models/components/expenselineitem.md - docs/models/components/expenselineiteminput.md @@ -655,6 +643,7 @@ generatedFiles: - docs/models/components/ledgeraccountssortby.md - docs/models/components/ledgeraccountsubsidiaries.md - docs/models/components/ledgeraccounttype.md + - docs/models/components/lineitemtype.md - docs/models/components/linkedattachment.md - docs/models/components/linkedbankaccount.md - docs/models/components/linkedconnectorresource.md @@ -665,7 +654,6 @@ generatedFiles: - docs/models/components/linkedfolder.md - docs/models/components/linkedinvoiceitem.md - docs/models/components/linkedledgeraccount.md - - docs/models/components/linkedledgeraccountinput.md - docs/models/components/linkedparentcustomer.md - docs/models/components/linkedpurchaseorder.md - docs/models/components/linkedresources.md @@ -829,7 +817,6 @@ generatedFiles: - docs/models/components/team.md - docs/models/components/theme.md - docs/models/components/thestartmonthoffiscalyear.md - - docs/models/components/three.md - docs/models/components/ticket.md - docs/models/components/ticketinput.md - docs/models/components/ticketpriority.md @@ -2395,6 +2382,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/benefit.go - src/__tests__/mockserver/internal/sdk/models/components/bill.go - src/__tests__/mockserver/internal/sdk/models/components/billlineitem.go + - src/__tests__/mockserver/internal/sdk/models/components/billlineiteminput.go - src/__tests__/mockserver/internal/sdk/models/components/billpayment.go - src/__tests__/mockserver/internal/sdk/models/components/billsfilter.go - src/__tests__/mockserver/internal/sdk/models/components/billssort.go @@ -2591,10 +2579,10 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/employeesonefilter.go - src/__tests__/mockserver/internal/sdk/models/components/employeessort.go - src/__tests__/mockserver/internal/sdk/models/components/employmentstatus.go + - src/__tests__/mockserver/internal/sdk/models/components/expense.go - src/__tests__/mockserver/internal/sdk/models/components/expenselineitem.go - src/__tests__/mockserver/internal/sdk/models/components/expenselineiteminput.go - src/__tests__/mockserver/internal/sdk/models/components/expensesfilter.go - - src/__tests__/mockserver/internal/sdk/models/components/expenseunion.go - src/__tests__/mockserver/internal/sdk/models/components/filesfilter.go - src/__tests__/mockserver/internal/sdk/models/components/filessearch.go - src/__tests__/mockserver/internal/sdk/models/components/filessort.go @@ -2768,6 +2756,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go - src/__tests__/mockserver/internal/sdk/models/components/ledgeraccountsfilter.go - src/__tests__/mockserver/internal/sdk/models/components/ledgeraccountssort.go + - src/__tests__/mockserver/internal/sdk/models/components/lineitemtype.go - src/__tests__/mockserver/internal/sdk/models/components/linkedattachment.go - src/__tests__/mockserver/internal/sdk/models/components/linkedbankaccount.go - src/__tests__/mockserver/internal/sdk/models/components/linkedconnectorresource.go @@ -2778,7 +2767,6 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/linkedfolder.go - src/__tests__/mockserver/internal/sdk/models/components/linkedinvoiceitem.go - src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccount.go - - src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccountinput.go - src/__tests__/mockserver/internal/sdk/models/components/linkedparentcustomer.go - src/__tests__/mockserver/internal/sdk/models/components/linkedpurchaseorder.go - src/__tests__/mockserver/internal/sdk/models/components/linkedsupplier.go @@ -3661,6 +3649,7 @@ generatedFiles: - src/models/components/benefit.ts - src/models/components/bill.ts - src/models/components/billlineitem.ts + - src/models/components/billlineiteminput.ts - src/models/components/billpayment.ts - src/models/components/billsfilter.ts - src/models/components/billssort.ts @@ -4035,6 +4024,7 @@ generatedFiles: - src/models/components/ledgeraccount.ts - src/models/components/ledgeraccountsfilter.ts - src/models/components/ledgeraccountssort.ts + - src/models/components/lineitemtype.ts - src/models/components/linkedattachment.ts - src/models/components/linkedbankaccount.ts - src/models/components/linkedconnectorresource.ts @@ -4045,7 +4035,6 @@ generatedFiles: - src/models/components/linkedfolder.ts - src/models/components/linkedinvoiceitem.ts - src/models/components/linkedledgeraccount.ts - - src/models/components/linkedledgeraccountinput.ts - src/models/components/linkedparentcustomer.ts - src/models/components/linkedpurchaseorder.ts - src/models/components/linkedsupplier.ts @@ -4988,7 +4977,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "add", "data": {"id": "12345"}} @@ -5044,7 +5033,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -5096,7 +5085,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 250, "total_tax": 25, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "update", "data": {"id": "12345"}} @@ -5363,7 +5352,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "update", "data": {"id": "12345", "downstream_id": "12345"}} @@ -5522,7 +5511,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "ledger-accounts", "operation": "add", "data": {"id": "12345"}} @@ -5630,7 +5619,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "ledger-accounts", "operation": "update", "data": {"id": "12345"}} @@ -5789,7 +5778,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "display_id": "12345", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "income_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "tracking_categories": null, "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "display_id": "12345", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "tracking_categories": null, "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "add", "data": {"id": "12345"}} @@ -5899,7 +5888,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "display_id": "12345", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "income_account": null, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "display_id": "12345", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "currency": "USD", "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "income_account": null, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "update", "data": {"id": "12345"}} @@ -6058,7 +6047,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "add", "data": {"id": "12345"}} @@ -6166,7 +6155,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "update", "data": {"id": "12345"}} @@ -6325,7 +6314,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "add", "data": {"id": "12345"}} @@ -6433,7 +6422,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "update", "data": {"id": "12345"}} @@ -6592,7 +6581,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -6700,7 +6689,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "update", "data": {"id": "12345"}} @@ -6859,7 +6848,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -6967,7 +6956,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "update", "data": {"id": "12345"}} @@ -7544,7 +7533,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "add", "data": {"id": "12345"}} @@ -7650,7 +7639,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Chase Bank", "account_number": "123465", "account_name": "Main Operating Account", "account_type": "credit_card", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "routing_number": "021000021", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "update", "data": {"id": "12345"}} @@ -9169,7 +9158,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -9277,7 +9266,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "update", "data": {"id": "12345"}} @@ -9429,7 +9418,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "rate": 10}, "total_amount": 275, "line_items": [], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_account": {"id": "ba_123456", "name": "Main Operating Account", "account_number": "123465", "bank_name": "Chase Bank"}, "customer_id": "12345", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_inclusive": true, "sub_total": 250, "total_tax": 25, "total_amount": 275, "line_items": [], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "add", "data": {"id": "12345"}} @@ -9483,7 +9472,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "one", "data": {"id": "12345", "number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "total_amount": 275, "line_items": [{"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "one", "data": {"id": "12345", "number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_account": {"id": "ba_123456", "name": "Main Operating Account", "account_number": "123465", "bank_name": "Chase Bank"}, "customer_id": "12345", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_inclusive": true, "sub_total": 250, "total_tax": 25, "total_amount": 275, "line_items": [{"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -9535,7 +9524,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "rate": 10}, "total_amount": 275, "line_items": [], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_account": {"id": "ba_123456", "name": "Main Operating Account", "account_number": "123465", "bank_name": "Chase Bank"}, "customer_id": "12345", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_inclusive": true, "sub_total": 250, "total_tax": 25, "total_amount": 275, "line_items": [], "reference": "INV-2024-001", "source_document_url": "https://www.invoicesolution.com/expense/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "status": "draft", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "update", "data": {"id": "12345"}} @@ -19889,7 +19878,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} + application/json: {"display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: "201": application/json: {"status_code": 201, "status": "Created", "service": "quickbooks", "resource": "bank-accounts", "operation": "add", "data": {"id": "12345"}} @@ -19944,7 +19933,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} + application/json: {"display_id": "BA-001", "name": "Main Operating Account", "account_number": "123465", "account_type": "checking", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "bank_name": "Chase Bank", "currency": "USD", "balance": 25000, "available_balance": 24500, "overdraft_limit": 5000, "routing_number": "021000021", "iban": "GB33BUKB20201555555555", "bic": "CHASUS33", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "country": "US", "status": "active", "description": "Primary operating account for daily transactions", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-accounts", "operation": "update", "data": {"id": "12345"}} @@ -20025,7 +20014,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} + application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "add", "data": {"id": "12345"}} @@ -20079,7 +20068,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": null, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} + application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": null, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "update", "data": {"id": "12345"}} @@ -20424,3 +20413,4 @@ generatedTests: accounting.projectsOne: "2025-10-13T00:03:48Z" accounting.projectsUpdate: "2025-10-13T00:03:48Z" accounting.projectsDelete: "2025-10-13T00:03:48Z" +releaseNotes: "## Typescript SDK Changes Detected:\n* `apideck.accounting.expenses.list()`: `response.data.[]` **Changed** **Breaking** :warning:\n* `apideck.accounting.expenses.update()`: \n * `request.expense` **Changed** **Breaking** :warning:\n* `apideck.accounting.expenses.get()`: `response.data` **Changed** **Breaking** :warning:\n* `apideck.accounting.expenses.create()`: \n * `request.expense` **Changed** **Breaking** :warning:\n* `apideck.accounting.creditNotes.create()`: \n * `request.creditNote` **Changed**\n* `apideck.accounting.journalEntries.update()`: \n * `request.journalEntry.lineItems.[]` **Changed**\n* `apideck.accounting.invoiceItems.create()`: \n * `request.invoiceItem` **Changed**\n* `apideck.accounting.invoiceItems.update()`: \n * `request.invoiceItem` **Changed**\n* `apideck.accounting.bills.create()`: \n * `request.bill.lineItems.[]` **Changed**\n* `apideck.accounting.creditNotes.update()`: \n * `request.creditNote` **Changed**\n* `apideck.accounting.customers.create()`: \n * `request.customer` **Changed**\n* `apideck.accounting.customers.update()`: \n * `request.customer` **Changed**\n* `apideck.accounting.suppliers.create()`: \n * `request.supplier` **Changed**\n* `apideck.accounting.suppliers.update()`: \n * `request.supplier` **Changed**\n* `apideck.accounting.payments.create()`: \n * `request.payment.account.name` **Added**\n* `apideck.accounting.payments.update()`: \n * `request.payment.account.name` **Added**\n* `apideck.accounting.journalEntries.create()`: \n * `request.journalEntry.lineItems.[]` **Changed**\n* `apideck.accounting.ledgerAccounts.update()`: \n * `request.ledgerAccount.taxRate.code` **Added**\n* `apideck.accounting.purchaseOrders.create()`: \n * `request.purchaseOrder.lineItems.[]` **Changed**\n* `apideck.accounting.purchaseOrders.update()`: \n * `request.purchaseOrder.lineItems.[]` **Changed**\n* `apideck.accounting.bankAccounts.create()`: \n * `request.accountingBankAccount.ledgerAccount.name` **Added**\n* `apideck.accounting.bankAccounts.update()`: \n * `request.accountingBankAccount.ledgerAccount.name` **Added**\n* `apideck.accounting.billPayments.create()`: \n * `request.billPayment.account.name` **Added**\n* `apideck.accounting.billPayments.update()`: \n * `request.billPayment.account.name` **Added**\n* `apideck.accounting.ledgerAccounts.create()`: \n * `request.ledgerAccount.taxRate.code` **Added**\n* `apideck.accounting.invoices.update()`: \n * `request.invoice.lineItems.[]` **Changed**\n* `apideck.accounting.invoices.create()`: \n * `request.invoice.lineItems.[]` **Changed**\n* `apideck.accounting.bills.update()`: \n * `request.bill.lineItems.[]` **Changed**\n* `apideck.accounting.quotes.create()`: \n * `request.quote.lineItems.[]` **Changed**\n* `apideck.accounting.quotes.update()`: \n * `request.quote.lineItems.[]` **Changed**\n* `apideck.accounting.projects.create()`: \n * `request.project.taxRate.code` **Added**\n* `apideck.accounting.projects.update()`: \n * `request.project.taxRate.code` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f9b0409da..83166a753 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,12 +22,13 @@ generation: hoistGlobalSecurity: true schemas: allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" tests: generateTests: true generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.34.0 + version: 0.34.1 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -35,6 +36,7 @@ typescript: peerDependencies: {} additionalPackageJSON: {} additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: ApideckError clientServerStatusCodesAsErrors: true @@ -45,6 +47,7 @@ typescript: enableReactQuery: false enumFormat: union envVarPrefix: APIDECK + exportZodModelNamespace: false flattenGlobalSecurity: true flatteningOrder: parameters-first generateExamples: true diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 610267b20..1da4a7f24 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -51795,6 +51795,7 @@ workflows: code: "453" display_id: "123456" id: "123456" + name: Bank account nominal_code: N091 parent_id: "123456" name: Main Operating Account @@ -51944,6 +51945,7 @@ workflows: code: "453" display_id: "123456" id: "123456" + name: Bank account nominal_code: N091 parent_id: "123456" name: Main Operating Account @@ -52166,6 +52168,7 @@ workflows: - redesign - urgent tax_rate: + code: N-T id: "123456" rate: 10 team_size: 8 @@ -52427,6 +52430,7 @@ workflows: - redesign - urgent tax_rate: + code: N-T id: "123456" rate: 10 team_size: 8 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 61d5a8fe7..ceaf7afef 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.648.0 +speakeasyVersion: 1.650.0 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95 - sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708 + sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a + sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2 tags: - latest - - speakeasy-sdk-regen-1762264365 + - speakeasy-sdk-regen-1762445111 - 10.21.11 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95 - sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708 + sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a + sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2 codeSamplesNamespace: apideck-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:9bce8c840b8a67bc7b515bca4d42a0ddf023598b009499f235e6c5dcf261a1c7 + codeSamplesRevisionDigest: sha256:2aaf55386383cbb65a543d525c42d153531e1787d654a50fcb2f958f29dc2ecb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index dd30b4481..ac7a8a227 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -558,4 +558,14 @@ Based on: ### Generated - [typescript v0.34.0] . ### Releases -- [NPM v0.34.0] https://www.npmjs.com/package/@apideck/unify/v/0.34.0 - . \ No newline at end of file +- [NPM v0.34.0] https://www.npmjs.com/package/@apideck/unify/v/0.34.0 - . + +## 2025-11-06 16:04:47 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.34.1] . +### Releases +- [NPM v0.34.1] https://www.npmjs.com/package/@apideck/unify/v/0.34.1 - . \ No newline at end of file diff --git a/docs/models/components/accountingbankaccountinput.md b/docs/models/components/accountingbankaccountinput.md index c3413f9ea..45d26dde8 100644 --- a/docs/models/components/accountingbankaccountinput.md +++ b/docs/models/components/accountingbankaccountinput.md @@ -12,6 +12,7 @@ let value: AccountingBankAccountInput = { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -50,7 +51,7 @@ let value: AccountingBankAccountInput = { | `name` | *string* | :heavy_minus_sign: | The name of the bank account | Main Operating Account | | `accountNumber` | *string* | :heavy_minus_sign: | The bank account number | 123465 | | `accountType` | [components.AccountingBankAccountAccountType](../../models/components/accountingbankaccountaccounttype.md) | :heavy_minus_sign: | The type of bank account | checking | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `bankName` | *string* | :heavy_minus_sign: | The name of the bank or financial institution | Chase Bank | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `balance` | *number* | :heavy_minus_sign: | The current balance of the bank account | 25000 | diff --git a/docs/models/components/bill.md b/docs/models/components/bill.md index c779e206d..71d207b2d 100644 --- a/docs/models/components/bill.md +++ b/docs/models/components/bill.md @@ -31,7 +31,7 @@ let value: Bill = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -106,8 +106,8 @@ let value: Bill = { terms: "Net 30 days", balance: 27500, deposit: 0, - subTotal: 27500, - totalTax: 2500, + subTotal: 250, + totalTax: 25, total: 27500, taxCode: "1234", notes: "Some notes about this bill.", @@ -217,8 +217,8 @@ let value: Bill = { | `terms` | *string* | :heavy_minus_sign: | Terms of payment. | Net 30 days | | `balance` | *number* | :heavy_minus_sign: | Balance of bill due. | 27500 | | `deposit` | *number* | :heavy_minus_sign: | Amount of deposit made to this bill. | 0 | -| `subTotal` | *number* | :heavy_minus_sign: | Sub-total amount, normally before tax. | 27500 | -| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this bill. | 2500 | +| `subTotal` | *number* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 | +| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 | | `total` | *number* | :heavy_minus_sign: | Total amount of bill, including tax. | 27500 | | `taxCode` | *string* | :heavy_minus_sign: | Applicable tax id/code override if tax is not supplied on a line item basis. | 1234 | | `notes` | *string* | :heavy_minus_sign: | N/A | Some notes about this bill. | diff --git a/docs/models/components/billinput.md b/docs/models/components/billinput.md index b8c0b67a1..61298d010 100644 --- a/docs/models/components/billinput.md +++ b/docs/models/components/billinput.md @@ -58,7 +58,7 @@ let value: BillInput = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -84,10 +84,12 @@ let value: BillInput = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -129,14 +131,15 @@ let value: BillInput = { terms: "Net 30 days", balance: 27500, deposit: 0, - subTotal: 27500, - totalTax: 2500, + subTotal: 250, + totalTax: 25, total: 27500, taxCode: "1234", notes: "Some notes about this bill.", status: "draft", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -233,13 +236,13 @@ let value: BillInput = { | `terms` | *string* | :heavy_minus_sign: | Terms of payment. | Net 30 days | | `balance` | *number* | :heavy_minus_sign: | Balance of bill due. | 27500 | | `deposit` | *number* | :heavy_minus_sign: | Amount of deposit made to this bill. | 0 | -| `subTotal` | *number* | :heavy_minus_sign: | Sub-total amount, normally before tax. | 27500 | -| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this bill. | 2500 | +| `subTotal` | *number* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 | +| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 | | `total` | *number* | :heavy_minus_sign: | Total amount of bill, including tax. | 27500 | | `taxCode` | *string* | :heavy_minus_sign: | Applicable tax id/code override if tax is not supplied on a line item basis. | 1234 | | `notes` | *string* | :heavy_minus_sign: | N/A | Some notes about this bill. | | `status` | [components.BillStatus](../../models/components/billstatus.md) | :heavy_minus_sign: | Invoice status | draft | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | | `channel` | *string* | :heavy_minus_sign: | The channel through which the transaction is processed. | email | | `language` | *string* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN | diff --git a/docs/models/components/billlineitem.md b/docs/models/components/billlineitem.md index 70547138b..223ad6c79 100644 --- a/docs/models/components/billlineitem.md +++ b/docs/models/components/billlineitem.md @@ -13,7 +13,7 @@ let value: BillLineItem = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -100,8 +100,8 @@ let value: BillLineItem = { | `code` | *string* | :heavy_minus_sign: | User defined item code | 120-C | | `lineNumber` | *number* | :heavy_minus_sign: | Line number in the invoice | 1 | | `description` | *string* | :heavy_minus_sign: | User defined description | Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection. | -| `type` | [components.BillLineItemType](../../models/components/billlineitemtype.md) | :heavy_minus_sign: | Bill Line Item type | expense_account | -| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27500 | +| `type` | [components.LineItemType](../../models/components/lineitemtype.md) | :heavy_minus_sign: | Line Item type | expense_account | +| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27.5 | | `totalAmount` | *number* | :heavy_minus_sign: | Total amount of the line item | 27500 | | `quantity` | *number* | :heavy_minus_sign: | N/A | 1 | | `unitPrice` | *number* | :heavy_minus_sign: | N/A | 27500.5 | diff --git a/docs/models/components/billlineiteminput.md b/docs/models/components/billlineiteminput.md index b90a2b0cd..da72f4422 100644 --- a/docs/models/components/billlineiteminput.md +++ b/docs/models/components/billlineiteminput.md @@ -12,7 +12,7 @@ let value: BillLineItemInput = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -38,10 +38,12 @@ let value: BillLineItemInput = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -82,8 +84,8 @@ let value: BillLineItemInput = { | `code` | *string* | :heavy_minus_sign: | User defined item code | 120-C | | `lineNumber` | *number* | :heavy_minus_sign: | Line number in the invoice | 1 | | `description` | *string* | :heavy_minus_sign: | User defined description | Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection. | -| `type` | [components.BillLineItemType](../../models/components/billlineitemtype.md) | :heavy_minus_sign: | Bill Line Item type | expense_account | -| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27500 | +| `type` | [components.LineItemType](../../models/components/lineitemtype.md) | :heavy_minus_sign: | Line Item type | expense_account | +| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27.5 | | `totalAmount` | *number* | :heavy_minus_sign: | Total amount of the line item | 27500 | | `quantity` | *number* | :heavy_minus_sign: | N/A | 1 | | `unitPrice` | *number* | :heavy_minus_sign: | N/A | 27500.5 | @@ -104,7 +106,7 @@ let value: BillLineItemInput = { | `paymentAmount` | *number* | :heavy_minus_sign: | Payment amount | 1000 | | `item` | [components.LinkedInvoiceItem](../../models/components/linkedinvoiceitem.md) | :heavy_minus_sign: | N/A | | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `purchaseOrder` | [components.LinkedPurchaseOrder](../../models/components/linkedpurchaseorder.md) | :heavy_minus_sign: | N/A | | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | | `customer` | [components.LinkedCustomerInput](../../models/components/linkedcustomerinput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | diff --git a/docs/models/components/billlineitemtype.md b/docs/models/components/billlineitemtype.md deleted file mode 100644 index 7df223a3a..000000000 --- a/docs/models/components/billlineitemtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# BillLineItemType - -Bill Line Item type - -## Example Usage - -```typescript -import { BillLineItemType } from "@apideck/unify/models/components"; - -let value: BillLineItemType = "expense_account"; -``` - -## Values - -```typescript -"expense_item" | "expense_account" | "other" -``` \ No newline at end of file diff --git a/docs/models/components/billpaymentinput.md b/docs/models/components/billpaymentinput.md index ab44e22e1..20db5f88c 100644 --- a/docs/models/components/billpaymentinput.md +++ b/docs/models/components/billpaymentinput.md @@ -15,6 +15,7 @@ let value: BillPaymentInput = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -113,7 +114,7 @@ let value: BillPaymentInput = { | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | | `paymentMethodReference` | *string* | :heavy_minus_sign: | Optional reference message returned by payment method on processing | 123456 | | `paymentMethodId` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `supplier` | [components.LinkedSupplierInput](../../models/components/linkedsupplierinput.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | diff --git a/docs/models/components/creditnoteinput.md b/docs/models/components/creditnoteinput.md index 1f33b0d9c..7669d1faa 100644 --- a/docs/models/components/creditnoteinput.md +++ b/docs/models/components/creditnoteinput.md @@ -31,6 +31,7 @@ let value: CreditNoteInput = { type: "accounts_receivable_credit", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -76,6 +77,7 @@ let value: CreditNoteInput = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -88,6 +90,7 @@ let value: CreditNoteInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -224,7 +227,7 @@ let value: CreditNoteInput = { | `dateIssued` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Date credit note issued - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `datePaid` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Date credit note paid - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `type` | [components.CreditNoteType](../../models/components/creditnotetype.md) | :heavy_minus_sign: | Type of payment | accounts_receivable_credit | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `lineItems` | [components.InvoiceLineItemInput](../../models/components/invoicelineiteminput.md)[] | :heavy_minus_sign: | N/A | | | `allocations` | [components.AllocationInput](../../models/components/allocationinput.md)[] | :heavy_minus_sign: | N/A | | | `note` | *string* | :heavy_minus_sign: | Optional note to be associated with the credit note. | Some notes about this credit note | diff --git a/docs/models/components/customerinput.md b/docs/models/components/customerinput.md index 0e711c865..a156904af 100644 --- a/docs/models/components/customerinput.md +++ b/docs/models/components/customerinput.md @@ -90,12 +90,14 @@ let value: CustomerInput = { notes: "Some notes about this customer", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", currency: "USD", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -161,7 +163,7 @@ let value: CustomerInput = { | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `parent` | [components.LinkedParentCustomer](../../models/components/linkedparentcustomer.md) | :heavy_minus_sign: | The parent customer this entity is linked to. | | | `status` | [components.CustomerStatusStatus](../../models/components/customerstatusstatus.md) | :heavy_minus_sign: | Customer status | active | | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | diff --git a/docs/models/components/expense.md b/docs/models/components/expense.md index cc588e081..f915775bf 100644 --- a/docs/models/components/expense.md +++ b/docs/models/components/expense.md @@ -1,16 +1,14 @@ # Expense - -## Supported Types - -### `components.Expense1` +## Example Usage ```typescript -const value: components.Expense1 = { +import { Expense } from "@apideck/unify/models/components"; + +let value: Expense = { id: "12345", number: "OIT00546", transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", account: { id: "123456", name: "Bank account", @@ -26,79 +24,39 @@ const value: components.Expense1 = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], + supplier: { + id: "12345", + displayId: "SUPP00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", }, - ], -}; -``` - -### `components.Expense2` - -```typescript -const value: components.Expense2 = { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", }, - customerId: "12345", - supplierId: "12345", companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -112,80 +70,54 @@ const value: components.Expense2 = { name: "GST on Purchases", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ + lineItems: [ { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ + id: "12345", + trackingCategories: [ { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", }, ], + account: { + id: "123456", + name: "Bank account", + nominalCode: "N091", + code: "453", + parentId: "123456", + displayId: "123456", + }, + customerId: "12345", + departmentId: "12345", + locationId: "12345", + subsidiaryId: "12345", + taxRate: { + id: "123456", + code: "N-T", + name: "GST on Purchases", + rate: 10, + }, + description: "Travel US.", + type: "expense_account", + totalAmount: 275, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, + lineNumber: 1, + rebilling: null, }, ], -}; -``` - -### `components.Three` - -```typescript -const value: components.Three = { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [], reference: "INV-2024-001", sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", customFields: [ @@ -220,3 +152,40 @@ const value: components.Three = { }; ``` +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | +| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | +| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | +| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | +| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | +| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | +| ~~`supplierId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The ID of the supplier this entity is linked to. Deprecated, use supplier instead. | 12345 | +| `supplier` | [components.LinkedSupplier](../../models/components/linkedsupplier.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | +| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | +| `paymentType` | [components.ExpensePaymentType](../../models/components/expensepaymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | +| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | +| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | +| `type` | [components.ExpenseType](../../models/components/expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | +| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | +| `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | +| `taxInclusive` | *boolean* | :heavy_minus_sign: | Amounts are including tax | true | +| `subTotal` | *number* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 | +| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 | +| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | +| `lineItems` | [components.ExpenseLineItem](../../models/components/expenselineitem.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | +| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | +| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | +| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | +| `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | +| `status` | [components.ExpenseStatus](../../models/components/expensestatus.md) | :heavy_minus_sign: | Expense status | draft | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | +| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | +| `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | +| `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | +| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense1.md b/docs/models/components/expense1.md deleted file mode 100644 index 48ad0ac96..000000000 --- a/docs/models/components/expense1.md +++ /dev/null @@ -1,110 +0,0 @@ -# Expense1 - -## Example Usage - -```typescript -import { Expense1 } from "@apideck/unify/models/components"; - -let value: Expense1 = { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.ExpensePaymentType](../../models/components/expensepaymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.ExpenseType](../../models/components/expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItem](../../models/components/expenselineitem.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `status` | [components.ExpenseStatus](../../models/components/expensestatus.md) | :heavy_minus_sign: | Expense status | draft | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense1input.md b/docs/models/components/expense1input.md deleted file mode 100644 index 76e2b53c7..000000000 --- a/docs/models/components/expense1input.md +++ /dev/null @@ -1,96 +0,0 @@ -# Expense1Input - -## Example Usage - -```typescript -import { Expense1Input } from "@apideck/unify/models/components"; - -let value: Expense1Input = { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.ExpensePaymentType](../../models/components/expensepaymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.ExpenseType](../../models/components/expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItemInput](../../models/components/expenselineiteminput.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `status` | [components.ExpenseStatus](../../models/components/expensestatus.md) | :heavy_minus_sign: | Expense status | draft | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense2.md b/docs/models/components/expense2.md deleted file mode 100644 index 3465a869e..000000000 --- a/docs/models/components/expense2.md +++ /dev/null @@ -1,109 +0,0 @@ -# Expense2 - -## Example Usage - -```typescript -import { Expense2 } from "@apideck/unify/models/components"; - -let value: Expense2 = { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_check_mark: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.Expense2PaymentType](../../models/components/expense2paymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.ExpenseExpenseType](../../models/components/expenseexpensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItem](../../models/components/expenselineitem.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `status` | [components.Expense2Status](../../models/components/expense2status.md) | :heavy_minus_sign: | Expense status | draft | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense2input.md b/docs/models/components/expense2input.md deleted file mode 100644 index b9e2956e4..000000000 --- a/docs/models/components/expense2input.md +++ /dev/null @@ -1,124 +0,0 @@ -# Expense2Input - -## Example Usage - -```typescript -import { Expense2Input } from "@apideck/unify/models/components"; - -let value: Expense2Input = { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - trackingCategories: null, - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - rebilling: { - rebillable: true, - rebillStatus: "billed", - linkedTransactionId: "txn_abc123", - linkedTransactionLineId: "line_xyz789", - }, - }, - ], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_check_mark: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.Expense2PaymentType](../../models/components/expense2paymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.ExpenseExpenseType](../../models/components/expenseexpensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItemInput](../../models/components/expenselineiteminput.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `status` | [components.Expense2Status](../../models/components/expense2status.md) | :heavy_minus_sign: | Expense status | draft | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense2paymenttype.md b/docs/models/components/expense2paymenttype.md deleted file mode 100644 index b8e9a99cd..000000000 --- a/docs/models/components/expense2paymenttype.md +++ /dev/null @@ -1,17 +0,0 @@ -# Expense2PaymentType - -The type of payment for the expense. - -## Example Usage - -```typescript -import { Expense2PaymentType } from "@apideck/unify/models/components"; - -let value: Expense2PaymentType = "cash"; -``` - -## Values - -```typescript -"cash" | "check" | "credit_card" | "other" -``` \ No newline at end of file diff --git a/docs/models/components/expense2status.md b/docs/models/components/expense2status.md deleted file mode 100644 index 212a854bb..000000000 --- a/docs/models/components/expense2status.md +++ /dev/null @@ -1,17 +0,0 @@ -# Expense2Status - -Expense status - -## Example Usage - -```typescript -import { Expense2Status } from "@apideck/unify/models/components"; - -let value: Expense2Status = "draft"; -``` - -## Values - -```typescript -"draft" | "posted" -``` \ No newline at end of file diff --git a/docs/models/components/expense3.md b/docs/models/components/expense3.md deleted file mode 100644 index e6da79d65..000000000 --- a/docs/models/components/expense3.md +++ /dev/null @@ -1,95 +0,0 @@ -# Expense3 - -## Example Usage - -```typescript -import { Expense3 } from "@apideck/unify/models/components"; - -let value: Expense3 = { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_check_mark: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.Expense3PaymentType](../../models/components/expense3paymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.Expense3ExpenseType](../../models/components/expense3expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItemInput](../../models/components/expenselineiteminput.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `status` | [components.Expense3Status](../../models/components/expense3status.md) | :heavy_minus_sign: | Expense status | draft | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expense3expensetype.md b/docs/models/components/expense3expensetype.md deleted file mode 100644 index c85c253a4..000000000 --- a/docs/models/components/expense3expensetype.md +++ /dev/null @@ -1,17 +0,0 @@ -# Expense3ExpenseType - -The type of expense. - -## Example Usage - -```typescript -import { Expense3ExpenseType } from "@apideck/unify/models/components"; - -let value: Expense3ExpenseType = "expense"; -``` - -## Values - -```typescript -"expense" | "refund" -``` \ No newline at end of file diff --git a/docs/models/components/expense3paymenttype.md b/docs/models/components/expense3paymenttype.md deleted file mode 100644 index c589d7258..000000000 --- a/docs/models/components/expense3paymenttype.md +++ /dev/null @@ -1,17 +0,0 @@ -# Expense3PaymentType - -The type of payment for the expense. - -## Example Usage - -```typescript -import { Expense3PaymentType } from "@apideck/unify/models/components"; - -let value: Expense3PaymentType = "cash"; -``` - -## Values - -```typescript -"cash" | "check" | "credit_card" | "other" -``` \ No newline at end of file diff --git a/docs/models/components/expense3status.md b/docs/models/components/expense3status.md deleted file mode 100644 index 8360aebf9..000000000 --- a/docs/models/components/expense3status.md +++ /dev/null @@ -1,17 +0,0 @@ -# Expense3Status - -Expense status - -## Example Usage - -```typescript -import { Expense3Status } from "@apideck/unify/models/components"; - -let value: Expense3Status = "draft"; -``` - -## Values - -```typescript -"draft" | "posted" -``` \ No newline at end of file diff --git a/docs/models/components/expenseexpensetype.md b/docs/models/components/expenseexpensetype.md deleted file mode 100644 index d51460db6..000000000 --- a/docs/models/components/expenseexpensetype.md +++ /dev/null @@ -1,17 +0,0 @@ -# ExpenseExpenseType - -The type of expense. - -## Example Usage - -```typescript -import { ExpenseExpenseType } from "@apideck/unify/models/components"; - -let value: ExpenseExpenseType = "expense"; -``` - -## Values - -```typescript -"expense" | "refund" -``` \ No newline at end of file diff --git a/docs/models/components/expenseinput.md b/docs/models/components/expenseinput.md index 244b99713..9afa0cb7a 100644 --- a/docs/models/components/expenseinput.md +++ b/docs/models/components/expenseinput.md @@ -1,86 +1,14 @@ # ExpenseInput - -## Supported Types - -### `components.Expense1Input` +## Example Usage ```typescript -const value: components.Expense1Input = { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` +import { ExpenseInput } from "@apideck/unify/models/components"; -### `components.Expense2Input` - -```typescript -const value: components.Expense2Input = { +let value: ExpenseInput = { number: "OIT00546", transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, + account: null, bankAccount: { id: "ba_123456", name: "Main Operating Account", @@ -88,100 +16,37 @@ const value: components.Expense2Input = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - trackingCategories: null, - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - rebilling: { - rebillable: true, - rebillStatus: "billed", - linkedTransactionId: "txn_abc123", - linkedTransactionLineId: "line_xyz789", - }, - }, - ], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], + supplier: { + id: "12345", + displayName: "Windsurf Shop", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", }, - ], -}; -``` - -### `components.Expense3` - -```typescript -const value: components.Expense3 = { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", }, - customerId: "12345", - supplierId: "12345", companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -191,8 +56,12 @@ const value: components.Expense3 = { memo: "For travel expenses incurred on 2024-05-15", taxRate: { id: "123456", + code: "N-T", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, lineItems: [], reference: "INV-2024-001", @@ -225,3 +94,34 @@ const value: components.Expense3 = { }; ``` +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | +| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | +| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | +| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_minus_sign: | N/A | | +| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | +| ~~`supplierId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The ID of the supplier this entity is linked to. Deprecated, use supplier instead. | 12345 | +| `supplier` | [components.LinkedSupplierInput](../../models/components/linkedsupplierinput.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | +| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | +| `paymentType` | [components.ExpensePaymentType](../../models/components/expensepaymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | +| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | +| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | +| `type` | [components.ExpenseType](../../models/components/expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | +| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | +| `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | +| `taxInclusive` | *boolean* | :heavy_minus_sign: | Amounts are including tax | true | +| `subTotal` | *number* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 | +| `totalTax` | *number* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 | +| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | +| `lineItems` | [components.ExpenseLineItemInput](../../models/components/expenselineiteminput.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | +| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | +| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | +| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | +| `status` | [components.ExpenseStatus](../../models/components/expensestatus.md) | :heavy_minus_sign: | Expense status | draft | +| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | +| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/expenselineitem.md b/docs/models/components/expenselineitem.md index af3920b37..16f36c0d5 100644 --- a/docs/models/components/expenselineitem.md +++ b/docs/models/components/expenselineitem.md @@ -34,8 +34,16 @@ let value: ExpenseLineItem = { rate: 10, }, description: "Travel US.", + type: "expense_account", totalAmount: 275, - billable: true, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, lineNumber: 1, rebilling: { rebillable: true, @@ -60,7 +68,12 @@ let value: ExpenseLineItem = { | `subsidiaryId` | *string* | :heavy_minus_sign: | The ID of the subsidiary | 12345 | | `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | | `description` | *string* | :heavy_minus_sign: | The expense line item description | Travel US. | +| `type` | [components.LineItemType](../../models/components/lineitemtype.md) | :heavy_minus_sign: | Line Item type | expense_account | | `totalAmount` | *number* | :heavy_check_mark: | The total amount of the expense line item. | 275 | -| `billable` | *boolean* | :heavy_minus_sign: | Boolean that indicates if the line item is billable or not. | true | +| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27.5 | +| `quantity` | *number* | :heavy_minus_sign: | N/A | 1 | +| `unitPrice` | *number* | :heavy_minus_sign: | N/A | 27500.5 | +| `item` | [components.LinkedInvoiceItem](../../models/components/linkedinvoiceitem.md) | :heavy_minus_sign: | N/A | | +| ~~`billable`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Boolean that indicates if the line item is billable or not. | true | | `lineNumber` | *number* | :heavy_minus_sign: | Line number of the resource | 1 | | `rebilling` | [components.Rebilling](../../models/components/rebilling.md) | :heavy_minus_sign: | Rebilling metadata for this line item. | | \ No newline at end of file diff --git a/docs/models/components/expenselineiteminput.md b/docs/models/components/expenselineiteminput.md index c5ad97f4d..8ef0a2255 100644 --- a/docs/models/components/expenselineiteminput.md +++ b/docs/models/components/expenselineiteminput.md @@ -16,6 +16,7 @@ let value: ExpenseLineItemInput = { ], account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -27,11 +28,20 @@ let value: ExpenseLineItemInput = { subsidiaryId: "12345", taxRate: { id: "123456", + code: "N-T", rate: 10, }, description: "Travel US.", + type: "expense_account", totalAmount: 275, - billable: true, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, lineNumber: 1, rebilling: { rebillable: true, @@ -48,14 +58,19 @@ let value: ExpenseLineItemInput = { | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | | ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this expense item is linked to. | 12345 | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | | `locationId` | *string* | :heavy_minus_sign: | The ID of the location | 12345 | | `subsidiaryId` | *string* | :heavy_minus_sign: | The ID of the subsidiary | 12345 | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `description` | *string* | :heavy_minus_sign: | The expense line item description | Travel US. | +| `type` | [components.LineItemType](../../models/components/lineitemtype.md) | :heavy_minus_sign: | Line Item type | expense_account | | `totalAmount` | *number* | :heavy_check_mark: | The total amount of the expense line item. | 275 | -| `billable` | *boolean* | :heavy_minus_sign: | Boolean that indicates if the line item is billable or not. | true | +| `taxAmount` | *number* | :heavy_minus_sign: | Tax amount | 27.5 | +| `quantity` | *number* | :heavy_minus_sign: | N/A | 1 | +| `unitPrice` | *number* | :heavy_minus_sign: | N/A | 27500.5 | +| `item` | [components.LinkedInvoiceItem](../../models/components/linkedinvoiceitem.md) | :heavy_minus_sign: | N/A | | +| ~~`billable`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Boolean that indicates if the line item is billable or not. | true | | `lineNumber` | *number* | :heavy_minus_sign: | Line number of the resource | 1 | | `rebilling` | [components.Rebilling](../../models/components/rebilling.md) | :heavy_minus_sign: | Rebilling metadata for this line item. | | \ No newline at end of file diff --git a/docs/models/components/getbillresponse.md b/docs/models/components/getbillresponse.md index 245e07d92..af3d3b384 100644 --- a/docs/models/components/getbillresponse.md +++ b/docs/models/components/getbillresponse.md @@ -71,7 +71,7 @@ let value: GetBillResponse = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -146,8 +146,8 @@ let value: GetBillResponse = { terms: "Net 30 days", balance: 27500, deposit: 0, - subTotal: 27500, - totalTax: 2500, + subTotal: 250, + totalTax: 25, total: 27500, taxCode: "1234", notes: "Some notes about this bill.", diff --git a/docs/models/components/getexpenseresponse.md b/docs/models/components/getexpenseresponse.md index 5f543ecda..6512495c4 100644 --- a/docs/models/components/getexpenseresponse.md +++ b/docs/models/components/getexpenseresponse.md @@ -32,7 +32,39 @@ let value: GetExpenseResponse = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", + supplier: { + id: "12345", + displayId: "SUPP00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + }, companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -46,6 +78,9 @@ let value: GetExpenseResponse = { name: "GST on Purchases", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, lineItems: [ { @@ -77,8 +112,16 @@ let value: GetExpenseResponse = { rate: 10, }, description: "Travel US.", + type: "expense_account", totalAmount: 275, - billable: true, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, lineNumber: 1, rebilling: null, }, @@ -127,5 +170,5 @@ let value: GetExpenseResponse = { | `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | | `resource` | *string* | :heavy_check_mark: | Unified API resource name | Expenses | | `operation` | *string* | :heavy_check_mark: | Operation performed | one | -| `data` | *components.Expense* | :heavy_check_mark: | N/A | | +| `data` | [components.Expense](../../models/components/expense.md) | :heavy_check_mark: | N/A | | | `raw` | Record | :heavy_minus_sign: | Raw response from the integration when raw=true query param is provided | | \ No newline at end of file diff --git a/docs/models/components/getexpensesresponse.md b/docs/models/components/getexpensesresponse.md index 7830b6eca..8dc0465af 100644 --- a/docs/models/components/getexpensesresponse.md +++ b/docs/models/components/getexpensesresponse.md @@ -18,7 +18,6 @@ let value: GetExpensesResponse = { id: "12345", number: "OIT00546", transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", account: { id: "123456", name: "Bank account", @@ -34,7 +33,39 @@ let value: GetExpensesResponse = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", + supplier: { + id: "12345", + displayId: "SUPP00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + }, companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -48,6 +79,9 @@ let value: GetExpensesResponse = { name: "GST on Purchases", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, lineItems: [ { @@ -79,8 +113,16 @@ let value: GetExpensesResponse = { rate: 10, }, description: "Travel US.", + type: "expense_account", totalAmount: 275, - billable: true, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, lineNumber: 1, rebilling: null, }, @@ -145,7 +187,7 @@ let value: GetExpensesResponse = { | `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | | `resource` | *string* | :heavy_check_mark: | Unified API resource name | Expenses | | `operation` | *string* | :heavy_check_mark: | Operation performed | all | -| `data` | *components.Expense*[] | :heavy_check_mark: | N/A | | +| `data` | [components.Expense](../../models/components/expense.md)[] | :heavy_check_mark: | N/A | | | `meta` | [components.Meta](../../models/components/meta.md) | :heavy_minus_sign: | Response metadata | | | `links` | [components.Links](../../models/components/links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | | `raw` | Record | :heavy_minus_sign: | Raw response from the integration when raw=true query param is provided | | \ No newline at end of file diff --git a/docs/models/components/invoiceinput.md b/docs/models/components/invoiceinput.md index 2a6c0087c..bcfb51332 100644 --- a/docs/models/components/invoiceinput.md +++ b/docs/models/components/invoiceinput.md @@ -84,6 +84,7 @@ let value: InvoiceInput = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -96,6 +97,7 @@ let value: InvoiceInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -195,6 +197,7 @@ let value: InvoiceInput = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -269,7 +272,7 @@ let value: InvoiceInput = { | `language` | *string* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN | | `accountingByRow` | *boolean* | :heavy_minus_sign: | Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row. | false | | `bankAccount` | [components.BankAccount](../../models/components/bankaccount.md) | :heavy_minus_sign: | N/A | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | | `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/invoiceiteminput.md b/docs/models/components/invoiceiteminput.md index ee5ba8815..ce575fb96 100644 --- a/docs/models/components/invoiceiteminput.md +++ b/docs/models/components/invoiceiteminput.md @@ -24,6 +24,7 @@ let value: InvoiceItemInput = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -33,6 +34,7 @@ let value: InvoiceItemInput = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -41,6 +43,7 @@ let value: InvoiceItemInput = { currency: "USD", assetAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -48,6 +51,7 @@ let value: InvoiceItemInput = { }, incomeAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -55,6 +59,7 @@ let value: InvoiceItemInput = { }, expenseAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -111,9 +116,9 @@ let value: InvoiceItemInput = { | `quantity` | *number* | :heavy_minus_sign: | N/A | 1 | | `unitPrice` | *number* | :heavy_minus_sign: | N/A | 27500.5 | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `assetAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | -| `incomeAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | -| `expenseAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `assetAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | +| `incomeAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | +| `expenseAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | ~~`trackingCategory`~~ | [components.DeprecatedLinkedTrackingCategory](../../models/components/deprecatedlinkedtrackingcategory.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | | `active` | *boolean* | :heavy_minus_sign: | N/A | true | diff --git a/docs/models/components/invoiceitempurchasedetails.md b/docs/models/components/invoiceitempurchasedetails.md index 9235f6291..195875f0d 100644 --- a/docs/models/components/invoiceitempurchasedetails.md +++ b/docs/models/components/invoiceitempurchasedetails.md @@ -11,6 +11,7 @@ let value: InvoiceItemPurchaseDetails = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }; diff --git a/docs/models/components/invoiceitemsalesdetails.md b/docs/models/components/invoiceitemsalesdetails.md index 4f5e76f14..a1899c4c6 100644 --- a/docs/models/components/invoiceitemsalesdetails.md +++ b/docs/models/components/invoiceitemsalesdetails.md @@ -11,6 +11,7 @@ let value: InvoiceItemSalesDetails = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }; diff --git a/docs/models/components/invoicelineiteminput.md b/docs/models/components/invoicelineiteminput.md index f9b27479e..e37350aaf 100644 --- a/docs/models/components/invoicelineiteminput.md +++ b/docs/models/components/invoicelineiteminput.md @@ -45,6 +45,7 @@ let value: InvoiceLineItemInput = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -57,6 +58,7 @@ let value: InvoiceLineItemInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -106,6 +108,6 @@ let value: InvoiceLineItemInput = { | `worktags` | [components.LinkedWorktag](../../models/components/linkedworktag.md)[] | :heavy_minus_sign: | Worktags of the line item. This is currently only supported in Workday. | | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | \ No newline at end of file diff --git a/docs/models/components/journalentryinput.md b/docs/models/components/journalentryinput.md index a043239c9..f8d081185 100644 --- a/docs/models/components/journalentryinput.md +++ b/docs/models/components/journalentryinput.md @@ -21,6 +21,7 @@ let value: JournalEntryInput = { type: "debit", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -33,6 +34,7 @@ let value: JournalEntryInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/components/journalentrylineiteminput.md b/docs/models/components/journalentrylineiteminput.md index 88ad1748b..afab1b3b9 100644 --- a/docs/models/components/journalentrylineiteminput.md +++ b/docs/models/components/journalentrylineiteminput.md @@ -14,6 +14,7 @@ let value: JournalEntryLineItemInput = { type: "debit", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -26,6 +27,7 @@ let value: JournalEntryLineItemInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -91,7 +93,7 @@ let value: JournalEntryLineItemInput = { | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | ~~`trackingCategory`~~ | [components.DeprecatedLinkedTrackingCategory](../../models/components/deprecatedlinkedtrackingcategory.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_check_mark: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_check_mark: | N/A | | | `customer` | [components.LinkedCustomerInput](../../models/components/linkedcustomerinput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | `supplier` | [components.LinkedSupplierInput](../../models/components/linkedsupplierinput.md) | :heavy_minus_sign: | The supplier this entity is linked to. | | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | diff --git a/docs/models/components/ledgeraccountinput.md b/docs/models/components/ledgeraccountinput.md index d3bd3ddfc..c2e01ab57 100644 --- a/docs/models/components/ledgeraccountinput.md +++ b/docs/models/components/ledgeraccountinput.md @@ -21,6 +21,7 @@ let value: LedgerAccountInput = { taxType: "NONE", taxRate: { id: "123456", + code: "N-T", rate: 10, }, level: 1, diff --git a/docs/models/components/lineitemtype.md b/docs/models/components/lineitemtype.md new file mode 100644 index 000000000..b90415ef4 --- /dev/null +++ b/docs/models/components/lineitemtype.md @@ -0,0 +1,17 @@ +# LineItemType + +Line Item type + +## Example Usage + +```typescript +import { LineItemType } from "@apideck/unify/models/components"; + +let value: LineItemType = "expense_account"; +``` + +## Values + +```typescript +"expense_item" | "expense_account" | "other" +``` \ No newline at end of file diff --git a/docs/models/components/linkedledgeraccountinput.md b/docs/models/components/linkedledgeraccountinput.md deleted file mode 100644 index 650ac50b0..000000000 --- a/docs/models/components/linkedledgeraccountinput.md +++ /dev/null @@ -1,25 +0,0 @@ -# LinkedLedgerAccountInput - -## Example Usage - -```typescript -import { LinkedLedgerAccountInput } from "@apideck/unify/models/components"; - -let value: LinkedLedgerAccountInput = { - id: "123456", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | The unique identifier for the account. | 123456 | -| `nominalCode` | *string* | :heavy_minus_sign: | The nominal code of the account. | N091 | -| `code` | *string* | :heavy_minus_sign: | The code assigned to the account. | 453 | -| `parentId` | *string* | :heavy_minus_sign: | The parent ID of the account. | 123456 | -| `displayId` | *string* | :heavy_minus_sign: | The display ID of the account. | 123456 | \ No newline at end of file diff --git a/docs/models/components/linkedtaxrateinput.md b/docs/models/components/linkedtaxrateinput.md index 7f7e67cb9..f22ff7660 100644 --- a/docs/models/components/linkedtaxrateinput.md +++ b/docs/models/components/linkedtaxrateinput.md @@ -7,6 +7,7 @@ import { LinkedTaxRateInput } from "@apideck/unify/models/components"; let value: LinkedTaxRateInput = { id: "123456", + code: "N-T", rate: 10, }; ``` @@ -16,4 +17,5 @@ let value: LinkedTaxRateInput = { | Field | Type | Required | Description | Example | | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | | `id` | *string* | :heavy_minus_sign: | The ID of the object. | 123456 | +| `code` | *string* | :heavy_minus_sign: | Tax rate code | N-T | | `rate` | *number* | :heavy_minus_sign: | Rate of the tax rate | 10 | \ No newline at end of file diff --git a/docs/models/components/paymentinput.md b/docs/models/components/paymentinput.md index a82c15ad9..6a861c42d 100644 --- a/docs/models/components/paymentinput.md +++ b/docs/models/components/paymentinput.md @@ -15,6 +15,7 @@ let value: PaymentInput = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -88,7 +89,7 @@ let value: PaymentInput = { | `paymentMethodId` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | | ~~`accountsReceivableAccountType`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Type of accounts receivable account. | Account | | ~~`accountsReceivableAccountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier for the account to allocate payment to. | 123456 | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | | `customer` | [components.LinkedCustomerInput](../../models/components/linkedcustomerinput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | | ~~`supplier`~~ | [components.DeprecatedLinkedSupplierInput](../../models/components/deprecatedlinkedsupplierinput.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The supplier this entity is linked to. | | diff --git a/docs/models/components/projectinput.md b/docs/models/components/projectinput.md index 71bd1d5a4..37f782d68 100644 --- a/docs/models/components/projectinput.md +++ b/docs/models/components/projectinput.md @@ -43,6 +43,7 @@ let value: ProjectInput = { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ diff --git a/docs/models/components/purchaseorderinput.md b/docs/models/components/purchaseorderinput.md index acad7d675..356d44ba2 100644 --- a/docs/models/components/purchaseorderinput.md +++ b/docs/models/components/purchaseorderinput.md @@ -94,6 +94,7 @@ let value: PurchaseOrderInput = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -106,6 +107,7 @@ let value: PurchaseOrderInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -178,6 +180,7 @@ let value: PurchaseOrderInput = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -269,7 +272,7 @@ let value: PurchaseOrderInput = { | `lineItems` | [components.InvoiceLineItemInput](../../models/components/invoicelineiteminput.md)[] | :heavy_minus_sign: | N/A | | | `billingAddress` | [components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | | | `shippingAddress` | [components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `templateId` | *string* | :heavy_minus_sign: | Optional purchase order template | 123456 | | `discountPercentage` | *number* | :heavy_minus_sign: | Discount percentage applied to this transaction. | 5.5 | | `bankAccount` | [components.BankAccount](../../models/components/bankaccount.md) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/components/quoteinput.md b/docs/models/components/quoteinput.md index e6b9b21f8..aa076bab1 100644 --- a/docs/models/components/quoteinput.md +++ b/docs/models/components/quoteinput.md @@ -59,6 +59,7 @@ let value: QuoteInput = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -71,6 +72,7 @@ let value: QuoteInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/components/quotelineiteminput.md b/docs/models/components/quotelineiteminput.md index 14019c5a2..e7335714f 100644 --- a/docs/models/components/quotelineiteminput.md +++ b/docs/models/components/quotelineiteminput.md @@ -32,6 +32,7 @@ let value: QuoteLineItemInput = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -44,6 +45,7 @@ let value: QuoteLineItemInput = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -85,6 +87,6 @@ let value: QuoteLineItemInput = { | `item` | [components.LinkedInvoiceItem](../../models/components/linkedinvoiceitem.md) | :heavy_minus_sign: | N/A | | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | -| `ledgerAccount` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `ledgerAccount` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | \ No newline at end of file diff --git a/docs/models/components/supplierinput.md b/docs/models/components/supplierinput.md index 2d2a2549c..57b6abee8 100644 --- a/docs/models/components/supplierinput.md +++ b/docs/models/components/supplierinput.md @@ -89,12 +89,14 @@ let value: SupplierInput = { notes: "Some notes about this supplier", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", currency: "USD", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -173,7 +175,7 @@ let value: SupplierInput = { | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `account` | [components.LinkedLedgerAccountInput](../../models/components/linkedledgeraccountinput.md) | :heavy_minus_sign: | N/A | | +| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `status` | [components.SupplierStatus](../../models/components/supplierstatus.md) | :heavy_minus_sign: | Supplier status | active | | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | | `terms` | *string* | :heavy_minus_sign: | Terms of payment. | Net 30 days | diff --git a/docs/models/components/three.md b/docs/models/components/three.md deleted file mode 100644 index c4fbc8460..000000000 --- a/docs/models/components/three.md +++ /dev/null @@ -1,109 +0,0 @@ -# Three - -## Example Usage - -```typescript -import { Three } from "@apideck/unify/models/components"; - -let value: Three = { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - parentId: "123456", - displayId: "123456", - }, - bankAccount: { - id: "ba_123456", - name: "Main Operating Account", - accountNumber: "123465", - bankName: "Chase Bank", - }, - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [], - reference: "INV-2024-001", - sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - status: "draft", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | -| `number` | *string* | :heavy_minus_sign: | Number. | OIT00546 | -| `transactionDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z | -| ~~`accountId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. | 123456 | -| `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | -| `bankAccount` | [components.LinkedBankAccount](../../models/components/linkedbankaccount.md) | :heavy_check_mark: | N/A | | -| `customerId` | *string* | :heavy_minus_sign: | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 | -| `supplierId` | *string* | :heavy_minus_sign: | The ID of the supplier this entity is linked to. | 12345 | -| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | -| `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | -| `paymentType` | [components.Expense3PaymentType](../../models/components/expense3paymenttype.md) | :heavy_minus_sign: | The type of payment for the expense. | cash | -| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | -| `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | -| `type` | [components.Expense3ExpenseType](../../models/components/expense3expensetype.md) | :heavy_minus_sign: | The type of expense. | expense | -| `memo` | *string* | :heavy_minus_sign: | The memo of the expense. | For travel expenses incurred on 2024-05-15 | -| `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | -| `totalAmount` | *number* | :heavy_minus_sign: | The total amount of the expense line item. | 275 | -| `lineItems` | [components.ExpenseLineItem](../../models/components/expenselineitem.md)[] | :heavy_check_mark: | Expense line items linked to this expense. | | -| `reference` | *string* | :heavy_minus_sign: | Optional reference identifier for the transaction. | INV-2024-001 | -| `sourceDocumentUrl` | *string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/expense/123456 | -| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | -| `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | -| `status` | [components.Expense3Status](../../models/components/expense3status.md) | :heavy_minus_sign: | Expense status | draft | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | -| `rowVersion` | *string* | :heavy_minus_sign: | 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. | 1-12345 | -| `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | -| `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | -| `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/operations/accountingbankaccountsaddrequest.md b/docs/models/operations/accountingbankaccountsaddrequest.md index 76bd25337..5ec7fe694 100644 --- a/docs/models/operations/accountingbankaccountsaddrequest.md +++ b/docs/models/operations/accountingbankaccountsaddrequest.md @@ -14,6 +14,7 @@ let value: AccountingBankAccountsAddRequest = { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingbankaccountsupdaterequest.md b/docs/models/operations/accountingbankaccountsupdaterequest.md index 19964a1a0..3287d51f4 100644 --- a/docs/models/operations/accountingbankaccountsupdaterequest.md +++ b/docs/models/operations/accountingbankaccountsupdaterequest.md @@ -15,6 +15,7 @@ let value: AccountingBankAccountsUpdateRequest = { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingbillpaymentsaddrequest.md b/docs/models/operations/accountingbillpaymentsaddrequest.md index dbe946644..e0825bdad 100644 --- a/docs/models/operations/accountingbillpaymentsaddrequest.md +++ b/docs/models/operations/accountingbillpaymentsaddrequest.md @@ -17,6 +17,7 @@ let value: AccountingBillPaymentsAddRequest = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingbillpaymentsupdaterequest.md b/docs/models/operations/accountingbillpaymentsupdaterequest.md index 2d938fe3c..159cbd521 100644 --- a/docs/models/operations/accountingbillpaymentsupdaterequest.md +++ b/docs/models/operations/accountingbillpaymentsupdaterequest.md @@ -18,6 +18,7 @@ let value: AccountingBillPaymentsUpdateRequest = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingbillsaddrequest.md b/docs/models/operations/accountingbillsaddrequest.md index 7e5fe1ae9..bce8833fb 100644 --- a/docs/models/operations/accountingbillsaddrequest.md +++ b/docs/models/operations/accountingbillsaddrequest.md @@ -60,7 +60,7 @@ let value: AccountingBillsAddRequest = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -86,10 +86,12 @@ let value: AccountingBillsAddRequest = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -131,14 +133,15 @@ let value: AccountingBillsAddRequest = { terms: "Net 30 days", balance: 27500, deposit: 0, - subTotal: 27500, - totalTax: 2500, + subTotal: 250, + totalTax: 25, total: 27500, taxCode: "1234", notes: "Some notes about this bill.", status: "draft", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingbillsupdaterequest.md b/docs/models/operations/accountingbillsupdaterequest.md index 766900242..fe8ca5532 100644 --- a/docs/models/operations/accountingbillsupdaterequest.md +++ b/docs/models/operations/accountingbillsupdaterequest.md @@ -61,7 +61,7 @@ let value: AccountingBillsUpdateRequest = { description: "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", type: "expense_account", - taxAmount: 27500, + taxAmount: 27.5, totalAmount: 27500, quantity: 1, unitPrice: 27500.5, @@ -87,10 +87,12 @@ let value: AccountingBillsUpdateRequest = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -132,14 +134,15 @@ let value: AccountingBillsUpdateRequest = { terms: "Net 30 days", balance: 27500, deposit: 0, - subTotal: 27500, - totalTax: 2500, + subTotal: 250, + totalTax: 25, total: 27500, taxCode: "1234", notes: "Some notes about this bill.", status: "draft", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingcreditnotesaddrequest.md b/docs/models/operations/accountingcreditnotesaddrequest.md index ed3de6e2c..d3cb96cdb 100644 --- a/docs/models/operations/accountingcreditnotesaddrequest.md +++ b/docs/models/operations/accountingcreditnotesaddrequest.md @@ -33,6 +33,7 @@ let value: AccountingCreditNotesAddRequest = { type: "accounts_receivable_credit", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -78,6 +79,7 @@ let value: AccountingCreditNotesAddRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -90,6 +92,7 @@ let value: AccountingCreditNotesAddRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingcreditnotesupdaterequest.md b/docs/models/operations/accountingcreditnotesupdaterequest.md index 813559423..0689c1971 100644 --- a/docs/models/operations/accountingcreditnotesupdaterequest.md +++ b/docs/models/operations/accountingcreditnotesupdaterequest.md @@ -34,6 +34,7 @@ let value: AccountingCreditNotesUpdateRequest = { type: "accounts_receivable_credit", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -79,6 +80,7 @@ let value: AccountingCreditNotesUpdateRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -91,6 +93,7 @@ let value: AccountingCreditNotesUpdateRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingcustomersaddrequest.md b/docs/models/operations/accountingcustomersaddrequest.md index aab01bef8..8daf667e1 100644 --- a/docs/models/operations/accountingcustomersaddrequest.md +++ b/docs/models/operations/accountingcustomersaddrequest.md @@ -92,12 +92,14 @@ let value: AccountingCustomersAddRequest = { notes: "Some notes about this customer", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", currency: "USD", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingcustomersupdaterequest.md b/docs/models/operations/accountingcustomersupdaterequest.md index 951c5623f..080b2fbd6 100644 --- a/docs/models/operations/accountingcustomersupdaterequest.md +++ b/docs/models/operations/accountingcustomersupdaterequest.md @@ -93,12 +93,14 @@ let value: AccountingCustomersUpdateRequest = { notes: "Some notes about this customer", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", currency: "USD", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingexpensesaddrequest.md b/docs/models/operations/accountingexpensesaddrequest.md index 9c0003ec5..10f69bc2a 100644 --- a/docs/models/operations/accountingexpensesaddrequest.md +++ b/docs/models/operations/accountingexpensesaddrequest.md @@ -12,6 +12,7 @@ let value: AccountingExpensesAddRequest = { transactionDate: new Date("2021-05-01T12:00:00.000Z"), account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -24,7 +25,37 @@ let value: AccountingExpensesAddRequest = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", + supplier: { + id: "12345", + displayName: "Windsurf Shop", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + }, companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -34,10 +65,53 @@ let value: AccountingExpensesAddRequest = { memo: "For travel expenses incurred on 2024-05-15", taxRate: { id: "123456", + code: "N-T", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, - lineItems: [], + lineItems: [ + { + trackingCategories: null, + account: { + id: "123456", + name: "Bank account", + nominalCode: "N091", + code: "453", + parentId: "123456", + displayId: "123456", + }, + customerId: "12345", + departmentId: "12345", + locationId: "12345", + subsidiaryId: "12345", + taxRate: { + id: "123456", + code: "N-T", + rate: 10, + }, + description: "Travel US.", + type: "expense_account", + totalAmount: 275, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, + lineNumber: 1, + rebilling: { + rebillable: true, + rebillStatus: "billed", + linkedTransactionId: "txn_abc123", + linkedTransactionLineId: "line_xyz789", + }, + }, + ], reference: "INV-2024-001", sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", customFields: [ @@ -77,4 +151,4 @@ let value: AccountingExpensesAddRequest = { | `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | | `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | -| `expense` | *components.ExpenseInput* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `expense` | [components.ExpenseInput](../../models/components/expenseinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/accountingexpensesupdaterequest.md b/docs/models/operations/accountingexpensesupdaterequest.md index e6762fe31..858c3af41 100644 --- a/docs/models/operations/accountingexpensesupdaterequest.md +++ b/docs/models/operations/accountingexpensesupdaterequest.md @@ -13,6 +13,7 @@ let value: AccountingExpensesUpdateRequest = { transactionDate: new Date("2021-05-01T12:00:00.000Z"), account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -25,7 +26,37 @@ let value: AccountingExpensesUpdateRequest = { bankName: "Chase Bank", }, customerId: "12345", - supplierId: "12345", + supplier: { + id: "12345", + displayName: "Windsurf Shop", + address: { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + }, companyId: "12345", departmentId: "12345", paymentType: "cash", @@ -35,10 +66,53 @@ let value: AccountingExpensesUpdateRequest = { memo: "For travel expenses incurred on 2024-05-15", taxRate: { id: "123456", + code: "N-T", rate: 10, }, + taxInclusive: true, + subTotal: 250, + totalTax: 25, totalAmount: 275, - lineItems: [], + lineItems: [ + { + trackingCategories: null, + account: { + id: "123456", + name: "Bank account", + nominalCode: "N091", + code: "453", + parentId: "123456", + displayId: "123456", + }, + customerId: "12345", + departmentId: "12345", + locationId: "12345", + subsidiaryId: "12345", + taxRate: { + id: "123456", + code: "N-T", + rate: 10, + }, + description: "Travel US.", + type: "expense_account", + totalAmount: 275, + taxAmount: 27.5, + quantity: 1, + unitPrice: 27500.5, + item: { + id: "12344", + code: "120-C", + name: "Model Y", + }, + lineNumber: 1, + rebilling: { + rebillable: true, + rebillStatus: "billed", + linkedTransactionId: "txn_abc123", + linkedTransactionLineId: "line_xyz789", + }, + }, + ], reference: "INV-2024-001", sourceDocumentUrl: "https://www.invoicesolution.com/expense/123456", customFields: [ @@ -79,4 +153,4 @@ let value: AccountingExpensesUpdateRequest = { | `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | -| `expense` | *components.ExpenseInput* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `expense` | [components.ExpenseInput](../../models/components/expenseinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/accountinginvoiceitemsaddrequest.md b/docs/models/operations/accountinginvoiceitemsaddrequest.md index da8df391f..000930f80 100644 --- a/docs/models/operations/accountinginvoiceitemsaddrequest.md +++ b/docs/models/operations/accountinginvoiceitemsaddrequest.md @@ -26,6 +26,7 @@ let value: AccountingInvoiceItemsAddRequest = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -35,6 +36,7 @@ let value: AccountingInvoiceItemsAddRequest = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -43,6 +45,7 @@ let value: AccountingInvoiceItemsAddRequest = { currency: "USD", assetAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -50,6 +53,7 @@ let value: AccountingInvoiceItemsAddRequest = { }, incomeAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -57,6 +61,7 @@ let value: AccountingInvoiceItemsAddRequest = { }, expenseAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountinginvoiceitemsupdaterequest.md b/docs/models/operations/accountinginvoiceitemsupdaterequest.md index 0cfd31795..b9c09b629 100644 --- a/docs/models/operations/accountinginvoiceitemsupdaterequest.md +++ b/docs/models/operations/accountinginvoiceitemsupdaterequest.md @@ -27,6 +27,7 @@ let value: AccountingInvoiceItemsUpdateRequest = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -36,6 +37,7 @@ let value: AccountingInvoiceItemsUpdateRequest = { taxInclusive: true, taxRate: { id: "123456", + code: "N-T", rate: 10, }, }, @@ -44,6 +46,7 @@ let value: AccountingInvoiceItemsUpdateRequest = { currency: "USD", assetAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -51,6 +54,7 @@ let value: AccountingInvoiceItemsUpdateRequest = { }, incomeAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -58,6 +62,7 @@ let value: AccountingInvoiceItemsUpdateRequest = { }, expenseAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountinginvoicesaddrequest.md b/docs/models/operations/accountinginvoicesaddrequest.md index d403663be..f8263b77c 100644 --- a/docs/models/operations/accountinginvoicesaddrequest.md +++ b/docs/models/operations/accountinginvoicesaddrequest.md @@ -79,6 +79,7 @@ let value: AccountingInvoicesAddRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -91,6 +92,7 @@ let value: AccountingInvoicesAddRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -190,6 +192,7 @@ let value: AccountingInvoicesAddRequest = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountinginvoicesupdaterequest.md b/docs/models/operations/accountinginvoicesupdaterequest.md index 89d71991c..2a581fc69 100644 --- a/docs/models/operations/accountinginvoicesupdaterequest.md +++ b/docs/models/operations/accountinginvoicesupdaterequest.md @@ -80,6 +80,7 @@ let value: AccountingInvoicesUpdateRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -92,6 +93,7 @@ let value: AccountingInvoicesUpdateRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -191,6 +193,7 @@ let value: AccountingInvoicesUpdateRequest = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingjournalentriesaddrequest.md b/docs/models/operations/accountingjournalentriesaddrequest.md index daa2d6674..749af4d98 100644 --- a/docs/models/operations/accountingjournalentriesaddrequest.md +++ b/docs/models/operations/accountingjournalentriesaddrequest.md @@ -23,6 +23,7 @@ let value: AccountingJournalEntriesAddRequest = { type: "debit", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -35,6 +36,7 @@ let value: AccountingJournalEntriesAddRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingjournalentriesupdaterequest.md b/docs/models/operations/accountingjournalentriesupdaterequest.md index 5ba5ebb03..df97abb47 100644 --- a/docs/models/operations/accountingjournalentriesupdaterequest.md +++ b/docs/models/operations/accountingjournalentriesupdaterequest.md @@ -24,6 +24,7 @@ let value: AccountingJournalEntriesUpdateRequest = { type: "debit", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -36,6 +37,7 @@ let value: AccountingJournalEntriesUpdateRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingledgeraccountsaddrequest.md b/docs/models/operations/accountingledgeraccountsaddrequest.md index 78f25db84..7e55da8c1 100644 --- a/docs/models/operations/accountingledgeraccountsaddrequest.md +++ b/docs/models/operations/accountingledgeraccountsaddrequest.md @@ -23,6 +23,7 @@ let value: AccountingLedgerAccountsAddRequest = { taxType: "NONE", taxRate: { id: "123456", + code: "N-T", rate: 10, }, level: 1, diff --git a/docs/models/operations/accountingledgeraccountsupdaterequest.md b/docs/models/operations/accountingledgeraccountsupdaterequest.md index 9b58f14cd..9d72800bf 100644 --- a/docs/models/operations/accountingledgeraccountsupdaterequest.md +++ b/docs/models/operations/accountingledgeraccountsupdaterequest.md @@ -24,6 +24,7 @@ let value: AccountingLedgerAccountsUpdateRequest = { taxType: "NONE", taxRate: { id: "123456", + code: "N-T", rate: 10, }, level: 1, diff --git a/docs/models/operations/accountingpaymentsaddrequest.md b/docs/models/operations/accountingpaymentsaddrequest.md index 3eab33eee..3efa4f304 100644 --- a/docs/models/operations/accountingpaymentsaddrequest.md +++ b/docs/models/operations/accountingpaymentsaddrequest.md @@ -17,6 +17,7 @@ let value: AccountingPaymentsAddRequest = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingpaymentsupdaterequest.md b/docs/models/operations/accountingpaymentsupdaterequest.md index b2e76c386..0604589ae 100644 --- a/docs/models/operations/accountingpaymentsupdaterequest.md +++ b/docs/models/operations/accountingpaymentsupdaterequest.md @@ -18,6 +18,7 @@ let value: AccountingPaymentsUpdateRequest = { paymentMethodId: "12345", account: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingprojectsaddrequest.md b/docs/models/operations/accountingprojectsaddrequest.md index c7584edfa..67690131d 100644 --- a/docs/models/operations/accountingprojectsaddrequest.md +++ b/docs/models/operations/accountingprojectsaddrequest.md @@ -45,6 +45,7 @@ let value: AccountingProjectsAddRequest = { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ diff --git a/docs/models/operations/accountingprojectsupdaterequest.md b/docs/models/operations/accountingprojectsupdaterequest.md index 2f018c81a..64006329a 100644 --- a/docs/models/operations/accountingprojectsupdaterequest.md +++ b/docs/models/operations/accountingprojectsupdaterequest.md @@ -46,6 +46,7 @@ let value: AccountingProjectsUpdateRequest = { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ diff --git a/docs/models/operations/accountingpurchaseordersaddrequest.md b/docs/models/operations/accountingpurchaseordersaddrequest.md index 6188fab1b..b5da55632 100644 --- a/docs/models/operations/accountingpurchaseordersaddrequest.md +++ b/docs/models/operations/accountingpurchaseordersaddrequest.md @@ -66,6 +66,7 @@ let value: AccountingPurchaseOrdersAddRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -78,6 +79,7 @@ let value: AccountingPurchaseOrdersAddRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -150,6 +152,7 @@ let value: AccountingPurchaseOrdersAddRequest = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingpurchaseordersupdaterequest.md b/docs/models/operations/accountingpurchaseordersupdaterequest.md index 49f85f313..e354c7176 100644 --- a/docs/models/operations/accountingpurchaseordersupdaterequest.md +++ b/docs/models/operations/accountingpurchaseordersupdaterequest.md @@ -67,6 +67,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { ], taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -79,6 +80,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -151,6 +153,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { }, ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingquotesaddrequest.md b/docs/models/operations/accountingquotesaddrequest.md index 1a7efa53f..f2c0a4bff 100644 --- a/docs/models/operations/accountingquotesaddrequest.md +++ b/docs/models/operations/accountingquotesaddrequest.md @@ -61,6 +61,7 @@ let value: AccountingQuotesAddRequest = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -73,6 +74,7 @@ let value: AccountingQuotesAddRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingquotesupdaterequest.md b/docs/models/operations/accountingquotesupdaterequest.md index f98e17d84..ddea5915b 100644 --- a/docs/models/operations/accountingquotesupdaterequest.md +++ b/docs/models/operations/accountingquotesupdaterequest.md @@ -62,6 +62,7 @@ let value: AccountingQuotesUpdateRequest = { }, taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -74,6 +75,7 @@ let value: AccountingQuotesUpdateRequest = { ], ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/models/operations/accountingsuppliersaddrequest.md b/docs/models/operations/accountingsuppliersaddrequest.md index 5e567be49..bafece81d 100644 --- a/docs/models/operations/accountingsuppliersaddrequest.md +++ b/docs/models/operations/accountingsuppliersaddrequest.md @@ -91,6 +91,7 @@ let value: AccountingSuppliersAddRequest = { notes: "Some notes about this supplier", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", diff --git a/docs/models/operations/accountingsuppliersupdaterequest.md b/docs/models/operations/accountingsuppliersupdaterequest.md index 1d964a748..0b7dd436c 100644 --- a/docs/models/operations/accountingsuppliersupdaterequest.md +++ b/docs/models/operations/accountingsuppliersupdaterequest.md @@ -92,6 +92,7 @@ let value: AccountingSuppliersUpdateRequest = { notes: "Some notes about this supplier", taxRate: { id: "123456", + code: "N-T", rate: 10, }, taxNumber: "US123945459", diff --git a/docs/sdks/bankaccounts/README.md b/docs/sdks/bankaccounts/README.md index 30263804e..0480a7ff6 100644 --- a/docs/sdks/bankaccounts/README.md +++ b/docs/sdks/bankaccounts/README.md @@ -141,6 +141,7 @@ async function run() { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -203,6 +204,7 @@ async function run() { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -380,6 +382,7 @@ async function run() { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -443,6 +446,7 @@ async function run() { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/docs/sdks/projects/README.md b/docs/sdks/projects/README.md index ddd0ab1e3..b9c9268ac 100644 --- a/docs/sdks/projects/README.md +++ b/docs/sdks/projects/README.md @@ -179,6 +179,7 @@ async function run() { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -302,6 +303,7 @@ async function run() { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -534,6 +536,7 @@ async function run() { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -654,6 +657,7 @@ async function run() { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ diff --git a/examples/package-lock.json b/examples/package-lock.json index 821c5e762..441cc8057 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@apideck/unify", - "version": "0.34.0", + "version": "0.34.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index 345bcfc57..4ea325985 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@apideck/unify", - "version": "0.34.0", + "version": "0.34.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index fc461df73..7a05e0296 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apideck/unify", - "version": "0.34.0", + "version": "0.34.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apideck/unify", - "version": "0.34.0", + "version": "0.34.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 37d6dd3e0..1328b6e8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/unify", - "version": "0.34.0", + "version": "0.34.1", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/__tests__/bankaccounts.test.ts b/src/__tests__/bankaccounts.test.ts index fad55ff43..ed0df9a23 100644 --- a/src/__tests__/bankaccounts.test.ts +++ b/src/__tests__/bankaccounts.test.ts @@ -110,6 +110,7 @@ test("Bankaccounts Accounting Bank Accounts Add", async () => { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", @@ -242,6 +243,7 @@ test("Bankaccounts Accounting Bank Accounts Update", async () => { accountType: "checking", ledgerAccount: { id: "123456", + name: "Bank account", nominalCode: "N091", code: "453", parentId: "123456", diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go index 43a6065d0..48c68c1ce 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go @@ -105,7 +105,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -158,7 +158,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -351,7 +351,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -539,7 +539,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -584,7 +584,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go index 6706df7a8..0e4696599 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go @@ -104,7 +104,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -153,7 +153,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), @@ -202,7 +202,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. Code: types.String("120-C"), LineNumber: types.Int64(1), Description: types.String("Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection."), - Type: components.BillLineItemTypeExpenseAccount.ToPointer(), + Type: components.LineItemTypeExpenseAccount.ToPointer(), TaxAmount: types.Float64(27500), TotalAmount: types.Float64(27500), Quantity: types.Float64(1), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go index a64bfd3f4..5d898c1c4 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go @@ -52,371 +52,365 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req Service: "quickbooks", Resource: "Expenses", Operation: "all", - Data: []components.ExpenseUnion{ - components.CreateExpenseUnionExpense1( - components.Expense1{ - ID: types.String("12345"), - Number: types.String("OIT00546"), - TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), - AccountID: "123456", - CustomerID: types.String("12345"), - SupplierID: types.String("12345"), - CompanyID: types.String("12345"), - DepartmentID: types.String("12345"), - PaymentType: components.ExpensePaymentType1Cash.ToPointer(), - Currency: components.CurrencyUsd.ToPointer(), - CurrencyRate: types.Float64(0.69), - Type: components.ExpenseType1Expense.ToPointer(), - Memo: types.String("For travel expenses incurred on 2024-05-15"), - TaxRate: &components.LinkedTaxRate{ - ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), - }, - TotalAmount: types.Float64(275), - LineItems: []components.ExpenseLineItem{ - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + Data: []components.Expense{ + components.Expense{ + ID: types.String("12345"), + Number: types.String("OIT00546"), + TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + SupplierID: types.String("12345"), + CompanyID: types.String("12345"), + DepartmentID: types.String("12345"), + PaymentType: components.ExpensePaymentTypeCash.ToPointer(), + Currency: components.CurrencyUsd.ToPointer(), + CurrencyRate: types.Float64(0.69), + Type: components.ExpenseTypeExpense.ToPointer(), + Memo: types.String("For travel expenses incurred on 2024-05-15"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + TotalAmount: types.Float64(275), + LineItems: []components.ExpenseLineItem{ + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), - }, - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), }, + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), }, - CustomFields: []components.CustomField{ - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2Str( - "Uses Salesforce and Marketo", - )), + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), + }, + }, + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), }, - UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - RowVersion: types.String("1-12345"), - PassThrough: []components.PassThroughBody{ - components.PassThroughBody{ - ServiceID: "", - ExtendPaths: []components.ExtendPath{ - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + CustomFields: []components.CustomField{ + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2Str( + "Uses Salesforce and Marketo", + )), + }, + }, + UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + RowVersion: types.String("1-12345"), + PassThrough: []components.PassThroughBody{ + components.PassThroughBody{ + ServiceID: "", + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, }, }, - components.PassThroughBody{ - ServiceID: "", - ExtendPaths: []components.ExtendPath{ - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + components.PassThroughBody{ + ServiceID: "", + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, }, }, }, }, - ), - components.CreateExpenseUnionExpense1( - components.Expense1{ - ID: types.String("12345"), - Number: types.String("OIT00546"), - TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), - AccountID: "123456", - CustomerID: types.String("12345"), - SupplierID: types.String("12345"), - CompanyID: types.String("12345"), - DepartmentID: types.String("12345"), - PaymentType: components.ExpensePaymentType1Cash.ToPointer(), - Currency: components.CurrencyUsd.ToPointer(), - CurrencyRate: types.Float64(0.69), - Type: components.ExpenseType1Expense.ToPointer(), - Memo: types.String("For travel expenses incurred on 2024-05-15"), - TaxRate: &components.LinkedTaxRate{ - ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), - }, - TotalAmount: types.Float64(275), - LineItems: []components.ExpenseLineItem{ - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + }, + components.Expense{ + ID: types.String("12345"), + Number: types.String("OIT00546"), + TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + SupplierID: types.String("12345"), + CompanyID: types.String("12345"), + DepartmentID: types.String("12345"), + PaymentType: components.ExpensePaymentTypeCash.ToPointer(), + Currency: components.CurrencyUsd.ToPointer(), + CurrencyRate: types.Float64(0.69), + Type: components.ExpenseTypeExpense.ToPointer(), + Memo: types.String("For travel expenses incurred on 2024-05-15"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + TotalAmount: types.Float64(275), + LineItems: []components.ExpenseLineItem{ + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), }, - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ - ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), - }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), }, - CustomFields: []components.CustomField{ - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( - map[string]any{}, - )), - }, - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( - map[string]any{}, - )), + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), + }, }, - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2Str( - "Uses Salesforce and Marketo", - )), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), + }, + }, + CustomFields: []components.CustomField{ + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( + map[string]any{}, + )), + }, + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( + map[string]any{}, + )), + }, + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2Str( + "Uses Salesforce and Marketo", + )), }, - UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - RowVersion: types.String("1-12345"), - PassThrough: []components.PassThroughBody{ - components.PassThroughBody{ - ServiceID: "", - ExtendPaths: []components.ExtendPath{ - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + RowVersion: types.String("1-12345"), + PassThrough: []components.PassThroughBody{ + components.PassThroughBody{ + ServiceID: "", + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, }, }, }, }, - ), - components.CreateExpenseUnionExpense1( - components.Expense1{ - ID: types.String("12345"), - Number: types.String("OIT00546"), - TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), - AccountID: "123456", - CustomerID: types.String("12345"), - SupplierID: types.String("12345"), - CompanyID: types.String("12345"), - DepartmentID: types.String("12345"), - PaymentType: components.ExpensePaymentType1Cash.ToPointer(), - Currency: components.CurrencyUsd.ToPointer(), - CurrencyRate: types.Float64(0.69), - Type: components.ExpenseType1Expense.ToPointer(), - Memo: types.String("For travel expenses incurred on 2024-05-15"), - TaxRate: &components.LinkedTaxRate{ - ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), - }, - TotalAmount: types.Float64(275), - LineItems: []components.ExpenseLineItem{ - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + }, + components.Expense{ + ID: types.String("12345"), + Number: types.String("OIT00546"), + TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + SupplierID: types.String("12345"), + CompanyID: types.String("12345"), + DepartmentID: types.String("12345"), + PaymentType: components.ExpensePaymentTypeCash.ToPointer(), + Currency: components.CurrencyUsd.ToPointer(), + CurrencyRate: types.Float64(0.69), + Type: components.ExpenseTypeExpense.ToPointer(), + Memo: types.String("For travel expenses incurred on 2024-05-15"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + TotalAmount: types.Float64(275), + LineItems: []components.ExpenseLineItem{ + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), }, - }, - CustomFields: []components.CustomField{ - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( - map[string]any{}, - )), - }, - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( - map[string]any{ - "0": map[string]any{}, - }, - )), - }, - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2Str( - "Uses Salesforce and Marketo", - )), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), }, - UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - RowVersion: types.String("1-12345"), - PassThrough: []components.PassThroughBody{ - components.PassThroughBody{ - ServiceID: "", - ExtendPaths: []components.ExtendPath{ - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + CustomFields: []components.CustomField{ + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( + map[string]any{}, + )), + }, + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( + map[string]any{ + "0": map[string]any{}, + }, + )), + }, + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2Str( + "Uses Salesforce and Marketo", + )), + }, + }, + UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + RowVersion: types.String("1-12345"), + PassThrough: []components.PassThroughBody{ + components.PassThroughBody{ + ServiceID: "", + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, }, }, }, }, - ), + }, }, Meta: &components.Meta{ ItemsOnPage: types.Int64(50), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go index 5a84ca3d2..ce2231715 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go @@ -52,124 +52,122 @@ func testAccountingExpensesOneAccountingExpensesOne0(w http.ResponseWriter, req Service: "quickbooks", Resource: "Expenses", Operation: "one", - Data: components.CreateExpenseUnionExpense1( - components.Expense1{ - ID: types.String("12345"), - Number: types.String("OIT00546"), - TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), - AccountID: "123456", - CustomerID: types.String("12345"), - SupplierID: types.String("12345"), - CompanyID: types.String("12345"), - DepartmentID: types.String("12345"), - PaymentType: components.ExpensePaymentType1Cash.ToPointer(), - Currency: components.CurrencyUsd.ToPointer(), - CurrencyRate: types.Float64(0.69), - Type: components.ExpenseType1Expense.ToPointer(), - Memo: types.String("For travel expenses incurred on 2024-05-15"), - TaxRate: &components.LinkedTaxRate{ - ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), - }, - TotalAmount: types.Float64(275), - LineItems: []components.ExpenseLineItem{ - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, + Data: components.Expense{ + ID: types.String("12345"), + Number: types.String("OIT00546"), + TransactionDate: types.MustNewTimeFromString("2021-05-01T12:00:00.000Z"), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + SupplierID: types.String("12345"), + CompanyID: types.String("12345"), + DepartmentID: types.String("12345"), + PaymentType: components.ExpensePaymentTypeCash.ToPointer(), + Currency: components.CurrencyUsd.ToPointer(), + CurrencyRate: types.Float64(0.69), + Type: components.ExpenseTypeExpense.ToPointer(), + Memo: types.String("For travel expenses incurred on 2024-05-15"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + TotalAmount: types.Float64(275), + LineItems: []components.ExpenseLineItem{ + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), }, - components.ExpenseLineItem{ - ID: types.String("12345"), - TrackingCategories: []*components.LinkedTrackingCategory{ - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, - &components.LinkedTrackingCategory{ - ID: types.String("123456"), - Name: types.String("New York"), - }, + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), + }, + components.ExpenseLineItem{ + ID: types.String("12345"), + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), }, - AccountID: types.String("123456"), - CustomerID: types.String("12345"), - DepartmentID: types.String("12345"), - LocationID: types.String("12345"), - SubsidiaryID: types.String("12345"), - TaxRate: &components.LinkedTaxRate{ + &components.LinkedTrackingCategory{ ID: types.String("123456"), - Code: types.String("N-T"), - Name: types.String("GST on Purchases"), - Rate: types.Float64(10), + Name: types.String("New York"), }, - Description: types.String("Travel US."), - TotalAmount: types.Float64(275), - Billable: types.Bool(true), }, - }, - CustomFields: []components.CustomField{ - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( - map[string]any{ - "0": map[string]any{}, - }, - )), - }, - components.CustomField{ - ID: types.String("2389328923893298"), - Name: types.String("employee_level"), - Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateCustomFieldValue2Boolean( - true, - )), + AccountID: types.String("123456"), + CustomerID: types.String("12345"), + DepartmentID: types.String("12345"), + LocationID: types.String("12345"), + SubsidiaryID: types.String("12345"), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), }, + Description: types.String("Travel US."), + TotalAmount: types.Float64(275), + Billable: types.Bool(true), }, - UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), - RowVersion: types.String("1-12345"), - PassThrough: []components.PassThroughBody{ - components.PassThroughBody{ - ServiceID: "", - ExtendPaths: []components.ExtendPath{ - components.ExtendPath{ - Path: "$.nested.property", - Value: map[string]any{ - "TaxClassificationRef": map[string]any{ - "value": "EUC-99990201-V1-00020000", - }, + }, + CustomFields: []components.CustomField{ + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2MapOfAny( + map[string]any{ + "0": map[string]any{}, + }, + )), + }, + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2Boolean( + true, + )), + }, + }, + UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + RowVersion: types.String("1-12345"), + PassThrough: []components.PassThroughBody{ + components.PassThroughBody{ + ServiceID: "", + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ + Path: "$.nested.property", + Value: map[string]any{ + "TaxClassificationRef": map[string]any{ + "value": "EUC-99990201-V1-00020000", }, }, }, }, }, }, - ), + }, } respBodyBytes, err := utils.MarshalJSON(respBody, "", true) diff --git a/src/__tests__/mockserver/internal/sdk/models/components/accountingbankaccount.go b/src/__tests__/mockserver/internal/sdk/models/components/accountingbankaccount.go index e77582a4c..dc4c0fd60 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/accountingbankaccount.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/accountingbankaccount.go @@ -336,7 +336,7 @@ type AccountingBankAccountInput struct { AccountNumber *string `json:"account_number,omitempty"` // The type of bank account AccountType *AccountingBankAccountAccountType `json:"account_type,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` // The name of the bank or financial institution BankName *string `json:"bank_name,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). @@ -396,7 +396,7 @@ func (o *AccountingBankAccountInput) GetAccountType() *AccountingBankAccountAcco return o.AccountType } -func (o *AccountingBankAccountInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *AccountingBankAccountInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/bill.go b/src/__tests__/mockserver/internal/sdk/models/components/bill.go index 9c0902c3a..8dedc97db 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/bill.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/bill.go @@ -129,9 +129,9 @@ type Bill struct { Balance *float64 `json:"balance,omitempty"` // Amount of deposit made to this bill. Deposit *float64 `json:"deposit,omitempty"` - // Sub-total amount, normally before tax. + // Subtotal amount, normally before tax. SubTotal *float64 `json:"sub_total,omitempty"` - // Total tax amount applied to this bill. + // Total tax amount applied to this transaction. TotalTax *float64 `json:"total_tax,omitempty"` // Total amount of bill, including tax. Total *float64 `json:"total,omitempty"` @@ -574,9 +574,9 @@ type BillInput struct { Balance *float64 `json:"balance,omitempty"` // Amount of deposit made to this bill. Deposit *float64 `json:"deposit,omitempty"` - // Sub-total amount, normally before tax. + // Subtotal amount, normally before tax. SubTotal *float64 `json:"sub_total,omitempty"` - // Total tax amount applied to this bill. + // Total tax amount applied to this transaction. TotalTax *float64 `json:"total_tax,omitempty"` // Total amount of bill, including tax. Total *float64 `json:"total,omitempty"` @@ -584,8 +584,8 @@ type BillInput struct { TaxCode *string `json:"tax_code,omitempty"` Notes *string `json:"notes,omitempty"` // Invoice status - Status *BillStatus `json:"status,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` + Status *BillStatus `json:"status,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` // The channel through which the transaction is processed. @@ -793,7 +793,7 @@ func (o *BillInput) GetStatus() *BillStatus { return o.Status } -func (o *BillInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *BillInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/billlineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/billlineitem.go index 97f417178..56675fca1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/billlineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/billlineitem.go @@ -3,42 +3,10 @@ package components import ( - "encoding/json" - "fmt" "mockserver/internal/sdk/utils" "time" ) -// BillLineItemType - Bill Line Item type -type BillLineItemType string - -const ( - BillLineItemTypeExpenseItem BillLineItemType = "expense_item" - BillLineItemTypeExpenseAccount BillLineItemType = "expense_account" - BillLineItemTypeOther BillLineItemType = "other" -) - -func (e BillLineItemType) ToPointer() *BillLineItemType { - return &e -} -func (e *BillLineItemType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "expense_item": - fallthrough - case "expense_account": - fallthrough - case "other": - *e = BillLineItemType(v) - return nil - default: - return fmt.Errorf("invalid value for BillLineItemType: %v", v) - } -} - type BillLineItem struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` @@ -50,8 +18,8 @@ type BillLineItem struct { LineNumber *int64 `json:"line_number,omitempty"` // User defined description Description *string `json:"description,omitempty"` - // Bill Line Item type - Type *BillLineItemType `json:"type,omitempty"` + // Line Item type + Type *LineItemType `json:"type,omitempty"` // Tax amount TaxAmount *float64 `json:"tax_amount,omitempty"` // Total amount of the line item @@ -158,7 +126,7 @@ func (o *BillLineItem) GetDescription() *string { return o.Description } -func (o *BillLineItem) GetType() *BillLineItemType { +func (o *BillLineItem) GetType() *LineItemType { if o == nil { return nil } @@ -388,297 +356,3 @@ func (o *BillLineItem) GetWorktags() []*LinkedWorktag { } return o.Worktags } - -type BillLineItemInput struct { - // Row ID - RowID *string `json:"row_id,omitempty"` - // User defined item code - Code *string `json:"code,omitempty"` - // Line number in the invoice - LineNumber *int64 `json:"line_number,omitempty"` - // User defined description - Description *string `json:"description,omitempty"` - // Bill Line Item type - Type *BillLineItemType `json:"type,omitempty"` - // Tax amount - TaxAmount *float64 `json:"tax_amount,omitempty"` - // Total amount of the line item - TotalAmount *float64 `json:"total_amount,omitempty"` - Quantity *float64 `json:"quantity,omitempty"` - UnitPrice *float64 `json:"unit_price,omitempty"` - // Description of the unit type the item is sold as, ie: kg, hour. - UnitOfMeasure *string `json:"unit_of_measure,omitempty"` - // Discount percentage applied to the line item when supported downstream. - DiscountPercentage *float64 `json:"discount_percentage,omitempty"` - // Discount amount applied to the line item when supported downstream. - DiscountAmount *float64 `json:"discount_amount,omitempty"` - // The ID of the location - LocationID *string `json:"location_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The ID of the subsidiary - SubsidiaryID *string `json:"subsidiary_id,omitempty"` - // ID of the category of the line item - CategoryID *string `json:"category_id,omitempty"` - // ID of the shipping of the line item - ShippingID *string `json:"shipping_id,omitempty"` - // Memo - Memo *string `json:"memo,omitempty"` - // Whether the line item is prepaid - Prepaid *bool `json:"prepaid,omitempty"` - // Tax applicable on - TaxApplicableOn *string `json:"tax_applicable_on,omitempty"` - // Tax recoverability - TaxRecoverability *string `json:"tax_recoverability,omitempty"` - // Method of tax calculation - TaxMethod *string `json:"tax_method,omitempty"` - // Retention amount - RetentionAmount *float64 `json:"retention_amount,omitempty"` - // Payment amount - PaymentAmount *float64 `json:"payment_amount,omitempty"` - Item *LinkedInvoiceItem `json:"item,omitempty"` - TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` - PurchaseOrder *LinkedPurchaseOrder `json:"purchase_order,omitempty"` - // A list of linked tracking categories. - TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` - // The customer this entity is linked to. - Customer *LinkedCustomerInput `json:"customer,omitempty"` - // Rebilling metadata for this line item. - Rebilling *Rebilling `json:"rebilling,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // A list of linked worktags. This is only supported for Workday. - Worktags []*LinkedWorktag `json:"worktags,omitempty"` -} - -func (o *BillLineItemInput) GetRowID() *string { - if o == nil { - return nil - } - return o.RowID -} - -func (o *BillLineItemInput) GetCode() *string { - if o == nil { - return nil - } - return o.Code -} - -func (o *BillLineItemInput) GetLineNumber() *int64 { - if o == nil { - return nil - } - return o.LineNumber -} - -func (o *BillLineItemInput) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *BillLineItemInput) GetType() *BillLineItemType { - if o == nil { - return nil - } - return o.Type -} - -func (o *BillLineItemInput) GetTaxAmount() *float64 { - if o == nil { - return nil - } - return o.TaxAmount -} - -func (o *BillLineItemInput) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *BillLineItemInput) GetQuantity() *float64 { - if o == nil { - return nil - } - return o.Quantity -} - -func (o *BillLineItemInput) GetUnitPrice() *float64 { - if o == nil { - return nil - } - return o.UnitPrice -} - -func (o *BillLineItemInput) GetUnitOfMeasure() *string { - if o == nil { - return nil - } - return o.UnitOfMeasure -} - -func (o *BillLineItemInput) GetDiscountPercentage() *float64 { - if o == nil { - return nil - } - return o.DiscountPercentage -} - -func (o *BillLineItemInput) GetDiscountAmount() *float64 { - if o == nil { - return nil - } - return o.DiscountAmount -} - -func (o *BillLineItemInput) GetLocationID() *string { - if o == nil { - return nil - } - return o.LocationID -} - -func (o *BillLineItemInput) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *BillLineItemInput) GetSubsidiaryID() *string { - if o == nil { - return nil - } - return o.SubsidiaryID -} - -func (o *BillLineItemInput) GetCategoryID() *string { - if o == nil { - return nil - } - return o.CategoryID -} - -func (o *BillLineItemInput) GetShippingID() *string { - if o == nil { - return nil - } - return o.ShippingID -} - -func (o *BillLineItemInput) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *BillLineItemInput) GetPrepaid() *bool { - if o == nil { - return nil - } - return o.Prepaid -} - -func (o *BillLineItemInput) GetTaxApplicableOn() *string { - if o == nil { - return nil - } - return o.TaxApplicableOn -} - -func (o *BillLineItemInput) GetTaxRecoverability() *string { - if o == nil { - return nil - } - return o.TaxRecoverability -} - -func (o *BillLineItemInput) GetTaxMethod() *string { - if o == nil { - return nil - } - return o.TaxMethod -} - -func (o *BillLineItemInput) GetRetentionAmount() *float64 { - if o == nil { - return nil - } - return o.RetentionAmount -} - -func (o *BillLineItemInput) GetPaymentAmount() *float64 { - if o == nil { - return nil - } - return o.PaymentAmount -} - -func (o *BillLineItemInput) GetItem() *LinkedInvoiceItem { - if o == nil { - return nil - } - return o.Item -} - -func (o *BillLineItemInput) GetTaxRate() *LinkedTaxRateInput { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *BillLineItemInput) GetLedgerAccount() *LinkedLedgerAccountInput { - if o == nil { - return nil - } - return o.LedgerAccount -} - -func (o *BillLineItemInput) GetPurchaseOrder() *LinkedPurchaseOrder { - if o == nil { - return nil - } - return o.PurchaseOrder -} - -func (o *BillLineItemInput) GetTrackingCategories() []*LinkedTrackingCategory { - if o == nil { - return nil - } - return o.TrackingCategories -} - -func (o *BillLineItemInput) GetCustomer() *LinkedCustomerInput { - if o == nil { - return nil - } - return o.Customer -} - -func (o *BillLineItemInput) GetRebilling() *Rebilling { - if o == nil { - return nil - } - return o.Rebilling -} - -func (o *BillLineItemInput) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *BillLineItemInput) GetWorktags() []*LinkedWorktag { - if o == nil { - return nil - } - return o.Worktags -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/billlineiteminput.go b/src/__tests__/mockserver/internal/sdk/models/components/billlineiteminput.go new file mode 100644 index 000000000..2a51d019d --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/billlineiteminput.go @@ -0,0 +1,297 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type BillLineItemInput struct { + // Row ID + RowID *string `json:"row_id,omitempty"` + // User defined item code + Code *string `json:"code,omitempty"` + // Line number in the invoice + LineNumber *int64 `json:"line_number,omitempty"` + // User defined description + Description *string `json:"description,omitempty"` + // Line Item type + Type *LineItemType `json:"type,omitempty"` + // Tax amount + TaxAmount *float64 `json:"tax_amount,omitempty"` + // Total amount of the line item + TotalAmount *float64 `json:"total_amount,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + UnitPrice *float64 `json:"unit_price,omitempty"` + // Description of the unit type the item is sold as, ie: kg, hour. + UnitOfMeasure *string `json:"unit_of_measure,omitempty"` + // Discount percentage applied to the line item when supported downstream. + DiscountPercentage *float64 `json:"discount_percentage,omitempty"` + // Discount amount applied to the line item when supported downstream. + DiscountAmount *float64 `json:"discount_amount,omitempty"` + // The ID of the location + LocationID *string `json:"location_id,omitempty"` + // The ID of the department + DepartmentID *string `json:"department_id,omitempty"` + // The ID of the subsidiary + SubsidiaryID *string `json:"subsidiary_id,omitempty"` + // ID of the category of the line item + CategoryID *string `json:"category_id,omitempty"` + // ID of the shipping of the line item + ShippingID *string `json:"shipping_id,omitempty"` + // Memo + Memo *string `json:"memo,omitempty"` + // Whether the line item is prepaid + Prepaid *bool `json:"prepaid,omitempty"` + // Tax applicable on + TaxApplicableOn *string `json:"tax_applicable_on,omitempty"` + // Tax recoverability + TaxRecoverability *string `json:"tax_recoverability,omitempty"` + // Method of tax calculation + TaxMethod *string `json:"tax_method,omitempty"` + // Retention amount + RetentionAmount *float64 `json:"retention_amount,omitempty"` + // Payment amount + PaymentAmount *float64 `json:"payment_amount,omitempty"` + Item *LinkedInvoiceItem `json:"item,omitempty"` + TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` + PurchaseOrder *LinkedPurchaseOrder `json:"purchase_order,omitempty"` + // A list of linked tracking categories. + TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` + // The customer this entity is linked to. + Customer *LinkedCustomerInput `json:"customer,omitempty"` + // Rebilling metadata for this line item. + Rebilling *Rebilling `json:"rebilling,omitempty"` + // 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. + RowVersion *string `json:"row_version,omitempty"` + // A list of linked worktags. This is only supported for Workday. + Worktags []*LinkedWorktag `json:"worktags,omitempty"` +} + +func (o *BillLineItemInput) GetRowID() *string { + if o == nil { + return nil + } + return o.RowID +} + +func (o *BillLineItemInput) GetCode() *string { + if o == nil { + return nil + } + return o.Code +} + +func (o *BillLineItemInput) GetLineNumber() *int64 { + if o == nil { + return nil + } + return o.LineNumber +} + +func (o *BillLineItemInput) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *BillLineItemInput) GetType() *LineItemType { + if o == nil { + return nil + } + return o.Type +} + +func (o *BillLineItemInput) GetTaxAmount() *float64 { + if o == nil { + return nil + } + return o.TaxAmount +} + +func (o *BillLineItemInput) GetTotalAmount() *float64 { + if o == nil { + return nil + } + return o.TotalAmount +} + +func (o *BillLineItemInput) GetQuantity() *float64 { + if o == nil { + return nil + } + return o.Quantity +} + +func (o *BillLineItemInput) GetUnitPrice() *float64 { + if o == nil { + return nil + } + return o.UnitPrice +} + +func (o *BillLineItemInput) GetUnitOfMeasure() *string { + if o == nil { + return nil + } + return o.UnitOfMeasure +} + +func (o *BillLineItemInput) GetDiscountPercentage() *float64 { + if o == nil { + return nil + } + return o.DiscountPercentage +} + +func (o *BillLineItemInput) GetDiscountAmount() *float64 { + if o == nil { + return nil + } + return o.DiscountAmount +} + +func (o *BillLineItemInput) GetLocationID() *string { + if o == nil { + return nil + } + return o.LocationID +} + +func (o *BillLineItemInput) GetDepartmentID() *string { + if o == nil { + return nil + } + return o.DepartmentID +} + +func (o *BillLineItemInput) GetSubsidiaryID() *string { + if o == nil { + return nil + } + return o.SubsidiaryID +} + +func (o *BillLineItemInput) GetCategoryID() *string { + if o == nil { + return nil + } + return o.CategoryID +} + +func (o *BillLineItemInput) GetShippingID() *string { + if o == nil { + return nil + } + return o.ShippingID +} + +func (o *BillLineItemInput) GetMemo() *string { + if o == nil { + return nil + } + return o.Memo +} + +func (o *BillLineItemInput) GetPrepaid() *bool { + if o == nil { + return nil + } + return o.Prepaid +} + +func (o *BillLineItemInput) GetTaxApplicableOn() *string { + if o == nil { + return nil + } + return o.TaxApplicableOn +} + +func (o *BillLineItemInput) GetTaxRecoverability() *string { + if o == nil { + return nil + } + return o.TaxRecoverability +} + +func (o *BillLineItemInput) GetTaxMethod() *string { + if o == nil { + return nil + } + return o.TaxMethod +} + +func (o *BillLineItemInput) GetRetentionAmount() *float64 { + if o == nil { + return nil + } + return o.RetentionAmount +} + +func (o *BillLineItemInput) GetPaymentAmount() *float64 { + if o == nil { + return nil + } + return o.PaymentAmount +} + +func (o *BillLineItemInput) GetItem() *LinkedInvoiceItem { + if o == nil { + return nil + } + return o.Item +} + +func (o *BillLineItemInput) GetTaxRate() *LinkedTaxRateInput { + if o == nil { + return nil + } + return o.TaxRate +} + +func (o *BillLineItemInput) GetLedgerAccount() *LinkedLedgerAccount { + if o == nil { + return nil + } + return o.LedgerAccount +} + +func (o *BillLineItemInput) GetPurchaseOrder() *LinkedPurchaseOrder { + if o == nil { + return nil + } + return o.PurchaseOrder +} + +func (o *BillLineItemInput) GetTrackingCategories() []*LinkedTrackingCategory { + if o == nil { + return nil + } + return o.TrackingCategories +} + +func (o *BillLineItemInput) GetCustomer() *LinkedCustomerInput { + if o == nil { + return nil + } + return o.Customer +} + +func (o *BillLineItemInput) GetRebilling() *Rebilling { + if o == nil { + return nil + } + return o.Rebilling +} + +func (o *BillLineItemInput) GetRowVersion() *string { + if o == nil { + return nil + } + return o.RowVersion +} + +func (o *BillLineItemInput) GetWorktags() []*LinkedWorktag { + if o == nil { + return nil + } + return o.Worktags +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go b/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go index 0a71d9036..b70591f68 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go @@ -456,8 +456,8 @@ type BillPaymentInput struct { // Optional reference message returned by payment method on processing PaymentMethodReference *string `json:"payment_method_reference,omitempty"` // A unique identifier for an object. - PaymentMethodID *string `json:"payment_method_id,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` + PaymentMethodID *string `json:"payment_method_id,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD TransactionDate *time.Time `json:"transaction_date"` // The supplier this entity is linked to. @@ -546,7 +546,7 @@ func (o *BillPaymentInput) GetPaymentMethodID() *string { return o.PaymentMethodID } -func (o *BillPaymentInput) GetAccount() *LinkedLedgerAccountInput { +func (o *BillPaymentInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/creditnote.go b/src/__tests__/mockserver/internal/sdk/models/components/creditnote.go index 2e3fc5fb7..122ec16fd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/creditnote.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/creditnote.go @@ -431,10 +431,10 @@ type CreditNoteInput struct { // Date credit note paid - YYYY:MM::DDThh:mm:ss.sTZD DatePaid *time.Time `json:"date_paid,omitempty"` // Type of payment - Type *CreditNoteType `json:"type,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` - LineItems []InvoiceLineItemInput `json:"line_items,omitempty"` - Allocations []AllocationInput `json:"allocations,omitempty"` + Type *CreditNoteType `json:"type,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` + LineItems []InvoiceLineItemInput `json:"line_items,omitempty"` + Allocations []AllocationInput `json:"allocations,omitempty"` // Optional note to be associated with the credit note. Note *string `json:"note,omitempty"` // Optional terms to be associated with the credit note. @@ -587,7 +587,7 @@ func (o *CreditNoteInput) GetType() *CreditNoteType { return o.Type } -func (o *CreditNoteInput) GetAccount() *LinkedLedgerAccountInput { +func (o *CreditNoteInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customer.go b/src/__tests__/mockserver/internal/sdk/models/components/customer.go index 352b71b99..735fd5811 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customer.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customer.go @@ -416,8 +416,8 @@ type CustomerInput struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` + Currency *Currency `json:"currency,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` // The parent customer this entity is linked to. Parent *LinkedParentCustomer `json:"parent,omitempty"` // Customer status @@ -582,7 +582,7 @@ func (o *CustomerInput) GetCurrency() *Currency { return o.Currency } -func (o *CustomerInput) GetAccount() *LinkedLedgerAccountInput { +func (o *CustomerInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customfield.go b/src/__tests__/mockserver/internal/sdk/models/components/customfield.go index 89f2d3ae8..085b00d4e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customfield.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customfield.go @@ -254,17 +254,6 @@ type CustomField struct { Value *CustomFieldValue2 `json:"value,omitempty"` } -func (c CustomField) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomField) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { - return err - } - return nil -} - func (o *CustomField) GetID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/expense.go b/src/__tests__/mockserver/internal/sdk/models/components/expense.go new file mode 100644 index 000000000..f9d948d04 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/expense.go @@ -0,0 +1,665 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" + "mockserver/internal/sdk/utils" + "time" +) + +// ExpensePaymentType - The type of payment for the expense. +type ExpensePaymentType string + +const ( + ExpensePaymentTypeCash ExpensePaymentType = "cash" + ExpensePaymentTypeCheck ExpensePaymentType = "check" + ExpensePaymentTypeCreditCard ExpensePaymentType = "credit_card" + ExpensePaymentTypeOther ExpensePaymentType = "other" +) + +func (e ExpensePaymentType) ToPointer() *ExpensePaymentType { + return &e +} +func (e *ExpensePaymentType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "cash": + fallthrough + case "check": + fallthrough + case "credit_card": + fallthrough + case "other": + *e = ExpensePaymentType(v) + return nil + default: + return fmt.Errorf("invalid value for ExpensePaymentType: %v", v) + } +} + +// ExpenseType - The type of expense. +type ExpenseType string + +const ( + ExpenseTypeExpense ExpenseType = "expense" + ExpenseTypeRefund ExpenseType = "refund" +) + +func (e ExpenseType) ToPointer() *ExpenseType { + return &e +} +func (e *ExpenseType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "expense": + fallthrough + case "refund": + *e = ExpenseType(v) + return nil + default: + return fmt.Errorf("invalid value for ExpenseType: %v", v) + } +} + +// ExpenseStatus - Expense status +type ExpenseStatus string + +const ( + ExpenseStatusDraft ExpenseStatus = "draft" + ExpenseStatusPosted ExpenseStatus = "posted" +) + +func (e ExpenseStatus) ToPointer() *ExpenseStatus { + return &e +} +func (e *ExpenseStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "draft": + fallthrough + case "posted": + *e = ExpenseStatus(v) + return nil + default: + return fmt.Errorf("invalid value for ExpenseStatus: %v", v) + } +} + +type Expense struct { + // A unique identifier for an object. + ID *string `json:"id,omitempty"` + // Number. + Number *string `json:"number,omitempty"` + // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD + TransactionDate *time.Time `json:"transaction_date"` + // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. + AccountID *string `json:"account_id,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` + BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` + // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. + CustomerID *string `json:"customer_id,omitempty"` + // The ID of the supplier this entity is linked to. Deprecated, use supplier instead. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. + SupplierID *string `json:"supplier_id,omitempty"` + // The supplier this entity is linked to. + Supplier *LinkedSupplier `json:"supplier,omitempty"` + // The company ID the transaction belongs to + CompanyID *string `json:"company_id,omitempty"` + // The ID of the department + DepartmentID *string `json:"department_id,omitempty"` + // The type of payment for the expense. + PaymentType *ExpensePaymentType `json:"payment_type,omitempty"` + // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + Currency *Currency `json:"currency,omitempty"` + // Currency Exchange Rate at the time entity was recorded/generated. + CurrencyRate *float64 `json:"currency_rate,omitempty"` + // The type of expense. + Type *ExpenseType `json:"type,omitempty"` + // The memo of the expense. + Memo *string `json:"memo,omitempty"` + TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` + // Amounts are including tax + TaxInclusive *bool `json:"tax_inclusive,omitempty"` + // Subtotal amount, normally before tax. + SubTotal *float64 `json:"sub_total,omitempty"` + // Total tax amount applied to this transaction. + TotalTax *float64 `json:"total_tax,omitempty"` + // The total amount of the expense line item. + TotalAmount *float64 `json:"total_amount,omitempty"` + // Expense line items linked to this expense. + LineItems []ExpenseLineItem `json:"line_items"` + // Optional reference identifier for the transaction. + Reference *string `json:"reference,omitempty"` + // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. + SourceDocumentURL *string `json:"source_document_url,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + // When custom mappings are configured on the resource, the result is included here. + CustomMappings map[string]any `json:"custom_mappings,omitempty"` + // Expense status + Status *ExpenseStatus `json:"status,omitempty"` + // The date and time when the object was last updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + // The date and time when the object was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // 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. + RowVersion *string `json:"row_version,omitempty"` + // The user who last updated the object. + UpdatedBy *string `json:"updated_by,omitempty"` + // The user who created the object. + CreatedBy *string `json:"created_by,omitempty"` + // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. + PassThrough []PassThroughBody `json:"pass_through,omitempty"` +} + +func (e Expense) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *Expense) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "line_items"}); err != nil { + return err + } + return nil +} + +func (o *Expense) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *Expense) GetNumber() *string { + if o == nil { + return nil + } + return o.Number +} + +func (o *Expense) GetTransactionDate() *time.Time { + if o == nil { + return nil + } + return o.TransactionDate +} + +func (o *Expense) GetAccountID() *string { + if o == nil { + return nil + } + return o.AccountID +} + +func (o *Expense) GetAccount() *LinkedLedgerAccount { + if o == nil { + return nil + } + return o.Account +} + +func (o *Expense) GetBankAccount() *LinkedBankAccount { + if o == nil { + return nil + } + return o.BankAccount +} + +func (o *Expense) GetCustomerID() *string { + if o == nil { + return nil + } + return o.CustomerID +} + +func (o *Expense) GetSupplierID() *string { + if o == nil { + return nil + } + return o.SupplierID +} + +func (o *Expense) GetSupplier() *LinkedSupplier { + if o == nil { + return nil + } + return o.Supplier +} + +func (o *Expense) GetCompanyID() *string { + if o == nil { + return nil + } + return o.CompanyID +} + +func (o *Expense) GetDepartmentID() *string { + if o == nil { + return nil + } + return o.DepartmentID +} + +func (o *Expense) GetPaymentType() *ExpensePaymentType { + if o == nil { + return nil + } + return o.PaymentType +} + +func (o *Expense) GetCurrency() *Currency { + if o == nil { + return nil + } + return o.Currency +} + +func (o *Expense) GetCurrencyRate() *float64 { + if o == nil { + return nil + } + return o.CurrencyRate +} + +func (o *Expense) GetType() *ExpenseType { + if o == nil { + return nil + } + return o.Type +} + +func (o *Expense) GetMemo() *string { + if o == nil { + return nil + } + return o.Memo +} + +func (o *Expense) GetTaxRate() *LinkedTaxRate { + if o == nil { + return nil + } + return o.TaxRate +} + +func (o *Expense) GetTaxInclusive() *bool { + if o == nil { + return nil + } + return o.TaxInclusive +} + +func (o *Expense) GetSubTotal() *float64 { + if o == nil { + return nil + } + return o.SubTotal +} + +func (o *Expense) GetTotalTax() *float64 { + if o == nil { + return nil + } + return o.TotalTax +} + +func (o *Expense) GetTotalAmount() *float64 { + if o == nil { + return nil + } + return o.TotalAmount +} + +func (o *Expense) GetLineItems() []ExpenseLineItem { + if o == nil { + return []ExpenseLineItem{} + } + return o.LineItems +} + +func (o *Expense) GetReference() *string { + if o == nil { + return nil + } + return o.Reference +} + +func (o *Expense) GetSourceDocumentURL() *string { + if o == nil { + return nil + } + return o.SourceDocumentURL +} + +func (o *Expense) GetCustomFields() []CustomField { + if o == nil { + return nil + } + return o.CustomFields +} + +func (o *Expense) GetCustomMappings() map[string]any { + if o == nil { + return nil + } + return o.CustomMappings +} + +func (o *Expense) GetStatus() *ExpenseStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *Expense) GetUpdatedAt() *time.Time { + if o == nil { + return nil + } + return o.UpdatedAt +} + +func (o *Expense) GetCreatedAt() *time.Time { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *Expense) GetRowVersion() *string { + if o == nil { + return nil + } + return o.RowVersion +} + +func (o *Expense) GetUpdatedBy() *string { + if o == nil { + return nil + } + return o.UpdatedBy +} + +func (o *Expense) GetCreatedBy() *string { + if o == nil { + return nil + } + return o.CreatedBy +} + +func (o *Expense) GetPassThrough() []PassThroughBody { + if o == nil { + return nil + } + return o.PassThrough +} + +type ExpenseInput struct { + // Number. + Number *string `json:"number,omitempty"` + // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD + TransactionDate *time.Time `json:"transaction_date"` + // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. + AccountID *string `json:"account_id,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` + BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` + // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. + CustomerID *string `json:"customer_id,omitempty"` + // The ID of the supplier this entity is linked to. Deprecated, use supplier instead. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. + SupplierID *string `json:"supplier_id,omitempty"` + // The supplier this entity is linked to. + Supplier *LinkedSupplierInput `json:"supplier,omitempty"` + // The company ID the transaction belongs to + CompanyID *string `json:"company_id,omitempty"` + // The ID of the department + DepartmentID *string `json:"department_id,omitempty"` + // The type of payment for the expense. + PaymentType *ExpensePaymentType `json:"payment_type,omitempty"` + // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + Currency *Currency `json:"currency,omitempty"` + // Currency Exchange Rate at the time entity was recorded/generated. + CurrencyRate *float64 `json:"currency_rate,omitempty"` + // The type of expense. + Type *ExpenseType `json:"type,omitempty"` + // The memo of the expense. + Memo *string `json:"memo,omitempty"` + TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` + // Amounts are including tax + TaxInclusive *bool `json:"tax_inclusive,omitempty"` + // Subtotal amount, normally before tax. + SubTotal *float64 `json:"sub_total,omitempty"` + // Total tax amount applied to this transaction. + TotalTax *float64 `json:"total_tax,omitempty"` + // The total amount of the expense line item. + TotalAmount *float64 `json:"total_amount,omitempty"` + // Expense line items linked to this expense. + LineItems []ExpenseLineItemInput `json:"line_items"` + // Optional reference identifier for the transaction. + Reference *string `json:"reference,omitempty"` + // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. + SourceDocumentURL *string `json:"source_document_url,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + // Expense status + Status *ExpenseStatus `json:"status,omitempty"` + // 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. + RowVersion *string `json:"row_version,omitempty"` + // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. + PassThrough []PassThroughBody `json:"pass_through,omitempty"` +} + +func (e ExpenseInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *ExpenseInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "line_items"}); err != nil { + return err + } + return nil +} + +func (o *ExpenseInput) GetNumber() *string { + if o == nil { + return nil + } + return o.Number +} + +func (o *ExpenseInput) GetTransactionDate() *time.Time { + if o == nil { + return nil + } + return o.TransactionDate +} + +func (o *ExpenseInput) GetAccountID() *string { + if o == nil { + return nil + } + return o.AccountID +} + +func (o *ExpenseInput) GetAccount() *LinkedLedgerAccount { + if o == nil { + return nil + } + return o.Account +} + +func (o *ExpenseInput) GetBankAccount() *LinkedBankAccount { + if o == nil { + return nil + } + return o.BankAccount +} + +func (o *ExpenseInput) GetCustomerID() *string { + if o == nil { + return nil + } + return o.CustomerID +} + +func (o *ExpenseInput) GetSupplierID() *string { + if o == nil { + return nil + } + return o.SupplierID +} + +func (o *ExpenseInput) GetSupplier() *LinkedSupplierInput { + if o == nil { + return nil + } + return o.Supplier +} + +func (o *ExpenseInput) GetCompanyID() *string { + if o == nil { + return nil + } + return o.CompanyID +} + +func (o *ExpenseInput) GetDepartmentID() *string { + if o == nil { + return nil + } + return o.DepartmentID +} + +func (o *ExpenseInput) GetPaymentType() *ExpensePaymentType { + if o == nil { + return nil + } + return o.PaymentType +} + +func (o *ExpenseInput) GetCurrency() *Currency { + if o == nil { + return nil + } + return o.Currency +} + +func (o *ExpenseInput) GetCurrencyRate() *float64 { + if o == nil { + return nil + } + return o.CurrencyRate +} + +func (o *ExpenseInput) GetType() *ExpenseType { + if o == nil { + return nil + } + return o.Type +} + +func (o *ExpenseInput) GetMemo() *string { + if o == nil { + return nil + } + return o.Memo +} + +func (o *ExpenseInput) GetTaxRate() *LinkedTaxRateInput { + if o == nil { + return nil + } + return o.TaxRate +} + +func (o *ExpenseInput) GetTaxInclusive() *bool { + if o == nil { + return nil + } + return o.TaxInclusive +} + +func (o *ExpenseInput) GetSubTotal() *float64 { + if o == nil { + return nil + } + return o.SubTotal +} + +func (o *ExpenseInput) GetTotalTax() *float64 { + if o == nil { + return nil + } + return o.TotalTax +} + +func (o *ExpenseInput) GetTotalAmount() *float64 { + if o == nil { + return nil + } + return o.TotalAmount +} + +func (o *ExpenseInput) GetLineItems() []ExpenseLineItemInput { + if o == nil { + return []ExpenseLineItemInput{} + } + return o.LineItems +} + +func (o *ExpenseInput) GetReference() *string { + if o == nil { + return nil + } + return o.Reference +} + +func (o *ExpenseInput) GetSourceDocumentURL() *string { + if o == nil { + return nil + } + return o.SourceDocumentURL +} + +func (o *ExpenseInput) GetCustomFields() []CustomField { + if o == nil { + return nil + } + return o.CustomFields +} + +func (o *ExpenseInput) GetStatus() *ExpenseStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *ExpenseInput) GetRowVersion() *string { + if o == nil { + return nil + } + return o.RowVersion +} + +func (o *ExpenseInput) GetPassThrough() []PassThroughBody { + if o == nil { + return nil + } + return o.PassThrough +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/expenselineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/expenselineitem.go index 2e00eecb8..5d18a51e8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/expenselineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/expenselineitem.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type ExpenseLineItem struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` @@ -27,9 +23,18 @@ type ExpenseLineItem struct { TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` // The expense line item description Description *string `json:"description,omitempty"` + // Line Item type + Type *LineItemType `json:"type,omitempty"` // The total amount of the expense line item. TotalAmount *float64 `json:"total_amount"` + // Tax amount + TaxAmount *float64 `json:"tax_amount,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + UnitPrice *float64 `json:"unit_price,omitempty"` + Item *LinkedInvoiceItem `json:"item,omitempty"` // Boolean that indicates if the line item is billable or not. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. Billable *bool `json:"billable,omitempty"` // Line number of the resource LineNumber *int64 `json:"line_number,omitempty"` @@ -37,17 +42,6 @@ type ExpenseLineItem struct { Rebilling *Rebilling `json:"rebilling,omitempty"` } -func (e ExpenseLineItem) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExpenseLineItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"total_amount"}); err != nil { - return err - } - return nil -} - func (o *ExpenseLineItem) GetID() *string { if o == nil { return nil @@ -118,6 +112,13 @@ func (o *ExpenseLineItem) GetDescription() *string { return o.Description } +func (o *ExpenseLineItem) GetType() *LineItemType { + if o == nil { + return nil + } + return o.Type +} + func (o *ExpenseLineItem) GetTotalAmount() *float64 { if o == nil { return nil @@ -125,6 +126,34 @@ func (o *ExpenseLineItem) GetTotalAmount() *float64 { return o.TotalAmount } +func (o *ExpenseLineItem) GetTaxAmount() *float64 { + if o == nil { + return nil + } + return o.TaxAmount +} + +func (o *ExpenseLineItem) GetQuantity() *float64 { + if o == nil { + return nil + } + return o.Quantity +} + +func (o *ExpenseLineItem) GetUnitPrice() *float64 { + if o == nil { + return nil + } + return o.UnitPrice +} + +func (o *ExpenseLineItem) GetItem() *LinkedInvoiceItem { + if o == nil { + return nil + } + return o.Item +} + func (o *ExpenseLineItem) GetBillable() *bool { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/expenselineiteminput.go b/src/__tests__/mockserver/internal/sdk/models/components/expenselineiteminput.go index 5b32d60b4..f4cb8d3e7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/expenselineiteminput.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/expenselineiteminput.go @@ -2,18 +2,14 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type ExpenseLineItemInput struct { // A list of linked tracking categories. TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` // The unique identifier for the ledger account. Deprecated, use account instead. // // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID *string `json:"account_id,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` + AccountID *string `json:"account_id,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` // The ID of the customer this expense item is linked to. CustomerID *string `json:"customer_id,omitempty"` // The ID of the department @@ -25,9 +21,18 @@ type ExpenseLineItemInput struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` // The expense line item description Description *string `json:"description,omitempty"` + // Line Item type + Type *LineItemType `json:"type,omitempty"` // The total amount of the expense line item. TotalAmount *float64 `json:"total_amount"` + // Tax amount + TaxAmount *float64 `json:"tax_amount,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + UnitPrice *float64 `json:"unit_price,omitempty"` + Item *LinkedInvoiceItem `json:"item,omitempty"` // Boolean that indicates if the line item is billable or not. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. Billable *bool `json:"billable,omitempty"` // Line number of the resource LineNumber *int64 `json:"line_number,omitempty"` @@ -35,17 +40,6 @@ type ExpenseLineItemInput struct { Rebilling *Rebilling `json:"rebilling,omitempty"` } -func (e ExpenseLineItemInput) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExpenseLineItemInput) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"total_amount"}); err != nil { - return err - } - return nil -} - func (o *ExpenseLineItemInput) GetTrackingCategories() []*LinkedTrackingCategory { if o == nil { return nil @@ -60,7 +54,7 @@ func (o *ExpenseLineItemInput) GetAccountID() *string { return o.AccountID } -func (o *ExpenseLineItemInput) GetAccount() *LinkedLedgerAccountInput { +func (o *ExpenseLineItemInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } @@ -109,6 +103,13 @@ func (o *ExpenseLineItemInput) GetDescription() *string { return o.Description } +func (o *ExpenseLineItemInput) GetType() *LineItemType { + if o == nil { + return nil + } + return o.Type +} + func (o *ExpenseLineItemInput) GetTotalAmount() *float64 { if o == nil { return nil @@ -116,6 +117,34 @@ func (o *ExpenseLineItemInput) GetTotalAmount() *float64 { return o.TotalAmount } +func (o *ExpenseLineItemInput) GetTaxAmount() *float64 { + if o == nil { + return nil + } + return o.TaxAmount +} + +func (o *ExpenseLineItemInput) GetQuantity() *float64 { + if o == nil { + return nil + } + return o.Quantity +} + +func (o *ExpenseLineItemInput) GetUnitPrice() *float64 { + if o == nil { + return nil + } + return o.UnitPrice +} + +func (o *ExpenseLineItemInput) GetItem() *LinkedInvoiceItem { + if o == nil { + return nil + } + return o.Item +} + func (o *ExpenseLineItemInput) GetBillable() *bool { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/expenseunion.go b/src/__tests__/mockserver/internal/sdk/models/components/expenseunion.go deleted file mode 100644 index 0abd27a61..000000000 --- a/src/__tests__/mockserver/internal/sdk/models/components/expenseunion.go +++ /dev/null @@ -1,1918 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "errors" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// ExpensePaymentType3 - The type of payment for the expense. -type ExpensePaymentType3 string - -const ( - ExpensePaymentType3Cash ExpensePaymentType3 = "cash" - ExpensePaymentType3Check ExpensePaymentType3 = "check" - ExpensePaymentType3CreditCard ExpensePaymentType3 = "credit_card" - ExpensePaymentType3Other ExpensePaymentType3 = "other" -) - -func (e ExpensePaymentType3) ToPointer() *ExpensePaymentType3 { - return &e -} -func (e *ExpensePaymentType3) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "cash": - fallthrough - case "check": - fallthrough - case "credit_card": - fallthrough - case "other": - *e = ExpensePaymentType3(v) - return nil - default: - return fmt.Errorf("invalid value for ExpensePaymentType3: %v", v) - } -} - -// ExpenseType3 - The type of expense. -type ExpenseType3 string - -const ( - ExpenseType3Expense ExpenseType3 = "expense" - ExpenseType3Refund ExpenseType3 = "refund" -) - -func (e ExpenseType3) ToPointer() *ExpenseType3 { - return &e -} -func (e *ExpenseType3) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "expense": - fallthrough - case "refund": - *e = ExpenseType3(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseType3: %v", v) - } -} - -// ExpenseStatus3 - Expense status -type ExpenseStatus3 string - -const ( - ExpenseStatus3Draft ExpenseStatus3 = "draft" - ExpenseStatus3Posted ExpenseStatus3 = "posted" -) - -func (e ExpenseStatus3) ToPointer() *ExpenseStatus3 { - return &e -} -func (e *ExpenseStatus3) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "draft": - fallthrough - case "posted": - *e = ExpenseStatus3(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseStatus3: %v", v) - } -} - -type Expense3 struct { - // A unique identifier for an object. - ID *string `json:"id,omitempty"` - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID *string `json:"account_id,omitempty"` - Account *LinkedLedgerAccount `json:"account,omitempty"` - BankAccount *LinkedBankAccount `json:"bank_account"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType3 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType3 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItem `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // When custom mappings are configured on the resource, the result is included here. - CustomMappings map[string]any `json:"custom_mappings,omitempty"` - // Expense status - Status *ExpenseStatus3 `json:"status,omitempty"` - // The date and time when the object was last updated. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - // The date and time when the object was created. - CreatedAt *time.Time `json:"created_at,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The user who last updated the object. - UpdatedBy *string `json:"updated_by,omitempty"` - // The user who created the object. - CreatedBy *string `json:"created_by,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e Expense3) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *Expense3) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "bank_account", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *Expense3) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Expense3) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *Expense3) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *Expense3) GetAccountID() *string { - if o == nil { - return nil - } - return o.AccountID -} - -func (o *Expense3) GetAccount() *LinkedLedgerAccount { - if o == nil { - return nil - } - return o.Account -} - -func (o *Expense3) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *Expense3) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *Expense3) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *Expense3) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *Expense3) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *Expense3) GetPaymentType() *ExpensePaymentType3 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *Expense3) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *Expense3) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *Expense3) GetType() *ExpenseType3 { - if o == nil { - return nil - } - return o.Type -} - -func (o *Expense3) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *Expense3) GetTaxRate() *LinkedTaxRate { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *Expense3) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *Expense3) GetLineItems() []ExpenseLineItem { - if o == nil { - return []ExpenseLineItem{} - } - return o.LineItems -} - -func (o *Expense3) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *Expense3) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *Expense3) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *Expense3) GetCustomMappings() map[string]any { - if o == nil { - return nil - } - return o.CustomMappings -} - -func (o *Expense3) GetStatus() *ExpenseStatus3 { - if o == nil { - return nil - } - return o.Status -} - -func (o *Expense3) GetUpdatedAt() *time.Time { - if o == nil { - return nil - } - return o.UpdatedAt -} - -func (o *Expense3) GetCreatedAt() *time.Time { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *Expense3) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *Expense3) GetUpdatedBy() *string { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Expense3) GetCreatedBy() *string { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *Expense3) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -// ExpensePaymentType2 - The type of payment for the expense. -type ExpensePaymentType2 string - -const ( - ExpensePaymentType2Cash ExpensePaymentType2 = "cash" - ExpensePaymentType2Check ExpensePaymentType2 = "check" - ExpensePaymentType2CreditCard ExpensePaymentType2 = "credit_card" - ExpensePaymentType2Other ExpensePaymentType2 = "other" -) - -func (e ExpensePaymentType2) ToPointer() *ExpensePaymentType2 { - return &e -} -func (e *ExpensePaymentType2) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "cash": - fallthrough - case "check": - fallthrough - case "credit_card": - fallthrough - case "other": - *e = ExpensePaymentType2(v) - return nil - default: - return fmt.Errorf("invalid value for ExpensePaymentType2: %v", v) - } -} - -// ExpenseType2 - The type of expense. -type ExpenseType2 string - -const ( - ExpenseType2Expense ExpenseType2 = "expense" - ExpenseType2Refund ExpenseType2 = "refund" -) - -func (e ExpenseType2) ToPointer() *ExpenseType2 { - return &e -} -func (e *ExpenseType2) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "expense": - fallthrough - case "refund": - *e = ExpenseType2(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseType2: %v", v) - } -} - -// ExpenseStatus2 - Expense status -type ExpenseStatus2 string - -const ( - ExpenseStatus2Draft ExpenseStatus2 = "draft" - ExpenseStatus2Posted ExpenseStatus2 = "posted" -) - -func (e ExpenseStatus2) ToPointer() *ExpenseStatus2 { - return &e -} -func (e *ExpenseStatus2) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "draft": - fallthrough - case "posted": - *e = ExpenseStatus2(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseStatus2: %v", v) - } -} - -type Expense2 struct { - // A unique identifier for an object. - ID *string `json:"id,omitempty"` - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID *string `json:"account_id,omitempty"` - Account *LinkedLedgerAccount `json:"account"` - BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType2 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType2 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItem `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // When custom mappings are configured on the resource, the result is included here. - CustomMappings map[string]any `json:"custom_mappings,omitempty"` - // Expense status - Status *ExpenseStatus2 `json:"status,omitempty"` - // The date and time when the object was last updated. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - // The date and time when the object was created. - CreatedAt *time.Time `json:"created_at,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The user who last updated the object. - UpdatedBy *string `json:"updated_by,omitempty"` - // The user who created the object. - CreatedBy *string `json:"created_by,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e Expense2) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *Expense2) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "account", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *Expense2) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Expense2) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *Expense2) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *Expense2) GetAccountID() *string { - if o == nil { - return nil - } - return o.AccountID -} - -func (o *Expense2) GetAccount() *LinkedLedgerAccount { - if o == nil { - return nil - } - return o.Account -} - -func (o *Expense2) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *Expense2) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *Expense2) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *Expense2) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *Expense2) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *Expense2) GetPaymentType() *ExpensePaymentType2 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *Expense2) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *Expense2) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *Expense2) GetType() *ExpenseType2 { - if o == nil { - return nil - } - return o.Type -} - -func (o *Expense2) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *Expense2) GetTaxRate() *LinkedTaxRate { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *Expense2) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *Expense2) GetLineItems() []ExpenseLineItem { - if o == nil { - return []ExpenseLineItem{} - } - return o.LineItems -} - -func (o *Expense2) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *Expense2) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *Expense2) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *Expense2) GetCustomMappings() map[string]any { - if o == nil { - return nil - } - return o.CustomMappings -} - -func (o *Expense2) GetStatus() *ExpenseStatus2 { - if o == nil { - return nil - } - return o.Status -} - -func (o *Expense2) GetUpdatedAt() *time.Time { - if o == nil { - return nil - } - return o.UpdatedAt -} - -func (o *Expense2) GetCreatedAt() *time.Time { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *Expense2) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *Expense2) GetUpdatedBy() *string { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Expense2) GetCreatedBy() *string { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *Expense2) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -// ExpensePaymentType1 - The type of payment for the expense. -type ExpensePaymentType1 string - -const ( - ExpensePaymentType1Cash ExpensePaymentType1 = "cash" - ExpensePaymentType1Check ExpensePaymentType1 = "check" - ExpensePaymentType1CreditCard ExpensePaymentType1 = "credit_card" - ExpensePaymentType1Other ExpensePaymentType1 = "other" -) - -func (e ExpensePaymentType1) ToPointer() *ExpensePaymentType1 { - return &e -} -func (e *ExpensePaymentType1) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "cash": - fallthrough - case "check": - fallthrough - case "credit_card": - fallthrough - case "other": - *e = ExpensePaymentType1(v) - return nil - default: - return fmt.Errorf("invalid value for ExpensePaymentType1: %v", v) - } -} - -// ExpenseType1 - The type of expense. -type ExpenseType1 string - -const ( - ExpenseType1Expense ExpenseType1 = "expense" - ExpenseType1Refund ExpenseType1 = "refund" -) - -func (e ExpenseType1) ToPointer() *ExpenseType1 { - return &e -} -func (e *ExpenseType1) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "expense": - fallthrough - case "refund": - *e = ExpenseType1(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseType1: %v", v) - } -} - -// ExpenseStatus1 - Expense status -type ExpenseStatus1 string - -const ( - ExpenseStatus1Draft ExpenseStatus1 = "draft" - ExpenseStatus1Posted ExpenseStatus1 = "posted" -) - -func (e ExpenseStatus1) ToPointer() *ExpenseStatus1 { - return &e -} -func (e *ExpenseStatus1) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "draft": - fallthrough - case "posted": - *e = ExpenseStatus1(v) - return nil - default: - return fmt.Errorf("invalid value for ExpenseStatus1: %v", v) - } -} - -type Expense1 struct { - // A unique identifier for an object. - ID *string `json:"id,omitempty"` - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID string `json:"account_id"` - Account *LinkedLedgerAccount `json:"account,omitempty"` - BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType1 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType1 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItem `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // When custom mappings are configured on the resource, the result is included here. - CustomMappings map[string]any `json:"custom_mappings,omitempty"` - // Expense status - Status *ExpenseStatus1 `json:"status,omitempty"` - // The date and time when the object was last updated. - UpdatedAt *time.Time `json:"updated_at,omitempty"` - // The date and time when the object was created. - CreatedAt *time.Time `json:"created_at,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The user who last updated the object. - UpdatedBy *string `json:"updated_by,omitempty"` - // The user who created the object. - CreatedBy *string `json:"created_by,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e Expense1) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *Expense1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "account_id", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *Expense1) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Expense1) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *Expense1) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *Expense1) GetAccountID() string { - if o == nil { - return "" - } - return o.AccountID -} - -func (o *Expense1) GetAccount() *LinkedLedgerAccount { - if o == nil { - return nil - } - return o.Account -} - -func (o *Expense1) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *Expense1) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *Expense1) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *Expense1) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *Expense1) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *Expense1) GetPaymentType() *ExpensePaymentType1 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *Expense1) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *Expense1) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *Expense1) GetType() *ExpenseType1 { - if o == nil { - return nil - } - return o.Type -} - -func (o *Expense1) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *Expense1) GetTaxRate() *LinkedTaxRate { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *Expense1) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *Expense1) GetLineItems() []ExpenseLineItem { - if o == nil { - return []ExpenseLineItem{} - } - return o.LineItems -} - -func (o *Expense1) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *Expense1) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *Expense1) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *Expense1) GetCustomMappings() map[string]any { - if o == nil { - return nil - } - return o.CustomMappings -} - -func (o *Expense1) GetStatus() *ExpenseStatus1 { - if o == nil { - return nil - } - return o.Status -} - -func (o *Expense1) GetUpdatedAt() *time.Time { - if o == nil { - return nil - } - return o.UpdatedAt -} - -func (o *Expense1) GetCreatedAt() *time.Time { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *Expense1) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *Expense1) GetUpdatedBy() *string { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Expense1) GetCreatedBy() *string { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *Expense1) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -type ExpenseUnionType string - -const ( - ExpenseUnionTypeExpense1 ExpenseUnionType = "Expense_1" - ExpenseUnionTypeExpense2 ExpenseUnionType = "Expense_2" - ExpenseUnionTypeExpense3 ExpenseUnionType = "Expense_3" -) - -type ExpenseUnion struct { - Expense1 *Expense1 `queryParam:"inline"` - Expense2 *Expense2 `queryParam:"inline"` - Expense3 *Expense3 `queryParam:"inline"` - - Type ExpenseUnionType -} - -func CreateExpenseUnionExpense1(expense1 Expense1) ExpenseUnion { - typ := ExpenseUnionTypeExpense1 - - return ExpenseUnion{ - Expense1: &expense1, - Type: typ, - } -} - -func CreateExpenseUnionExpense2(expense2 Expense2) ExpenseUnion { - typ := ExpenseUnionTypeExpense2 - - return ExpenseUnion{ - Expense2: &expense2, - Type: typ, - } -} - -func CreateExpenseUnionExpense3(expense3 Expense3) ExpenseUnion { - typ := ExpenseUnionTypeExpense3 - - return ExpenseUnion{ - Expense3: &expense3, - Type: typ, - } -} - -func (u *ExpenseUnion) UnmarshalJSON(data []byte) error { - - var expense1 Expense1 = Expense1{} - if err := utils.UnmarshalJSON(data, &expense1, "", true, nil); err == nil { - u.Expense1 = &expense1 - u.Type = ExpenseUnionTypeExpense1 - return nil - } - - var expense2 Expense2 = Expense2{} - if err := utils.UnmarshalJSON(data, &expense2, "", true, nil); err == nil { - u.Expense2 = &expense2 - u.Type = ExpenseUnionTypeExpense2 - return nil - } - - var expense3 Expense3 = Expense3{} - if err := utils.UnmarshalJSON(data, &expense3, "", true, nil); err == nil { - u.Expense3 = &expense3 - u.Type = ExpenseUnionTypeExpense3 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for ExpenseUnion", string(data)) -} - -func (u ExpenseUnion) MarshalJSON() ([]byte, error) { - if u.Expense1 != nil { - return utils.MarshalJSON(u.Expense1, "", true) - } - - if u.Expense2 != nil { - return utils.MarshalJSON(u.Expense2, "", true) - } - - if u.Expense3 != nil { - return utils.MarshalJSON(u.Expense3, "", true) - } - - return nil, errors.New("could not marshal union type ExpenseUnion: all fields are null") -} - -type ExpenseInput3 struct { - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID *string `json:"account_id,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` - BankAccount *LinkedBankAccount `json:"bank_account"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType3 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType3 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItemInput `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // Expense status - Status *ExpenseStatus3 `json:"status,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e ExpenseInput3) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExpenseInput3) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "bank_account", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *ExpenseInput3) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *ExpenseInput3) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *ExpenseInput3) GetAccountID() *string { - if o == nil { - return nil - } - return o.AccountID -} - -func (o *ExpenseInput3) GetAccount() *LinkedLedgerAccountInput { - if o == nil { - return nil - } - return o.Account -} - -func (o *ExpenseInput3) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *ExpenseInput3) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *ExpenseInput3) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *ExpenseInput3) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *ExpenseInput3) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *ExpenseInput3) GetPaymentType() *ExpensePaymentType3 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *ExpenseInput3) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *ExpenseInput3) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *ExpenseInput3) GetType() *ExpenseType3 { - if o == nil { - return nil - } - return o.Type -} - -func (o *ExpenseInput3) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *ExpenseInput3) GetTaxRate() *LinkedTaxRateInput { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *ExpenseInput3) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *ExpenseInput3) GetLineItems() []ExpenseLineItemInput { - if o == nil { - return []ExpenseLineItemInput{} - } - return o.LineItems -} - -func (o *ExpenseInput3) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *ExpenseInput3) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *ExpenseInput3) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *ExpenseInput3) GetStatus() *ExpenseStatus3 { - if o == nil { - return nil - } - return o.Status -} - -func (o *ExpenseInput3) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *ExpenseInput3) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -type ExpenseInput2 struct { - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID *string `json:"account_id,omitempty"` - Account *LinkedLedgerAccountInput `json:"account"` - BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType2 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType2 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItemInput `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // Expense status - Status *ExpenseStatus2 `json:"status,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e ExpenseInput2) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExpenseInput2) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "account", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *ExpenseInput2) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *ExpenseInput2) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *ExpenseInput2) GetAccountID() *string { - if o == nil { - return nil - } - return o.AccountID -} - -func (o *ExpenseInput2) GetAccount() *LinkedLedgerAccountInput { - if o == nil { - return nil - } - return o.Account -} - -func (o *ExpenseInput2) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *ExpenseInput2) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *ExpenseInput2) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *ExpenseInput2) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *ExpenseInput2) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *ExpenseInput2) GetPaymentType() *ExpensePaymentType2 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *ExpenseInput2) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *ExpenseInput2) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *ExpenseInput2) GetType() *ExpenseType2 { - if o == nil { - return nil - } - return o.Type -} - -func (o *ExpenseInput2) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *ExpenseInput2) GetTaxRate() *LinkedTaxRateInput { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *ExpenseInput2) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *ExpenseInput2) GetLineItems() []ExpenseLineItemInput { - if o == nil { - return []ExpenseLineItemInput{} - } - return o.LineItems -} - -func (o *ExpenseInput2) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *ExpenseInput2) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *ExpenseInput2) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *ExpenseInput2) GetStatus() *ExpenseStatus2 { - if o == nil { - return nil - } - return o.Status -} - -func (o *ExpenseInput2) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *ExpenseInput2) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -type ExpenseInput1 struct { - // Number. - Number *string `json:"number,omitempty"` - // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - TransactionDate *time.Time `json:"transaction_date"` - // The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountID string `json:"account_id"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` - BankAccount *LinkedBankAccount `json:"bank_account,omitempty"` - // The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - CustomerID *string `json:"customer_id,omitempty"` - // The ID of the supplier this entity is linked to. - SupplierID *string `json:"supplier_id,omitempty"` - // The company ID the transaction belongs to - CompanyID *string `json:"company_id,omitempty"` - // The ID of the department - DepartmentID *string `json:"department_id,omitempty"` - // The type of payment for the expense. - PaymentType *ExpensePaymentType1 `json:"payment_type,omitempty"` - // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - // Currency Exchange Rate at the time entity was recorded/generated. - CurrencyRate *float64 `json:"currency_rate,omitempty"` - // The type of expense. - Type *ExpenseType1 `json:"type,omitempty"` - // The memo of the expense. - Memo *string `json:"memo,omitempty"` - TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` - // The total amount of the expense line item. - TotalAmount *float64 `json:"total_amount,omitempty"` - // Expense line items linked to this expense. - LineItems []ExpenseLineItemInput `json:"line_items"` - // Optional reference identifier for the transaction. - Reference *string `json:"reference,omitempty"` - // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - SourceDocumentURL *string `json:"source_document_url,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - // Expense status - Status *ExpenseStatus1 `json:"status,omitempty"` - // 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. - RowVersion *string `json:"row_version,omitempty"` - // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - PassThrough []PassThroughBody `json:"pass_through,omitempty"` -} - -func (e ExpenseInput1) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExpenseInput1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"transaction_date", "account_id", "line_items"}); err != nil { - return err - } - return nil -} - -func (o *ExpenseInput1) GetNumber() *string { - if o == nil { - return nil - } - return o.Number -} - -func (o *ExpenseInput1) GetTransactionDate() *time.Time { - if o == nil { - return nil - } - return o.TransactionDate -} - -func (o *ExpenseInput1) GetAccountID() string { - if o == nil { - return "" - } - return o.AccountID -} - -func (o *ExpenseInput1) GetAccount() *LinkedLedgerAccountInput { - if o == nil { - return nil - } - return o.Account -} - -func (o *ExpenseInput1) GetBankAccount() *LinkedBankAccount { - if o == nil { - return nil - } - return o.BankAccount -} - -func (o *ExpenseInput1) GetCustomerID() *string { - if o == nil { - return nil - } - return o.CustomerID -} - -func (o *ExpenseInput1) GetSupplierID() *string { - if o == nil { - return nil - } - return o.SupplierID -} - -func (o *ExpenseInput1) GetCompanyID() *string { - if o == nil { - return nil - } - return o.CompanyID -} - -func (o *ExpenseInput1) GetDepartmentID() *string { - if o == nil { - return nil - } - return o.DepartmentID -} - -func (o *ExpenseInput1) GetPaymentType() *ExpensePaymentType1 { - if o == nil { - return nil - } - return o.PaymentType -} - -func (o *ExpenseInput1) GetCurrency() *Currency { - if o == nil { - return nil - } - return o.Currency -} - -func (o *ExpenseInput1) GetCurrencyRate() *float64 { - if o == nil { - return nil - } - return o.CurrencyRate -} - -func (o *ExpenseInput1) GetType() *ExpenseType1 { - if o == nil { - return nil - } - return o.Type -} - -func (o *ExpenseInput1) GetMemo() *string { - if o == nil { - return nil - } - return o.Memo -} - -func (o *ExpenseInput1) GetTaxRate() *LinkedTaxRateInput { - if o == nil { - return nil - } - return o.TaxRate -} - -func (o *ExpenseInput1) GetTotalAmount() *float64 { - if o == nil { - return nil - } - return o.TotalAmount -} - -func (o *ExpenseInput1) GetLineItems() []ExpenseLineItemInput { - if o == nil { - return []ExpenseLineItemInput{} - } - return o.LineItems -} - -func (o *ExpenseInput1) GetReference() *string { - if o == nil { - return nil - } - return o.Reference -} - -func (o *ExpenseInput1) GetSourceDocumentURL() *string { - if o == nil { - return nil - } - return o.SourceDocumentURL -} - -func (o *ExpenseInput1) GetCustomFields() []CustomField { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *ExpenseInput1) GetStatus() *ExpenseStatus1 { - if o == nil { - return nil - } - return o.Status -} - -func (o *ExpenseInput1) GetRowVersion() *string { - if o == nil { - return nil - } - return o.RowVersion -} - -func (o *ExpenseInput1) GetPassThrough() []PassThroughBody { - if o == nil { - return nil - } - return o.PassThrough -} - -type ExpenseInputUnionType string - -const ( - ExpenseInputUnionTypeExpenseInput1 ExpenseInputUnionType = "Expense_input_1" - ExpenseInputUnionTypeExpenseInput2 ExpenseInputUnionType = "Expense_input_2" - ExpenseInputUnionTypeExpenseInput3 ExpenseInputUnionType = "Expense_input_3" -) - -type ExpenseInputUnion struct { - ExpenseInput1 *ExpenseInput1 `queryParam:"inline"` - ExpenseInput2 *ExpenseInput2 `queryParam:"inline"` - ExpenseInput3 *ExpenseInput3 `queryParam:"inline"` - - Type ExpenseInputUnionType -} - -func CreateExpenseInputUnionExpenseInput1(expenseInput1 ExpenseInput1) ExpenseInputUnion { - typ := ExpenseInputUnionTypeExpenseInput1 - - return ExpenseInputUnion{ - ExpenseInput1: &expenseInput1, - Type: typ, - } -} - -func CreateExpenseInputUnionExpenseInput2(expenseInput2 ExpenseInput2) ExpenseInputUnion { - typ := ExpenseInputUnionTypeExpenseInput2 - - return ExpenseInputUnion{ - ExpenseInput2: &expenseInput2, - Type: typ, - } -} - -func CreateExpenseInputUnionExpenseInput3(expenseInput3 ExpenseInput3) ExpenseInputUnion { - typ := ExpenseInputUnionTypeExpenseInput3 - - return ExpenseInputUnion{ - ExpenseInput3: &expenseInput3, - Type: typ, - } -} - -func (u *ExpenseInputUnion) UnmarshalJSON(data []byte) error { - - var expenseInput1 ExpenseInput1 = ExpenseInput1{} - if err := utils.UnmarshalJSON(data, &expenseInput1, "", true, nil); err == nil { - u.ExpenseInput1 = &expenseInput1 - u.Type = ExpenseInputUnionTypeExpenseInput1 - return nil - } - - var expenseInput2 ExpenseInput2 = ExpenseInput2{} - if err := utils.UnmarshalJSON(data, &expenseInput2, "", true, nil); err == nil { - u.ExpenseInput2 = &expenseInput2 - u.Type = ExpenseInputUnionTypeExpenseInput2 - return nil - } - - var expenseInput3 ExpenseInput3 = ExpenseInput3{} - if err := utils.UnmarshalJSON(data, &expenseInput3, "", true, nil); err == nil { - u.ExpenseInput3 = &expenseInput3 - u.Type = ExpenseInputUnionTypeExpenseInput3 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for ExpenseInputUnion", string(data)) -} - -func (u ExpenseInputUnion) MarshalJSON() ([]byte, error) { - if u.ExpenseInput1 != nil { - return utils.MarshalJSON(u.ExpenseInput1, "", true) - } - - if u.ExpenseInput2 != nil { - return utils.MarshalJSON(u.ExpenseInput2, "", true) - } - - if u.ExpenseInput3 != nil { - return utils.MarshalJSON(u.ExpenseInput3, "", true) - } - - return nil, errors.New("could not marshal union type ExpenseInputUnion: all fields are null") -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getexpenseresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getexpenseresponse.go index 24a721e2f..226388176 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getexpenseresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getexpenseresponse.go @@ -13,8 +13,8 @@ type GetExpenseResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data ExpenseUnion `json:"data"` + Operation string `json:"operation"` + Data Expense `json:"data"` // Raw response from the integration when raw=true query param is provided Raw map[string]any `json:"_raw,omitempty"` } @@ -54,9 +54,9 @@ func (o *GetExpenseResponse) GetOperation() string { return o.Operation } -func (o *GetExpenseResponse) GetData() ExpenseUnion { +func (o *GetExpenseResponse) GetData() Expense { if o == nil { - return ExpenseUnion{} + return Expense{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getexpensesresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getexpensesresponse.go index 750a269d4..46e194231 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getexpensesresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getexpensesresponse.go @@ -13,8 +13,8 @@ type GetExpensesResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data []ExpenseUnion `json:"data"` + Operation string `json:"operation"` + Data []Expense `json:"data"` // Response metadata Meta *Meta `json:"meta,omitempty"` // Links to navigate to previous or next pages through the API @@ -58,9 +58,9 @@ func (o *GetExpensesResponse) GetOperation() string { return o.Operation } -func (o *GetExpensesResponse) GetData() []ExpenseUnion { +func (o *GetExpensesResponse) GetData() []Expense { if o == nil { - return []ExpenseUnion{} + return []Expense{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoice.go b/src/__tests__/mockserver/internal/sdk/models/components/invoice.go index 2fee9ad62..e3ffefba4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoice.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoice.go @@ -658,10 +658,10 @@ type InvoiceInput struct { // language code according to ISO 639-1. For the United States - EN Language *string `json:"language,omitempty"` // Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row. - AccountingByRow *bool `json:"accounting_by_row,omitempty"` - BankAccount *BankAccount `json:"bank_account,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` + AccountingByRow *bool `json:"accounting_by_row,omitempty"` + BankAccount *BankAccount `json:"bank_account,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` // 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. RowVersion *string `json:"row_version,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. @@ -945,7 +945,7 @@ func (o *InvoiceInput) GetBankAccount() *BankAccount { return o.BankAccount } -func (o *InvoiceInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *InvoiceInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go index 7d652b4f2..52e4768d7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go @@ -523,10 +523,10 @@ type InvoiceItemInput struct { Quantity *float64 `json:"quantity,omitempty"` UnitPrice *float64 `json:"unit_price,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - AssetAccount *LinkedLedgerAccountInput `json:"asset_account,omitempty"` - IncomeAccount *LinkedLedgerAccountInput `json:"income_account,omitempty"` - ExpenseAccount *LinkedLedgerAccountInput `json:"expense_account,omitempty"` + Currency *Currency `json:"currency,omitempty"` + AssetAccount *LinkedLedgerAccount `json:"asset_account,omitempty"` + IncomeAccount *LinkedLedgerAccount `json:"income_account,omitempty"` + ExpenseAccount *LinkedLedgerAccount `json:"expense_account,omitempty"` // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. TrackingCategory *DeprecatedLinkedTrackingCategory `json:"tracking_category,omitempty"` // A list of linked tracking categories. @@ -662,21 +662,21 @@ func (o *InvoiceItemInput) GetCurrency() *Currency { return o.Currency } -func (o *InvoiceItemInput) GetAssetAccount() *LinkedLedgerAccountInput { +func (o *InvoiceItemInput) GetAssetAccount() *LinkedLedgerAccount { if o == nil { return nil } return o.AssetAccount } -func (o *InvoiceItemInput) GetIncomeAccount() *LinkedLedgerAccountInput { +func (o *InvoiceItemInput) GetIncomeAccount() *LinkedLedgerAccount { if o == nil { return nil } return o.IncomeAccount } -func (o *InvoiceItemInput) GetExpenseAccount() *LinkedLedgerAccountInput { +func (o *InvoiceItemInput) GetExpenseAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go index 48e996d24..34baa4c1a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go @@ -425,7 +425,7 @@ type InvoiceLineItemInput struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` // A list of linked tracking categories. TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` // 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. RowVersion *string `json:"row_version,omitempty"` @@ -638,7 +638,7 @@ func (o *InvoiceLineItemInput) GetTrackingCategories() []*LinkedTrackingCategory return o.TrackingCategories } -func (o *InvoiceLineItemInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *InvoiceLineItemInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/journalentrylineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/journalentrylineitem.go index f56ead06f..83c440b9a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/journalentrylineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/journalentrylineitem.go @@ -195,7 +195,7 @@ type JournalEntryLineItemInput struct { TrackingCategory *DeprecatedLinkedTrackingCategory `json:"tracking_category,omitempty"` // A list of linked tracking categories. TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account"` // The customer this entity is linked to. Customer *LinkedCustomerInput `json:"customer,omitempty"` // The supplier this entity is linked to. @@ -266,7 +266,7 @@ func (o *JournalEntryLineItemInput) GetTrackingCategories() []*LinkedTrackingCat return o.TrackingCategories } -func (o *JournalEntryLineItemInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *JournalEntryLineItemInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/lineitemtype.go b/src/__tests__/mockserver/internal/sdk/models/components/lineitemtype.go new file mode 100644 index 000000000..c9449e872 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/lineitemtype.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" +) + +// LineItemType - Line Item type +type LineItemType string + +const ( + LineItemTypeExpenseItem LineItemType = "expense_item" + LineItemTypeExpenseAccount LineItemType = "expense_account" + LineItemTypeOther LineItemType = "other" +) + +func (e LineItemType) ToPointer() *LineItemType { + return &e +} +func (e *LineItemType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "expense_item": + fallthrough + case "expense_account": + fallthrough + case "other": + *e = LineItemType(v) + return nil + default: + return fmt.Errorf("invalid value for LineItemType: %v", v) + } +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedbankaccount.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedbankaccount.go index d66694884..b188716ad 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedbankaccount.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/linkedbankaccount.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type LinkedBankAccount struct { // The unique identifier for the bank account. ID *string `json:"id,omitempty"` @@ -17,17 +13,6 @@ type LinkedBankAccount struct { BankName *string `json:"bank_name,omitempty"` } -func (l LinkedBankAccount) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedBankAccount) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - func (o *LinkedBankAccount) GetID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccount.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccount.go index b880c8dd0..022179eb7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccount.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccount.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type LinkedLedgerAccount struct { // The unique identifier for the account. ID *string `json:"id,omitempty"` @@ -21,17 +17,6 @@ type LinkedLedgerAccount struct { DisplayID *string `json:"display_id,omitempty"` } -func (l LinkedLedgerAccount) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedLedgerAccount) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - func (o *LinkedLedgerAccount) GetID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccountinput.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccountinput.go deleted file mode 100644 index 00b627979..000000000 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedledgeraccountinput.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type LinkedLedgerAccountInput struct { - // The unique identifier for the account. - ID *string `json:"id,omitempty"` - // The nominal code of the account. - NominalCode *string `json:"nominal_code,omitempty"` - // The code assigned to the account. - Code *string `json:"code,omitempty"` - // The parent ID of the account. - ParentID *string `json:"parent_id,omitempty"` - // The display ID of the account. - DisplayID *string `json:"display_id,omitempty"` -} - -func (l LinkedLedgerAccountInput) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedLedgerAccountInput) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *LinkedLedgerAccountInput) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *LinkedLedgerAccountInput) GetNominalCode() *string { - if o == nil { - return nil - } - return o.NominalCode -} - -func (o *LinkedLedgerAccountInput) GetCode() *string { - if o == nil { - return nil - } - return o.Code -} - -func (o *LinkedLedgerAccountInput) GetParentID() *string { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *LinkedLedgerAccountInput) GetDisplayID() *string { - if o == nil { - return nil - } - return o.DisplayID -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrate.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrate.go index a9cf48841..f7a07230f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrate.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrate.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type LinkedTaxRate struct { // The ID of the object. ID *string `json:"id,omitempty"` @@ -17,17 +13,6 @@ type LinkedTaxRate struct { Rate *float64 `json:"rate,omitempty"` } -func (l LinkedTaxRate) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedTaxRate) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - func (o *LinkedTaxRate) GetID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrateinput.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrateinput.go index cc000bd6b..1385fc6ae 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrateinput.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/linkedtaxrateinput.go @@ -2,33 +2,27 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type LinkedTaxRateInput struct { // The ID of the object. ID *string `json:"id,omitempty"` + // Tax rate code + Code *string `json:"code,omitempty"` // Rate of the tax rate Rate *float64 `json:"rate,omitempty"` } -func (l LinkedTaxRateInput) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedTaxRateInput) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err +func (o *LinkedTaxRateInput) GetID() *string { + if o == nil { + return nil } - return nil + return o.ID } -func (o *LinkedTaxRateInput) GetID() *string { +func (o *LinkedTaxRateInput) GetCode() *string { if o == nil { return nil } - return o.ID + return o.Code } func (o *LinkedTaxRateInput) GetRate() *float64 { diff --git a/src/__tests__/mockserver/internal/sdk/models/components/linkedtrackingcategory.go b/src/__tests__/mockserver/internal/sdk/models/components/linkedtrackingcategory.go index fe5d2064c..0e0d2e549 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/linkedtrackingcategory.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/linkedtrackingcategory.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type LinkedTrackingCategory struct { // The unique identifier for the tracking category. ID *string `json:"id,omitempty"` @@ -17,17 +13,6 @@ type LinkedTrackingCategory struct { ParentName *string `json:"parent_name,omitempty"` } -func (l LinkedTrackingCategory) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *LinkedTrackingCategory) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - func (o *LinkedTrackingCategory) GetID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go b/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go index 3e13e4cce..8bdd0124c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go @@ -2,10 +2,6 @@ package components -import ( - "mockserver/internal/sdk/utils" -) - type ExtendPath struct { // JSONPath string specifying where to apply the value. Path string `json:"path"` @@ -13,17 +9,6 @@ type ExtendPath struct { Value any `json:"value"` } -func (e ExtendPath) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExtendPath) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"path", "value"}); err != nil { - return err - } - return nil -} - func (o *ExtendPath) GetPath() string { if o == nil { return "" @@ -49,17 +34,6 @@ type PassThroughBody struct { ExtendPaths []ExtendPath `json:"extend_paths,omitempty"` } -func (p PassThroughBody) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PassThroughBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"service_id"}); err != nil { - return err - } - return nil -} - func (o *PassThroughBody) GetServiceID() string { if o == nil { return "" diff --git a/src/__tests__/mockserver/internal/sdk/models/components/paymentinput.go b/src/__tests__/mockserver/internal/sdk/models/components/paymentinput.go index 4ddb1f5c0..149b6873c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/paymentinput.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/paymentinput.go @@ -29,8 +29,8 @@ type PaymentInput struct { // Unique identifier for the account to allocate payment to. // // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AccountsReceivableAccountID *string `json:"accounts_receivable_account_id,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` + AccountsReceivableAccountID *string `json:"accounts_receivable_account_id,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD TransactionDate *time.Time `json:"transaction_date"` // The customer this entity is linked to. @@ -137,7 +137,7 @@ func (o *PaymentInput) GetAccountsReceivableAccountID() *string { return o.AccountsReceivableAccountID } -func (o *PaymentInput) GetAccount() *LinkedLedgerAccountInput { +func (o *PaymentInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/purchaseorder.go b/src/__tests__/mockserver/internal/sdk/models/components/purchaseorder.go index f616f4d97..358d849c9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/purchaseorder.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/purchaseorder.go @@ -544,11 +544,11 @@ type PurchaseOrderInput struct { // Total amount of invoice, including tax. Total *float64 `json:"total,omitempty"` // Amounts are including tax - TaxInclusive *bool `json:"tax_inclusive,omitempty"` - LineItems []InvoiceLineItemInput `json:"line_items,omitempty"` - BillingAddress *Address `json:"billing_address,omitempty"` - ShippingAddress *Address `json:"shipping_address,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` + TaxInclusive *bool `json:"tax_inclusive,omitempty"` + LineItems []InvoiceLineItemInput `json:"line_items,omitempty"` + BillingAddress *Address `json:"billing_address,omitempty"` + ShippingAddress *Address `json:"shipping_address,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` // Optional purchase order template TemplateID *string `json:"template_id,omitempty"` // Discount percentage applied to this transaction. @@ -738,7 +738,7 @@ func (o *PurchaseOrderInput) GetShippingAddress() *Address { return o.ShippingAddress } -func (o *PurchaseOrderInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *PurchaseOrderInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go index f5f0e1c8c..72c499a12 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go @@ -337,7 +337,7 @@ type QuoteLineItemInput struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` // A list of linked tracking categories. TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` - LedgerAccount *LinkedLedgerAccountInput `json:"ledger_account,omitempty"` + LedgerAccount *LinkedLedgerAccount `json:"ledger_account,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` // 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. RowVersion *string `json:"row_version,omitempty"` @@ -494,7 +494,7 @@ func (o *QuoteLineItemInput) GetTrackingCategories() []*LinkedTrackingCategory { return o.TrackingCategories } -func (o *QuoteLineItemInput) GetLedgerAccount() *LinkedLedgerAccountInput { +func (o *QuoteLineItemInput) GetLedgerAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/rebilling.go b/src/__tests__/mockserver/internal/sdk/models/components/rebilling.go index 60d2015e5..b8a6db817 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/rebilling.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/rebilling.go @@ -5,7 +5,6 @@ package components import ( "encoding/json" "fmt" - "mockserver/internal/sdk/utils" ) // RebillStatus - Status of the rebilling process for this line item. @@ -50,17 +49,6 @@ type Rebilling struct { LinkedTransactionLineID *string `json:"linked_transaction_line_id,omitempty"` } -func (r Rebilling) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *Rebilling) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - func (o *Rebilling) GetRebillable() *bool { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/supplier.go b/src/__tests__/mockserver/internal/sdk/models/components/supplier.go index 0acc9fe7a..8296266bc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/supplier.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/supplier.go @@ -448,8 +448,8 @@ type SupplierInput struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - Currency *Currency `json:"currency,omitempty"` - Account *LinkedLedgerAccountInput `json:"account,omitempty"` + Currency *Currency `json:"currency,omitempty"` + Account *LinkedLedgerAccount `json:"account,omitempty"` // Supplier status Status *SupplierStatus `json:"status,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check @@ -615,7 +615,7 @@ func (o *SupplierInput) GetCurrency() *Currency { return o.Currency } -func (o *SupplierInput) GetAccount() *LinkedLedgerAccountInput { +func (o *SupplierInput) GetAccount() *LinkedLedgerAccount { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingattachmentsupload.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingattachmentsupload.go index 34e99a00e..77f3a1356 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingattachmentsupload.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingattachmentsupload.go @@ -43,8 +43,8 @@ type AccountingAttachmentsUploadRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - RequestBody io.Reader `request:"mediaType=*/*"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body io.Reader `request:"mediaType=*/*"` } func (a AccountingAttachmentsUploadRequest) MarshalJSON() ([]byte, error) { @@ -52,7 +52,7 @@ func (a AccountingAttachmentsUploadRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingAttachmentsUploadRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"reference_type", "reference_id", "RequestBody"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"reference_type", "reference_id", "body"}); err != nil { return err } return nil @@ -107,11 +107,11 @@ func (o *AccountingAttachmentsUploadRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingAttachmentsUploadRequest) GetRequestBody() io.Reader { +func (o *AccountingAttachmentsUploadRequest) GetBody() io.Reader { if o == nil { return nil } - return o.RequestBody + return o.Body } type AccountingAttachmentsUploadResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsadd.go index a3c90fce7..9d5456067 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsadd.go @@ -36,8 +36,8 @@ type AccountingBankAccountsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - AccountingBankAccount components.AccountingBankAccountInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.AccountingBankAccountInput `request:"mediaType=application/json"` } func (a AccountingBankAccountsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingBankAccountsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBankAccountsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"AccountingBankAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingBankAccountsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingBankAccountsAddRequest) GetAccountingBankAccount() components.AccountingBankAccountInput { +func (o *AccountingBankAccountsAddRequest) GetBody() components.AccountingBankAccountInput { if o == nil { return components.AccountingBankAccountInput{} } - return o.AccountingBankAccount + return o.Body } type AccountingBankAccountsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsupdate.go index f3782633c..c5cab5ff9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankaccountsupdate.go @@ -38,8 +38,8 @@ type AccountingBankAccountsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - AccountingBankAccount components.AccountingBankAccountInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.AccountingBankAccountInput `request:"mediaType=application/json"` } func (a AccountingBankAccountsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingBankAccountsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBankAccountsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "AccountingBankAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingBankAccountsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingBankAccountsUpdateRequest) GetAccountingBankAccount() components.AccountingBankAccountInput { +func (o *AccountingBankAccountsUpdateRequest) GetBody() components.AccountingBankAccountInput { if o == nil { return components.AccountingBankAccountInput{} } - return o.AccountingBankAccount + return o.Body } type AccountingBankAccountsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsadd.go index 33b23d803..ddfc2747e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsadd.go @@ -36,8 +36,8 @@ type AccountingBankFeedAccountsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - BankFeedAccount components.BankFeedAccountInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.BankFeedAccountInput `request:"mediaType=application/json"` } func (a AccountingBankFeedAccountsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingBankFeedAccountsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBankFeedAccountsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"BankFeedAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingBankFeedAccountsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingBankFeedAccountsAddRequest) GetBankFeedAccount() components.BankFeedAccountInput { +func (o *AccountingBankFeedAccountsAddRequest) GetBody() components.BankFeedAccountInput { if o == nil { return components.BankFeedAccountInput{} } - return o.BankFeedAccount + return o.Body } type AccountingBankFeedAccountsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsupdate.go index cc969943d..b966ca5e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedaccountsupdate.go @@ -38,8 +38,8 @@ type AccountingBankFeedAccountsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - BankFeedAccount components.BankFeedAccountInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.BankFeedAccountInput `request:"mediaType=application/json"` } func (a AccountingBankFeedAccountsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingBankFeedAccountsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBankFeedAccountsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "BankFeedAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingBankFeedAccountsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingBankFeedAccountsUpdateRequest) GetBankFeedAccount() components.BankFeedAccountInput { +func (o *AccountingBankFeedAccountsUpdateRequest) GetBody() components.BankFeedAccountInput { if o == nil { return components.BankFeedAccountInput{} } - return o.BankFeedAccount + return o.Body } type AccountingBankFeedAccountsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsadd.go index 172b48b8a..fe5592276 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsadd.go @@ -36,8 +36,8 @@ type AccountingBankFeedStatementsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - BankFeedStatement components.BankFeedStatementInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.BankFeedStatementInput `request:"mediaType=application/json"` } func (a AccountingBankFeedStatementsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingBankFeedStatementsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBankFeedStatementsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"BankFeedStatement"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingBankFeedStatementsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingBankFeedStatementsAddRequest) GetBankFeedStatement() components.BankFeedStatementInput { +func (o *AccountingBankFeedStatementsAddRequest) GetBody() components.BankFeedStatementInput { if o == nil { return components.BankFeedStatementInput{} } - return o.BankFeedStatement + return o.Body } type AccountingBankFeedStatementsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsupdate.go index 90713f625..9867c7ab2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbankfeedstatementsupdate.go @@ -38,8 +38,8 @@ type AccountingBankFeedStatementsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - BankFeedStatement components.BankFeedStatementInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.BankFeedStatementInput `request:"mediaType=application/json"` } func (a AccountingBankFeedStatementsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingBankFeedStatementsUpdateRequest) MarshalJSON() ([]byte, error) } func (a *AccountingBankFeedStatementsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "BankFeedStatement"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingBankFeedStatementsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingBankFeedStatementsUpdateRequest) GetBankFeedStatement() components.BankFeedStatementInput { +func (o *AccountingBankFeedStatementsUpdateRequest) GetBody() components.BankFeedStatementInput { if o == nil { return components.BankFeedStatementInput{} } - return o.BankFeedStatement + return o.Body } type AccountingBankFeedStatementsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsadd.go index 23d673dc2..a3475c88d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsadd.go @@ -36,8 +36,8 @@ type AccountingBillPaymentsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - BillPayment components.BillPaymentInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.BillPaymentInput `request:"mediaType=application/json"` } func (a AccountingBillPaymentsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingBillPaymentsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBillPaymentsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"BillPayment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingBillPaymentsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingBillPaymentsAddRequest) GetBillPayment() components.BillPaymentInput { +func (o *AccountingBillPaymentsAddRequest) GetBody() components.BillPaymentInput { if o == nil { return components.BillPaymentInput{} } - return o.BillPayment + return o.Body } type AccountingBillPaymentsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsupdate.go index ab3852093..6e4539792 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillpaymentsupdate.go @@ -38,8 +38,8 @@ type AccountingBillPaymentsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - BillPayment components.BillPaymentInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.BillPaymentInput `request:"mediaType=application/json"` } func (a AccountingBillPaymentsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingBillPaymentsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBillPaymentsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "BillPayment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingBillPaymentsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingBillPaymentsUpdateRequest) GetBillPayment() components.BillPaymentInput { +func (o *AccountingBillPaymentsUpdateRequest) GetBody() components.BillPaymentInput { if o == nil { return components.BillPaymentInput{} } - return o.BillPayment + return o.Body } type AccountingBillPaymentsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsadd.go index 844843157..2cab0cc71 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsadd.go @@ -37,7 +37,7 @@ type AccountingBillsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Bill components.BillInput `request:"mediaType=application/json"` + Body components.BillInput `request:"mediaType=application/json"` } func (a AccountingBillsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingBillsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBillsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Bill"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingBillsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingBillsAddRequest) GetBill() components.BillInput { +func (o *AccountingBillsAddRequest) GetBody() components.BillInput { if o == nil { return components.BillInput{} } - return o.Bill + return o.Body } type AccountingBillsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsupdate.go index 56d3c8123..b872a350b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingbillsupdate.go @@ -39,7 +39,7 @@ type AccountingBillsUpdateRequest struct { ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Bill components.BillInput `request:"mediaType=application/json"` + Body components.BillInput `request:"mediaType=application/json"` } func (a AccountingBillsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingBillsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingBillsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Bill"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingBillsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingBillsUpdateRequest) GetBill() components.BillInput { +func (o *AccountingBillsUpdateRequest) GetBody() components.BillInput { if o == nil { return components.BillInput{} } - return o.Bill + return o.Body } type AccountingBillsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesadd.go index 1c455c6a4..e0ec5ad46 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesadd.go @@ -36,8 +36,8 @@ type AccountingCreditNotesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - CreditNote components.CreditNoteInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.CreditNoteInput `request:"mediaType=application/json"` } func (a AccountingCreditNotesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingCreditNotesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingCreditNotesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"CreditNote"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingCreditNotesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingCreditNotesAddRequest) GetCreditNote() components.CreditNoteInput { +func (o *AccountingCreditNotesAddRequest) GetBody() components.CreditNoteInput { if o == nil { return components.CreditNoteInput{} } - return o.CreditNote + return o.Body } type AccountingCreditNotesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesupdate.go index ca2ee01bd..1b6881d63 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcreditnotesupdate.go @@ -38,8 +38,8 @@ type AccountingCreditNotesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - CreditNote components.CreditNoteInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.CreditNoteInput `request:"mediaType=application/json"` } func (a AccountingCreditNotesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingCreditNotesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingCreditNotesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "CreditNote"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingCreditNotesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingCreditNotesUpdateRequest) GetCreditNote() components.CreditNoteInput { +func (o *AccountingCreditNotesUpdateRequest) GetBody() components.CreditNoteInput { if o == nil { return components.CreditNoteInput{} } - return o.CreditNote + return o.Body } type AccountingCreditNotesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersadd.go index e71586fe7..cfe114640 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersadd.go @@ -37,7 +37,7 @@ type AccountingCustomersAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Customer components.CustomerInput `request:"mediaType=application/json"` + Body components.CustomerInput `request:"mediaType=application/json"` } func (a AccountingCustomersAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingCustomersAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingCustomersAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Customer"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingCustomersAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingCustomersAddRequest) GetCustomer() components.CustomerInput { +func (o *AccountingCustomersAddRequest) GetBody() components.CustomerInput { if o == nil { return components.CustomerInput{} } - return o.Customer + return o.Body } type AccountingCustomersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersupdate.go index 8c6c0c8b8..e73685cab 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingcustomersupdate.go @@ -38,8 +38,8 @@ type AccountingCustomersUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Customer components.CustomerInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.CustomerInput `request:"mediaType=application/json"` } func (a AccountingCustomersUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingCustomersUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingCustomersUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Customer"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingCustomersUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingCustomersUpdateRequest) GetCustomer() components.CustomerInput { +func (o *AccountingCustomersUpdateRequest) GetBody() components.CustomerInput { if o == nil { return components.CustomerInput{} } - return o.Customer + return o.Body } type AccountingCustomersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsadd.go index 28889eeaf..9f12c53bf 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsadd.go @@ -36,8 +36,8 @@ type AccountingDepartmentsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - AccountingDepartment components.AccountingDepartmentInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.AccountingDepartmentInput `request:"mediaType=application/json"` } func (a AccountingDepartmentsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingDepartmentsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingDepartmentsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"AccountingDepartment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingDepartmentsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingDepartmentsAddRequest) GetAccountingDepartment() components.AccountingDepartmentInput { +func (o *AccountingDepartmentsAddRequest) GetBody() components.AccountingDepartmentInput { if o == nil { return components.AccountingDepartmentInput{} } - return o.AccountingDepartment + return o.Body } type AccountingDepartmentsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsupdate.go index 07913573c..faa941aff 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingdepartmentsupdate.go @@ -38,8 +38,8 @@ type AccountingDepartmentsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - AccountingDepartment components.AccountingDepartmentInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.AccountingDepartmentInput `request:"mediaType=application/json"` } func (a AccountingDepartmentsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingDepartmentsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingDepartmentsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "AccountingDepartment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingDepartmentsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingDepartmentsUpdateRequest) GetAccountingDepartment() components.AccountingDepartmentInput { +func (o *AccountingDepartmentsUpdateRequest) GetBody() components.AccountingDepartmentInput { if o == nil { return components.AccountingDepartmentInput{} } - return o.AccountingDepartment + return o.Body } type AccountingDepartmentsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesadd.go index 3e82a2b3b..a771aa2f6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesadd.go @@ -36,8 +36,8 @@ type AccountingExpensesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Expense components.ExpenseInputUnion `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.ExpenseInput `request:"mediaType=application/json"` } func (a AccountingExpensesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingExpensesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingExpensesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Expense"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingExpensesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingExpensesAddRequest) GetExpense() components.ExpenseInputUnion { +func (o *AccountingExpensesAddRequest) GetBody() components.ExpenseInput { if o == nil { - return components.ExpenseInputUnion{} + return components.ExpenseInput{} } - return o.Expense + return o.Body } type AccountingExpensesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesupdate.go index 5be37b2a1..5d7b22189 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingexpensesupdate.go @@ -38,8 +38,8 @@ type AccountingExpensesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Expense components.ExpenseInputUnion `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ExpenseInput `request:"mediaType=application/json"` } func (a AccountingExpensesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingExpensesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingExpensesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Expense"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingExpensesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingExpensesUpdateRequest) GetExpense() components.ExpenseInputUnion { +func (o *AccountingExpensesUpdateRequest) GetBody() components.ExpenseInput { if o == nil { - return components.ExpenseInputUnion{} + return components.ExpenseInput{} } - return o.Expense + return o.Body } type AccountingExpensesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsadd.go index 22e5fcff7..c120d7968 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsadd.go @@ -36,8 +36,8 @@ type AccountingInvoiceItemsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - InvoiceItem components.InvoiceItemInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.InvoiceItemInput `request:"mediaType=application/json"` } func (a AccountingInvoiceItemsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingInvoiceItemsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingInvoiceItemsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"InvoiceItem"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingInvoiceItemsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingInvoiceItemsAddRequest) GetInvoiceItem() components.InvoiceItemInput { +func (o *AccountingInvoiceItemsAddRequest) GetBody() components.InvoiceItemInput { if o == nil { return components.InvoiceItemInput{} } - return o.InvoiceItem + return o.Body } type AccountingInvoiceItemsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsupdate.go index 8a48d878f..a731a56e6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoiceitemsupdate.go @@ -38,8 +38,8 @@ type AccountingInvoiceItemsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - InvoiceItem components.InvoiceItemInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.InvoiceItemInput `request:"mediaType=application/json"` } func (a AccountingInvoiceItemsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingInvoiceItemsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingInvoiceItemsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "InvoiceItem"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingInvoiceItemsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingInvoiceItemsUpdateRequest) GetInvoiceItem() components.InvoiceItemInput { +func (o *AccountingInvoiceItemsUpdateRequest) GetBody() components.InvoiceItemInput { if o == nil { return components.InvoiceItemInput{} } - return o.InvoiceItem + return o.Body } type AccountingInvoiceItemsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesadd.go index 85eeaa086..fad26329e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesadd.go @@ -37,7 +37,7 @@ type AccountingInvoicesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Invoice components.InvoiceInput `request:"mediaType=application/json"` + Body components.InvoiceInput `request:"mediaType=application/json"` } func (a AccountingInvoicesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingInvoicesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingInvoicesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Invoice"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingInvoicesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingInvoicesAddRequest) GetInvoice() components.InvoiceInput { +func (o *AccountingInvoicesAddRequest) GetBody() components.InvoiceInput { if o == nil { return components.InvoiceInput{} } - return o.Invoice + return o.Body } type AccountingInvoicesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesupdate.go index 14b4e03d6..296fe94e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinginvoicesupdate.go @@ -38,8 +38,8 @@ type AccountingInvoicesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Invoice components.InvoiceInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.InvoiceInput `request:"mediaType=application/json"` } func (a AccountingInvoicesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingInvoicesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingInvoicesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Invoice"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingInvoicesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingInvoicesUpdateRequest) GetInvoice() components.InvoiceInput { +func (o *AccountingInvoicesUpdateRequest) GetBody() components.InvoiceInput { if o == nil { return components.InvoiceInput{} } - return o.Invoice + return o.Body } type AccountingInvoicesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesadd.go index c750754b4..6849c380c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesadd.go @@ -36,8 +36,8 @@ type AccountingJournalEntriesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - JournalEntry components.JournalEntryInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.JournalEntryInput `request:"mediaType=application/json"` } func (a AccountingJournalEntriesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingJournalEntriesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingJournalEntriesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"JournalEntry"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingJournalEntriesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingJournalEntriesAddRequest) GetJournalEntry() components.JournalEntryInput { +func (o *AccountingJournalEntriesAddRequest) GetBody() components.JournalEntryInput { if o == nil { return components.JournalEntryInput{} } - return o.JournalEntry + return o.Body } type AccountingJournalEntriesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesupdate.go index e632d2e0b..08e94f0e5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingjournalentriesupdate.go @@ -38,8 +38,8 @@ type AccountingJournalEntriesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - JournalEntry components.JournalEntryInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.JournalEntryInput `request:"mediaType=application/json"` } func (a AccountingJournalEntriesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingJournalEntriesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingJournalEntriesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "JournalEntry"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingJournalEntriesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingJournalEntriesUpdateRequest) GetJournalEntry() components.JournalEntryInput { +func (o *AccountingJournalEntriesUpdateRequest) GetBody() components.JournalEntryInput { if o == nil { return components.JournalEntryInput{} } - return o.JournalEntry + return o.Body } type AccountingJournalEntriesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsadd.go index a74b3efbc..248452d32 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsadd.go @@ -36,8 +36,8 @@ type AccountingLedgerAccountsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - LedgerAccount components.LedgerAccountInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.LedgerAccountInput `request:"mediaType=application/json"` } func (a AccountingLedgerAccountsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingLedgerAccountsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingLedgerAccountsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"LedgerAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingLedgerAccountsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingLedgerAccountsAddRequest) GetLedgerAccount() components.LedgerAccountInput { +func (o *AccountingLedgerAccountsAddRequest) GetBody() components.LedgerAccountInput { if o == nil { return components.LedgerAccountInput{} } - return o.LedgerAccount + return o.Body } type AccountingLedgerAccountsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsupdate.go index c72f1e194..1897e1d1b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingledgeraccountsupdate.go @@ -38,8 +38,8 @@ type AccountingLedgerAccountsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - LedgerAccount components.LedgerAccountInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.LedgerAccountInput `request:"mediaType=application/json"` } func (a AccountingLedgerAccountsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingLedgerAccountsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingLedgerAccountsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "LedgerAccount"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingLedgerAccountsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingLedgerAccountsUpdateRequest) GetLedgerAccount() components.LedgerAccountInput { +func (o *AccountingLedgerAccountsUpdateRequest) GetBody() components.LedgerAccountInput { if o == nil { return components.LedgerAccountInput{} } - return o.LedgerAccount + return o.Body } type AccountingLedgerAccountsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsadd.go index 96d3fb17e..862182ccd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsadd.go @@ -36,8 +36,8 @@ type AccountingLocationsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - AccountingLocation components.AccountingLocationInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.AccountingLocationInput `request:"mediaType=application/json"` } func (a AccountingLocationsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingLocationsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingLocationsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"AccountingLocation"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingLocationsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingLocationsAddRequest) GetAccountingLocation() components.AccountingLocationInput { +func (o *AccountingLocationsAddRequest) GetBody() components.AccountingLocationInput { if o == nil { return components.AccountingLocationInput{} } - return o.AccountingLocation + return o.Body } type AccountingLocationsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsupdate.go index e46ebbb27..fc3f126b3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountinglocationsupdate.go @@ -38,8 +38,8 @@ type AccountingLocationsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - AccountingLocation components.AccountingLocationInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.AccountingLocationInput `request:"mediaType=application/json"` } func (a AccountingLocationsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingLocationsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingLocationsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "AccountingLocation"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingLocationsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingLocationsUpdateRequest) GetAccountingLocation() components.AccountingLocationInput { +func (o *AccountingLocationsUpdateRequest) GetBody() components.AccountingLocationInput { if o == nil { return components.AccountingLocationInput{} } - return o.AccountingLocation + return o.Body } type AccountingLocationsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsadd.go index d29ae171b..ebf47337c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsadd.go @@ -37,7 +37,7 @@ type AccountingPaymentsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Payment components.PaymentInput `request:"mediaType=application/json"` + Body components.PaymentInput `request:"mediaType=application/json"` } func (a AccountingPaymentsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingPaymentsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingPaymentsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Payment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingPaymentsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingPaymentsAddRequest) GetPayment() components.PaymentInput { +func (o *AccountingPaymentsAddRequest) GetBody() components.PaymentInput { if o == nil { return components.PaymentInput{} } - return o.Payment + return o.Body } type AccountingPaymentsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsupdate.go index 521d59f98..86b612c8f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsupdate.go @@ -38,8 +38,8 @@ type AccountingPaymentsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Payment components.PaymentInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.PaymentInput `request:"mediaType=application/json"` } func (a AccountingPaymentsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingPaymentsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingPaymentsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Payment"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingPaymentsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingPaymentsUpdateRequest) GetPayment() components.PaymentInput { +func (o *AccountingPaymentsUpdateRequest) GetBody() components.PaymentInput { if o == nil { return components.PaymentInput{} } - return o.Payment + return o.Body } type AccountingPaymentsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go index 409367cdd..65de514f3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go @@ -37,7 +37,7 @@ type AccountingProjectsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Project components.ProjectInput `request:"mediaType=application/json"` + Body components.ProjectInput `request:"mediaType=application/json"` } func (a AccountingProjectsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingProjectsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingProjectsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Project"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingProjectsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingProjectsAddRequest) GetProject() components.ProjectInput { +func (o *AccountingProjectsAddRequest) GetBody() components.ProjectInput { if o == nil { return components.ProjectInput{} } - return o.Project + return o.Body } type AccountingProjectsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go index 0f39d701b..a04f32ed3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go @@ -38,8 +38,8 @@ type AccountingProjectsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Project components.ProjectInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ProjectInput `request:"mediaType=application/json"` } func (a AccountingProjectsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingProjectsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingProjectsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Project"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingProjectsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingProjectsUpdateRequest) GetProject() components.ProjectInput { +func (o *AccountingProjectsUpdateRequest) GetBody() components.ProjectInput { if o == nil { return components.ProjectInput{} } - return o.Project + return o.Body } type AccountingProjectsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersadd.go index 87da4a5ec..bccf68d63 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersadd.go @@ -36,8 +36,8 @@ type AccountingPurchaseOrdersAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - PurchaseOrder components.PurchaseOrderInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.PurchaseOrderInput `request:"mediaType=application/json"` } func (a AccountingPurchaseOrdersAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingPurchaseOrdersAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingPurchaseOrdersAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"PurchaseOrder"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingPurchaseOrdersAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingPurchaseOrdersAddRequest) GetPurchaseOrder() components.PurchaseOrderInput { +func (o *AccountingPurchaseOrdersAddRequest) GetBody() components.PurchaseOrderInput { if o == nil { return components.PurchaseOrderInput{} } - return o.PurchaseOrder + return o.Body } type AccountingPurchaseOrdersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersupdate.go index 667505372..aba97e4a6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersupdate.go @@ -38,8 +38,8 @@ type AccountingPurchaseOrdersUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - PurchaseOrder components.PurchaseOrderInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.PurchaseOrderInput `request:"mediaType=application/json"` } func (a AccountingPurchaseOrdersUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingPurchaseOrdersUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingPurchaseOrdersUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "PurchaseOrder"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingPurchaseOrdersUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingPurchaseOrdersUpdateRequest) GetPurchaseOrder() components.PurchaseOrderInput { +func (o *AccountingPurchaseOrdersUpdateRequest) GetBody() components.PurchaseOrderInput { if o == nil { return components.PurchaseOrderInput{} } - return o.PurchaseOrder + return o.Body } type AccountingPurchaseOrdersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesadd.go index a78d8683d..d8e3c4c3d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesadd.go @@ -37,7 +37,7 @@ type AccountingQuotesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Quote components.QuoteInput `request:"mediaType=application/json"` + Body components.QuoteInput `request:"mediaType=application/json"` } func (a AccountingQuotesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingQuotesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingQuotesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Quote"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingQuotesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingQuotesAddRequest) GetQuote() components.QuoteInput { +func (o *AccountingQuotesAddRequest) GetBody() components.QuoteInput { if o == nil { return components.QuoteInput{} } - return o.Quote + return o.Body } type AccountingQuotesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesupdate.go index 5dfc7e5e9..c535d5b42 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingquotesupdate.go @@ -38,8 +38,8 @@ type AccountingQuotesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Quote components.QuoteInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.QuoteInput `request:"mediaType=application/json"` } func (a AccountingQuotesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingQuotesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingQuotesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Quote"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingQuotesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingQuotesUpdateRequest) GetQuote() components.QuoteInput { +func (o *AccountingQuotesUpdateRequest) GetBody() components.QuoteInput { if o == nil { return components.QuoteInput{} } - return o.Quote + return o.Body } type AccountingQuotesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesadd.go index 1603c050f..cd78f81ad 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesadd.go @@ -36,8 +36,8 @@ type AccountingSubsidiariesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Subsidiary components.SubsidiaryInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.SubsidiaryInput `request:"mediaType=application/json"` } func (a AccountingSubsidiariesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingSubsidiariesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingSubsidiariesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Subsidiary"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingSubsidiariesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingSubsidiariesAddRequest) GetSubsidiary() components.SubsidiaryInput { +func (o *AccountingSubsidiariesAddRequest) GetBody() components.SubsidiaryInput { if o == nil { return components.SubsidiaryInput{} } - return o.Subsidiary + return o.Body } type AccountingSubsidiariesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesupdate.go index e1e980b42..f5ba5ffff 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsubsidiariesupdate.go @@ -38,8 +38,8 @@ type AccountingSubsidiariesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Subsidiary components.SubsidiaryInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.SubsidiaryInput `request:"mediaType=application/json"` } func (a AccountingSubsidiariesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingSubsidiariesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingSubsidiariesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Subsidiary"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingSubsidiariesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingSubsidiariesUpdateRequest) GetSubsidiary() components.SubsidiaryInput { +func (o *AccountingSubsidiariesUpdateRequest) GetBody() components.SubsidiaryInput { if o == nil { return components.SubsidiaryInput{} } - return o.Subsidiary + return o.Body } type AccountingSubsidiariesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersadd.go index bd01f2ea6..e40b616e0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersadd.go @@ -37,7 +37,7 @@ type AccountingSuppliersAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Supplier components.SupplierInput `request:"mediaType=application/json"` + Body components.SupplierInput `request:"mediaType=application/json"` } func (a AccountingSuppliersAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingSuppliersAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingSuppliersAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Supplier"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingSuppliersAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingSuppliersAddRequest) GetSupplier() components.SupplierInput { +func (o *AccountingSuppliersAddRequest) GetBody() components.SupplierInput { if o == nil { return components.SupplierInput{} } - return o.Supplier + return o.Body } type AccountingSuppliersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersupdate.go index 0fd6885d4..8a73e1382 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingsuppliersupdate.go @@ -38,8 +38,8 @@ type AccountingSuppliersUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Supplier components.SupplierInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.SupplierInput `request:"mediaType=application/json"` } func (a AccountingSuppliersUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingSuppliersUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingSuppliersUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Supplier"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingSuppliersUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingSuppliersUpdateRequest) GetSupplier() components.SupplierInput { +func (o *AccountingSuppliersUpdateRequest) GetBody() components.SupplierInput { if o == nil { return components.SupplierInput{} } - return o.Supplier + return o.Body } type AccountingSuppliersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesadd.go index 8707f6e78..1f9c3cfba 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesadd.go @@ -37,7 +37,7 @@ type AccountingTaxRatesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - TaxRate components.TaxRateInput `request:"mediaType=application/json"` + Body components.TaxRateInput `request:"mediaType=application/json"` } func (a AccountingTaxRatesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingTaxRatesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingTaxRatesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"TaxRate"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingTaxRatesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingTaxRatesAddRequest) GetTaxRate() components.TaxRateInput { +func (o *AccountingTaxRatesAddRequest) GetBody() components.TaxRateInput { if o == nil { return components.TaxRateInput{} } - return o.TaxRate + return o.Body } type AccountingTaxRatesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesupdate.go index ecd2cf1ed..0151eb5a4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtaxratesupdate.go @@ -38,8 +38,8 @@ type AccountingTaxRatesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - TaxRate components.TaxRateInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.TaxRateInput `request:"mediaType=application/json"` } func (a AccountingTaxRatesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingTaxRatesUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingTaxRatesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "TaxRate"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingTaxRatesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingTaxRatesUpdateRequest) GetTaxRate() components.TaxRateInput { +func (o *AccountingTaxRatesUpdateRequest) GetBody() components.TaxRateInput { if o == nil { return components.TaxRateInput{} } - return o.TaxRate + return o.Body } type AccountingTaxRatesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesadd.go index 5f3b58a8a..b1f88bac4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesadd.go @@ -36,8 +36,8 @@ type AccountingTrackingCategoriesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - TrackingCategory components.TrackingCategoryInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.TrackingCategoryInput `request:"mediaType=application/json"` } func (a AccountingTrackingCategoriesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AccountingTrackingCategoriesAddRequest) MarshalJSON() ([]byte, error) { } func (a *AccountingTrackingCategoriesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"TrackingCategory"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AccountingTrackingCategoriesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AccountingTrackingCategoriesAddRequest) GetTrackingCategory() components.TrackingCategoryInput { +func (o *AccountingTrackingCategoriesAddRequest) GetBody() components.TrackingCategoryInput { if o == nil { return components.TrackingCategoryInput{} } - return o.TrackingCategory + return o.Body } type AccountingTrackingCategoriesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesupdate.go index cdcc97698..2c1c9c1e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingtrackingcategoriesupdate.go @@ -38,8 +38,8 @@ type AccountingTrackingCategoriesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - TrackingCategory components.TrackingCategoryInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.TrackingCategoryInput `request:"mediaType=application/json"` } func (a AccountingTrackingCategoriesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AccountingTrackingCategoriesUpdateRequest) MarshalJSON() ([]byte, error) } func (a *AccountingTrackingCategoriesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "TrackingCategory"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AccountingTrackingCategoriesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AccountingTrackingCategoriesUpdateRequest) GetTrackingCategory() components.TrackingCategoryInput { +func (o *AccountingTrackingCategoriesUpdateRequest) GetBody() components.TrackingCategoryInput { if o == nil { return components.TrackingCategoryInput{} } - return o.TrackingCategory + return o.Body } type AccountingTrackingCategoriesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsadd.go index 2f226971b..4c08e5ab4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsadd.go @@ -37,7 +37,7 @@ type AtsApplicantsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Applicant components.ApplicantInput `request:"mediaType=application/json"` + Body components.ApplicantInput `request:"mediaType=application/json"` } func (a AtsApplicantsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AtsApplicantsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AtsApplicantsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Applicant"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AtsApplicantsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AtsApplicantsAddRequest) GetApplicant() components.ApplicantInput { +func (o *AtsApplicantsAddRequest) GetBody() components.ApplicantInput { if o == nil { return components.ApplicantInput{} } - return o.Applicant + return o.Body } type AtsApplicantsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsupdate.go index 0876a9b79..aa8685d5f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicantsupdate.go @@ -38,8 +38,8 @@ type AtsApplicantsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Applicant components.ApplicantInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ApplicantInput `request:"mediaType=application/json"` } func (a AtsApplicantsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AtsApplicantsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AtsApplicantsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Applicant"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AtsApplicantsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AtsApplicantsUpdateRequest) GetApplicant() components.ApplicantInput { +func (o *AtsApplicantsUpdateRequest) GetBody() components.ApplicantInput { if o == nil { return components.ApplicantInput{} } - return o.Applicant + return o.Body } type AtsApplicantsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsadd.go index 42511bae9..e13909aad 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsadd.go @@ -36,8 +36,8 @@ type AtsApplicationsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Application components.ApplicationInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.ApplicationInput `request:"mediaType=application/json"` } func (a AtsApplicationsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (a AtsApplicationsAddRequest) MarshalJSON() ([]byte, error) { } func (a *AtsApplicationsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Application"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *AtsApplicationsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *AtsApplicationsAddRequest) GetApplication() components.ApplicationInput { +func (o *AtsApplicationsAddRequest) GetBody() components.ApplicationInput { if o == nil { return components.ApplicationInput{} } - return o.Application + return o.Body } type AtsApplicationsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsupdate.go index 2a76dde3c..4d90cfe89 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/atsapplicationsupdate.go @@ -38,8 +38,8 @@ type AtsApplicationsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Application components.ApplicationInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ApplicationInput `request:"mediaType=application/json"` } func (a AtsApplicationsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (a AtsApplicationsUpdateRequest) MarshalJSON() ([]byte, error) { } func (a *AtsApplicationsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Application"}); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *AtsApplicationsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *AtsApplicationsUpdateRequest) GetApplication() components.ApplicationInput { +func (o *AtsApplicationsUpdateRequest) GetBody() components.ApplicationInput { if o == nil { return components.ApplicationInput{} } - return o.Application + return o.Body } type AtsApplicationsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesadd.go index ffd6f9582..c2a25209d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesadd.go @@ -37,7 +37,7 @@ type CrmActivitiesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Activity components.ActivityInput `request:"mediaType=application/json"` + Body components.ActivityInput `request:"mediaType=application/json"` } func (c CrmActivitiesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmActivitiesAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmActivitiesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Activity"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmActivitiesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmActivitiesAddRequest) GetActivity() components.ActivityInput { +func (o *CrmActivitiesAddRequest) GetBody() components.ActivityInput { if o == nil { return components.ActivityInput{} } - return o.Activity + return o.Body } type CrmActivitiesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesupdate.go index 7ba9f648d..ecc64f116 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmactivitiesupdate.go @@ -38,8 +38,8 @@ type CrmActivitiesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Activity components.ActivityInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ActivityInput `request:"mediaType=application/json"` } func (c CrmActivitiesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmActivitiesUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmActivitiesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Activity"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmActivitiesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmActivitiesUpdateRequest) GetActivity() components.ActivityInput { +func (o *CrmActivitiesUpdateRequest) GetBody() components.ActivityInput { if o == nil { return components.ActivityInput{} } - return o.Activity + return o.Body } type CrmActivitiesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesadd.go index bb26a59e1..c0217c511 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesadd.go @@ -37,7 +37,7 @@ type CrmCompaniesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Company1 components.Company1Input `request:"mediaType=application/json"` + Body components.Company1Input `request:"mediaType=application/json"` } func (c CrmCompaniesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmCompaniesAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCompaniesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Company1"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmCompaniesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmCompaniesAddRequest) GetCompany1() components.Company1Input { +func (o *CrmCompaniesAddRequest) GetBody() components.Company1Input { if o == nil { return components.Company1Input{} } - return o.Company1 + return o.Body } type CrmCompaniesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesupdate.go index e89979e77..1694ac932 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcompaniesupdate.go @@ -39,7 +39,7 @@ type CrmCompaniesUpdateRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Company1 components.Company1Input `request:"mediaType=application/json"` + Body components.Company1Input `request:"mediaType=application/json"` } func (c CrmCompaniesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmCompaniesUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCompaniesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Company1"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmCompaniesUpdateRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmCompaniesUpdateRequest) GetCompany1() components.Company1Input { +func (o *CrmCompaniesUpdateRequest) GetBody() components.Company1Input { if o == nil { return components.Company1Input{} } - return o.Company1 + return o.Body } type CrmCompaniesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsadd.go index c858935e3..c88958637 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsadd.go @@ -37,7 +37,7 @@ type CrmContactsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Contact components.ContactInput `request:"mediaType=application/json"` + Body components.ContactInput `request:"mediaType=application/json"` } func (c CrmContactsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmContactsAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmContactsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Contact"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmContactsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmContactsAddRequest) GetContact() components.ContactInput { +func (o *CrmContactsAddRequest) GetBody() components.ContactInput { if o == nil { return components.ContactInput{} } - return o.Contact + return o.Body } type CrmContactsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsupdate.go index 258b656ab..6eacd39f7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcontactsupdate.go @@ -38,8 +38,8 @@ type CrmContactsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Contact components.ContactInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.ContactInput `request:"mediaType=application/json"` } func (c CrmContactsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmContactsUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmContactsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Contact"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmContactsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmContactsUpdateRequest) GetContact() components.ContactInput { +func (o *CrmContactsUpdateRequest) GetBody() components.ContactInput { if o == nil { return components.ContactInput{} } - return o.Contact + return o.Body } type CrmContactsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsadd.go index f9d68cc90..637deb9e0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsadd.go @@ -38,8 +38,8 @@ type CrmCustomObjectsAddRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // The id of the custom object to query - ObjectID string `pathParam:"style=simple,explode=false,name=object_id"` - CustomObject components.CustomObjectInput `request:"mediaType=application/json"` + ObjectID string `pathParam:"style=simple,explode=false,name=object_id"` + Body components.CustomObjectInput `request:"mediaType=application/json"` } func (c CrmCustomObjectsAddRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmCustomObjectsAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCustomObjectsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"object_id", "CustomObject"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"object_id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmCustomObjectsAddRequest) GetObjectID() string { return o.ObjectID } -func (o *CrmCustomObjectsAddRequest) GetCustomObject() components.CustomObjectInput { +func (o *CrmCustomObjectsAddRequest) GetBody() components.CustomObjectInput { if o == nil { return components.CustomObjectInput{} } - return o.CustomObject + return o.Body } type CrmCustomObjectsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasadd.go index 5a02dc0f9..f9396c8e0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasadd.go @@ -36,8 +36,8 @@ type CrmCustomObjectSchemasAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - CustomObjectSchema components.CustomObjectSchemaInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.CustomObjectSchemaInput `request:"mediaType=application/json"` } func (c CrmCustomObjectSchemasAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmCustomObjectSchemasAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCustomObjectSchemasAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"CustomObjectSchema"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmCustomObjectSchemasAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmCustomObjectSchemasAddRequest) GetCustomObjectSchema() components.CustomObjectSchemaInput { +func (o *CrmCustomObjectSchemasAddRequest) GetBody() components.CustomObjectSchemaInput { if o == nil { return components.CustomObjectSchemaInput{} } - return o.CustomObjectSchema + return o.Body } type CrmCustomObjectSchemasAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasupdate.go index 80589c1a0..9baad3837 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectschemasupdate.go @@ -38,8 +38,8 @@ type CrmCustomObjectSchemasUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - CustomObjectSchema components.CustomObjectSchemaInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.CustomObjectSchemaInput `request:"mediaType=application/json"` } func (c CrmCustomObjectSchemasUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmCustomObjectSchemasUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCustomObjectSchemasUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "CustomObjectSchema"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmCustomObjectSchemasUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmCustomObjectSchemasUpdateRequest) GetCustomObjectSchema() components.CustomObjectSchemaInput { +func (o *CrmCustomObjectSchemasUpdateRequest) GetBody() components.CustomObjectSchemaInput { if o == nil { return components.CustomObjectSchemaInput{} } - return o.CustomObjectSchema + return o.Body } type CrmCustomObjectSchemasUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsupdate.go index 45d036d53..0b376381b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmcustomobjectsupdate.go @@ -40,8 +40,8 @@ type CrmCustomObjectsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - CustomObject components.CustomObjectInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.CustomObjectInput `request:"mediaType=application/json"` } func (c CrmCustomObjectsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -49,7 +49,7 @@ func (c CrmCustomObjectsUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmCustomObjectsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "object_id", "CustomObject"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "object_id", "body"}); err != nil { return err } return nil @@ -97,11 +97,11 @@ func (o *CrmCustomObjectsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmCustomObjectsUpdateRequest) GetCustomObject() components.CustomObjectInput { +func (o *CrmCustomObjectsUpdateRequest) GetBody() components.CustomObjectInput { if o == nil { return components.CustomObjectInput{} } - return o.CustomObject + return o.Body } type CrmCustomObjectsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsadd.go index 88ca0f109..de13ce7ec 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsadd.go @@ -37,7 +37,7 @@ type CrmLeadsAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Lead components.LeadInput `request:"mediaType=application/json"` + Body components.LeadInput `request:"mediaType=application/json"` } func (c CrmLeadsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmLeadsAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmLeadsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Lead"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmLeadsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmLeadsAddRequest) GetLead() components.LeadInput { +func (o *CrmLeadsAddRequest) GetBody() components.LeadInput { if o == nil { return components.LeadInput{} } - return o.Lead + return o.Body } type CrmLeadsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsupdate.go index 2a1fdd587..000a2b0ae 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmleadsupdate.go @@ -39,7 +39,7 @@ type CrmLeadsUpdateRequest struct { ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Lead components.LeadInput `request:"mediaType=application/json"` + Body components.LeadInput `request:"mediaType=application/json"` } func (c CrmLeadsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmLeadsUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmLeadsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Lead"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmLeadsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmLeadsUpdateRequest) GetLead() components.LeadInput { +func (o *CrmLeadsUpdateRequest) GetBody() components.LeadInput { if o == nil { return components.LeadInput{} } - return o.Lead + return o.Body } type CrmLeadsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesadd.go index 30d9a64b1..50ad4f6fd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesadd.go @@ -37,7 +37,7 @@ type CrmNotesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Note components.NoteInput `request:"mediaType=application/json"` + Body components.NoteInput `request:"mediaType=application/json"` } func (c CrmNotesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmNotesAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmNotesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Note"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmNotesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmNotesAddRequest) GetNote() components.NoteInput { +func (o *CrmNotesAddRequest) GetBody() components.NoteInput { if o == nil { return components.NoteInput{} } - return o.Note + return o.Body } type CrmNotesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesupdate.go index b95b9117f..0d14e8850 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmnotesupdate.go @@ -39,7 +39,7 @@ type CrmNotesUpdateRequest struct { ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Note components.NoteInput `request:"mediaType=application/json"` + Body components.NoteInput `request:"mediaType=application/json"` } func (c CrmNotesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmNotesUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmNotesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Note"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmNotesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmNotesUpdateRequest) GetNote() components.NoteInput { +func (o *CrmNotesUpdateRequest) GetBody() components.NoteInput { if o == nil { return components.NoteInput{} } - return o.Note + return o.Body } type CrmNotesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesadd.go index 95025003d..9704cc06e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesadd.go @@ -36,8 +36,8 @@ type CrmOpportunitiesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Opportunity components.OpportunityInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.OpportunityInput `request:"mediaType=application/json"` } func (c CrmOpportunitiesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmOpportunitiesAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmOpportunitiesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Opportunity"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmOpportunitiesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmOpportunitiesAddRequest) GetOpportunity() components.OpportunityInput { +func (o *CrmOpportunitiesAddRequest) GetBody() components.OpportunityInput { if o == nil { return components.OpportunityInput{} } - return o.Opportunity + return o.Body } type CrmOpportunitiesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesupdate.go index e7a4fe2b0..c1b968292 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmopportunitiesupdate.go @@ -38,8 +38,8 @@ type CrmOpportunitiesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Opportunity components.OpportunityInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.OpportunityInput `request:"mediaType=application/json"` } func (c CrmOpportunitiesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmOpportunitiesUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmOpportunitiesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Opportunity"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmOpportunitiesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmOpportunitiesUpdateRequest) GetOpportunity() components.OpportunityInput { +func (o *CrmOpportunitiesUpdateRequest) GetBody() components.OpportunityInput { if o == nil { return components.OpportunityInput{} } - return o.Opportunity + return o.Body } type CrmOpportunitiesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesadd.go index fe7846d80..8279fd25d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesadd.go @@ -37,7 +37,7 @@ type CrmPipelinesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Pipeline components.PipelineInput `request:"mediaType=application/json"` + Body components.PipelineInput `request:"mediaType=application/json"` } func (c CrmPipelinesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmPipelinesAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmPipelinesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"Pipeline"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmPipelinesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmPipelinesAddRequest) GetPipeline() components.PipelineInput { +func (o *CrmPipelinesAddRequest) GetBody() components.PipelineInput { if o == nil { return components.PipelineInput{} } - return o.Pipeline + return o.Body } type CrmPipelinesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesupdate.go index 1f6de476e..c2607cb78 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmpipelinesupdate.go @@ -38,8 +38,8 @@ type CrmPipelinesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Pipeline components.PipelineInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.PipelineInput `request:"mediaType=application/json"` } func (c CrmPipelinesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmPipelinesUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmPipelinesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "Pipeline"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmPipelinesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmPipelinesUpdateRequest) GetPipeline() components.PipelineInput { +func (o *CrmPipelinesUpdateRequest) GetBody() components.PipelineInput { if o == nil { return components.PipelineInput{} } - return o.Pipeline + return o.Body } type CrmPipelinesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmusersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmusersadd.go index 824c9fc27..9c9e0ba3b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmusersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmusersadd.go @@ -37,7 +37,7 @@ type CrmUsersAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - User components.UserInput `request:"mediaType=application/json"` + Body components.UserInput `request:"mediaType=application/json"` } func (c CrmUsersAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (c CrmUsersAddRequest) MarshalJSON() ([]byte, error) { } func (c *CrmUsersAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"User"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *CrmUsersAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *CrmUsersAddRequest) GetUser() components.UserInput { +func (o *CrmUsersAddRequest) GetBody() components.UserInput { if o == nil { return components.UserInput{} } - return o.User + return o.Body } type CrmUsersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/crmusersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/crmusersupdate.go index b19486ed5..8e9c99bb5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/crmusersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/crmusersupdate.go @@ -39,7 +39,7 @@ type CrmUsersUpdateRequest struct { ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - User components.UserInput `request:"mediaType=application/json"` + Body components.UserInput `request:"mediaType=application/json"` } func (c CrmUsersUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (c CrmUsersUpdateRequest) MarshalJSON() ([]byte, error) { } func (c *CrmUsersUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "User"}); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *CrmUsersUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *CrmUsersUpdateRequest) GetUser() components.UserInput { +func (o *CrmUsersUpdateRequest) GetBody() components.UserInput { if o == nil { return components.UserInput{} } - return o.User + return o.Body } type CrmUsersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsadd.go index 9b99d3c37..b5e84df5a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsadd.go @@ -36,8 +36,8 @@ type FileStorageDriveGroupsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - DriveGroup components.DriveGroupInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.DriveGroupInput `request:"mediaType=application/json"` } func (f FileStorageDriveGroupsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (f FileStorageDriveGroupsAddRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageDriveGroupsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"DriveGroup"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *FileStorageDriveGroupsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *FileStorageDriveGroupsAddRequest) GetDriveGroup() components.DriveGroupInput { +func (o *FileStorageDriveGroupsAddRequest) GetBody() components.DriveGroupInput { if o == nil { return components.DriveGroupInput{} } - return o.DriveGroup + return o.Body } type FileStorageDriveGroupsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsupdate.go index 614bcc17c..e6c0c48e3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivegroupsupdate.go @@ -38,8 +38,8 @@ type FileStorageDriveGroupsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - DriveGroup components.DriveGroupInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.DriveGroupInput `request:"mediaType=application/json"` } func (f FileStorageDriveGroupsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageDriveGroupsUpdateRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageDriveGroupsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "DriveGroup"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageDriveGroupsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageDriveGroupsUpdateRequest) GetDriveGroup() components.DriveGroupInput { +func (o *FileStorageDriveGroupsUpdateRequest) GetBody() components.DriveGroupInput { if o == nil { return components.DriveGroupInput{} } - return o.DriveGroup + return o.Body } type FileStorageDriveGroupsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesadd.go index 704ea816f..422010f29 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesadd.go @@ -37,7 +37,7 @@ type FileStorageDrivesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Drive components.DriveInput `request:"mediaType=application/json"` + Body components.DriveInput `request:"mediaType=application/json"` } func (f FileStorageDrivesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (f FileStorageDrivesAddRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageDrivesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"Drive"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *FileStorageDrivesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *FileStorageDrivesAddRequest) GetDrive() components.DriveInput { +func (o *FileStorageDrivesAddRequest) GetBody() components.DriveInput { if o == nil { return components.DriveInput{} } - return o.Drive + return o.Body } type FileStorageDrivesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesupdate.go index 52015bfb6..72be5c5aa 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragedrivesupdate.go @@ -38,8 +38,8 @@ type FileStorageDrivesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Drive components.DriveInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.DriveInput `request:"mediaType=application/json"` } func (f FileStorageDrivesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageDrivesUpdateRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageDrivesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "Drive"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageDrivesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageDrivesUpdateRequest) GetDrive() components.DriveInput { +func (o *FileStorageDrivesUpdateRequest) GetBody() components.DriveInput { if o == nil { return components.DriveInput{} } - return o.Drive + return o.Body } type FileStorageDrivesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilessearch.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilessearch.go index 5a44d5b2a..56a95675c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilessearch.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilessearch.go @@ -46,8 +46,8 @@ type FileStorageFilesSearchRequest struct { // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` // Apply filters - Filter *components.FilesFilter `queryParam:"style=deepObject,explode=true,name=filter"` - FilesSearch components.FilesSearch `request:"mediaType=application/json"` + Filter *components.FilesFilter `queryParam:"style=deepObject,explode=true,name=filter"` + Body components.FilesSearch `request:"mediaType=application/json"` } func (f FileStorageFilesSearchRequest) MarshalJSON() ([]byte, error) { @@ -55,7 +55,7 @@ func (f FileStorageFilesSearchRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageFilesSearchRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"FilesSearch"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -124,11 +124,11 @@ func (o *FileStorageFilesSearchRequest) GetFilter() *components.FilesFilter { return o.Filter } -func (o *FileStorageFilesSearchRequest) GetFilesSearch() components.FilesSearch { +func (o *FileStorageFilesSearchRequest) GetBody() components.FilesSearch { if o == nil { return components.FilesSearch{} } - return o.FilesSearch + return o.Body } type FileStorageFilesSearchResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilesupdate.go index 3b1fdcf52..267a02105 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefilesupdate.go @@ -38,8 +38,8 @@ type FileStorageFilesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - UpdateFileRequest components.UpdateFileRequest `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.UpdateFileRequest `request:"mediaType=application/json"` } func (f FileStorageFilesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageFilesUpdateRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageFilesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "UpdateFileRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageFilesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageFilesUpdateRequest) GetUpdateFileRequest() components.UpdateFileRequest { +func (o *FileStorageFilesUpdateRequest) GetBody() components.UpdateFileRequest { if o == nil { return components.UpdateFileRequest{} } - return o.UpdateFileRequest + return o.Body } type FileStorageFilesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersadd.go index b90f1de35..a7621028b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersadd.go @@ -38,8 +38,8 @@ type FileStorageFoldersAddRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - Fields *string `queryParam:"style=form,explode=true,name=fields"` - CreateFolderRequest components.CreateFolderRequest `request:"mediaType=application/json"` + Fields *string `queryParam:"style=form,explode=true,name=fields"` + Body components.CreateFolderRequest `request:"mediaType=application/json"` } func (f FileStorageFoldersAddRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageFoldersAddRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageFoldersAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"CreateFolderRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageFoldersAddRequest) GetFields() *string { return o.Fields } -func (o *FileStorageFoldersAddRequest) GetCreateFolderRequest() components.CreateFolderRequest { +func (o *FileStorageFoldersAddRequest) GetBody() components.CreateFolderRequest { if o == nil { return components.CreateFolderRequest{} } - return o.CreateFolderRequest + return o.Body } type FileStorageFoldersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefolderscopy.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefolderscopy.go index 068d69031..14d695db6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefolderscopy.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefolderscopy.go @@ -40,8 +40,8 @@ type FileStorageFoldersCopyRequest struct { // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` // The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. - Fields *string `queryParam:"style=form,explode=true,name=fields"` - CopyFolderRequest components.CopyFolderRequest `request:"mediaType=application/json"` + Fields *string `queryParam:"style=form,explode=true,name=fields"` + Body components.CopyFolderRequest `request:"mediaType=application/json"` } func (f FileStorageFoldersCopyRequest) MarshalJSON() ([]byte, error) { @@ -49,7 +49,7 @@ func (f FileStorageFoldersCopyRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageFoldersCopyRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "CopyFolderRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -97,11 +97,11 @@ func (o *FileStorageFoldersCopyRequest) GetFields() *string { return o.Fields } -func (o *FileStorageFoldersCopyRequest) GetCopyFolderRequest() components.CopyFolderRequest { +func (o *FileStorageFoldersCopyRequest) GetBody() components.CopyFolderRequest { if o == nil { return components.CopyFolderRequest{} } - return o.CopyFolderRequest + return o.Body } type FileStorageFoldersCopyResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersupdate.go index d59dd0c55..add3fa08b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragefoldersupdate.go @@ -38,8 +38,8 @@ type FileStorageFoldersUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - UpdateFolderRequest components.UpdateFolderRequest `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.UpdateFolderRequest `request:"mediaType=application/json"` } func (f FileStorageFoldersUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageFoldersUpdateRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageFoldersUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "UpdateFolderRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageFoldersUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageFoldersUpdateRequest) GetUpdateFolderRequest() components.UpdateFolderRequest { +func (o *FileStorageFoldersUpdateRequest) GetBody() components.UpdateFolderRequest { if o == nil { return components.UpdateFolderRequest{} } - return o.UpdateFolderRequest + return o.Body } type FileStorageFoldersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksadd.go index 9470d0a3e..72663b0e8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksadd.go @@ -36,8 +36,8 @@ type FileStorageSharedLinksAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - SharedLink components.SharedLinkInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.SharedLinkInput `request:"mediaType=application/json"` } func (f FileStorageSharedLinksAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (f FileStorageSharedLinksAddRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageSharedLinksAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"SharedLink"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *FileStorageSharedLinksAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *FileStorageSharedLinksAddRequest) GetSharedLink() components.SharedLinkInput { +func (o *FileStorageSharedLinksAddRequest) GetBody() components.SharedLinkInput { if o == nil { return components.SharedLinkInput{} } - return o.SharedLink + return o.Body } type FileStorageSharedLinksAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksupdate.go index 1db291354..9ef0c79d8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestoragesharedlinksupdate.go @@ -38,8 +38,8 @@ type FileStorageSharedLinksUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - SharedLink components.SharedLinkInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.SharedLinkInput `request:"mediaType=application/json"` } func (f FileStorageSharedLinksUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (f FileStorageSharedLinksUpdateRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageSharedLinksUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "SharedLink"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *FileStorageSharedLinksUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageSharedLinksUpdateRequest) GetSharedLink() components.SharedLinkInput { +func (o *FileStorageSharedLinksUpdateRequest) GetBody() components.SharedLinkInput { if o == nil { return components.SharedLinkInput{} } - return o.SharedLink + return o.Body } type FileStorageSharedLinksUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsadd.go index 54e2532a8..90e86de8e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsadd.go @@ -36,8 +36,8 @@ type FileStorageUploadSessionsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - CreateUploadSessionRequest components.CreateUploadSessionRequest `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.CreateUploadSessionRequest `request:"mediaType=application/json"` } func (f FileStorageUploadSessionsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (f FileStorageUploadSessionsAddRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageUploadSessionsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"CreateUploadSessionRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *FileStorageUploadSessionsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *FileStorageUploadSessionsAddRequest) GetCreateUploadSessionRequest() components.CreateUploadSessionRequest { +func (o *FileStorageUploadSessionsAddRequest) GetBody() components.CreateUploadSessionRequest { if o == nil { return components.CreateUploadSessionRequest{} } - return o.CreateUploadSessionRequest + return o.Body } type FileStorageUploadSessionsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsfinish.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsfinish.go index 9809b02a7..595c98635 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsfinish.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsfinish.go @@ -43,8 +43,8 @@ type FileStorageUploadSessionsFinishRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // The RFC3230 message digest of the uploaded part. Only required for the Box connector. More information on the Box API docs [here](https://developer.box.com/reference/put-files-upload-sessions-id/#param-digest) - Digest *string `header:"style=simple,explode=false,name=digest"` - RequestBody *FileStorageUploadSessionsFinishRequestBody `request:"mediaType=application/json"` + Digest *string `header:"style=simple,explode=false,name=digest"` + Body *FileStorageUploadSessionsFinishRequestBody `request:"mediaType=application/json"` } func (f FileStorageUploadSessionsFinishRequest) MarshalJSON() ([]byte, error) { @@ -100,11 +100,11 @@ func (o *FileStorageUploadSessionsFinishRequest) GetDigest() *string { return o.Digest } -func (o *FileStorageUploadSessionsFinishRequest) GetRequestBody() *FileStorageUploadSessionsFinishRequestBody { +func (o *FileStorageUploadSessionsFinishRequest) GetBody() *FileStorageUploadSessionsFinishRequestBody { if o == nil { return nil } - return o.RequestBody + return o.Body } type FileStorageUploadSessionsFinishResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsupload.go b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsupload.go index 51f128a87..230cc0e33 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsupload.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filestorageuploadsessionsupload.go @@ -43,8 +43,8 @@ type FileStorageUploadSessionsUploadRequest struct { // The RFC3230 message digest of the uploaded part. Only required for the Box connector. More information on the Box API docs [here](https://developer.box.com/reference/put-files-upload-sessions-id/#param-digest) Digest *string `header:"style=simple,explode=false,name=digest"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - RequestBody io.Reader `request:"mediaType=*/*"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body io.Reader `request:"mediaType=*/*"` } func (f FileStorageUploadSessionsUploadRequest) MarshalJSON() ([]byte, error) { @@ -52,7 +52,7 @@ func (f FileStorageUploadSessionsUploadRequest) MarshalJSON() ([]byte, error) { } func (f *FileStorageUploadSessionsUploadRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "part_number", "RequestBody"}); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"id", "part_number", "body"}); err != nil { return err } return nil @@ -107,11 +107,11 @@ func (o *FileStorageUploadSessionsUploadRequest) GetRaw() *bool { return o.Raw } -func (o *FileStorageUploadSessionsUploadRequest) GetRequestBody() io.Reader { +func (o *FileStorageUploadSessionsUploadRequest) GetBody() io.Reader { if o == nil { return nil } - return o.RequestBody + return o.Body } type FileStorageUploadSessionsUploadResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesadd.go index 0e1546718..867e5aeb9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesadd.go @@ -36,8 +36,8 @@ type HrisCompaniesAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - HrisCompany components.HrisCompanyInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.HrisCompanyInput `request:"mediaType=application/json"` } func (h HrisCompaniesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (h HrisCompaniesAddRequest) MarshalJSON() ([]byte, error) { } func (h *HrisCompaniesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"HrisCompany"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *HrisCompaniesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *HrisCompaniesAddRequest) GetHrisCompany() components.HrisCompanyInput { +func (o *HrisCompaniesAddRequest) GetBody() components.HrisCompanyInput { if o == nil { return components.HrisCompanyInput{} } - return o.HrisCompany + return o.Body } type HrisCompaniesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesupdate.go index 00b532dff..7f46e93e0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hriscompaniesupdate.go @@ -38,8 +38,8 @@ type HrisCompaniesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - HrisCompany components.HrisCompanyInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.HrisCompanyInput `request:"mediaType=application/json"` } func (h HrisCompaniesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (h HrisCompaniesUpdateRequest) MarshalJSON() ([]byte, error) { } func (h *HrisCompaniesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "HrisCompany"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *HrisCompaniesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *HrisCompaniesUpdateRequest) GetHrisCompany() components.HrisCompanyInput { +func (o *HrisCompaniesUpdateRequest) GetBody() components.HrisCompanyInput { if o == nil { return components.HrisCompanyInput{} } - return o.HrisCompany + return o.Body } type HrisCompaniesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsadd.go index 8dc5eaa85..c96cbe814 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsadd.go @@ -36,8 +36,8 @@ type HrisDepartmentsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Department components.DepartmentInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.DepartmentInput `request:"mediaType=application/json"` } func (h HrisDepartmentsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (h HrisDepartmentsAddRequest) MarshalJSON() ([]byte, error) { } func (h *HrisDepartmentsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"Department"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *HrisDepartmentsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *HrisDepartmentsAddRequest) GetDepartment() components.DepartmentInput { +func (o *HrisDepartmentsAddRequest) GetBody() components.DepartmentInput { if o == nil { return components.DepartmentInput{} } - return o.Department + return o.Body } type HrisDepartmentsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsupdate.go index e086d98d7..a6e6fbc6b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hrisdepartmentsupdate.go @@ -38,8 +38,8 @@ type HrisDepartmentsUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Department components.DepartmentInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.DepartmentInput `request:"mediaType=application/json"` } func (h HrisDepartmentsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (h HrisDepartmentsUpdateRequest) MarshalJSON() ([]byte, error) { } func (h *HrisDepartmentsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "Department"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *HrisDepartmentsUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *HrisDepartmentsUpdateRequest) GetDepartment() components.DepartmentInput { +func (o *HrisDepartmentsUpdateRequest) GetBody() components.DepartmentInput { if o == nil { return components.DepartmentInput{} } - return o.Department + return o.Body } type HrisDepartmentsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesadd.go index 088d7825d..0b2aa64d2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesadd.go @@ -37,7 +37,7 @@ type HrisEmployeesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Employee components.EmployeeInput `request:"mediaType=application/json"` + Body components.EmployeeInput `request:"mediaType=application/json"` } func (h HrisEmployeesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (h HrisEmployeesAddRequest) MarshalJSON() ([]byte, error) { } func (h *HrisEmployeesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"Employee"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *HrisEmployeesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *HrisEmployeesAddRequest) GetEmployee() components.EmployeeInput { +func (o *HrisEmployeesAddRequest) GetBody() components.EmployeeInput { if o == nil { return components.EmployeeInput{} } - return o.Employee + return o.Body } type HrisEmployeesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesupdate.go index 58d5a1fc5..70d92620e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hrisemployeesupdate.go @@ -38,8 +38,8 @@ type HrisEmployeesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Employee components.EmployeeInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.EmployeeInput `request:"mediaType=application/json"` } func (h HrisEmployeesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (h HrisEmployeesUpdateRequest) MarshalJSON() ([]byte, error) { } func (h *HrisEmployeesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "Employee"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *HrisEmployeesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *HrisEmployeesUpdateRequest) GetEmployee() components.EmployeeInput { +func (o *HrisEmployeesUpdateRequest) GetBody() components.EmployeeInput { if o == nil { return components.EmployeeInput{} } - return o.Employee + return o.Body } type HrisEmployeesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsadd.go index 2149d54bc..8f3ac4b45 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsadd.go @@ -36,8 +36,8 @@ type HrisTimeOffRequestsAddRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. - ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - TimeOffRequest components.TimeOffRequestInput `request:"mediaType=application/json"` + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Body components.TimeOffRequestInput `request:"mediaType=application/json"` } func (h HrisTimeOffRequestsAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (h HrisTimeOffRequestsAddRequest) MarshalJSON() ([]byte, error) { } func (h *HrisTimeOffRequestsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"TimeOffRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *HrisTimeOffRequestsAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *HrisTimeOffRequestsAddRequest) GetTimeOffRequest() components.TimeOffRequestInput { +func (o *HrisTimeOffRequestsAddRequest) GetBody() components.TimeOffRequestInput { if o == nil { return components.TimeOffRequestInput{} } - return o.TimeOffRequest + return o.Body } type HrisTimeOffRequestsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsupdate.go index 05ff32246..22e872456 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/hristimeoffrequestsupdate.go @@ -40,8 +40,8 @@ type HrisTimeOffRequestsUpdateRequest struct { // Include raw response. Mostly used for debugging purposes Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` // ID of the employee you are acting upon. - EmployeeID string `pathParam:"style=simple,explode=false,name=employee_id"` - TimeOffRequest components.TimeOffRequestInput `request:"mediaType=application/json"` + EmployeeID string `pathParam:"style=simple,explode=false,name=employee_id"` + Body components.TimeOffRequestInput `request:"mediaType=application/json"` } func (h HrisTimeOffRequestsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -49,7 +49,7 @@ func (h HrisTimeOffRequestsUpdateRequest) MarshalJSON() ([]byte, error) { } func (h *HrisTimeOffRequestsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "employee_id", "TimeOffRequest"}); err != nil { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"id", "employee_id", "body"}); err != nil { return err } return nil @@ -97,11 +97,11 @@ func (o *HrisTimeOffRequestsUpdateRequest) GetEmployeeID() string { return o.EmployeeID } -func (o *HrisTimeOffRequestsUpdateRequest) GetTimeOffRequest() components.TimeOffRequestInput { +func (o *HrisTimeOffRequestsUpdateRequest) GetBody() components.TimeOffRequestInput { if o == nil { return components.TimeOffRequestInput{} } - return o.TimeOffRequest + return o.Body } type HrisTimeOffRequestsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsadd.go index 162bd9276..c9bce2418 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsadd.go @@ -40,8 +40,8 @@ type IssueTrackingCollectionTicketCommentsAddRequest struct { // The collection ID CollectionID string `pathParam:"style=simple,explode=false,name=collection_id"` // ID of the ticket you are acting upon. - TicketID string `pathParam:"style=simple,explode=false,name=ticket_id"` - CollectionTicketComment components.CollectionTicketCommentInput `request:"mediaType=application/json"` + TicketID string `pathParam:"style=simple,explode=false,name=ticket_id"` + Body components.CollectionTicketCommentInput `request:"mediaType=application/json"` } func (i IssueTrackingCollectionTicketCommentsAddRequest) MarshalJSON() ([]byte, error) { @@ -49,7 +49,7 @@ func (i IssueTrackingCollectionTicketCommentsAddRequest) MarshalJSON() ([]byte, } func (i *IssueTrackingCollectionTicketCommentsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, []string{"collection_id", "ticket_id", "CollectionTicketComment"}); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"collection_id", "ticket_id", "body"}); err != nil { return err } return nil @@ -97,11 +97,11 @@ func (o *IssueTrackingCollectionTicketCommentsAddRequest) GetTicketID() string { return o.TicketID } -func (o *IssueTrackingCollectionTicketCommentsAddRequest) GetCollectionTicketComment() components.CollectionTicketCommentInput { +func (o *IssueTrackingCollectionTicketCommentsAddRequest) GetBody() components.CollectionTicketCommentInput { if o == nil { return components.CollectionTicketCommentInput{} } - return o.CollectionTicketComment + return o.Body } type IssueTrackingCollectionTicketCommentsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsupdate.go index 89670b814..b3aae96ac 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketcommentsupdate.go @@ -42,8 +42,8 @@ type IssueTrackingCollectionTicketCommentsUpdateRequest struct { // The collection ID CollectionID string `pathParam:"style=simple,explode=false,name=collection_id"` // ID of the ticket you are acting upon. - TicketID string `pathParam:"style=simple,explode=false,name=ticket_id"` - CollectionTicketComment components.CollectionTicketCommentInput `request:"mediaType=application/json"` + TicketID string `pathParam:"style=simple,explode=false,name=ticket_id"` + Body components.CollectionTicketCommentInput `request:"mediaType=application/json"` } func (i IssueTrackingCollectionTicketCommentsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -51,7 +51,7 @@ func (i IssueTrackingCollectionTicketCommentsUpdateRequest) MarshalJSON() ([]byt } func (i *IssueTrackingCollectionTicketCommentsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, []string{"id", "collection_id", "ticket_id", "CollectionTicketComment"}); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"id", "collection_id", "ticket_id", "body"}); err != nil { return err } return nil @@ -106,11 +106,11 @@ func (o *IssueTrackingCollectionTicketCommentsUpdateRequest) GetTicketID() strin return o.TicketID } -func (o *IssueTrackingCollectionTicketCommentsUpdateRequest) GetCollectionTicketComment() components.CollectionTicketCommentInput { +func (o *IssueTrackingCollectionTicketCommentsUpdateRequest) GetBody() components.CollectionTicketCommentInput { if o == nil { return components.CollectionTicketCommentInput{} } - return o.CollectionTicketComment + return o.Body } type IssueTrackingCollectionTicketCommentsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsadd.go index 6cedd8883..7e44f5ba3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsadd.go @@ -39,7 +39,7 @@ type IssueTrackingCollectionTicketsAddRequest struct { ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // The collection ID CollectionID string `pathParam:"style=simple,explode=false,name=collection_id"` - Ticket components.TicketInput `request:"mediaType=application/json"` + Body components.TicketInput `request:"mediaType=application/json"` } func (i IssueTrackingCollectionTicketsAddRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (i IssueTrackingCollectionTicketsAddRequest) MarshalJSON() ([]byte, error) } func (i *IssueTrackingCollectionTicketsAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, []string{"collection_id", "Ticket"}); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"collection_id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *IssueTrackingCollectionTicketsAddRequest) GetCollectionID() string { return o.CollectionID } -func (o *IssueTrackingCollectionTicketsAddRequest) GetTicket() components.TicketInput { +func (o *IssueTrackingCollectionTicketsAddRequest) GetBody() components.TicketInput { if o == nil { return components.TicketInput{} } - return o.Ticket + return o.Body } type IssueTrackingCollectionTicketsAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsupdate.go index 96bc82663..a0ff2bfcd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/issuetrackingcollectionticketsupdate.go @@ -41,7 +41,7 @@ type IssueTrackingCollectionTicketsUpdateRequest struct { Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` // The collection ID CollectionID string `pathParam:"style=simple,explode=false,name=collection_id"` - Ticket components.TicketInput `request:"mediaType=application/json"` + Body components.TicketInput `request:"mediaType=application/json"` } func (i IssueTrackingCollectionTicketsUpdateRequest) MarshalJSON() ([]byte, error) { @@ -49,7 +49,7 @@ func (i IssueTrackingCollectionTicketsUpdateRequest) MarshalJSON() ([]byte, erro } func (i *IssueTrackingCollectionTicketsUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, []string{"ticket_id", "collection_id", "Ticket"}); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"ticket_id", "collection_id", "body"}); err != nil { return err } return nil @@ -97,11 +97,11 @@ func (o *IssueTrackingCollectionTicketsUpdateRequest) GetCollectionID() string { return o.CollectionID } -func (o *IssueTrackingCollectionTicketsUpdateRequest) GetTicket() components.TicketInput { +func (o *IssueTrackingCollectionTicketsUpdateRequest) GetBody() components.TicketInput { if o == nil { return components.TicketInput{} } - return o.Ticket + return o.Body } type IssueTrackingCollectionTicketsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesadd.go index e5ae41b57..5d7c5ff62 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesadd.go @@ -37,7 +37,7 @@ type SmsMessagesAddRequest struct { AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` - Message components.MessageInput `request:"mediaType=application/json"` + Body components.MessageInput `request:"mediaType=application/json"` } func (s SmsMessagesAddRequest) MarshalJSON() ([]byte, error) { @@ -45,7 +45,7 @@ func (s SmsMessagesAddRequest) MarshalJSON() ([]byte, error) { } func (s *SmsMessagesAddRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"Message"}); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"body"}); err != nil { return err } return nil @@ -79,11 +79,11 @@ func (o *SmsMessagesAddRequest) GetServiceID() *string { return o.ServiceID } -func (o *SmsMessagesAddRequest) GetMessage() components.MessageInput { +func (o *SmsMessagesAddRequest) GetBody() components.MessageInput { if o == nil { return components.MessageInput{} } - return o.Message + return o.Body } type SmsMessagesAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesupdate.go index 0543d4f78..22936cc92 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/smsmessagesupdate.go @@ -38,8 +38,8 @@ type SmsMessagesUpdateRequest struct { // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` // Include raw response. Mostly used for debugging purposes - Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` - Message components.MessageInput `request:"mediaType=application/json"` + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Body components.MessageInput `request:"mediaType=application/json"` } func (s SmsMessagesUpdateRequest) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (s SmsMessagesUpdateRequest) MarshalJSON() ([]byte, error) { } func (s *SmsMessagesUpdateRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"id", "Message"}); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"id", "body"}); err != nil { return err } return nil @@ -88,11 +88,11 @@ func (o *SmsMessagesUpdateRequest) GetRaw() *bool { return o.Raw } -func (o *SmsMessagesUpdateRequest) GetMessage() components.MessageInput { +func (o *SmsMessagesUpdateRequest) GetBody() components.MessageInput { if o == nil { return components.MessageInput{} } - return o.Message + return o.Body } type SmsMessagesUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionconsentupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionconsentupdate.go index 47517e479..e238044f9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionconsentupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionconsentupdate.go @@ -37,7 +37,7 @@ type VaultConnectionConsentUpdateRequest struct { // Unified API UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` // New consent state - UpdateConsentRequest components.UpdateConsentRequest `request:"mediaType=application/json"` + Body components.UpdateConsentRequest `request:"mediaType=application/json"` } func (o *VaultConnectionConsentUpdateRequest) GetConsumerID() *string { @@ -68,11 +68,11 @@ func (o *VaultConnectionConsentUpdateRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultConnectionConsentUpdateRequest) GetUpdateConsentRequest() components.UpdateConsentRequest { +func (o *VaultConnectionConsentUpdateRequest) GetBody() components.UpdateConsentRequest { if o == nil { return components.UpdateConsentRequest{} } - return o.UpdateConsentRequest + return o.Body } type VaultConnectionConsentUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsettingsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsettingsupdate.go index db44509fc..3cc6c9788 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsettingsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsettingsupdate.go @@ -39,7 +39,7 @@ type VaultConnectionSettingsUpdateRequest struct { // Name of the resource (plural) Resource string `pathParam:"style=simple,explode=false,name=resource"` // Fields that need to be updated on the resource - Connection components.ConnectionInput `request:"mediaType=application/json"` + Body components.ConnectionInput `request:"mediaType=application/json"` } func (o *VaultConnectionSettingsUpdateRequest) GetConsumerID() *string { @@ -77,11 +77,11 @@ func (o *VaultConnectionSettingsUpdateRequest) GetResource() string { return o.Resource } -func (o *VaultConnectionSettingsUpdateRequest) GetConnection() components.ConnectionInput { +func (o *VaultConnectionSettingsUpdateRequest) GetBody() components.ConnectionInput { if o == nil { return components.ConnectionInput{} } - return o.Connection + return o.Body } type VaultConnectionSettingsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsimport.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsimport.go index 33b21b60d..0b513baac 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsimport.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsimport.go @@ -37,7 +37,7 @@ type VaultConnectionsImportRequest struct { // Unified API UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` // Fields that need to be persisted on the resource - ConnectionImportData components.ConnectionImportData `request:"mediaType=application/json"` + Body components.ConnectionImportData `request:"mediaType=application/json"` } func (o *VaultConnectionsImportRequest) GetConsumerID() *string { @@ -68,11 +68,11 @@ func (o *VaultConnectionsImportRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultConnectionsImportRequest) GetConnectionImportData() components.ConnectionImportData { +func (o *VaultConnectionsImportRequest) GetBody() components.ConnectionImportData { if o == nil { return components.ConnectionImportData{} } - return o.ConnectionImportData + return o.Body } type VaultConnectionsImportResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionstoken.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionstoken.go index 55e96f5ad..e261add45 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionstoken.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionstoken.go @@ -38,8 +38,8 @@ type VaultConnectionsTokenRequest struct { // Service ID of the resource to return ServiceID string `pathParam:"style=simple,explode=false,name=service_id"` // Unified API - UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` - RequestBody *VaultConnectionsTokenRequestBody `request:"mediaType=application/json"` + UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` + Body *VaultConnectionsTokenRequestBody `request:"mediaType=application/json"` } func (o *VaultConnectionsTokenRequest) GetConsumerID() *string { @@ -70,11 +70,11 @@ func (o *VaultConnectionsTokenRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultConnectionsTokenRequest) GetRequestBody() *VaultConnectionsTokenRequestBody { +func (o *VaultConnectionsTokenRequest) GetBody() *VaultConnectionsTokenRequestBody { if o == nil { return nil } - return o.RequestBody + return o.Body } type VaultConnectionsTokenResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsupdate.go index 436747a64..32f2bd0a1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconnectionsupdate.go @@ -37,7 +37,7 @@ type VaultConnectionsUpdateRequest struct { // Unified API UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` // Fields that need to be updated on the resource - Connection components.ConnectionInput `request:"mediaType=application/json"` + Body components.ConnectionInput `request:"mediaType=application/json"` } func (o *VaultConnectionsUpdateRequest) GetConsumerID() *string { @@ -68,11 +68,11 @@ func (o *VaultConnectionsUpdateRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultConnectionsUpdateRequest) GetConnection() components.ConnectionInput { +func (o *VaultConnectionsUpdateRequest) GetBody() components.ConnectionInput { if o == nil { return components.ConnectionInput{} } - return o.Connection + return o.Body } type VaultConnectionsUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersadd.go index 8de169534..a198f6774 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersadd.go @@ -20,8 +20,8 @@ func (o *VaultConsumersAddGlobals) GetAppID() *string { type VaultConsumersAddRequest struct { // The ID of your Unify application - AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` - CreateConsumerRequest components.CreateConsumerRequest `request:"mediaType=application/json"` + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + Body components.CreateConsumerRequest `request:"mediaType=application/json"` } func (o *VaultConsumersAddRequest) GetAppID() *string { @@ -31,11 +31,11 @@ func (o *VaultConsumersAddRequest) GetAppID() *string { return o.AppID } -func (o *VaultConsumersAddRequest) GetCreateConsumerRequest() components.CreateConsumerRequest { +func (o *VaultConsumersAddRequest) GetBody() components.CreateConsumerRequest { if o == nil { return components.CreateConsumerRequest{} } - return o.CreateConsumerRequest + return o.Body } type VaultConsumersAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersupdate.go index cc4e0368d..e600fc27c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultconsumersupdate.go @@ -22,8 +22,8 @@ type VaultConsumersUpdateRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // ID of the consumer to return - ConsumerID string `pathParam:"style=simple,explode=false,name=consumer_id"` - UpdateConsumerRequest components.UpdateConsumerRequest `request:"mediaType=application/json"` + ConsumerID string `pathParam:"style=simple,explode=false,name=consumer_id"` + Body components.UpdateConsumerRequest `request:"mediaType=application/json"` } func (o *VaultConsumersUpdateRequest) GetAppID() *string { @@ -40,11 +40,11 @@ func (o *VaultConsumersUpdateRequest) GetConsumerID() string { return o.ConsumerID } -func (o *VaultConsumersUpdateRequest) GetUpdateConsumerRequest() components.UpdateConsumerRequest { +func (o *VaultConsumersUpdateRequest) GetBody() components.UpdateConsumerRequest { if o == nil { return components.UpdateConsumerRequest{} } - return o.UpdateConsumerRequest + return o.Body } type VaultConsumersUpdateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultcreatecallbackstate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultcreatecallbackstate.go index fe29fe535..866d6528f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultcreatecallbackstate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultcreatecallbackstate.go @@ -37,7 +37,7 @@ type VaultCreateCallbackStateRequest struct { // Unified API UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` // Callback state data - CreateCallbackState components.CreateCallbackState `request:"mediaType=application/json"` + Body components.CreateCallbackState `request:"mediaType=application/json"` } func (o *VaultCreateCallbackStateRequest) GetConsumerID() *string { @@ -68,11 +68,11 @@ func (o *VaultCreateCallbackStateRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultCreateCallbackStateRequest) GetCreateCallbackState() components.CreateCallbackState { +func (o *VaultCreateCallbackStateRequest) GetBody() components.CreateCallbackState { if o == nil { return components.CreateCallbackState{} } - return o.CreateCallbackState + return o.Body } type VaultCreateCallbackStateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultsessionscreate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultsessionscreate.go index e6599fbc9..cb946028d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultsessionscreate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultsessionscreate.go @@ -33,7 +33,7 @@ type VaultSessionsCreateRequest struct { // The ID of your Unify application AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` // Additional redirect uri and/or consumer metadata - Session *components.Session `request:"mediaType=application/json"` + Body *components.Session `request:"mediaType=application/json"` } func (o *VaultSessionsCreateRequest) GetConsumerID() *string { @@ -50,11 +50,11 @@ func (o *VaultSessionsCreateRequest) GetAppID() *string { return o.AppID } -func (o *VaultSessionsCreateRequest) GetSession() *components.Session { +func (o *VaultSessionsCreateRequest) GetBody() *components.Session { if o == nil { return nil } - return o.Session + return o.Body } type VaultSessionsCreateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/vaultvalidateconnectionstate.go b/src/__tests__/mockserver/internal/sdk/models/operations/vaultvalidateconnectionstate.go index aee469154..55fead9be 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/vaultvalidateconnectionstate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/vaultvalidateconnectionstate.go @@ -38,8 +38,8 @@ type VaultValidateConnectionStateRequest struct { // Service ID of the resource to return ServiceID string `pathParam:"style=simple,explode=false,name=service_id"` // Unified API - UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` - RequestBody *VaultValidateConnectionStateRequestBody `request:"mediaType=application/json"` + UnifiedAPI string `pathParam:"style=simple,explode=false,name=unified_api"` + Body *VaultValidateConnectionStateRequestBody `request:"mediaType=application/json"` } func (o *VaultValidateConnectionStateRequest) GetConsumerID() *string { @@ -70,11 +70,11 @@ func (o *VaultValidateConnectionStateRequest) GetUnifiedAPI() string { return o.UnifiedAPI } -func (o *VaultValidateConnectionStateRequest) GetRequestBody() *VaultValidateConnectionStateRequestBody { +func (o *VaultValidateConnectionStateRequest) GetBody() *VaultValidateConnectionStateRequestBody { if o == nil { return nil } - return o.RequestBody + return o.Body } type VaultValidateConnectionStateResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksadd.go index 97a835b35..1c201d9ea 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksadd.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksadd.go @@ -20,8 +20,8 @@ func (o *WebhookWebhooksAddGlobals) GetAppID() *string { type WebhookWebhooksAddRequest struct { // The ID of your Unify application - AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` - CreateWebhookRequest components.CreateWebhookRequest `request:"mediaType=application/json"` + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + Body components.CreateWebhookRequest `request:"mediaType=application/json"` } func (o *WebhookWebhooksAddRequest) GetAppID() *string { @@ -31,11 +31,11 @@ func (o *WebhookWebhooksAddRequest) GetAppID() *string { return o.AppID } -func (o *WebhookWebhooksAddRequest) GetCreateWebhookRequest() components.CreateWebhookRequest { +func (o *WebhookWebhooksAddRequest) GetBody() components.CreateWebhookRequest { if o == nil { return components.CreateWebhookRequest{} } - return o.CreateWebhookRequest + return o.Body } type WebhookWebhooksAddResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksupdate.go index 2e3699266..fe2f8c768 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksupdate.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksupdate.go @@ -22,8 +22,8 @@ type WebhookWebhooksUpdateRequest struct { // JWT Webhook token that represents the unifiedApi and applicationId associated to the event source. ID string `pathParam:"style=simple,explode=false,name=id"` // The ID of your Unify application - AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` - UpdateWebhookRequest components.UpdateWebhookRequest `request:"mediaType=application/json"` + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + Body components.UpdateWebhookRequest `request:"mediaType=application/json"` } func (o *WebhookWebhooksUpdateRequest) GetID() string { @@ -40,11 +40,11 @@ func (o *WebhookWebhooksUpdateRequest) GetAppID() *string { return o.AppID } -func (o *WebhookWebhooksUpdateRequest) GetUpdateWebhookRequest() components.UpdateWebhookRequest { +func (o *WebhookWebhooksUpdateRequest) GetBody() components.UpdateWebhookRequest { if o == nil { return components.UpdateWebhookRequest{} } - return o.UpdateWebhookRequest + return o.Body } type WebhookWebhooksUpdateResponse struct { diff --git a/src/__tests__/projects.test.ts b/src/__tests__/projects.test.ts index 7af65bc94..068b4fe27 100644 --- a/src/__tests__/projects.test.ts +++ b/src/__tests__/projects.test.ts @@ -111,6 +111,7 @@ test("Projects Accounting Projects Add", async () => { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ @@ -367,6 +368,7 @@ test("Projects Accounting Projects Update", async () => { phase: "execution", taxRate: { id: "123456", + code: "N-T", rate: 10, }, trackingCategories: [ diff --git a/src/lib/config.ts b/src/lib/config.ts index bfce7c493..5a387fbbd 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "10.21.11", - sdkVersion: "0.34.0", - genVersion: "2.737.0", - userAgent: "speakeasy-sdk/typescript 0.34.0 2.737.0 10.21.11 @apideck/unify", + sdkVersion: "0.34.1", + genVersion: "2.743.2", + userAgent: "speakeasy-sdk/typescript 0.34.1 2.743.2 10.21.11 @apideck/unify", } as const; diff --git a/src/models/components/accountingbankaccount.ts b/src/models/components/accountingbankaccount.ts index 4679b9856..edec36bc1 100644 --- a/src/models/components/accountingbankaccount.ts +++ b/src/models/components/accountingbankaccount.ts @@ -25,12 +25,6 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; /** * The type of bank account @@ -184,7 +178,7 @@ export type AccountingBankAccountInput = { * The type of bank account */ accountType?: AccountingBankAccountAccountType | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; /** * The name of the bank or financial institution */ @@ -248,44 +242,20 @@ export type AccountingBankAccountInput = { export const AccountingBankAccountAccountType$inboundSchema: z.ZodNativeEnum< typeof AccountingBankAccountAccountType > = z.nativeEnum(AccountingBankAccountAccountType); - /** @internal */ export const AccountingBankAccountAccountType$outboundSchema: z.ZodNativeEnum< typeof AccountingBankAccountAccountType > = AccountingBankAccountAccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountAccountType$ { - /** @deprecated use `AccountingBankAccountAccountType$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountAccountType$inboundSchema; - /** @deprecated use `AccountingBankAccountAccountType$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountAccountType$outboundSchema; -} - /** @internal */ export const AccountingBankAccountStatus$inboundSchema: z.ZodNativeEnum< typeof AccountingBankAccountStatus > = z.nativeEnum(AccountingBankAccountStatus); - /** @internal */ export const AccountingBankAccountStatus$outboundSchema: z.ZodNativeEnum< typeof AccountingBankAccountStatus > = AccountingBankAccountStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountStatus$ { - /** @deprecated use `AccountingBankAccountStatus$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountStatus$inboundSchema; - /** @deprecated use `AccountingBankAccountStatus$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountStatus$outboundSchema; -} - /** @internal */ export const AccountingBankAccount$inboundSchema: z.ZodType< AccountingBankAccount, @@ -344,111 +314,6 @@ export const AccountingBankAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccount$Outbound = { - id: string; - display_id?: string | null | undefined; - name?: string | null | undefined; - account_number?: string | null | undefined; - account_type?: string | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - bank_name?: string | null | undefined; - currency?: string | null | undefined; - balance?: number | null | undefined; - available_balance?: number | null | undefined; - overdraft_limit?: number | null | undefined; - routing_number?: string | null | undefined; - iban?: string | null | undefined; - bic?: string | null | undefined; - bsb_number?: string | null | undefined; - branch_identifier?: string | null | undefined; - bank_code?: string | null | undefined; - country?: string | null | undefined; - status?: string | null | undefined; - description?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - created_by?: string | null | undefined; - updated_by?: string | null | undefined; -}; - -/** @internal */ -export const AccountingBankAccount$outboundSchema: z.ZodType< - AccountingBankAccount$Outbound, - z.ZodTypeDef, - AccountingBankAccount -> = z.object({ - id: z.string(), - displayId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - accountNumber: z.nullable(z.string()).optional(), - accountType: AccountingBankAccountAccountType$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - bankName: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - balance: z.nullable(z.number()).optional(), - availableBalance: z.nullable(z.number()).optional(), - overdraftLimit: z.nullable(z.number()).optional(), - routingNumber: z.nullable(z.string()).optional(), - iban: z.nullable(z.string()).optional(), - bic: z.nullable(z.string()).optional(), - bsbNumber: z.nullable(z.string()).optional(), - branchIdentifier: z.nullable(z.string()).optional(), - bankCode: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - status: z.nullable(AccountingBankAccountStatus$outboundSchema).optional(), - description: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - accountNumber: "account_number", - accountType: "account_type", - ledgerAccount: "ledger_account", - bankName: "bank_name", - availableBalance: "available_balance", - overdraftLimit: "overdraft_limit", - routingNumber: "routing_number", - bsbNumber: "bsb_number", - branchIdentifier: "branch_identifier", - bankCode: "bank_code", - customFields: "custom_fields", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - createdBy: "created_by", - updatedBy: "updated_by", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccount$ { - /** @deprecated use `AccountingBankAccount$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccount$inboundSchema; - /** @deprecated use `AccountingBankAccount$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccount$outboundSchema; - /** @deprecated use `AccountingBankAccount$Outbound` instead. */ - export type Outbound = AccountingBankAccount$Outbound; -} - -export function accountingBankAccountToJSON( - accountingBankAccount: AccountingBankAccount, -): string { - return JSON.stringify( - AccountingBankAccount$outboundSchema.parse(accountingBankAccount), - ); -} - export function accountingBankAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -459,56 +324,13 @@ export function accountingBankAccountFromJSON( ); } -/** @internal */ -export const AccountingBankAccountInput$inboundSchema: z.ZodType< - AccountingBankAccountInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - account_number: z.nullable(z.string()).optional(), - account_type: AccountingBankAccountAccountType$inboundSchema.optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - bank_name: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - balance: z.nullable(z.number()).optional(), - available_balance: z.nullable(z.number()).optional(), - overdraft_limit: z.nullable(z.number()).optional(), - routing_number: z.nullable(z.string()).optional(), - iban: z.nullable(z.string()).optional(), - bic: z.nullable(z.string()).optional(), - bsb_number: z.nullable(z.string()).optional(), - branch_identifier: z.nullable(z.string()).optional(), - bank_code: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - status: z.nullable(AccountingBankAccountStatus$inboundSchema).optional(), - description: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "account_number": "accountNumber", - "account_type": "accountType", - "ledger_account": "ledgerAccount", - "bank_name": "bankName", - "available_balance": "availableBalance", - "overdraft_limit": "overdraftLimit", - "routing_number": "routingNumber", - "bsb_number": "bsbNumber", - "branch_identifier": "branchIdentifier", - "bank_code": "bankCode", - "custom_fields": "customFields", - }); -}); - /** @internal */ export type AccountingBankAccountInput$Outbound = { display_id?: string | null | undefined; name?: string | null | undefined; account_number?: string | null | undefined; account_type?: string | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; bank_name?: string | null | undefined; currency?: string | null | undefined; balance?: number | null | undefined; @@ -536,7 +358,7 @@ export const AccountingBankAccountInput$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), accountNumber: z.nullable(z.string()).optional(), accountType: AccountingBankAccountAccountType$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), bankName: z.nullable(z.string()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), balance: z.nullable(z.number()).optional(), @@ -569,19 +391,6 @@ export const AccountingBankAccountInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountInput$ { - /** @deprecated use `AccountingBankAccountInput$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountInput$inboundSchema; - /** @deprecated use `AccountingBankAccountInput$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountInput$outboundSchema; - /** @deprecated use `AccountingBankAccountInput$Outbound` instead. */ - export type Outbound = AccountingBankAccountInput$Outbound; -} - export function accountingBankAccountInputToJSON( accountingBankAccountInput: AccountingBankAccountInput, ): string { @@ -589,13 +398,3 @@ export function accountingBankAccountInputToJSON( AccountingBankAccountInput$outboundSchema.parse(accountingBankAccountInput), ); } - -export function accountingBankAccountInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountInput' from JSON`, - ); -} diff --git a/src/models/components/accountingdepartment.ts b/src/models/components/accountingdepartment.ts index 9073d6e9d..ba901e29e 100644 --- a/src/models/components/accountingdepartment.ts +++ b/src/models/components/accountingdepartment.ts @@ -17,12 +17,9 @@ import { import { SubsidiaryReference, SubsidiaryReference$inboundSchema, - SubsidiaryReference$Outbound, - SubsidiaryReference$outboundSchema, } from "./subsidiaryreference.js"; import { SubsidiaryReferenceInput, - SubsidiaryReferenceInput$inboundSchema, SubsidiaryReferenceInput$Outbound, SubsidiaryReferenceInput$outboundSchema, } from "./subsidiaryreferenceinput.js"; @@ -123,23 +120,11 @@ export type AccountingDepartmentInput = { export const DepartmentStatus$inboundSchema: z.ZodNativeEnum< typeof DepartmentStatus > = z.nativeEnum(DepartmentStatus); - /** @internal */ export const DepartmentStatus$outboundSchema: z.ZodNativeEnum< typeof DepartmentStatus > = DepartmentStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DepartmentStatus$ { - /** @deprecated use `DepartmentStatus$inboundSchema` instead. */ - export const inboundSchema = DepartmentStatus$inboundSchema; - /** @deprecated use `DepartmentStatus$outboundSchema` instead. */ - export const outboundSchema = DepartmentStatus$outboundSchema; -} - /** @internal */ export const AccountingDepartment$inboundSchema: z.ZodType< AccountingDepartment, @@ -176,76 +161,6 @@ export const AccountingDepartment$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartment$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - name?: string | null | undefined; - status?: string | undefined; - subsidiaries?: Array | undefined; - code?: string | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const AccountingDepartment$outboundSchema: z.ZodType< - AccountingDepartment$Outbound, - z.ZodTypeDef, - AccountingDepartment -> = z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - status: DepartmentStatus$outboundSchema.optional(), - subsidiaries: z.array(SubsidiaryReference$outboundSchema).optional(), - code: z.string().optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartment$ { - /** @deprecated use `AccountingDepartment$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartment$inboundSchema; - /** @deprecated use `AccountingDepartment$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartment$outboundSchema; - /** @deprecated use `AccountingDepartment$Outbound` instead. */ - export type Outbound = AccountingDepartment$Outbound; -} - -export function accountingDepartmentToJSON( - accountingDepartment: AccountingDepartment, -): string { - return JSON.stringify( - AccountingDepartment$outboundSchema.parse(accountingDepartment), - ); -} - export function accountingDepartmentFromJSON( jsonString: string, ): SafeParseResult { @@ -256,27 +171,6 @@ export function accountingDepartmentFromJSON( ); } -/** @internal */ -export const AccountingDepartmentInput$inboundSchema: z.ZodType< - AccountingDepartmentInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - status: DepartmentStatus$inboundSchema.optional(), - subsidiaries: z.array(SubsidiaryReferenceInput$inboundSchema).optional(), - code: z.string().optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingDepartmentInput$Outbound = { parent_id?: string | null | undefined; @@ -309,19 +203,6 @@ export const AccountingDepartmentInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentInput$ { - /** @deprecated use `AccountingDepartmentInput$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentInput$inboundSchema; - /** @deprecated use `AccountingDepartmentInput$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentInput$outboundSchema; - /** @deprecated use `AccountingDepartmentInput$Outbound` instead. */ - export type Outbound = AccountingDepartmentInput$Outbound; -} - export function accountingDepartmentInputToJSON( accountingDepartmentInput: AccountingDepartmentInput, ): string { @@ -329,13 +210,3 @@ export function accountingDepartmentInputToJSON( AccountingDepartmentInput$outboundSchema.parse(accountingDepartmentInput), ); } - -export function accountingDepartmentInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentInput' from JSON`, - ); -} diff --git a/src/models/components/accountingdepartmentsfilter.ts b/src/models/components/accountingdepartmentsfilter.ts index bd57a0574..1ea802a12 100644 --- a/src/models/components/accountingdepartmentsfilter.ts +++ b/src/models/components/accountingdepartmentsfilter.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AccountingDepartmentsFilter = { /** @@ -14,15 +11,6 @@ export type AccountingDepartmentsFilter = { subsidiary?: string | undefined; }; -/** @internal */ -export const AccountingDepartmentsFilter$inboundSchema: z.ZodType< - AccountingDepartmentsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - subsidiary: z.string().optional(), -}); - /** @internal */ export type AccountingDepartmentsFilter$Outbound = { subsidiary?: string | undefined; @@ -37,19 +25,6 @@ export const AccountingDepartmentsFilter$outboundSchema: z.ZodType< subsidiary: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsFilter$ { - /** @deprecated use `AccountingDepartmentsFilter$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsFilter$inboundSchema; - /** @deprecated use `AccountingDepartmentsFilter$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsFilter$outboundSchema; - /** @deprecated use `AccountingDepartmentsFilter$Outbound` instead. */ - export type Outbound = AccountingDepartmentsFilter$Outbound; -} - export function accountingDepartmentsFilterToJSON( accountingDepartmentsFilter: AccountingDepartmentsFilter, ): string { @@ -59,13 +34,3 @@ export function accountingDepartmentsFilterToJSON( ), ); } - -export function accountingDepartmentsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsFilter' from JSON`, - ); -} diff --git a/src/models/components/accountinglocation.ts b/src/models/components/accountinglocation.ts index 3668e4856..ed325c8d0 100644 --- a/src/models/components/accountinglocation.ts +++ b/src/models/components/accountinglocation.ts @@ -23,12 +23,9 @@ import { import { SubsidiaryReference, SubsidiaryReference$inboundSchema, - SubsidiaryReference$Outbound, - SubsidiaryReference$outboundSchema, } from "./subsidiaryreference.js"; import { SubsidiaryReferenceInput, - SubsidiaryReferenceInput$inboundSchema, SubsidiaryReferenceInput$Outbound, SubsidiaryReferenceInput$outboundSchema, } from "./subsidiaryreferenceinput.js"; @@ -131,23 +128,11 @@ export type AccountingLocationInput = { export const LocationStatus$inboundSchema: z.ZodNativeEnum< typeof LocationStatus > = z.nativeEnum(LocationStatus); - /** @internal */ export const LocationStatus$outboundSchema: z.ZodNativeEnum< typeof LocationStatus > = LocationStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LocationStatus$ { - /** @deprecated use `LocationStatus$inboundSchema` instead. */ - export const inboundSchema = LocationStatus$inboundSchema; - /** @deprecated use `LocationStatus$outboundSchema` instead. */ - export const outboundSchema = LocationStatus$outboundSchema; -} - /** @internal */ export const AccountingLocation$inboundSchema: z.ZodType< AccountingLocation, @@ -187,80 +172,6 @@ export const AccountingLocation$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocation$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - company_name?: string | null | undefined; - display_name?: string | null | undefined; - status?: string | undefined; - addresses?: Array | undefined; - subsidiaries?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const AccountingLocation$outboundSchema: z.ZodType< - AccountingLocation$Outbound, - z.ZodTypeDef, - AccountingLocation -> = z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - status: LocationStatus$outboundSchema.optional(), - addresses: z.array(Address$outboundSchema).optional(), - subsidiaries: z.array(SubsidiaryReference$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - companyName: "company_name", - displayName: "display_name", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocation$ { - /** @deprecated use `AccountingLocation$inboundSchema` instead. */ - export const inboundSchema = AccountingLocation$inboundSchema; - /** @deprecated use `AccountingLocation$outboundSchema` instead. */ - export const outboundSchema = AccountingLocation$outboundSchema; - /** @deprecated use `AccountingLocation$Outbound` instead. */ - export type Outbound = AccountingLocation$Outbound; -} - -export function accountingLocationToJSON( - accountingLocation: AccountingLocation, -): string { - return JSON.stringify( - AccountingLocation$outboundSchema.parse(accountingLocation), - ); -} - export function accountingLocationFromJSON( jsonString: string, ): SafeParseResult { @@ -271,30 +182,6 @@ export function accountingLocationFromJSON( ); } -/** @internal */ -export const AccountingLocationInput$inboundSchema: z.ZodType< - AccountingLocationInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - display_name: z.nullable(z.string()).optional(), - status: LocationStatus$inboundSchema.optional(), - addresses: z.array(Address$inboundSchema).optional(), - subsidiaries: z.array(SubsidiaryReferenceInput$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "company_name": "companyName", - "display_name": "displayName", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingLocationInput$Outbound = { parent_id?: string | null | undefined; @@ -331,19 +218,6 @@ export const AccountingLocationInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationInput$ { - /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationInput$inboundSchema; - /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationInput$outboundSchema; - /** @deprecated use `AccountingLocationInput$Outbound` instead. */ - export type Outbound = AccountingLocationInput$Outbound; -} - export function accountingLocationInputToJSON( accountingLocationInput: AccountingLocationInput, ): string { @@ -351,13 +225,3 @@ export function accountingLocationInputToJSON( AccountingLocationInput$outboundSchema.parse(accountingLocationInput), ); } - -export function accountingLocationInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationInput' from JSON`, - ); -} diff --git a/src/models/components/accountinglocationsfilter.ts b/src/models/components/accountinglocationsfilter.ts index a8737f0a7..d08b1adb3 100644 --- a/src/models/components/accountinglocationsfilter.ts +++ b/src/models/components/accountinglocationsfilter.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AccountingLocationsFilter = { /** @@ -14,15 +11,6 @@ export type AccountingLocationsFilter = { subsidiary?: string | undefined; }; -/** @internal */ -export const AccountingLocationsFilter$inboundSchema: z.ZodType< - AccountingLocationsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - subsidiary: z.string().optional(), -}); - /** @internal */ export type AccountingLocationsFilter$Outbound = { subsidiary?: string | undefined; @@ -37,19 +25,6 @@ export const AccountingLocationsFilter$outboundSchema: z.ZodType< subsidiary: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsFilter$ { - /** @deprecated use `AccountingLocationsFilter$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsFilter$inboundSchema; - /** @deprecated use `AccountingLocationsFilter$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsFilter$outboundSchema; - /** @deprecated use `AccountingLocationsFilter$Outbound` instead. */ - export type Outbound = AccountingLocationsFilter$Outbound; -} - export function accountingLocationsFilterToJSON( accountingLocationsFilter: AccountingLocationsFilter, ): string { @@ -57,13 +32,3 @@ export function accountingLocationsFilterToJSON( AccountingLocationsFilter$outboundSchema.parse(accountingLocationsFilter), ); } - -export function accountingLocationsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsFilter' from JSON`, - ); -} diff --git a/src/models/components/activitiesfilter.ts b/src/models/components/activitiesfilter.ts index 3b51c5e38..74753b707 100644 --- a/src/models/components/activitiesfilter.ts +++ b/src/models/components/activitiesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ActivitiesFilter = { /** @@ -28,28 +25,6 @@ export type ActivitiesFilter = { type?: string | undefined; }; -/** @internal */ -export const ActivitiesFilter$inboundSchema: z.ZodType< - ActivitiesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - company_id: z.string().optional(), - owner_id: z.string().optional(), - contact_id: z.string().optional(), - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - type: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "company_id": "companyId", - "owner_id": "ownerId", - "contact_id": "contactId", - "updated_since": "updatedSince", - }); -}); - /** @internal */ export type ActivitiesFilter$Outbound = { company_id?: string | undefined; @@ -79,19 +54,6 @@ export const ActivitiesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivitiesFilter$ { - /** @deprecated use `ActivitiesFilter$inboundSchema` instead. */ - export const inboundSchema = ActivitiesFilter$inboundSchema; - /** @deprecated use `ActivitiesFilter$outboundSchema` instead. */ - export const outboundSchema = ActivitiesFilter$outboundSchema; - /** @deprecated use `ActivitiesFilter$Outbound` instead. */ - export type Outbound = ActivitiesFilter$Outbound; -} - export function activitiesFilterToJSON( activitiesFilter: ActivitiesFilter, ): string { @@ -99,13 +61,3 @@ export function activitiesFilterToJSON( ActivitiesFilter$outboundSchema.parse(activitiesFilter), ); } - -export function activitiesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActivitiesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActivitiesFilter' from JSON`, - ); -} diff --git a/src/models/components/activitiessort.ts b/src/models/components/activitiessort.ts index 56cf910a3..64a80f86a 100644 --- a/src/models/components/activitiessort.ts +++ b/src/models/components/activitiessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type ActivitiesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const ActivitiesSortBy$inboundSchema: z.ZodNativeEnum< - typeof ActivitiesSortBy -> = z.nativeEnum(ActivitiesSortBy); - /** @internal */ export const ActivitiesSortBy$outboundSchema: z.ZodNativeEnum< typeof ActivitiesSortBy -> = ActivitiesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivitiesSortBy$ { - /** @deprecated use `ActivitiesSortBy$inboundSchema` instead. */ - export const inboundSchema = ActivitiesSortBy$inboundSchema; - /** @deprecated use `ActivitiesSortBy$outboundSchema` instead. */ - export const outboundSchema = ActivitiesSortBy$outboundSchema; -} - -/** @internal */ -export const ActivitiesSort$inboundSchema: z.ZodType< - ActivitiesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: ActivitiesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(ActivitiesSortBy); /** @internal */ export type ActivitiesSort$Outbound = { @@ -83,29 +53,6 @@ export const ActivitiesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivitiesSort$ { - /** @deprecated use `ActivitiesSort$inboundSchema` instead. */ - export const inboundSchema = ActivitiesSort$inboundSchema; - /** @deprecated use `ActivitiesSort$outboundSchema` instead. */ - export const outboundSchema = ActivitiesSort$outboundSchema; - /** @deprecated use `ActivitiesSort$Outbound` instead. */ - export type Outbound = ActivitiesSort$Outbound; -} - export function activitiesSortToJSON(activitiesSort: ActivitiesSort): string { return JSON.stringify(ActivitiesSort$outboundSchema.parse(activitiesSort)); } - -export function activitiesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActivitiesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActivitiesSort' from JSON`, - ); -} diff --git a/src/models/components/activity.ts b/src/models/components/activity.ts index 55534494f..7e156f0b9 100644 --- a/src/models/components/activity.ts +++ b/src/models/components/activity.ts @@ -11,10 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ActivityAttendee, ActivityAttendee$inboundSchema, - ActivityAttendee$Outbound, - ActivityAttendee$outboundSchema, ActivityAttendeeInput, - ActivityAttendeeInput$inboundSchema, ActivityAttendeeInput$Outbound, ActivityAttendeeInput$outboundSchema, } from "./activityattendee.js"; @@ -437,41 +434,17 @@ export type ActivityInput = { /** @internal */ export const ActivityType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(ActivityType); - /** @internal */ export const ActivityType$outboundSchema: z.ZodNativeEnum = ActivityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivityType$ { - /** @deprecated use `ActivityType$inboundSchema` instead. */ - export const inboundSchema = ActivityType$inboundSchema; - /** @deprecated use `ActivityType$outboundSchema` instead. */ - export const outboundSchema = ActivityType$outboundSchema; -} - /** @internal */ export const ShowAs$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ShowAs); - /** @internal */ export const ShowAs$outboundSchema: z.ZodNativeEnum = ShowAs$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ShowAs$ { - /** @deprecated use `ShowAs$inboundSchema` instead. */ - export const inboundSchema = ShowAs$inboundSchema; - /** @deprecated use `ShowAs$outboundSchema` instead. */ - export const outboundSchema = ShowAs$outboundSchema; -} - /** @internal */ export const Activity$inboundSchema: z.ZodType< Activity, @@ -574,181 +547,6 @@ export const Activity$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Activity$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - activity_datetime?: string | null | undefined; - duration_seconds?: number | null | undefined; - user_id?: string | null | undefined; - account_id?: string | null | undefined; - contact_id?: string | null | undefined; - company_id?: string | null | undefined; - opportunity_id?: string | null | undefined; - lead_id?: string | null | undefined; - owner_id?: string | null | undefined; - campaign_id?: string | null | undefined; - case_id?: string | null | undefined; - asset_id?: string | null | undefined; - contract_id?: string | null | undefined; - product_id?: string | null | undefined; - solution_id?: string | null | undefined; - custom_object_id?: string | null | undefined; - type: string | null; - title?: string | null | undefined; - description?: string | null | undefined; - note?: string | null | undefined; - location?: string | null | undefined; - location_address?: Address$Outbound | undefined; - all_day_event?: boolean | null | undefined; - private?: boolean | null | undefined; - group_event?: boolean | null | undefined; - event_sub_type?: string | null | undefined; - group_event_type?: string | null | undefined; - child?: boolean | null | undefined; - archived?: boolean | null | undefined; - deleted?: boolean | null | undefined; - show_as?: string | null | undefined; - done?: boolean | null | undefined; - start_datetime?: string | null | undefined; - end_datetime?: string | null | undefined; - duration_minutes?: number | null | undefined; - activity_date?: string | null | undefined; - end_date?: string | null | undefined; - recurrent?: boolean | undefined; - reminder_datetime?: string | null | undefined; - reminder_set?: boolean | null | undefined; - video_conference_url?: string | null | undefined; - video_conference_id?: string | null | undefined; - custom_fields?: Array | undefined; - attendees?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Activity$outboundSchema: z.ZodType< - Activity$Outbound, - z.ZodTypeDef, - Activity -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - activityDatetime: z.nullable(z.string()).optional(), - durationSeconds: z.nullable(z.number().int()).optional(), - userId: z.nullable(z.string()).optional(), - accountId: z.nullable(z.string()).optional(), - contactId: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - opportunityId: z.nullable(z.string()).optional(), - leadId: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - campaignId: z.nullable(z.string()).optional(), - caseId: z.nullable(z.string()).optional(), - assetId: z.nullable(z.string()).optional(), - contractId: z.nullable(z.string()).optional(), - productId: z.nullable(z.string()).optional(), - solutionId: z.nullable(z.string()).optional(), - customObjectId: z.nullable(z.string()).optional(), - type: z.nullable(ActivityType$outboundSchema), - title: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - note: z.nullable(z.string()).optional(), - location: z.nullable(z.string()).optional(), - locationAddress: Address$outboundSchema.optional(), - allDayEvent: z.nullable(z.boolean()).optional(), - private: z.nullable(z.boolean()).optional(), - groupEvent: z.nullable(z.boolean()).optional(), - eventSubType: z.nullable(z.string()).optional(), - groupEventType: z.nullable(z.string()).optional(), - child: z.nullable(z.boolean()).optional(), - archived: z.nullable(z.boolean()).optional(), - deleted: z.nullable(z.boolean()).optional(), - showAs: z.nullable(ShowAs$outboundSchema).optional(), - done: z.nullable(z.boolean()).optional(), - startDatetime: z.nullable(z.string()).optional(), - endDatetime: z.nullable(z.string()).optional(), - durationMinutes: z.nullable(z.number().int()).optional(), - activityDate: z.nullable(z.string()).optional(), - endDate: z.nullable(z.string()).optional(), - recurrent: z.boolean().optional(), - reminderDatetime: z.nullable(z.string()).optional(), - reminderSet: z.nullable(z.boolean()).optional(), - videoConferenceUrl: z.nullable(z.string()).optional(), - videoConferenceId: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - attendees: z.array(ActivityAttendee$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - activityDatetime: "activity_datetime", - durationSeconds: "duration_seconds", - userId: "user_id", - accountId: "account_id", - contactId: "contact_id", - companyId: "company_id", - opportunityId: "opportunity_id", - leadId: "lead_id", - ownerId: "owner_id", - campaignId: "campaign_id", - caseId: "case_id", - assetId: "asset_id", - contractId: "contract_id", - productId: "product_id", - solutionId: "solution_id", - customObjectId: "custom_object_id", - locationAddress: "location_address", - allDayEvent: "all_day_event", - groupEvent: "group_event", - eventSubType: "event_sub_type", - groupEventType: "group_event_type", - showAs: "show_as", - startDatetime: "start_datetime", - endDatetime: "end_datetime", - durationMinutes: "duration_minutes", - activityDate: "activity_date", - endDate: "end_date", - reminderDatetime: "reminder_datetime", - reminderSet: "reminder_set", - videoConferenceUrl: "video_conference_url", - videoConferenceId: "video_conference_id", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Activity$ { - /** @deprecated use `Activity$inboundSchema` instead. */ - export const inboundSchema = Activity$inboundSchema; - /** @deprecated use `Activity$outboundSchema` instead. */ - export const outboundSchema = Activity$outboundSchema; - /** @deprecated use `Activity$Outbound` instead. */ - export type Outbound = Activity$Outbound; -} - -export function activityToJSON(activity: Activity): string { - return JSON.stringify(Activity$outboundSchema.parse(activity)); -} - export function activityFromJSON( jsonString: string, ): SafeParseResult { @@ -759,93 +557,6 @@ export function activityFromJSON( ); } -/** @internal */ -export const ActivityInput$inboundSchema: z.ZodType< - ActivityInput, - z.ZodTypeDef, - unknown -> = z.object({ - activity_datetime: z.nullable(z.string()).optional(), - duration_seconds: z.nullable(z.number().int()).optional(), - user_id: z.nullable(z.string()).optional(), - account_id: z.nullable(z.string()).optional(), - contact_id: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - opportunity_id: z.nullable(z.string()).optional(), - lead_id: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - campaign_id: z.nullable(z.string()).optional(), - case_id: z.nullable(z.string()).optional(), - asset_id: z.nullable(z.string()).optional(), - contract_id: z.nullable(z.string()).optional(), - product_id: z.nullable(z.string()).optional(), - solution_id: z.nullable(z.string()).optional(), - custom_object_id: z.nullable(z.string()).optional(), - type: z.nullable(ActivityType$inboundSchema), - title: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - note: z.nullable(z.string()).optional(), - location: z.nullable(z.string()).optional(), - location_address: Address$inboundSchema.optional(), - all_day_event: z.nullable(z.boolean()).optional(), - private: z.nullable(z.boolean()).optional(), - group_event: z.nullable(z.boolean()).optional(), - event_sub_type: z.nullable(z.string()).optional(), - group_event_type: z.nullable(z.string()).optional(), - child: z.nullable(z.boolean()).optional(), - archived: z.nullable(z.boolean()).optional(), - deleted: z.nullable(z.boolean()).optional(), - show_as: z.nullable(ShowAs$inboundSchema).optional(), - done: z.nullable(z.boolean()).optional(), - start_datetime: z.nullable(z.string()).optional(), - end_datetime: z.nullable(z.string()).optional(), - activity_date: z.nullable(z.string()).optional(), - end_date: z.nullable(z.string()).optional(), - recurrent: z.boolean().optional(), - reminder_datetime: z.nullable(z.string()).optional(), - reminder_set: z.nullable(z.boolean()).optional(), - video_conference_url: z.nullable(z.string()).optional(), - video_conference_id: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - attendees: z.array(ActivityAttendeeInput$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "activity_datetime": "activityDatetime", - "duration_seconds": "durationSeconds", - "user_id": "userId", - "account_id": "accountId", - "contact_id": "contactId", - "company_id": "companyId", - "opportunity_id": "opportunityId", - "lead_id": "leadId", - "owner_id": "ownerId", - "campaign_id": "campaignId", - "case_id": "caseId", - "asset_id": "assetId", - "contract_id": "contractId", - "product_id": "productId", - "solution_id": "solutionId", - "custom_object_id": "customObjectId", - "location_address": "locationAddress", - "all_day_event": "allDayEvent", - "group_event": "groupEvent", - "event_sub_type": "eventSubType", - "group_event_type": "groupEventType", - "show_as": "showAs", - "start_datetime": "startDatetime", - "end_datetime": "endDatetime", - "activity_date": "activityDate", - "end_date": "endDate", - "reminder_datetime": "reminderDatetime", - "reminder_set": "reminderSet", - "video_conference_url": "videoConferenceUrl", - "video_conference_id": "videoConferenceId", - "custom_fields": "customFields", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type ActivityInput$Outbound = { activity_datetime?: string | null | undefined; @@ -981,29 +692,6 @@ export const ActivityInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivityInput$ { - /** @deprecated use `ActivityInput$inboundSchema` instead. */ - export const inboundSchema = ActivityInput$inboundSchema; - /** @deprecated use `ActivityInput$outboundSchema` instead. */ - export const outboundSchema = ActivityInput$outboundSchema; - /** @deprecated use `ActivityInput$Outbound` instead. */ - export type Outbound = ActivityInput$Outbound; -} - export function activityInputToJSON(activityInput: ActivityInput): string { return JSON.stringify(ActivityInput$outboundSchema.parse(activityInput)); } - -export function activityInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActivityInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActivityInput' from JSON`, - ); -} diff --git a/src/models/components/activityattendee.ts b/src/models/components/activityattendee.ts index 58d5ece6f..baf494574 100644 --- a/src/models/components/activityattendee.ts +++ b/src/models/components/activityattendee.ts @@ -124,23 +124,11 @@ export type ActivityAttendeeInput = { export const ActivityAttendeeStatus$inboundSchema: z.ZodNativeEnum< typeof ActivityAttendeeStatus > = z.nativeEnum(ActivityAttendeeStatus); - /** @internal */ export const ActivityAttendeeStatus$outboundSchema: z.ZodNativeEnum< typeof ActivityAttendeeStatus > = ActivityAttendeeStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivityAttendeeStatus$ { - /** @deprecated use `ActivityAttendeeStatus$inboundSchema` instead. */ - export const inboundSchema = ActivityAttendeeStatus$inboundSchema; - /** @deprecated use `ActivityAttendeeStatus$outboundSchema` instead. */ - export const outboundSchema = ActivityAttendeeStatus$outboundSchema; -} - /** @internal */ export const ActivityAttendee$inboundSchema: z.ZodType< ActivityAttendee, @@ -179,79 +167,6 @@ export const ActivityAttendee$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ActivityAttendee$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - first_name?: string | null | undefined; - middle_name?: string | null | undefined; - last_name?: string | null | undefined; - prefix?: string | null | undefined; - suffix?: string | null | undefined; - email_address?: string | null | undefined; - is_organizer?: boolean | null | undefined; - status?: string | null | undefined; - user_id?: string | null | undefined; - contact_id?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const ActivityAttendee$outboundSchema: z.ZodType< - ActivityAttendee$Outbound, - z.ZodTypeDef, - ActivityAttendee -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - emailAddress: z.nullable(z.string()).optional(), - isOrganizer: z.nullable(z.boolean()).optional(), - status: z.nullable(ActivityAttendeeStatus$outboundSchema).optional(), - userId: z.nullable(z.string()).optional(), - contactId: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - middleName: "middle_name", - lastName: "last_name", - emailAddress: "email_address", - isOrganizer: "is_organizer", - userId: "user_id", - contactId: "contact_id", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivityAttendee$ { - /** @deprecated use `ActivityAttendee$inboundSchema` instead. */ - export const inboundSchema = ActivityAttendee$inboundSchema; - /** @deprecated use `ActivityAttendee$outboundSchema` instead. */ - export const outboundSchema = ActivityAttendee$outboundSchema; - /** @deprecated use `ActivityAttendee$Outbound` instead. */ - export type Outbound = ActivityAttendee$Outbound; -} - -export function activityAttendeeToJSON( - activityAttendee: ActivityAttendee, -): string { - return JSON.stringify( - ActivityAttendee$outboundSchema.parse(activityAttendee), - ); -} - export function activityAttendeeFromJSON( jsonString: string, ): SafeParseResult { @@ -262,31 +177,6 @@ export function activityAttendeeFromJSON( ); } -/** @internal */ -export const ActivityAttendeeInput$inboundSchema: z.ZodType< - ActivityAttendeeInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - email_address: z.nullable(z.string()).optional(), - is_organizer: z.nullable(z.boolean()).optional(), - status: z.nullable(ActivityAttendeeStatus$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "middle_name": "middleName", - "last_name": "lastName", - "email_address": "emailAddress", - "is_organizer": "isOrganizer", - }); -}); - /** @internal */ export type ActivityAttendeeInput$Outbound = { name?: string | null | undefined; @@ -325,19 +215,6 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActivityAttendeeInput$ { - /** @deprecated use `ActivityAttendeeInput$inboundSchema` instead. */ - export const inboundSchema = ActivityAttendeeInput$inboundSchema; - /** @deprecated use `ActivityAttendeeInput$outboundSchema` instead. */ - export const outboundSchema = ActivityAttendeeInput$outboundSchema; - /** @deprecated use `ActivityAttendeeInput$Outbound` instead. */ - export type Outbound = ActivityAttendeeInput$Outbound; -} - export function activityAttendeeInputToJSON( activityAttendeeInput: ActivityAttendeeInput, ): string { @@ -345,13 +222,3 @@ export function activityAttendeeInputToJSON( ActivityAttendeeInput$outboundSchema.parse(activityAttendeeInput), ); } - -export function activityAttendeeInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActivityAttendeeInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActivityAttendeeInput' from JSON`, - ); -} diff --git a/src/models/components/address.ts b/src/models/components/address.ts index 09bf59854..4ef00cc4a 100644 --- a/src/models/components/address.ts +++ b/src/models/components/address.ts @@ -134,22 +134,10 @@ export type Address = { export const Type$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Type, ); - /** @internal */ export const Type$outboundSchema: z.ZodNativeEnum = Type$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Type$ { - /** @deprecated use `Type$inboundSchema` instead. */ - export const inboundSchema = Type$inboundSchema; - /** @deprecated use `Type$outboundSchema` instead. */ - export const outboundSchema = Type$outboundSchema; -} - /** @internal */ export const Address$inboundSchema: z.ZodType = z.object({ @@ -187,7 +175,6 @@ export const Address$inboundSchema: z.ZodType = "row_version": "rowVersion", }); }); - /** @internal */ export type Address$Outbound = { id?: string | null | undefined; @@ -258,23 +245,9 @@ export const Address$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Address$ { - /** @deprecated use `Address$inboundSchema` instead. */ - export const inboundSchema = Address$inboundSchema; - /** @deprecated use `Address$outboundSchema` instead. */ - export const outboundSchema = Address$outboundSchema; - /** @deprecated use `Address$Outbound` instead. */ - export type Outbound = Address$Outbound; -} - export function addressToJSON(address: Address): string { return JSON.stringify(Address$outboundSchema.parse(address)); } - export function addressFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/agedcreditors.ts b/src/models/components/agedcreditors.ts index 8956ba00f..da28911a5 100644 --- a/src/models/components/agedcreditors.ts +++ b/src/models/components/agedcreditors.ts @@ -11,8 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutstandingBalanceBySupplier, OutstandingBalanceBySupplier$inboundSchema, - OutstandingBalanceBySupplier$Outbound, - OutstandingBalanceBySupplier$outboundSchema, } from "./outstandingbalancebysupplier.js"; export type AgedCreditors = { @@ -59,56 +57,6 @@ export const AgedCreditors$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AgedCreditors$Outbound = { - report_generated_at?: string | undefined; - report_as_of_date?: string | undefined; - period_count: number; - period_length: number; - outstanding_balances?: - | Array - | undefined; -}; - -/** @internal */ -export const AgedCreditors$outboundSchema: z.ZodType< - AgedCreditors$Outbound, - z.ZodTypeDef, - AgedCreditors -> = z.object({ - reportGeneratedAt: z.date().transform(v => v.toISOString()).optional(), - reportAsOfDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), - periodCount: z.number().int().default(4), - periodLength: z.number().int().default(30), - outstandingBalances: z.array(OutstandingBalanceBySupplier$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - reportGeneratedAt: "report_generated_at", - reportAsOfDate: "report_as_of_date", - periodCount: "period_count", - periodLength: "period_length", - outstandingBalances: "outstanding_balances", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AgedCreditors$ { - /** @deprecated use `AgedCreditors$inboundSchema` instead. */ - export const inboundSchema = AgedCreditors$inboundSchema; - /** @deprecated use `AgedCreditors$outboundSchema` instead. */ - export const outboundSchema = AgedCreditors$outboundSchema; - /** @deprecated use `AgedCreditors$Outbound` instead. */ - export type Outbound = AgedCreditors$Outbound; -} - -export function agedCreditorsToJSON(agedCreditors: AgedCreditors): string { - return JSON.stringify(AgedCreditors$outboundSchema.parse(agedCreditors)); -} - export function agedCreditorsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ageddebtors.ts b/src/models/components/ageddebtors.ts index c279c356e..248b13bbe 100644 --- a/src/models/components/ageddebtors.ts +++ b/src/models/components/ageddebtors.ts @@ -11,8 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutstandingBalanceByCustomer, OutstandingBalanceByCustomer$inboundSchema, - OutstandingBalanceByCustomer$Outbound, - OutstandingBalanceByCustomer$outboundSchema, } from "./outstandingbalancebycustomer.js"; export type AgedDebtors = { @@ -59,56 +57,6 @@ export const AgedDebtors$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AgedDebtors$Outbound = { - report_generated_at?: string | undefined; - report_as_of_date?: string | undefined; - period_count: number; - period_length: number; - outstanding_balances?: - | Array - | undefined; -}; - -/** @internal */ -export const AgedDebtors$outboundSchema: z.ZodType< - AgedDebtors$Outbound, - z.ZodTypeDef, - AgedDebtors -> = z.object({ - reportGeneratedAt: z.date().transform(v => v.toISOString()).optional(), - reportAsOfDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), - periodCount: z.number().int().default(4), - periodLength: z.number().int().default(30), - outstandingBalances: z.array(OutstandingBalanceByCustomer$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - reportGeneratedAt: "report_generated_at", - reportAsOfDate: "report_as_of_date", - periodCount: "period_count", - periodLength: "period_length", - outstandingBalances: "outstanding_balances", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AgedDebtors$ { - /** @deprecated use `AgedDebtors$inboundSchema` instead. */ - export const inboundSchema = AgedDebtors$inboundSchema; - /** @deprecated use `AgedDebtors$outboundSchema` instead. */ - export const outboundSchema = AgedDebtors$outboundSchema; - /** @deprecated use `AgedDebtors$Outbound` instead. */ - export type Outbound = AgedDebtors$Outbound; -} - -export function agedDebtorsToJSON(agedDebtors: AgedDebtors): string { - return JSON.stringify(AgedDebtors$outboundSchema.parse(agedDebtors)); -} - export function agedDebtorsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/agedreportfilter.ts b/src/models/components/agedreportfilter.ts index ced238d3e..6c4df192c 100644 --- a/src/models/components/agedreportfilter.ts +++ b/src/models/components/agedreportfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AgedReportFilter = { /** @@ -31,27 +28,6 @@ export type AgedReportFilter = { periodLength?: number | undefined; }; -/** @internal */ -export const AgedReportFilter$inboundSchema: z.ZodType< - AgedReportFilter, - z.ZodTypeDef, - unknown -> = z.object({ - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - report_as_of_date: z.string().optional(), - period_count: z.number().int().optional(), - period_length: z.number().int().optional(), -}).transform((v) => { - return remap$(v, { - "customer_id": "customerId", - "supplier_id": "supplierId", - "report_as_of_date": "reportAsOfDate", - "period_count": "periodCount", - "period_length": "periodLength", - }); -}); - /** @internal */ export type AgedReportFilter$Outbound = { customer_id?: string | undefined; @@ -82,19 +58,6 @@ export const AgedReportFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AgedReportFilter$ { - /** @deprecated use `AgedReportFilter$inboundSchema` instead. */ - export const inboundSchema = AgedReportFilter$inboundSchema; - /** @deprecated use `AgedReportFilter$outboundSchema` instead. */ - export const outboundSchema = AgedReportFilter$outboundSchema; - /** @deprecated use `AgedReportFilter$Outbound` instead. */ - export type Outbound = AgedReportFilter$Outbound; -} - export function agedReportFilterToJSON( agedReportFilter: AgedReportFilter, ): string { @@ -102,13 +65,3 @@ export function agedReportFilterToJSON( AgedReportFilter$outboundSchema.parse(agedReportFilter), ); } - -export function agedReportFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AgedReportFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AgedReportFilter' from JSON`, - ); -} diff --git a/src/models/components/allocation.ts b/src/models/components/allocation.ts index 8aa6e529a..2c5b777fc 100644 --- a/src/models/components/allocation.ts +++ b/src/models/components/allocation.ts @@ -71,23 +71,11 @@ export type AllocationInput = { export const AllocationType$inboundSchema: z.ZodNativeEnum< typeof AllocationType > = z.nativeEnum(AllocationType); - /** @internal */ export const AllocationType$outboundSchema: z.ZodNativeEnum< typeof AllocationType > = AllocationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AllocationType$ { - /** @deprecated use `AllocationType$inboundSchema` instead. */ - export const inboundSchema = AllocationType$inboundSchema; - /** @deprecated use `AllocationType$outboundSchema` instead. */ - export const outboundSchema = AllocationType$outboundSchema; -} - /** @internal */ export const Allocation$inboundSchema: z.ZodType< Allocation, @@ -105,49 +93,6 @@ export const Allocation$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Allocation$Outbound = { - id?: string | undefined; - type?: string | undefined; - code?: string | undefined; - amount?: number | null | undefined; - allocation_id?: string | undefined; -}; - -/** @internal */ -export const Allocation$outboundSchema: z.ZodType< - Allocation$Outbound, - z.ZodTypeDef, - Allocation -> = z.object({ - id: z.string().optional(), - type: AllocationType$outboundSchema.optional(), - code: z.string().optional(), - amount: z.nullable(z.number()).optional(), - allocationId: z.string().optional(), -}).transform((v) => { - return remap$(v, { - allocationId: "allocation_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Allocation$ { - /** @deprecated use `Allocation$inboundSchema` instead. */ - export const inboundSchema = Allocation$inboundSchema; - /** @deprecated use `Allocation$outboundSchema` instead. */ - export const outboundSchema = Allocation$outboundSchema; - /** @deprecated use `Allocation$Outbound` instead. */ - export type Outbound = Allocation$Outbound; -} - -export function allocationToJSON(allocation: Allocation): string { - return JSON.stringify(Allocation$outboundSchema.parse(allocation)); -} - export function allocationFromJSON( jsonString: string, ): SafeParseResult { @@ -158,22 +103,6 @@ export function allocationFromJSON( ); } -/** @internal */ -export const AllocationInput$inboundSchema: z.ZodType< - AllocationInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - type: AllocationType$inboundSchema.optional(), - amount: z.nullable(z.number()).optional(), - allocation_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "allocation_id": "allocationId", - }); -}); - /** @internal */ export type AllocationInput$Outbound = { id?: string | undefined; @@ -198,31 +127,8 @@ export const AllocationInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AllocationInput$ { - /** @deprecated use `AllocationInput$inboundSchema` instead. */ - export const inboundSchema = AllocationInput$inboundSchema; - /** @deprecated use `AllocationInput$outboundSchema` instead. */ - export const outboundSchema = AllocationInput$outboundSchema; - /** @deprecated use `AllocationInput$Outbound` instead. */ - export type Outbound = AllocationInput$Outbound; -} - export function allocationInputToJSON( allocationInput: AllocationInput, ): string { return JSON.stringify(AllocationInput$outboundSchema.parse(allocationInput)); } - -export function allocationInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AllocationInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AllocationInput' from JSON`, - ); -} diff --git a/src/models/components/api.ts b/src/models/components/api.ts index 84def245d..0ebe8a8c9 100644 --- a/src/models/components/api.ts +++ b/src/models/components/api.ts @@ -8,15 +8,10 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ApiStatus, - ApiStatus$inboundSchema, - ApiStatus$outboundSchema, -} from "./apistatus.js"; +import { ApiStatus, ApiStatus$inboundSchema } from "./apistatus.js"; import { ResourceStatus, ResourceStatus$inboundSchema, - ResourceStatus$outboundSchema, } from "./resourcestatus.js"; /** @@ -101,21 +96,6 @@ export type Api = { export const ApiType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ApiType); -/** @internal */ -export const ApiType$outboundSchema: z.ZodNativeEnum = - ApiType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiType$ { - /** @deprecated use `ApiType$inboundSchema` instead. */ - export const inboundSchema = ApiType$inboundSchema; - /** @deprecated use `ApiType$outboundSchema` instead. */ - export const outboundSchema = ApiType$outboundSchema; -} - /** @internal */ export const Resources$inboundSchema: z.ZodType< Resources, @@ -132,47 +112,6 @@ export const Resources$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Resources$Outbound = { - id?: string | undefined; - name?: string | undefined; - status?: string | undefined; - excluded_from_coverage?: boolean | undefined; -}; - -/** @internal */ -export const Resources$outboundSchema: z.ZodType< - Resources$Outbound, - z.ZodTypeDef, - Resources -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - status: ResourceStatus$outboundSchema.optional(), - excludedFromCoverage: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - excludedFromCoverage: "excluded_from_coverage", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Resources$ { - /** @deprecated use `Resources$inboundSchema` instead. */ - export const inboundSchema = Resources$inboundSchema; - /** @deprecated use `Resources$outboundSchema` instead. */ - export const outboundSchema = Resources$outboundSchema; - /** @deprecated use `Resources$Outbound` instead. */ - export type Outbound = Resources$Outbound; -} - -export function resourcesToJSON(resources: Resources): string { - return JSON.stringify(Resources$outboundSchema.parse(resources)); -} - export function resourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -205,60 +144,6 @@ export const Api$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Api$Outbound = { - id?: string | undefined; - type?: string | undefined; - name?: string | undefined; - description?: string | null | undefined; - status?: string | undefined; - spec_url?: string | undefined; - api_reference_url?: string | undefined; - postman_collection_id?: string | null | undefined; - categories?: Array | undefined; - resources?: Array | undefined; - events?: Array | undefined; -}; - -/** @internal */ -export const Api$outboundSchema: z.ZodType = z - .object({ - id: z.string().optional(), - type: ApiType$outboundSchema.optional(), - name: z.string().optional(), - description: z.nullable(z.string()).optional(), - status: ApiStatus$outboundSchema.optional(), - specUrl: z.string().optional(), - apiReferenceUrl: z.string().optional(), - postmanCollectionId: z.nullable(z.string()).optional(), - categories: z.array(z.string()).optional(), - resources: z.array(z.lazy(() => Resources$outboundSchema)).optional(), - events: z.array(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - specUrl: "spec_url", - apiReferenceUrl: "api_reference_url", - postmanCollectionId: "postman_collection_id", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Api$ { - /** @deprecated use `Api$inboundSchema` instead. */ - export const inboundSchema = Api$inboundSchema; - /** @deprecated use `Api$outboundSchema` instead. */ - export const outboundSchema = Api$outboundSchema; - /** @deprecated use `Api$Outbound` instead. */ - export type Outbound = Api$Outbound; -} - -export function apiToJSON(api: Api): string { - return JSON.stringify(Api$outboundSchema.parse(api)); -} - export function apiFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/apiresource.ts b/src/models/components/apiresource.ts index 3ff6968bd..786157d3b 100644 --- a/src/models/components/apiresource.ts +++ b/src/models/components/apiresource.ts @@ -10,7 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ResourceStatus, ResourceStatus$inboundSchema, - ResourceStatus$outboundSchema, } from "./resourcestatus.js"; export type LinkedResources = { @@ -66,45 +65,6 @@ export const LinkedResources$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LinkedResources$Outbound = { - id?: string | undefined; - unified_property?: string | undefined; -}; - -/** @internal */ -export const LinkedResources$outboundSchema: z.ZodType< - LinkedResources$Outbound, - z.ZodTypeDef, - LinkedResources -> = z.object({ - id: z.string().optional(), - unifiedProperty: z.string().optional(), -}).transform((v) => { - return remap$(v, { - unifiedProperty: "unified_property", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedResources$ { - /** @deprecated use `LinkedResources$inboundSchema` instead. */ - export const inboundSchema = LinkedResources$inboundSchema; - /** @deprecated use `LinkedResources$outboundSchema` instead. */ - export const outboundSchema = LinkedResources$outboundSchema; - /** @deprecated use `LinkedResources$Outbound` instead. */ - export type Outbound = LinkedResources$Outbound; -} - -export function linkedResourcesToJSON( - linkedResources: LinkedResources, -): string { - return JSON.stringify(LinkedResources$outboundSchema.parse(linkedResources)); -} - export function linkedResourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -119,33 +79,6 @@ export function linkedResourcesFromJSON( export const Schema$inboundSchema: z.ZodType = z .object({}); -/** @internal */ -export type Schema$Outbound = {}; - -/** @internal */ -export const Schema$outboundSchema: z.ZodType< - Schema$Outbound, - z.ZodTypeDef, - Schema -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema$ { - /** @deprecated use `Schema$inboundSchema` instead. */ - export const inboundSchema = Schema$inboundSchema; - /** @deprecated use `Schema$outboundSchema` instead. */ - export const outboundSchema = Schema$outboundSchema; - /** @deprecated use `Schema$Outbound` instead. */ - export type Outbound = Schema$Outbound; -} - -export function schemaToJSON(schema: Schema): string { - return JSON.stringify(Schema$outboundSchema.parse(schema)); -} - export function schemaFromJSON( jsonString: string, ): SafeParseResult { @@ -174,50 +107,6 @@ export const ApiResource$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ApiResource$Outbound = { - id?: string | undefined; - name?: string | undefined; - status?: string | undefined; - linked_resources?: Array | undefined; - schema?: Schema$Outbound | undefined; -}; - -/** @internal */ -export const ApiResource$outboundSchema: z.ZodType< - ApiResource$Outbound, - z.ZodTypeDef, - ApiResource -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - status: ResourceStatus$outboundSchema.optional(), - linkedResources: z.array(z.lazy(() => LinkedResources$outboundSchema)) - .optional(), - schema: z.lazy(() => Schema$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - linkedResources: "linked_resources", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiResource$ { - /** @deprecated use `ApiResource$inboundSchema` instead. */ - export const inboundSchema = ApiResource$inboundSchema; - /** @deprecated use `ApiResource$outboundSchema` instead. */ - export const outboundSchema = ApiResource$outboundSchema; - /** @deprecated use `ApiResource$Outbound` instead. */ - export type Outbound = ApiResource$Outbound; -} - -export function apiResourceToJSON(apiResource: ApiResource): string { - return JSON.stringify(ApiResource$outboundSchema.parse(apiResource)); -} - export function apiResourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/apiresourcecoverage.ts b/src/models/components/apiresourcecoverage.ts index 1a8dbe511..216acfc82 100644 --- a/src/models/components/apiresourcecoverage.ts +++ b/src/models/components/apiresourcecoverage.ts @@ -10,19 +10,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PaginationCoverage, PaginationCoverage$inboundSchema, - PaginationCoverage$Outbound, - PaginationCoverage$outboundSchema, } from "./paginationcoverage.js"; import { ResourceStatus, ResourceStatus$inboundSchema, - ResourceStatus$outboundSchema, } from "./resourcestatus.js"; import { SupportedProperty, SupportedProperty$inboundSchema, - SupportedProperty$Outbound, - SupportedProperty$outboundSchema, } from "./supportedproperty.js"; export type Coverage = { @@ -105,64 +100,6 @@ export const Coverage$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Coverage$Outbound = { - downstream_id?: string | undefined; - downstream_name?: string | undefined; - pagination_supported?: boolean | undefined; - pagination?: PaginationCoverage$Outbound | undefined; - supported_operations?: Array | undefined; - supported_filters?: Array | undefined; - supported_sort_by?: Array | undefined; - supported_fields?: Array | undefined; - supported_list_fields?: Array | undefined; -}; - -/** @internal */ -export const Coverage$outboundSchema: z.ZodType< - Coverage$Outbound, - z.ZodTypeDef, - Coverage -> = z.object({ - downstreamId: z.string().optional(), - downstreamName: z.string().optional(), - paginationSupported: z.boolean().optional(), - pagination: PaginationCoverage$outboundSchema.optional(), - supportedOperations: z.array(z.string()).optional(), - supportedFilters: z.array(z.string()).optional(), - supportedSortBy: z.array(z.string()).optional(), - supportedFields: z.array(SupportedProperty$outboundSchema).optional(), - supportedListFields: z.array(SupportedProperty$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - downstreamName: "downstream_name", - paginationSupported: "pagination_supported", - supportedOperations: "supported_operations", - supportedFilters: "supported_filters", - supportedSortBy: "supported_sort_by", - supportedFields: "supported_fields", - supportedListFields: "supported_list_fields", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Coverage$ { - /** @deprecated use `Coverage$inboundSchema` instead. */ - export const inboundSchema = Coverage$inboundSchema; - /** @deprecated use `Coverage$outboundSchema` instead. */ - export const outboundSchema = Coverage$outboundSchema; - /** @deprecated use `Coverage$Outbound` instead. */ - export type Outbound = Coverage$Outbound; -} - -export function coverageToJSON(coverage: Coverage): string { - return JSON.stringify(Coverage$outboundSchema.parse(coverage)); -} - export function coverageFromJSON( jsonString: string, ): SafeParseResult { @@ -185,47 +122,6 @@ export const ApiResourceCoverage$inboundSchema: z.ZodType< coverage: z.array(z.lazy(() => Coverage$inboundSchema)).optional(), }); -/** @internal */ -export type ApiResourceCoverage$Outbound = { - id?: string | undefined; - name?: string | undefined; - status?: string | undefined; - coverage?: Array | undefined; -}; - -/** @internal */ -export const ApiResourceCoverage$outboundSchema: z.ZodType< - ApiResourceCoverage$Outbound, - z.ZodTypeDef, - ApiResourceCoverage -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - status: ResourceStatus$outboundSchema.optional(), - coverage: z.array(z.lazy(() => Coverage$outboundSchema)).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiResourceCoverage$ { - /** @deprecated use `ApiResourceCoverage$inboundSchema` instead. */ - export const inboundSchema = ApiResourceCoverage$inboundSchema; - /** @deprecated use `ApiResourceCoverage$outboundSchema` instead. */ - export const outboundSchema = ApiResourceCoverage$outboundSchema; - /** @deprecated use `ApiResourceCoverage$Outbound` instead. */ - export type Outbound = ApiResourceCoverage$Outbound; -} - -export function apiResourceCoverageToJSON( - apiResourceCoverage: ApiResourceCoverage, -): string { - return JSON.stringify( - ApiResourceCoverage$outboundSchema.parse(apiResourceCoverage), - ); -} - export function apiResourceCoverageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/apisfilter.ts b/src/models/components/apisfilter.ts index 083955ace..cefbf532b 100644 --- a/src/models/components/apisfilter.ts +++ b/src/models/components/apisfilter.ts @@ -3,14 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ApiStatus, - ApiStatus$inboundSchema, - ApiStatus$outboundSchema, -} from "./apistatus.js"; +import { ApiStatus, ApiStatus$outboundSchema } from "./apistatus.js"; export type ApisFilter = { /** @@ -19,15 +12,6 @@ export type ApisFilter = { status?: ApiStatus | undefined; }; -/** @internal */ -export const ApisFilter$inboundSchema: z.ZodType< - ApisFilter, - z.ZodTypeDef, - unknown -> = z.object({ - status: ApiStatus$inboundSchema.optional(), -}); - /** @internal */ export type ApisFilter$Outbound = { status?: string | undefined; @@ -42,29 +26,6 @@ export const ApisFilter$outboundSchema: z.ZodType< status: ApiStatus$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApisFilter$ { - /** @deprecated use `ApisFilter$inboundSchema` instead. */ - export const inboundSchema = ApisFilter$inboundSchema; - /** @deprecated use `ApisFilter$outboundSchema` instead. */ - export const outboundSchema = ApisFilter$outboundSchema; - /** @deprecated use `ApisFilter$Outbound` instead. */ - export type Outbound = ApisFilter$Outbound; -} - export function apisFilterToJSON(apisFilter: ApisFilter): string { return JSON.stringify(ApisFilter$outboundSchema.parse(apisFilter)); } - -export function apisFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApisFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApisFilter' from JSON`, - ); -} diff --git a/src/models/components/apistatus.ts b/src/models/components/apistatus.ts index bd234693b..fba2b9a32 100644 --- a/src/models/components/apistatus.ts +++ b/src/models/components/apistatus.ts @@ -22,18 +22,6 @@ export type ApiStatus = ClosedEnum; /** @internal */ export const ApiStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ApiStatus); - /** @internal */ export const ApiStatus$outboundSchema: z.ZodNativeEnum = ApiStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiStatus$ { - /** @deprecated use `ApiStatus$inboundSchema` instead. */ - export const inboundSchema = ApiStatus$inboundSchema; - /** @deprecated use `ApiStatus$outboundSchema` instead. */ - export const outboundSchema = ApiStatus$outboundSchema; -} diff --git a/src/models/components/applicant.ts b/src/models/components/applicant.ts index 9e4706be6..5f7b1e0bf 100644 --- a/src/models/components/applicant.ts +++ b/src/models/components/applicant.ts @@ -312,44 +312,20 @@ export type ApplicantInput = { export const ApplicantGender$inboundSchema: z.ZodNativeEnum< typeof ApplicantGender > = z.nativeEnum(ApplicantGender); - /** @internal */ export const ApplicantGender$outboundSchema: z.ZodNativeEnum< typeof ApplicantGender > = ApplicantGender$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicantGender$ { - /** @deprecated use `ApplicantGender$inboundSchema` instead. */ - export const inboundSchema = ApplicantGender$inboundSchema; - /** @deprecated use `ApplicantGender$outboundSchema` instead. */ - export const outboundSchema = ApplicantGender$outboundSchema; -} - /** @internal */ export const ApplicantType$inboundSchema: z.ZodNativeEnum< typeof ApplicantType > = z.nativeEnum(ApplicantType); - /** @internal */ export const ApplicantType$outboundSchema: z.ZodNativeEnum< typeof ApplicantType > = ApplicantType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicantType$ { - /** @deprecated use `ApplicantType$inboundSchema` instead. */ - export const inboundSchema = ApplicantType$inboundSchema; - /** @deprecated use `ApplicantType$outboundSchema` instead. */ - export const outboundSchema = ApplicantType$outboundSchema; -} - /** @internal */ export const Websites$inboundSchema: z.ZodType< Websites, @@ -360,7 +336,6 @@ export const Websites$inboundSchema: z.ZodType< url: z.string(), type: z.nullable(ApplicantType$inboundSchema).optional(), }); - /** @internal */ export type Websites$Outbound = { id?: string | null | undefined; @@ -379,23 +354,9 @@ export const Websites$outboundSchema: z.ZodType< type: z.nullable(ApplicantType$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Websites$ { - /** @deprecated use `Websites$inboundSchema` instead. */ - export const inboundSchema = Websites$inboundSchema; - /** @deprecated use `Websites$outboundSchema` instead. */ - export const outboundSchema = Websites$outboundSchema; - /** @deprecated use `Websites$Outbound` instead. */ - export type Outbound = Websites$Outbound; -} - export function websitesToJSON(websites: Websites): string { return JSON.stringify(Websites$outboundSchema.parse(websites)); } - export function websitesFromJSON( jsonString: string, ): SafeParseResult { @@ -416,7 +377,6 @@ export const SocialLinks$inboundSchema: z.ZodType< url: z.string(), type: z.nullable(z.string()).optional(), }); - /** @internal */ export type SocialLinks$Outbound = { id?: string | null | undefined; @@ -435,23 +395,9 @@ export const SocialLinks$outboundSchema: z.ZodType< type: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SocialLinks$ { - /** @deprecated use `SocialLinks$inboundSchema` instead. */ - export const inboundSchema = SocialLinks$inboundSchema; - /** @deprecated use `SocialLinks$outboundSchema` instead. */ - export const outboundSchema = SocialLinks$outboundSchema; - /** @deprecated use `SocialLinks$Outbound` instead. */ - export type Outbound = SocialLinks$Outbound; -} - export function socialLinksToJSON(socialLinks: SocialLinks): string { return JSON.stringify(SocialLinks$outboundSchema.parse(socialLinks)); } - export function socialLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -561,167 +507,6 @@ export const Applicant$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Applicant$Outbound = { - id?: string | undefined; - name?: string | undefined; - salutation?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - middle_name?: string | null | undefined; - initials?: string | null | undefined; - birthday?: string | null | undefined; - gender?: string | null | undefined; - social_security_number?: string | null | undefined; - type?: string | undefined; - cover_letter?: string | undefined; - job_url?: string | null | undefined; - photo_url?: string | null | undefined; - headline?: string | undefined; - title?: string | null | undefined; - emails?: Array | undefined; - custom_fields?: Array | undefined; - phone_numbers?: Array | undefined; - addresses?: Array | undefined; - websites?: Array | undefined; - social_links?: Array | undefined; - stage_id?: string | undefined; - recruiter_id?: string | undefined; - coordinator_id?: string | undefined; - application_ids?: Array | null | undefined; - applications?: Array | null | undefined; - followers?: Array | null | undefined; - sources?: Array | null | undefined; - source_id?: string | undefined; - confidential?: boolean | undefined; - anonymized?: boolean | undefined; - tags?: Array | null | undefined; - archived?: boolean | null | undefined; - last_interaction_at?: string | null | undefined; - owner_id?: string | null | undefined; - sourced_by?: string | null | undefined; - cv_url?: string | undefined; - record_url?: string | null | undefined; - rejected_at?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - deleted?: boolean | null | undefined; - deleted_by?: string | null | undefined; - deleted_at?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Applicant$outboundSchema: z.ZodType< - Applicant$Outbound, - z.ZodTypeDef, - Applicant -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - salutation: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - initials: z.nullable(z.string()).optional(), - birthday: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - gender: z.nullable(ApplicantGender$outboundSchema).optional(), - socialSecurityNumber: z.nullable(z.string()).optional(), - type: z.string().optional(), - coverLetter: z.string().optional(), - jobUrl: z.nullable(z.string()).optional(), - photoUrl: z.nullable(z.string()).optional(), - headline: z.string().optional(), - title: z.nullable(z.string()).optional(), - emails: z.array(Email$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - websites: z.array(z.lazy(() => Websites$outboundSchema)).optional(), - socialLinks: z.array(z.lazy(() => SocialLinks$outboundSchema)).optional(), - stageId: z.string().optional(), - recruiterId: z.string().optional(), - coordinatorId: z.string().optional(), - applicationIds: z.nullable(z.array(z.string())).optional(), - applications: z.nullable(z.array(z.string())).optional(), - followers: z.nullable(z.array(z.string())).optional(), - sources: z.nullable(z.array(z.string())).optional(), - sourceId: z.string().optional(), - confidential: z.boolean().optional(), - anonymized: z.boolean().optional(), - tags: z.nullable(z.array(z.string())).optional(), - archived: z.nullable(z.boolean()).optional(), - lastInteractionAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - ownerId: z.nullable(z.string()).optional(), - sourcedBy: z.nullable(z.string()).optional(), - cvUrl: z.string().optional(), - recordUrl: z.nullable(z.string()).optional(), - rejectedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - deleted: z.nullable(z.boolean()).optional(), - deletedBy: z.nullable(z.string()).optional(), - deletedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - middleName: "middle_name", - socialSecurityNumber: "social_security_number", - coverLetter: "cover_letter", - jobUrl: "job_url", - photoUrl: "photo_url", - customFields: "custom_fields", - phoneNumbers: "phone_numbers", - socialLinks: "social_links", - stageId: "stage_id", - recruiterId: "recruiter_id", - coordinatorId: "coordinator_id", - applicationIds: "application_ids", - sourceId: "source_id", - lastInteractionAt: "last_interaction_at", - ownerId: "owner_id", - sourcedBy: "sourced_by", - cvUrl: "cv_url", - recordUrl: "record_url", - rejectedAt: "rejected_at", - customMappings: "custom_mappings", - deletedBy: "deleted_by", - deletedAt: "deleted_at", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Applicant$ { - /** @deprecated use `Applicant$inboundSchema` instead. */ - export const inboundSchema = Applicant$inboundSchema; - /** @deprecated use `Applicant$outboundSchema` instead. */ - export const outboundSchema = Applicant$outboundSchema; - /** @deprecated use `Applicant$Outbound` instead. */ - export type Outbound = Applicant$Outbound; -} - -export function applicantToJSON(applicant: Applicant): string { - return JSON.stringify(Applicant$outboundSchema.parse(applicant)); -} - export function applicantFromJSON( jsonString: string, ): SafeParseResult { @@ -732,68 +517,6 @@ export function applicantFromJSON( ); } -/** @internal */ -export const ApplicantInput$inboundSchema: z.ZodType< - ApplicantInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - salutation: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - initials: z.nullable(z.string()).optional(), - birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - gender: z.nullable(ApplicantGender$inboundSchema).optional(), - social_security_number: z.nullable(z.string()).optional(), - type: z.string().optional(), - cover_letter: z.string().optional(), - photo_url: z.nullable(z.string()).optional(), - headline: z.string().optional(), - title: z.nullable(z.string()).optional(), - emails: z.array(Email$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - websites: z.array(z.lazy(() => Websites$inboundSchema)).optional(), - social_links: z.array(z.lazy(() => SocialLinks$inboundSchema)).optional(), - stage_id: z.string().optional(), - recruiter_id: z.string().optional(), - coordinator_id: z.string().optional(), - application_ids: z.nullable(z.array(z.string())).optional(), - applications: z.nullable(z.array(z.string())).optional(), - followers: z.nullable(z.array(z.string())).optional(), - sources: z.nullable(z.array(z.string())).optional(), - confidential: z.boolean().optional(), - anonymized: z.boolean().optional(), - tags: z.nullable(z.array(z.string())).optional(), - archived: z.nullable(z.boolean()).optional(), - owner_id: z.nullable(z.string()).optional(), - record_url: z.nullable(z.string()).optional(), - deleted: z.nullable(z.boolean()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "middle_name": "middleName", - "social_security_number": "socialSecurityNumber", - "cover_letter": "coverLetter", - "photo_url": "photoUrl", - "custom_fields": "customFields", - "phone_numbers": "phoneNumbers", - "social_links": "socialLinks", - "stage_id": "stageId", - "recruiter_id": "recruiterId", - "coordinator_id": "coordinatorId", - "application_ids": "applicationIds", - "owner_id": "ownerId", - "record_url": "recordUrl", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type ApplicantInput$Outbound = { name?: string | undefined; @@ -896,29 +619,6 @@ export const ApplicantInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicantInput$ { - /** @deprecated use `ApplicantInput$inboundSchema` instead. */ - export const inboundSchema = ApplicantInput$inboundSchema; - /** @deprecated use `ApplicantInput$outboundSchema` instead. */ - export const outboundSchema = ApplicantInput$outboundSchema; - /** @deprecated use `ApplicantInput$Outbound` instead. */ - export type Outbound = ApplicantInput$Outbound; -} - export function applicantInputToJSON(applicantInput: ApplicantInput): string { return JSON.stringify(ApplicantInput$outboundSchema.parse(applicantInput)); } - -export function applicantInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicantInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicantInput' from JSON`, - ); -} diff --git a/src/models/components/applicantsfilter.ts b/src/models/components/applicantsfilter.ts index d82c7ad2e..86c141c4c 100644 --- a/src/models/components/applicantsfilter.ts +++ b/src/models/components/applicantsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ApplicantsFilter = { /** @@ -15,19 +12,6 @@ export type ApplicantsFilter = { jobId?: string | undefined; }; -/** @internal */ -export const ApplicantsFilter$inboundSchema: z.ZodType< - ApplicantsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - job_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "job_id": "jobId", - }); -}); - /** @internal */ export type ApplicantsFilter$Outbound = { job_id?: string | undefined; @@ -46,19 +30,6 @@ export const ApplicantsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicantsFilter$ { - /** @deprecated use `ApplicantsFilter$inboundSchema` instead. */ - export const inboundSchema = ApplicantsFilter$inboundSchema; - /** @deprecated use `ApplicantsFilter$outboundSchema` instead. */ - export const outboundSchema = ApplicantsFilter$outboundSchema; - /** @deprecated use `ApplicantsFilter$Outbound` instead. */ - export type Outbound = ApplicantsFilter$Outbound; -} - export function applicantsFilterToJSON( applicantsFilter: ApplicantsFilter, ): string { @@ -66,13 +37,3 @@ export function applicantsFilterToJSON( ApplicantsFilter$outboundSchema.parse(applicantsFilter), ); } - -export function applicantsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicantsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicantsFilter' from JSON`, - ); -} diff --git a/src/models/components/application.ts b/src/models/components/application.ts index 00022427c..5ad4ac2d1 100644 --- a/src/models/components/application.ts +++ b/src/models/components/application.ts @@ -82,30 +82,17 @@ export type ApplicationInput = { export const ApplicationStatus$inboundSchema: z.ZodNativeEnum< typeof ApplicationStatus > = z.nativeEnum(ApplicationStatus); - /** @internal */ export const ApplicationStatus$outboundSchema: z.ZodNativeEnum< typeof ApplicationStatus > = ApplicationStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationStatus$ { - /** @deprecated use `ApplicationStatus$inboundSchema` instead. */ - export const inboundSchema = ApplicationStatus$inboundSchema; - /** @deprecated use `ApplicationStatus$outboundSchema` instead. */ - export const outboundSchema = ApplicationStatus$outboundSchema; -} - /** @internal */ export const Stage$inboundSchema: z.ZodType = z .object({ id: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }); - /** @internal */ export type Stage$Outbound = { id?: string | null | undefined; @@ -122,23 +109,9 @@ export const Stage$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Stage$ { - /** @deprecated use `Stage$inboundSchema` instead. */ - export const inboundSchema = Stage$inboundSchema; - /** @deprecated use `Stage$outboundSchema` instead. */ - export const outboundSchema = Stage$outboundSchema; - /** @deprecated use `Stage$Outbound` instead. */ - export type Outbound = Stage$Outbound; -} - export function stageToJSON(stage: Stage): string { return JSON.stringify(Stage$outboundSchema.parse(stage)); } - export function stageFromJSON( jsonString: string, ): SafeParseResult { @@ -183,68 +156,6 @@ export const Application$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Application$Outbound = { - id?: string | undefined; - applicant_id: string | null; - job_id: string | null; - status?: string | null | undefined; - stage?: Stage$Outbound | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Application$outboundSchema: z.ZodType< - Application$Outbound, - z.ZodTypeDef, - Application -> = z.object({ - id: z.string().optional(), - applicantId: z.nullable(z.string()), - jobId: z.nullable(z.string()), - status: z.nullable(ApplicationStatus$outboundSchema).optional(), - stage: z.lazy(() => Stage$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - applicantId: "applicant_id", - jobId: "job_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Application$ { - /** @deprecated use `Application$inboundSchema` instead. */ - export const inboundSchema = Application$inboundSchema; - /** @deprecated use `Application$outboundSchema` instead. */ - export const outboundSchema = Application$outboundSchema; - /** @deprecated use `Application$Outbound` instead. */ - export type Outbound = Application$Outbound; -} - -export function applicationToJSON(application: Application): string { - return JSON.stringify(Application$outboundSchema.parse(application)); -} - export function applicationFromJSON( jsonString: string, ): SafeParseResult { @@ -255,25 +166,6 @@ export function applicationFromJSON( ); } -/** @internal */ -export const ApplicationInput$inboundSchema: z.ZodType< - ApplicationInput, - z.ZodTypeDef, - unknown -> = z.object({ - applicant_id: z.nullable(z.string()), - job_id: z.nullable(z.string()), - status: z.nullable(ApplicationStatus$inboundSchema).optional(), - stage: z.lazy(() => Stage$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "applicant_id": "applicantId", - "job_id": "jobId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type ApplicationInput$Outbound = { applicant_id: string | null; @@ -302,19 +194,6 @@ export const ApplicationInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApplicationInput$ { - /** @deprecated use `ApplicationInput$inboundSchema` instead. */ - export const inboundSchema = ApplicationInput$inboundSchema; - /** @deprecated use `ApplicationInput$outboundSchema` instead. */ - export const outboundSchema = ApplicationInput$outboundSchema; - /** @deprecated use `ApplicationInput$Outbound` instead. */ - export type Outbound = ApplicationInput$Outbound; -} - export function applicationInputToJSON( applicationInput: ApplicationInput, ): string { @@ -322,13 +201,3 @@ export function applicationInputToJSON( ApplicationInput$outboundSchema.parse(applicationInput), ); } - -export function applicationInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ApplicationInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ApplicationInput' from JSON`, - ); -} diff --git a/src/models/components/assignee.ts b/src/models/components/assignee.ts index 146ff0b93..789b480e2 100644 --- a/src/models/components/assignee.ts +++ b/src/models/components/assignee.ts @@ -25,39 +25,6 @@ export const Assignee$inboundSchema: z.ZodType< username: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Assignee$Outbound = { - id: string; - username?: string | null | undefined; -}; - -/** @internal */ -export const Assignee$outboundSchema: z.ZodType< - Assignee$Outbound, - z.ZodTypeDef, - Assignee -> = z.object({ - id: z.string(), - username: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Assignee$ { - /** @deprecated use `Assignee$inboundSchema` instead. */ - export const inboundSchema = Assignee$inboundSchema; - /** @deprecated use `Assignee$outboundSchema` instead. */ - export const outboundSchema = Assignee$outboundSchema; - /** @deprecated use `Assignee$Outbound` instead. */ - export type Outbound = Assignee$Outbound; -} - -export function assigneeToJSON(assignee: Assignee): string { - return JSON.stringify(Assignee$outboundSchema.parse(assignee)); -} - export function assigneeFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/assigneeinput.ts b/src/models/components/assigneeinput.ts index 2b11513c7..5ffbf28b1 100644 --- a/src/models/components/assigneeinput.ts +++ b/src/models/components/assigneeinput.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AssigneeInput = { /** @@ -14,15 +11,6 @@ export type AssigneeInput = { id: string; }; -/** @internal */ -export const AssigneeInput$inboundSchema: z.ZodType< - AssigneeInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); - /** @internal */ export type AssigneeInput$Outbound = { id: string; @@ -37,29 +25,6 @@ export const AssigneeInput$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssigneeInput$ { - /** @deprecated use `AssigneeInput$inboundSchema` instead. */ - export const inboundSchema = AssigneeInput$inboundSchema; - /** @deprecated use `AssigneeInput$outboundSchema` instead. */ - export const outboundSchema = AssigneeInput$outboundSchema; - /** @deprecated use `AssigneeInput$Outbound` instead. */ - export type Outbound = AssigneeInput$Outbound; -} - export function assigneeInputToJSON(assigneeInput: AssigneeInput): string { return JSON.stringify(AssigneeInput$outboundSchema.parse(assigneeInput)); } - -export function assigneeInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AssigneeInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AssigneeInput' from JSON`, - ); -} diff --git a/src/models/components/attachment.ts b/src/models/components/attachment.ts index c8cdfd79a..cce0e481d 100644 --- a/src/models/components/attachment.ts +++ b/src/models/components/attachment.ts @@ -10,14 +10,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AttachmentReference, AttachmentReference$inboundSchema, - AttachmentReference$Outbound, - AttachmentReference$outboundSchema, } from "./attachmentreference.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Attachment = { @@ -108,72 +104,6 @@ export const Attachment$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Attachment$Outbound = { - id?: string | undefined; - display_id?: string | null | undefined; - name?: string | null | undefined; - mime_type?: string | null | undefined; - size?: number | null | undefined; - reference?: AttachmentReference$Outbound | undefined; - description?: string | null | undefined; - parent_folder_id?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Attachment$outboundSchema: z.ZodType< - Attachment$Outbound, - z.ZodTypeDef, - Attachment -> = z.object({ - id: z.string().optional(), - displayId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - mimeType: z.nullable(z.string()).optional(), - size: z.nullable(z.number().int()).optional(), - reference: AttachmentReference$outboundSchema.optional(), - description: z.nullable(z.string()).optional(), - parentFolderId: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - mimeType: "mime_type", - parentFolderId: "parent_folder_id", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Attachment$ { - /** @deprecated use `Attachment$inboundSchema` instead. */ - export const inboundSchema = Attachment$inboundSchema; - /** @deprecated use `Attachment$outboundSchema` instead. */ - export const outboundSchema = Attachment$outboundSchema; - /** @deprecated use `Attachment$Outbound` instead. */ - export type Outbound = Attachment$Outbound; -} - -export function attachmentToJSON(attachment: Attachment): string { - return JSON.stringify(Attachment$outboundSchema.parse(attachment)); -} - export function attachmentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/attachmentreference.ts b/src/models/components/attachmentreference.ts index 43217da1b..0220cd6a3 100644 --- a/src/models/components/attachmentreference.ts +++ b/src/models/components/attachmentreference.ts @@ -9,7 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AttachmentReferenceType, AttachmentReferenceType$inboundSchema, - AttachmentReferenceType$outboundSchema, } from "./attachmentreferencetype.js"; export type AttachmentReference = { @@ -30,43 +29,6 @@ export const AttachmentReference$inboundSchema: z.ZodType< id: z.string().optional(), }); -/** @internal */ -export type AttachmentReference$Outbound = { - type?: string | undefined; - id?: string | undefined; -}; - -/** @internal */ -export const AttachmentReference$outboundSchema: z.ZodType< - AttachmentReference$Outbound, - z.ZodTypeDef, - AttachmentReference -> = z.object({ - type: AttachmentReferenceType$outboundSchema.optional(), - id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AttachmentReference$ { - /** @deprecated use `AttachmentReference$inboundSchema` instead. */ - export const inboundSchema = AttachmentReference$inboundSchema; - /** @deprecated use `AttachmentReference$outboundSchema` instead. */ - export const outboundSchema = AttachmentReference$outboundSchema; - /** @deprecated use `AttachmentReference$Outbound` instead. */ - export type Outbound = AttachmentReference$Outbound; -} - -export function attachmentReferenceToJSON( - attachmentReference: AttachmentReference, -): string { - return JSON.stringify( - AttachmentReference$outboundSchema.parse(attachmentReference), - ); -} - export function attachmentReferenceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/attachmentreferencetype.ts b/src/models/components/attachmentreferencetype.ts index 4f91ab305..044df5037 100644 --- a/src/models/components/attachmentreferencetype.ts +++ b/src/models/components/attachmentreferencetype.ts @@ -19,19 +19,7 @@ export type AttachmentReferenceType = ClosedEnum< export const AttachmentReferenceType$inboundSchema: z.ZodNativeEnum< typeof AttachmentReferenceType > = z.nativeEnum(AttachmentReferenceType); - /** @internal */ export const AttachmentReferenceType$outboundSchema: z.ZodNativeEnum< typeof AttachmentReferenceType > = AttachmentReferenceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AttachmentReferenceType$ { - /** @deprecated use `AttachmentReferenceType$inboundSchema` instead. */ - export const inboundSchema = AttachmentReferenceType$inboundSchema; - /** @deprecated use `AttachmentReferenceType$outboundSchema` instead. */ - export const outboundSchema = AttachmentReferenceType$outboundSchema; -} diff --git a/src/models/components/authtype.ts b/src/models/components/authtype.ts index 4ccb4831a..f0e076ca6 100644 --- a/src/models/components/authtype.ts +++ b/src/models/components/authtype.ts @@ -23,18 +23,3 @@ export type AuthType = ClosedEnum; /** @internal */ export const AuthType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AuthType); - -/** @internal */ -export const AuthType$outboundSchema: z.ZodNativeEnum = - AuthType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AuthType$ { - /** @deprecated use `AuthType$inboundSchema` instead. */ - export const inboundSchema = AuthType$inboundSchema; - /** @deprecated use `AuthType$outboundSchema` instead. */ - export const outboundSchema = AuthType$outboundSchema; -} diff --git a/src/models/components/balancebyperiod.ts b/src/models/components/balancebyperiod.ts index 962d6bc70..51390108b 100644 --- a/src/models/components/balancebyperiod.ts +++ b/src/models/components/balancebyperiod.ts @@ -11,8 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BalanceByTransaction, BalanceByTransaction$inboundSchema, - BalanceByTransaction$Outbound, - BalanceByTransaction$outboundSchema, } from "./balancebytransaction.js"; export type BalanceByPeriod = { @@ -51,55 +49,6 @@ export const BalanceByPeriod$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceByPeriod$Outbound = { - start_date?: string | null | undefined; - end_date?: string | null | undefined; - total_amount?: number | undefined; - balances_by_transaction?: Array | undefined; -}; - -/** @internal */ -export const BalanceByPeriod$outboundSchema: z.ZodType< - BalanceByPeriod$Outbound, - z.ZodTypeDef, - BalanceByPeriod -> = z.object({ - startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - totalAmount: z.number().optional(), - balancesByTransaction: z.array(BalanceByTransaction$outboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - startDate: "start_date", - endDate: "end_date", - totalAmount: "total_amount", - balancesByTransaction: "balances_by_transaction", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceByPeriod$ { - /** @deprecated use `BalanceByPeriod$inboundSchema` instead. */ - export const inboundSchema = BalanceByPeriod$inboundSchema; - /** @deprecated use `BalanceByPeriod$outboundSchema` instead. */ - export const outboundSchema = BalanceByPeriod$outboundSchema; - /** @deprecated use `BalanceByPeriod$Outbound` instead. */ - export type Outbound = BalanceByPeriod$Outbound; -} - -export function balanceByPeriodToJSON( - balanceByPeriod: BalanceByPeriod, -): string { - return JSON.stringify(BalanceByPeriod$outboundSchema.parse(balanceByPeriod)); -} - export function balanceByPeriodFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/balancebytransaction.ts b/src/models/components/balancebytransaction.ts index 1abb3bd07..cc8cbb7e0 100644 --- a/src/models/components/balancebytransaction.ts +++ b/src/models/components/balancebytransaction.ts @@ -63,24 +63,6 @@ export const BalanceByTransactionTransactionType$inboundSchema: z.ZodNativeEnum< typeof BalanceByTransactionTransactionType > = z.nativeEnum(BalanceByTransactionTransactionType); -/** @internal */ -export const BalanceByTransactionTransactionType$outboundSchema: - z.ZodNativeEnum = - BalanceByTransactionTransactionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceByTransactionTransactionType$ { - /** @deprecated use `BalanceByTransactionTransactionType$inboundSchema` instead. */ - export const inboundSchema = - BalanceByTransactionTransactionType$inboundSchema; - /** @deprecated use `BalanceByTransactionTransactionType$outboundSchema` instead. */ - export const outboundSchema = - BalanceByTransactionTransactionType$outboundSchema; -} - /** @internal */ export const BalanceByTransaction$inboundSchema: z.ZodType< BalanceByTransaction, @@ -107,65 +89,6 @@ export const BalanceByTransaction$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceByTransaction$Outbound = { - transaction_id?: string | undefined; - transaction_date?: string | undefined; - transaction_type?: string | undefined; - due_date?: string | undefined; - original_amount?: number | undefined; - outstanding_balance?: number | undefined; - transaction_number?: string | undefined; -}; - -/** @internal */ -export const BalanceByTransaction$outboundSchema: z.ZodType< - BalanceByTransaction$Outbound, - z.ZodTypeDef, - BalanceByTransaction -> = z.object({ - transactionId: z.string().optional(), - transactionDate: z.instanceof(RFCDate).transform(v => v.toString()) - .optional(), - transactionType: BalanceByTransactionTransactionType$outboundSchema - .optional(), - dueDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), - originalAmount: z.number().optional(), - outstandingBalance: z.number().optional(), - transactionNumber: z.string().optional(), -}).transform((v) => { - return remap$(v, { - transactionId: "transaction_id", - transactionDate: "transaction_date", - transactionType: "transaction_type", - dueDate: "due_date", - originalAmount: "original_amount", - outstandingBalance: "outstanding_balance", - transactionNumber: "transaction_number", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceByTransaction$ { - /** @deprecated use `BalanceByTransaction$inboundSchema` instead. */ - export const inboundSchema = BalanceByTransaction$inboundSchema; - /** @deprecated use `BalanceByTransaction$outboundSchema` instead. */ - export const outboundSchema = BalanceByTransaction$outboundSchema; - /** @deprecated use `BalanceByTransaction$Outbound` instead. */ - export type Outbound = BalanceByTransaction$Outbound; -} - -export function balanceByTransactionToJSON( - balanceByTransaction: BalanceByTransaction, -): string { - return JSON.stringify( - BalanceByTransaction$outboundSchema.parse(balanceByTransaction), - ); -} - export function balanceByTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/balancesheet.ts b/src/models/components/balancesheet.ts index 0bd92d138..ccf0ab14b 100644 --- a/src/models/components/balancesheet.ts +++ b/src/models/components/balancesheet.ts @@ -7,11 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; /** * A balance sheet assets account represents the financial position of a company at a specific point in time. @@ -201,53 +197,6 @@ export const BalanceSheetAssetsAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceSheetAssetsAccount$Outbound = { - account_id?: string | undefined; - code?: string | undefined; - name?: string | undefined; - value?: number | undefined; - items?: any | undefined; -}; - -/** @internal */ -export const BalanceSheetAssetsAccount$outboundSchema: z.ZodType< - BalanceSheetAssetsAccount$Outbound, - z.ZodTypeDef, - BalanceSheetAssetsAccount -> = z.object({ - accountId: z.string().optional(), - code: z.string().optional(), - name: z.string().optional(), - value: z.number().optional(), - items: z.any().optional(), -}).transform((v) => { - return remap$(v, { - accountId: "account_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheetAssetsAccount$ { - /** @deprecated use `BalanceSheetAssetsAccount$inboundSchema` instead. */ - export const inboundSchema = BalanceSheetAssetsAccount$inboundSchema; - /** @deprecated use `BalanceSheetAssetsAccount$outboundSchema` instead. */ - export const outboundSchema = BalanceSheetAssetsAccount$outboundSchema; - /** @deprecated use `BalanceSheetAssetsAccount$Outbound` instead. */ - export type Outbound = BalanceSheetAssetsAccount$Outbound; -} - -export function balanceSheetAssetsAccountToJSON( - balanceSheetAssetsAccount: BalanceSheetAssetsAccount, -): string { - return JSON.stringify( - BalanceSheetAssetsAccount$outboundSchema.parse(balanceSheetAssetsAccount), - ); -} - export function balanceSheetAssetsAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -275,55 +224,6 @@ export const BalanceSheetLiabilitiesAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceSheetLiabilitiesAccount$Outbound = { - account_id?: string | undefined; - code?: string | undefined; - name?: string | undefined; - value?: number | undefined; - items?: any | undefined; -}; - -/** @internal */ -export const BalanceSheetLiabilitiesAccount$outboundSchema: z.ZodType< - BalanceSheetLiabilitiesAccount$Outbound, - z.ZodTypeDef, - BalanceSheetLiabilitiesAccount -> = z.object({ - accountId: z.string().optional(), - code: z.string().optional(), - name: z.string().optional(), - value: z.number().optional(), - items: z.any().optional(), -}).transform((v) => { - return remap$(v, { - accountId: "account_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheetLiabilitiesAccount$ { - /** @deprecated use `BalanceSheetLiabilitiesAccount$inboundSchema` instead. */ - export const inboundSchema = BalanceSheetLiabilitiesAccount$inboundSchema; - /** @deprecated use `BalanceSheetLiabilitiesAccount$outboundSchema` instead. */ - export const outboundSchema = BalanceSheetLiabilitiesAccount$outboundSchema; - /** @deprecated use `BalanceSheetLiabilitiesAccount$Outbound` instead. */ - export type Outbound = BalanceSheetLiabilitiesAccount$Outbound; -} - -export function balanceSheetLiabilitiesAccountToJSON( - balanceSheetLiabilitiesAccount: BalanceSheetLiabilitiesAccount, -): string { - return JSON.stringify( - BalanceSheetLiabilitiesAccount$outboundSchema.parse( - balanceSheetLiabilitiesAccount, - ), - ); -} - export function balanceSheetLiabilitiesAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -351,53 +251,6 @@ export const BalanceSheetEquityAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceSheetEquityAccount$Outbound = { - account_id?: string | undefined; - code?: string | undefined; - name?: string | undefined; - value?: number | undefined; - items?: any | undefined; -}; - -/** @internal */ -export const BalanceSheetEquityAccount$outboundSchema: z.ZodType< - BalanceSheetEquityAccount$Outbound, - z.ZodTypeDef, - BalanceSheetEquityAccount -> = z.object({ - accountId: z.string().optional(), - code: z.string().optional(), - name: z.string().optional(), - value: z.number().optional(), - items: z.any().optional(), -}).transform((v) => { - return remap$(v, { - accountId: "account_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheetEquityAccount$ { - /** @deprecated use `BalanceSheetEquityAccount$inboundSchema` instead. */ - export const inboundSchema = BalanceSheetEquityAccount$inboundSchema; - /** @deprecated use `BalanceSheetEquityAccount$outboundSchema` instead. */ - export const outboundSchema = BalanceSheetEquityAccount$outboundSchema; - /** @deprecated use `BalanceSheetEquityAccount$Outbound` instead. */ - export type Outbound = BalanceSheetEquityAccount$Outbound; -} - -export function balanceSheetEquityAccountToJSON( - balanceSheetEquityAccount: BalanceSheetEquityAccount, -): string { - return JSON.stringify( - BalanceSheetEquityAccount$outboundSchema.parse(balanceSheetEquityAccount), - ); -} - export function balanceSheetEquityAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -425,57 +278,6 @@ export const BalanceSheetUncategorizedItemsAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BalanceSheetUncategorizedItemsAccount$Outbound = { - account_id?: string | undefined; - code?: string | undefined; - name?: string | undefined; - value?: number | undefined; - items?: any | undefined; -}; - -/** @internal */ -export const BalanceSheetUncategorizedItemsAccount$outboundSchema: z.ZodType< - BalanceSheetUncategorizedItemsAccount$Outbound, - z.ZodTypeDef, - BalanceSheetUncategorizedItemsAccount -> = z.object({ - accountId: z.string().optional(), - code: z.string().optional(), - name: z.string().optional(), - value: z.number().optional(), - items: z.any().optional(), -}).transform((v) => { - return remap$(v, { - accountId: "account_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheetUncategorizedItemsAccount$ { - /** @deprecated use `BalanceSheetUncategorizedItemsAccount$inboundSchema` instead. */ - export const inboundSchema = - BalanceSheetUncategorizedItemsAccount$inboundSchema; - /** @deprecated use `BalanceSheetUncategorizedItemsAccount$outboundSchema` instead. */ - export const outboundSchema = - BalanceSheetUncategorizedItemsAccount$outboundSchema; - /** @deprecated use `BalanceSheetUncategorizedItemsAccount$Outbound` instead. */ - export type Outbound = BalanceSheetUncategorizedItemsAccount$Outbound; -} - -export function balanceSheetUncategorizedItemsAccountToJSON( - balanceSheetUncategorizedItemsAccount: BalanceSheetUncategorizedItemsAccount, -): string { - return JSON.stringify( - BalanceSheetUncategorizedItemsAccount$outboundSchema.parse( - balanceSheetUncategorizedItemsAccount, - ), - ); -} - export function balanceSheetUncategorizedItemsAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -526,82 +328,6 @@ export const Reports$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Reports$Outbound = { - id?: string | undefined; - report_name?: string | undefined; - start_date?: string | undefined; - end_date: string; - currency?: string | null | undefined; - assets: BalanceSheetAssetsAccount$Outbound; - liabilities: BalanceSheetLiabilitiesAccount$Outbound; - equity: BalanceSheetEquityAccount$Outbound; - net_assets?: number | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - uncategorized_items?: - | BalanceSheetUncategorizedItemsAccount$Outbound - | undefined; -}; - -/** @internal */ -export const Reports$outboundSchema: z.ZodType< - Reports$Outbound, - z.ZodTypeDef, - Reports -> = z.object({ - id: z.string().optional(), - reportName: z.string().optional(), - startDate: z.string().optional(), - endDate: z.string(), - currency: z.nullable(Currency$outboundSchema).optional(), - assets: z.lazy(() => BalanceSheetAssetsAccount$outboundSchema), - liabilities: z.lazy(() => BalanceSheetLiabilitiesAccount$outboundSchema), - equity: z.lazy(() => BalanceSheetEquityAccount$outboundSchema), - netAssets: z.number().optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - uncategorizedItems: z.lazy(() => - BalanceSheetUncategorizedItemsAccount$outboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - reportName: "report_name", - startDate: "start_date", - endDate: "end_date", - netAssets: "net_assets", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - uncategorizedItems: "uncategorized_items", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Reports$ { - /** @deprecated use `Reports$inboundSchema` instead. */ - export const inboundSchema = Reports$inboundSchema; - /** @deprecated use `Reports$outboundSchema` instead. */ - export const outboundSchema = Reports$outboundSchema; - /** @deprecated use `Reports$Outbound` instead. */ - export type Outbound = Reports$Outbound; -} - -export function reportsToJSON(reports: Reports): string { - return JSON.stringify(Reports$outboundSchema.parse(reports)); -} - export function reportsFromJSON( jsonString: string, ): SafeParseResult { @@ -621,37 +347,6 @@ export const BalanceSheet$inboundSchema: z.ZodType< reports: z.array(z.lazy(() => Reports$inboundSchema)), }); -/** @internal */ -export type BalanceSheet$Outbound = { - reports: Array; -}; - -/** @internal */ -export const BalanceSheet$outboundSchema: z.ZodType< - BalanceSheet$Outbound, - z.ZodTypeDef, - BalanceSheet -> = z.object({ - reports: z.array(z.lazy(() => Reports$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheet$ { - /** @deprecated use `BalanceSheet$inboundSchema` instead. */ - export const inboundSchema = BalanceSheet$inboundSchema; - /** @deprecated use `BalanceSheet$outboundSchema` instead. */ - export const outboundSchema = BalanceSheet$outboundSchema; - /** @deprecated use `BalanceSheet$Outbound` instead. */ - export type Outbound = BalanceSheet$Outbound; -} - -export function balanceSheetToJSON(balanceSheet: BalanceSheet): string { - return JSON.stringify(BalanceSheet$outboundSchema.parse(balanceSheet)); -} - export function balanceSheetFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/balancesheetfilter.ts b/src/models/components/balancesheetfilter.ts index 546910924..581209883 100644 --- a/src/models/components/balancesheetfilter.ts +++ b/src/models/components/balancesheetfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of period to include in the resource: month, quarter, year. @@ -48,45 +45,9 @@ export type BalanceSheetFilter = { }; /** @internal */ -export const PeriodType$inboundSchema: z.ZodNativeEnum = z +export const PeriodType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PeriodType); -/** @internal */ -export const PeriodType$outboundSchema: z.ZodNativeEnum = - PeriodType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PeriodType$ { - /** @deprecated use `PeriodType$inboundSchema` instead. */ - export const inboundSchema = PeriodType$inboundSchema; - /** @deprecated use `PeriodType$outboundSchema` instead. */ - export const outboundSchema = PeriodType$outboundSchema; -} - -/** @internal */ -export const BalanceSheetFilter$inboundSchema: z.ZodType< - BalanceSheetFilter, - z.ZodTypeDef, - unknown -> = z.object({ - start_date: z.string().optional(), - end_date: z.string().optional(), - period_count: z.number().int().optional(), - period_type: PeriodType$inboundSchema.optional(), - location_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "start_date": "startDate", - "end_date": "endDate", - "period_count": "periodCount", - "period_type": "periodType", - "location_id": "locationId", - }); -}); - /** @internal */ export type BalanceSheetFilter$Outbound = { start_date?: string | undefined; @@ -117,19 +78,6 @@ export const BalanceSheetFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BalanceSheetFilter$ { - /** @deprecated use `BalanceSheetFilter$inboundSchema` instead. */ - export const inboundSchema = BalanceSheetFilter$inboundSchema; - /** @deprecated use `BalanceSheetFilter$outboundSchema` instead. */ - export const outboundSchema = BalanceSheetFilter$outboundSchema; - /** @deprecated use `BalanceSheetFilter$Outbound` instead. */ - export type Outbound = BalanceSheetFilter$Outbound; -} - export function balanceSheetFilterToJSON( balanceSheetFilter: BalanceSheetFilter, ): string { @@ -137,13 +85,3 @@ export function balanceSheetFilterToJSON( BalanceSheetFilter$outboundSchema.parse(balanceSheetFilter), ); } - -export function balanceSheetFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BalanceSheetFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BalanceSheetFilter' from JSON`, - ); -} diff --git a/src/models/components/bankaccount.ts b/src/models/components/bankaccount.ts index 0a18ec0c7..71731e734 100644 --- a/src/models/components/bankaccount.ts +++ b/src/models/components/bankaccount.ts @@ -81,22 +81,10 @@ export type BankAccount = { /** @internal */ export const AccountType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AccountType); - /** @internal */ export const AccountType$outboundSchema: z.ZodNativeEnum = AccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountType$ { - /** @deprecated use `AccountType$inboundSchema` instead. */ - export const inboundSchema = AccountType$inboundSchema; - /** @deprecated use `AccountType$outboundSchema` instead. */ - export const outboundSchema = AccountType$outboundSchema; -} - /** @internal */ export const BankAccount$inboundSchema: z.ZodType< BankAccount, @@ -127,7 +115,6 @@ export const BankAccount$inboundSchema: z.ZodType< "bank_code": "bankCode", }); }); - /** @internal */ export type BankAccount$Outbound = { bank_name?: string | null | undefined; @@ -175,23 +162,9 @@ export const BankAccount$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount$ { - /** @deprecated use `BankAccount$inboundSchema` instead. */ - export const inboundSchema = BankAccount$inboundSchema; - /** @deprecated use `BankAccount$outboundSchema` instead. */ - export const outboundSchema = BankAccount$outboundSchema; - /** @deprecated use `BankAccount$Outbound` instead. */ - export type Outbound = BankAccount$Outbound; -} - export function bankAccountToJSON(bankAccount: BankAccount): string { return JSON.stringify(BankAccount$outboundSchema.parse(bankAccount)); } - export function bankAccountFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bankaccount1.ts b/src/models/components/bankaccount1.ts index 404623d49..66f275ae0 100644 --- a/src/models/components/bankaccount1.ts +++ b/src/models/components/bankaccount1.ts @@ -84,23 +84,11 @@ export type BankAccount1 = { export const BankAccount1AccountType$inboundSchema: z.ZodNativeEnum< typeof BankAccount1AccountType > = z.nativeEnum(BankAccount1AccountType); - /** @internal */ export const BankAccount1AccountType$outboundSchema: z.ZodNativeEnum< typeof BankAccount1AccountType > = BankAccount1AccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount1AccountType$ { - /** @deprecated use `BankAccount1AccountType$inboundSchema` instead. */ - export const inboundSchema = BankAccount1AccountType$inboundSchema; - /** @deprecated use `BankAccount1AccountType$outboundSchema` instead. */ - export const outboundSchema = BankAccount1AccountType$outboundSchema; -} - /** @internal */ export const BankAccount1$inboundSchema: z.ZodType< BankAccount1, @@ -131,7 +119,6 @@ export const BankAccount1$inboundSchema: z.ZodType< "bank_code": "bankCode", }); }); - /** @internal */ export type BankAccount1$Outbound = { bank_name?: string | null | undefined; @@ -179,23 +166,9 @@ export const BankAccount1$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount1$ { - /** @deprecated use `BankAccount1$inboundSchema` instead. */ - export const inboundSchema = BankAccount1$inboundSchema; - /** @deprecated use `BankAccount1$outboundSchema` instead. */ - export const outboundSchema = BankAccount1$outboundSchema; - /** @deprecated use `BankAccount1$Outbound` instead. */ - export type Outbound = BankAccount1$Outbound; -} - export function bankAccount1ToJSON(bankAccount1: BankAccount1): string { return JSON.stringify(BankAccount1$outboundSchema.parse(bankAccount1)); } - export function bankAccount1FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bankaccount2.ts b/src/models/components/bankaccount2.ts index 49b0d4bf4..439c5f241 100644 --- a/src/models/components/bankaccount2.ts +++ b/src/models/components/bankaccount2.ts @@ -84,23 +84,11 @@ export type BankAccount2 = { export const BankAccount2AccountType$inboundSchema: z.ZodNativeEnum< typeof BankAccount2AccountType > = z.nativeEnum(BankAccount2AccountType); - /** @internal */ export const BankAccount2AccountType$outboundSchema: z.ZodNativeEnum< typeof BankAccount2AccountType > = BankAccount2AccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount2AccountType$ { - /** @deprecated use `BankAccount2AccountType$inboundSchema` instead. */ - export const inboundSchema = BankAccount2AccountType$inboundSchema; - /** @deprecated use `BankAccount2AccountType$outboundSchema` instead. */ - export const outboundSchema = BankAccount2AccountType$outboundSchema; -} - /** @internal */ export const BankAccount2$inboundSchema: z.ZodType< BankAccount2, @@ -131,7 +119,6 @@ export const BankAccount2$inboundSchema: z.ZodType< "bank_code": "bankCode", }); }); - /** @internal */ export type BankAccount2$Outbound = { bank_name?: string | null | undefined; @@ -179,23 +166,9 @@ export const BankAccount2$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount2$ { - /** @deprecated use `BankAccount2$inboundSchema` instead. */ - export const inboundSchema = BankAccount2$inboundSchema; - /** @deprecated use `BankAccount2$outboundSchema` instead. */ - export const outboundSchema = BankAccount2$outboundSchema; - /** @deprecated use `BankAccount2$Outbound` instead. */ - export type Outbound = BankAccount2$Outbound; -} - export function bankAccount2ToJSON(bankAccount2: BankAccount2): string { return JSON.stringify(BankAccount2$outboundSchema.parse(bankAccount2)); } - export function bankAccount2FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bankaccountsfilter.ts b/src/models/components/bankaccountsfilter.ts index 5959131c9..f4b78d919 100644 --- a/src/models/components/bankaccountsfilter.ts +++ b/src/models/components/bankaccountsfilter.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by account status @@ -34,36 +31,10 @@ export type BankAccountsFilter = { status?: BankAccountsFilterStatus | undefined; }; -/** @internal */ -export const BankAccountsFilterStatus$inboundSchema: z.ZodNativeEnum< - typeof BankAccountsFilterStatus -> = z.nativeEnum(BankAccountsFilterStatus); - /** @internal */ export const BankAccountsFilterStatus$outboundSchema: z.ZodNativeEnum< typeof BankAccountsFilterStatus -> = BankAccountsFilterStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccountsFilterStatus$ { - /** @deprecated use `BankAccountsFilterStatus$inboundSchema` instead. */ - export const inboundSchema = BankAccountsFilterStatus$inboundSchema; - /** @deprecated use `BankAccountsFilterStatus$outboundSchema` instead. */ - export const outboundSchema = BankAccountsFilterStatus$outboundSchema; -} - -/** @internal */ -export const BankAccountsFilter$inboundSchema: z.ZodType< - BankAccountsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - status: BankAccountsFilterStatus$inboundSchema.optional(), -}); +> = z.nativeEnum(BankAccountsFilterStatus); /** @internal */ export type BankAccountsFilter$Outbound = { @@ -81,19 +52,6 @@ export const BankAccountsFilter$outboundSchema: z.ZodType< status: BankAccountsFilterStatus$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccountsFilter$ { - /** @deprecated use `BankAccountsFilter$inboundSchema` instead. */ - export const inboundSchema = BankAccountsFilter$inboundSchema; - /** @deprecated use `BankAccountsFilter$outboundSchema` instead. */ - export const outboundSchema = BankAccountsFilter$outboundSchema; - /** @deprecated use `BankAccountsFilter$Outbound` instead. */ - export type Outbound = BankAccountsFilter$Outbound; -} - export function bankAccountsFilterToJSON( bankAccountsFilter: BankAccountsFilter, ): string { @@ -101,13 +59,3 @@ export function bankAccountsFilterToJSON( BankAccountsFilter$outboundSchema.parse(bankAccountsFilter), ); } - -export function bankAccountsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BankAccountsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BankAccountsFilter' from JSON`, - ); -} diff --git a/src/models/components/bankaccountssort.ts b/src/models/components/bankaccountssort.ts index 2fc395695..630e402b2 100644 --- a/src/models/components/bankaccountssort.ts +++ b/src/models/components/bankaccountssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,34 +33,9 @@ export type BankAccountsSort = { }; /** @internal */ -export const SortBy$inboundSchema: z.ZodNativeEnum = z +export const SortBy$outboundSchema: z.ZodNativeEnum = z .nativeEnum(SortBy); -/** @internal */ -export const SortBy$outboundSchema: z.ZodNativeEnum = - SortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SortBy$ { - /** @deprecated use `SortBy$inboundSchema` instead. */ - export const inboundSchema = SortBy$inboundSchema; - /** @deprecated use `SortBy$outboundSchema` instead. */ - export const outboundSchema = SortBy$outboundSchema; -} - -/** @internal */ -export const BankAccountsSort$inboundSchema: z.ZodType< - BankAccountsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: SortBy$inboundSchema.default("updated_at"), - direction: SortDirection$inboundSchema.default("asc"), -}); - /** @internal */ export type BankAccountsSort$Outbound = { by: string; @@ -81,19 +52,6 @@ export const BankAccountsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccountsSort$ { - /** @deprecated use `BankAccountsSort$inboundSchema` instead. */ - export const inboundSchema = BankAccountsSort$inboundSchema; - /** @deprecated use `BankAccountsSort$outboundSchema` instead. */ - export const outboundSchema = BankAccountsSort$outboundSchema; - /** @deprecated use `BankAccountsSort$Outbound` instead. */ - export type Outbound = BankAccountsSort$Outbound; -} - export function bankAccountsSortToJSON( bankAccountsSort: BankAccountsSort, ): string { @@ -101,13 +59,3 @@ export function bankAccountsSortToJSON( BankAccountsSort$outboundSchema.parse(bankAccountsSort), ); } - -export function bankAccountsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BankAccountsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BankAccountsSort' from JSON`, - ); -} diff --git a/src/models/components/bankfeedaccount.ts b/src/models/components/bankfeedaccount.ts index 1afa16d4c..ec2a89453 100644 --- a/src/models/components/bankfeedaccount.ts +++ b/src/models/components/bankfeedaccount.ts @@ -144,42 +144,18 @@ export type BankFeedAccountInput = { export const BankAccountType$inboundSchema: z.ZodNativeEnum< typeof BankAccountType > = z.nativeEnum(BankAccountType); - /** @internal */ export const BankAccountType$outboundSchema: z.ZodNativeEnum< typeof BankAccountType > = BankAccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccountType$ { - /** @deprecated use `BankAccountType$inboundSchema` instead. */ - export const inboundSchema = BankAccountType$inboundSchema; - /** @deprecated use `BankAccountType$outboundSchema` instead. */ - export const outboundSchema = BankAccountType$outboundSchema; -} - /** @internal */ export const FeedStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(FeedStatus); - /** @internal */ export const FeedStatus$outboundSchema: z.ZodNativeEnum = FeedStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedStatus$ { - /** @deprecated use `FeedStatus$inboundSchema` instead. */ - export const inboundSchema = FeedStatus$inboundSchema; - /** @deprecated use `FeedStatus$outboundSchema` instead. */ - export const outboundSchema = FeedStatus$outboundSchema; -} - /** @internal */ export const BankFeedAccount$inboundSchema: z.ZodType< BankFeedAccount, @@ -222,82 +198,6 @@ export const BankFeedAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BankFeedAccount$Outbound = { - id: string; - bank_account_type?: string | undefined; - source_account_id?: string | undefined; - target_account_id?: string | undefined; - target_account_name?: string | undefined; - target_account_number?: string | undefined; - currency?: string | null | undefined; - feed_status?: string | undefined; - country?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; -}; - -/** @internal */ -export const BankFeedAccount$outboundSchema: z.ZodType< - BankFeedAccount$Outbound, - z.ZodTypeDef, - BankFeedAccount -> = z.object({ - id: z.string(), - bankAccountType: BankAccountType$outboundSchema.optional(), - sourceAccountId: z.string().optional(), - targetAccountId: z.string().optional(), - targetAccountName: z.string().optional(), - targetAccountNumber: z.string().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - feedStatus: FeedStatus$outboundSchema.optional(), - country: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - bankAccountType: "bank_account_type", - sourceAccountId: "source_account_id", - targetAccountId: "target_account_id", - targetAccountName: "target_account_name", - targetAccountNumber: "target_account_number", - feedStatus: "feed_status", - customFields: "custom_fields", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - updatedBy: "updated_by", - createdBy: "created_by", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankFeedAccount$ { - /** @deprecated use `BankFeedAccount$inboundSchema` instead. */ - export const inboundSchema = BankFeedAccount$inboundSchema; - /** @deprecated use `BankFeedAccount$outboundSchema` instead. */ - export const outboundSchema = BankFeedAccount$outboundSchema; - /** @deprecated use `BankFeedAccount$Outbound` instead. */ - export type Outbound = BankFeedAccount$Outbound; -} - -export function bankFeedAccountToJSON( - bankFeedAccount: BankFeedAccount, -): string { - return JSON.stringify(BankFeedAccount$outboundSchema.parse(bankFeedAccount)); -} - export function bankFeedAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -308,33 +208,6 @@ export function bankFeedAccountFromJSON( ); } -/** @internal */ -export const BankFeedAccountInput$inboundSchema: z.ZodType< - BankFeedAccountInput, - z.ZodTypeDef, - unknown -> = z.object({ - bank_account_type: BankAccountType$inboundSchema.optional(), - source_account_id: z.string().optional(), - target_account_id: z.string().optional(), - target_account_name: z.string().optional(), - target_account_number: z.string().optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - feed_status: FeedStatus$inboundSchema.optional(), - country: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "bank_account_type": "bankAccountType", - "source_account_id": "sourceAccountId", - "target_account_id": "targetAccountId", - "target_account_name": "targetAccountName", - "target_account_number": "targetAccountNumber", - "feed_status": "feedStatus", - "custom_fields": "customFields", - }); -}); - /** @internal */ export type BankFeedAccountInput$Outbound = { bank_account_type?: string | undefined; @@ -375,19 +248,6 @@ export const BankFeedAccountInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankFeedAccountInput$ { - /** @deprecated use `BankFeedAccountInput$inboundSchema` instead. */ - export const inboundSchema = BankFeedAccountInput$inboundSchema; - /** @deprecated use `BankFeedAccountInput$outboundSchema` instead. */ - export const outboundSchema = BankFeedAccountInput$outboundSchema; - /** @deprecated use `BankFeedAccountInput$Outbound` instead. */ - export type Outbound = BankFeedAccountInput$Outbound; -} - export function bankFeedAccountInputToJSON( bankFeedAccountInput: BankFeedAccountInput, ): string { @@ -395,13 +255,3 @@ export function bankFeedAccountInputToJSON( BankFeedAccountInput$outboundSchema.parse(bankFeedAccountInput), ); } - -export function bankFeedAccountInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BankFeedAccountInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BankFeedAccountInput' from JSON`, - ); -} diff --git a/src/models/components/bankfeedstatement.ts b/src/models/components/bankfeedstatement.ts index 223c02aa7..754e3277b 100644 --- a/src/models/components/bankfeedstatement.ts +++ b/src/models/components/bankfeedstatement.ts @@ -182,44 +182,20 @@ export type BankFeedStatementInput = { export const StatementStatus$inboundSchema: z.ZodNativeEnum< typeof StatementStatus > = z.nativeEnum(StatementStatus); - /** @internal */ export const StatementStatus$outboundSchema: z.ZodNativeEnum< typeof StatementStatus > = StatementStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace StatementStatus$ { - /** @deprecated use `StatementStatus$inboundSchema` instead. */ - export const inboundSchema = StatementStatus$inboundSchema; - /** @deprecated use `StatementStatus$outboundSchema` instead. */ - export const outboundSchema = StatementStatus$outboundSchema; -} - /** @internal */ export const BankFeedStatementTransactionType$inboundSchema: z.ZodNativeEnum< typeof BankFeedStatementTransactionType > = z.nativeEnum(BankFeedStatementTransactionType); - /** @internal */ export const BankFeedStatementTransactionType$outboundSchema: z.ZodNativeEnum< typeof BankFeedStatementTransactionType > = BankFeedStatementTransactionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankFeedStatementTransactionType$ { - /** @deprecated use `BankFeedStatementTransactionType$inboundSchema` instead. */ - export const inboundSchema = BankFeedStatementTransactionType$inboundSchema; - /** @deprecated use `BankFeedStatementTransactionType$outboundSchema` instead. */ - export const outboundSchema = BankFeedStatementTransactionType$outboundSchema; -} - /** @internal */ export const Transactions$inboundSchema: z.ZodType< Transactions, @@ -244,7 +220,6 @@ export const Transactions$inboundSchema: z.ZodType< "transaction_type": "transactionType", }); }); - /** @internal */ export type Transactions$Outbound = { posted_date: string; @@ -280,23 +255,9 @@ export const Transactions$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Transactions$ { - /** @deprecated use `Transactions$inboundSchema` instead. */ - export const inboundSchema = Transactions$inboundSchema; - /** @deprecated use `Transactions$outboundSchema` instead. */ - export const outboundSchema = Transactions$outboundSchema; - /** @deprecated use `Transactions$Outbound` instead. */ - export type Outbound = Transactions$Outbound; -} - export function transactionsToJSON(transactions: Transactions): string { return JSON.stringify(Transactions$outboundSchema.parse(transactions)); } - export function transactionsFromJSON( jsonString: string, ): SafeParseResult { @@ -349,81 +310,6 @@ export const BankFeedStatement$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BankFeedStatement$Outbound = { - id: string; - bank_feed_account_id?: string | undefined; - status?: string | undefined; - start_date?: string | undefined; - end_date?: string | undefined; - start_balance?: number | undefined; - start_balance_credit_or_debit?: string | undefined; - end_balance?: number | undefined; - end_balance_credit_or_debit?: string | undefined; - transactions?: Array | undefined; - created_at?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - updated_by?: string | null | undefined; -}; - -/** @internal */ -export const BankFeedStatement$outboundSchema: z.ZodType< - BankFeedStatement$Outbound, - z.ZodTypeDef, - BankFeedStatement -> = z.object({ - id: z.string(), - bankFeedAccountId: z.string().optional(), - status: StatementStatus$outboundSchema.optional(), - startDate: z.date().transform(v => v.toISOString()).optional(), - endDate: z.date().transform(v => v.toISOString()).optional(), - startBalance: z.number().optional(), - startBalanceCreditOrDebit: CreditOrDebit$outboundSchema.optional(), - endBalance: z.number().optional(), - endBalanceCreditOrDebit: CreditOrDebit$outboundSchema.optional(), - transactions: z.array(z.lazy(() => Transactions$outboundSchema)).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedBy: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - bankFeedAccountId: "bank_feed_account_id", - startDate: "start_date", - endDate: "end_date", - startBalance: "start_balance", - startBalanceCreditOrDebit: "start_balance_credit_or_debit", - endBalance: "end_balance", - endBalanceCreditOrDebit: "end_balance_credit_or_debit", - createdAt: "created_at", - createdBy: "created_by", - updatedAt: "updated_at", - updatedBy: "updated_by", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankFeedStatement$ { - /** @deprecated use `BankFeedStatement$inboundSchema` instead. */ - export const inboundSchema = BankFeedStatement$inboundSchema; - /** @deprecated use `BankFeedStatement$outboundSchema` instead. */ - export const outboundSchema = BankFeedStatement$outboundSchema; - /** @deprecated use `BankFeedStatement$Outbound` instead. */ - export type Outbound = BankFeedStatement$Outbound; -} - -export function bankFeedStatementToJSON( - bankFeedStatement: BankFeedStatement, -): string { - return JSON.stringify( - BankFeedStatement$outboundSchema.parse(bankFeedStatement), - ); -} - export function bankFeedStatementFromJSON( jsonString: string, ): SafeParseResult { @@ -434,35 +320,6 @@ export function bankFeedStatementFromJSON( ); } -/** @internal */ -export const BankFeedStatementInput$inboundSchema: z.ZodType< - BankFeedStatementInput, - z.ZodTypeDef, - unknown -> = z.object({ - bank_feed_account_id: z.string().optional(), - status: StatementStatus$inboundSchema.optional(), - start_date: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - end_date: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - start_balance: z.number().optional(), - start_balance_credit_or_debit: CreditOrDebit$inboundSchema.optional(), - end_balance: z.number().optional(), - end_balance_credit_or_debit: CreditOrDebit$inboundSchema.optional(), - transactions: z.array(z.lazy(() => Transactions$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "bank_feed_account_id": "bankFeedAccountId", - "start_date": "startDate", - "end_date": "endDate", - "start_balance": "startBalance", - "start_balance_credit_or_debit": "startBalanceCreditOrDebit", - "end_balance": "endBalance", - "end_balance_credit_or_debit": "endBalanceCreditOrDebit", - }); -}); - /** @internal */ export type BankFeedStatementInput$Outbound = { bank_feed_account_id?: string | undefined; @@ -503,19 +360,6 @@ export const BankFeedStatementInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankFeedStatementInput$ { - /** @deprecated use `BankFeedStatementInput$inboundSchema` instead. */ - export const inboundSchema = BankFeedStatementInput$inboundSchema; - /** @deprecated use `BankFeedStatementInput$outboundSchema` instead. */ - export const outboundSchema = BankFeedStatementInput$outboundSchema; - /** @deprecated use `BankFeedStatementInput$Outbound` instead. */ - export type Outbound = BankFeedStatementInput$Outbound; -} - export function bankFeedStatementInputToJSON( bankFeedStatementInput: BankFeedStatementInput, ): string { @@ -523,13 +367,3 @@ export function bankFeedStatementInputToJSON( BankFeedStatementInput$outboundSchema.parse(bankFeedStatementInput), ); } - -export function bankFeedStatementInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BankFeedStatementInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BankFeedStatementInput' from JSON`, - ); -} diff --git a/src/models/components/benefit.ts b/src/models/components/benefit.ts index bbb69b0a6..7eb812f0a 100644 --- a/src/models/components/benefit.ts +++ b/src/models/components/benefit.ts @@ -36,46 +36,6 @@ export const Benefit$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Benefit$Outbound = { - name?: string | null | undefined; - employee_deduction?: number | null | undefined; - employer_contribution?: number | null | undefined; -}; - -/** @internal */ -export const Benefit$outboundSchema: z.ZodType< - Benefit$Outbound, - z.ZodTypeDef, - Benefit -> = z.object({ - name: z.nullable(z.string()).optional(), - employeeDeduction: z.nullable(z.number()).optional(), - employerContribution: z.nullable(z.number()).optional(), -}).transform((v) => { - return remap$(v, { - employeeDeduction: "employee_deduction", - employerContribution: "employer_contribution", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Benefit$ { - /** @deprecated use `Benefit$inboundSchema` instead. */ - export const inboundSchema = Benefit$inboundSchema; - /** @deprecated use `Benefit$outboundSchema` instead. */ - export const outboundSchema = Benefit$outboundSchema; - /** @deprecated use `Benefit$Outbound` instead. */ - export type Outbound = Benefit$Outbound; -} - -export function benefitToJSON(benefit: Benefit): string { - return JSON.stringify(Benefit$outboundSchema.parse(benefit)); -} - export function benefitFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bill.ts b/src/models/components/bill.ts index ece537043..e5675d0ad 100644 --- a/src/models/components/bill.ts +++ b/src/models/components/bill.ts @@ -15,16 +15,12 @@ import { BankAccount$Outbound, BankAccount$outboundSchema, } from "./bankaccount.js"; +import { BillLineItem, BillLineItem$inboundSchema } from "./billlineitem.js"; import { - BillLineItem, - BillLineItem$inboundSchema, - BillLineItem$Outbound, - BillLineItem$outboundSchema, BillLineItemInput, - BillLineItemInput$inboundSchema, BillLineItemInput$Outbound, BillLineItemInput$outboundSchema, -} from "./billlineitem.js"; +} from "./billlineiteminput.js"; import { Currency, Currency$inboundSchema, @@ -48,21 +44,12 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedSupplier, LinkedSupplier$inboundSchema, - LinkedSupplier$Outbound, - LinkedSupplier$outboundSchema, } from "./linkedsupplier.js"; import { LinkedSupplierInput, - LinkedSupplierInput$inboundSchema, LinkedSupplierInput$Outbound, LinkedSupplierInput$outboundSchema, } from "./linkedsupplierinput.js"; @@ -187,11 +174,11 @@ export type Bill = { */ deposit?: number | null | undefined; /** - * Sub-total amount, normally before tax. + * Subtotal amount, normally before tax. */ subTotal?: number | null | undefined; /** - * Total tax amount applied to this bill. + * Total tax amount applied to this transaction. */ totalTax?: number | null | undefined; /** @@ -360,11 +347,11 @@ export type BillInput = { */ deposit?: number | null | undefined; /** - * Sub-total amount, normally before tax. + * Subtotal amount, normally before tax. */ subTotal?: number | null | undefined; /** - * Total tax amount applied to this bill. + * Total tax amount applied to this transaction. */ totalTax?: number | null | undefined; /** @@ -380,7 +367,7 @@ export type BillInput = { * Invoice status */ status?: BillStatus | null | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; /** * Payment method used for the transaction, such as cash, credit card, bank transfer, or check */ @@ -449,43 +436,19 @@ export type BillInput = { /** @internal */ export const BillStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(BillStatus); - /** @internal */ export const BillStatus$outboundSchema: z.ZodNativeEnum = BillStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillStatus$ { - /** @deprecated use `BillStatus$inboundSchema` instead. */ - export const inboundSchema = BillStatus$inboundSchema; - /** @deprecated use `BillStatus$outboundSchema` instead. */ - export const outboundSchema = BillStatus$outboundSchema; -} - /** @internal */ export const AmortizationType$inboundSchema: z.ZodNativeEnum< typeof AmortizationType > = z.nativeEnum(AmortizationType); - /** @internal */ export const AmortizationType$outboundSchema: z.ZodNativeEnum< typeof AmortizationType > = AmortizationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AmortizationType$ { - /** @deprecated use `AmortizationType$inboundSchema` instead. */ - export const inboundSchema = AmortizationType$inboundSchema; - /** @deprecated use `AmortizationType$outboundSchema` instead. */ - export const outboundSchema = AmortizationType$outboundSchema; -} - /** @internal */ export const Bill$inboundSchema: z.ZodType = z .object({ @@ -585,178 +548,6 @@ export const Bill$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Bill$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - bill_number?: string | null | undefined; - supplier?: LinkedSupplier$Outbound | null | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - tax_inclusive?: boolean | null | undefined; - bill_date?: string | null | undefined; - due_date?: string | null | undefined; - paid_date?: string | null | undefined; - po_number?: string | null | undefined; - reference?: string | null | undefined; - line_items?: Array | undefined; - terms?: string | null | undefined; - balance?: number | null | undefined; - deposit?: number | null | undefined; - sub_total?: number | null | undefined; - total_tax?: number | null | undefined; - total?: number | null | undefined; - tax_code?: string | null | undefined; - notes?: string | null | undefined; - status?: string | null | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - payment_method?: string | null | undefined; - channel?: string | null | undefined; - language?: string | null | undefined; - accounting_by_row?: boolean | null | undefined; - bank_account?: BankAccount$Outbound | undefined; - discount_percentage?: number | null | undefined; - template_id?: string | null | undefined; - approved_by?: string | null | undefined; - amortization_type?: string | null | undefined; - tax_method?: string | null | undefined; - document_received?: boolean | null | undefined; - source_document_url?: string | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - pass_through?: Array | undefined; - accounting_period?: string | null | undefined; - attachments?: Array | undefined; -}; - -/** @internal */ -export const Bill$outboundSchema: z.ZodType = - z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - billNumber: z.nullable(z.string()).optional(), - supplier: z.nullable(LinkedSupplier$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - billDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - paidDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - poNumber: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - lineItems: z.array(BillLineItem$outboundSchema).optional(), - terms: z.nullable(z.string()).optional(), - balance: z.nullable(z.number()).optional(), - deposit: z.nullable(z.number()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalTax: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - taxCode: z.nullable(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - status: z.nullable(BillStatus$outboundSchema).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - paymentMethod: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - accountingByRow: z.nullable(z.boolean()).optional(), - bankAccount: BankAccount$outboundSchema.optional(), - discountPercentage: z.nullable(z.number()).optional(), - templateId: z.nullable(z.string()).optional(), - approvedBy: z.nullable(z.string()).optional(), - amortizationType: z.nullable(AmortizationType$outboundSchema).optional(), - taxMethod: z.nullable(z.string()).optional(), - documentReceived: z.nullable(z.boolean()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - accountingPeriod: z.nullable(z.string()).optional(), - attachments: z.array(z.nullable(LinkedAttachment$outboundSchema)) - .optional(), - }).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - billNumber: "bill_number", - companyId: "company_id", - departmentId: "department_id", - currencyRate: "currency_rate", - taxInclusive: "tax_inclusive", - billDate: "bill_date", - dueDate: "due_date", - paidDate: "paid_date", - poNumber: "po_number", - lineItems: "line_items", - subTotal: "sub_total", - totalTax: "total_tax", - taxCode: "tax_code", - ledgerAccount: "ledger_account", - paymentMethod: "payment_method", - accountingByRow: "accounting_by_row", - bankAccount: "bank_account", - discountPercentage: "discount_percentage", - templateId: "template_id", - approvedBy: "approved_by", - amortizationType: "amortization_type", - taxMethod: "tax_method", - documentReceived: "document_received", - sourceDocumentUrl: "source_document_url", - trackingCategories: "tracking_categories", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - customFields: "custom_fields", - customMappings: "custom_mappings", - passThrough: "pass_through", - accountingPeriod: "accounting_period", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Bill$ { - /** @deprecated use `Bill$inboundSchema` instead. */ - export const inboundSchema = Bill$inboundSchema; - /** @deprecated use `Bill$outboundSchema` instead. */ - export const outboundSchema = Bill$outboundSchema; - /** @deprecated use `Bill$Outbound` instead. */ - export type Outbound = Bill$Outbound; -} - -export function billToJSON(bill: Bill): string { - return JSON.stringify(Bill$outboundSchema.parse(bill)); -} - export function billFromJSON( jsonString: string, ): SafeParseResult { @@ -767,91 +558,6 @@ export function billFromJSON( ); } -/** @internal */ -export const BillInput$inboundSchema: z.ZodType< - BillInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - bill_number: z.nullable(z.string()).optional(), - supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - bill_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - paid_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - po_number: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - line_items: z.array(BillLineItemInput$inboundSchema).optional(), - terms: z.nullable(z.string()).optional(), - balance: z.nullable(z.number()).optional(), - deposit: z.nullable(z.number()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_tax: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - tax_code: z.nullable(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - status: z.nullable(BillStatus$inboundSchema).optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - payment_method: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - accounting_by_row: z.nullable(z.boolean()).optional(), - bank_account: BankAccount$inboundSchema.optional(), - discount_percentage: z.nullable(z.number()).optional(), - template_id: z.nullable(z.string()).optional(), - approved_by: z.nullable(z.string()).optional(), - amortization_type: z.nullable(AmortizationType$inboundSchema).optional(), - tax_method: z.nullable(z.string()).optional(), - document_received: z.nullable(z.boolean()).optional(), - source_document_url: z.nullable(z.string()).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - row_version: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), - accounting_period: z.nullable(z.string()).optional(), - attachments: z.array(z.nullable(LinkedAttachment$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "bill_number": "billNumber", - "company_id": "companyId", - "department_id": "departmentId", - "currency_rate": "currencyRate", - "tax_inclusive": "taxInclusive", - "bill_date": "billDate", - "due_date": "dueDate", - "paid_date": "paidDate", - "po_number": "poNumber", - "line_items": "lineItems", - "sub_total": "subTotal", - "total_tax": "totalTax", - "tax_code": "taxCode", - "ledger_account": "ledgerAccount", - "payment_method": "paymentMethod", - "accounting_by_row": "accountingByRow", - "bank_account": "bankAccount", - "discount_percentage": "discountPercentage", - "template_id": "templateId", - "approved_by": "approvedBy", - "amortization_type": "amortizationType", - "tax_method": "taxMethod", - "document_received": "documentReceived", - "source_document_url": "sourceDocumentUrl", - "tracking_categories": "trackingCategories", - "row_version": "rowVersion", - "custom_fields": "customFields", - "pass_through": "passThrough", - "accounting_period": "accountingPeriod", - }); -}); - /** @internal */ export type BillInput$Outbound = { display_id?: string | null | undefined; @@ -877,7 +583,7 @@ export type BillInput$Outbound = { tax_code?: string | null | undefined; notes?: string | null | undefined; status?: string | null | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; payment_method?: string | null | undefined; channel?: string | null | undefined; language?: string | null | undefined; @@ -933,7 +639,7 @@ export const BillInput$outboundSchema: z.ZodType< taxCode: z.nullable(z.string()).optional(), notes: z.nullable(z.string()).optional(), status: z.nullable(BillStatus$outboundSchema).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), paymentMethod: z.nullable(z.string()).optional(), channel: z.nullable(z.string()).optional(), language: z.nullable(z.string()).optional(), @@ -989,29 +695,6 @@ export const BillInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillInput$ { - /** @deprecated use `BillInput$inboundSchema` instead. */ - export const inboundSchema = BillInput$inboundSchema; - /** @deprecated use `BillInput$outboundSchema` instead. */ - export const outboundSchema = BillInput$outboundSchema; - /** @deprecated use `BillInput$Outbound` instead. */ - export type Outbound = BillInput$Outbound; -} - export function billInputToJSON(billInput: BillInput): string { return JSON.stringify(BillInput$outboundSchema.parse(billInput)); } - -export function billInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillInput' from JSON`, - ); -} diff --git a/src/models/components/billlineitem.ts b/src/models/components/billlineitem.ts index effd93f98..f0c91c406 100644 --- a/src/models/components/billlineitem.ts +++ b/src/models/components/billlineitem.ts @@ -5,88 +5,32 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { LineItemType, LineItemType$inboundSchema } from "./lineitemtype.js"; import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; -import { - LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, - LinkedCustomerInput$Outbound, - LinkedCustomerInput$outboundSchema, -} from "./linkedcustomerinput.js"; import { LinkedInvoiceItem, LinkedInvoiceItem$inboundSchema, - LinkedInvoiceItem$Outbound, - LinkedInvoiceItem$outboundSchema, } from "./linkedinvoiceitem.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$inboundSchema, - LinkedLedgerAccount$Outbound, - LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedPurchaseOrder, LinkedPurchaseOrder$inboundSchema, - LinkedPurchaseOrder$Outbound, - LinkedPurchaseOrder$outboundSchema, } from "./linkedpurchaseorder.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; -import { - LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, - LinkedTaxRateInput$Outbound, - LinkedTaxRateInput$outboundSchema, -} from "./linkedtaxrateinput.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$inboundSchema, - LinkedTrackingCategory$Outbound, - LinkedTrackingCategory$outboundSchema, } from "./linkedtrackingcategory.js"; -import { - LinkedWorktag, - LinkedWorktag$inboundSchema, - LinkedWorktag$Outbound, - LinkedWorktag$outboundSchema, -} from "./linkedworktag.js"; -import { - Rebilling, - Rebilling$inboundSchema, - Rebilling$Outbound, - Rebilling$outboundSchema, -} from "./rebilling.js"; - -/** - * Bill Line Item type - */ -export const BillLineItemType = { - ExpenseItem: "expense_item", - ExpenseAccount: "expense_account", - Other: "other", -} as const; -/** - * Bill Line Item type - */ -export type BillLineItemType = ClosedEnum; +import { LinkedWorktag, LinkedWorktag$inboundSchema } from "./linkedworktag.js"; +import { Rebilling, Rebilling$inboundSchema } from "./rebilling.js"; export type BillLineItem = { /** @@ -110,9 +54,9 @@ export type BillLineItem = { */ description?: string | null | undefined; /** - * Bill Line Item type + * Line Item type */ - type?: BillLineItemType | null | undefined; + type?: LineItemType | null | undefined; /** * Tax amount */ @@ -225,144 +169,6 @@ export type BillLineItem = { worktags?: Array | undefined; }; -export type BillLineItemInput = { - /** - * Row ID - */ - rowId?: string | undefined; - /** - * User defined item code - */ - code?: string | null | undefined; - /** - * Line number in the invoice - */ - lineNumber?: number | null | undefined; - /** - * User defined description - */ - description?: string | null | undefined; - /** - * Bill Line Item type - */ - type?: BillLineItemType | null | undefined; - /** - * Tax amount - */ - taxAmount?: number | null | undefined; - /** - * Total amount of the line item - */ - totalAmount?: number | null | undefined; - quantity?: number | null | undefined; - unitPrice?: number | null | undefined; - /** - * Description of the unit type the item is sold as, ie: kg, hour. - */ - unitOfMeasure?: string | null | undefined; - /** - * Discount percentage applied to the line item when supported downstream. - */ - discountPercentage?: number | null | undefined; - /** - * Discount amount applied to the line item when supported downstream. - */ - discountAmount?: number | null | undefined; - /** - * The ID of the location - */ - locationId?: string | null | undefined; - /** - * The ID of the department - */ - departmentId?: string | null | undefined; - /** - * The ID of the subsidiary - */ - subsidiaryId?: string | null | undefined; - /** - * ID of the category of the line item - */ - categoryId?: string | null | undefined; - /** - * ID of the shipping of the line item - */ - shippingId?: string | null | undefined; - /** - * Memo - */ - memo?: string | null | undefined; - /** - * Whether the line item is prepaid - */ - prepaid?: boolean | null | undefined; - /** - * Tax applicable on - */ - taxApplicableOn?: string | null | undefined; - /** - * Tax recoverability - */ - taxRecoverability?: string | null | undefined; - /** - * Method of tax calculation - */ - taxMethod?: string | null | undefined; - /** - * Retention amount - */ - retentionAmount?: number | null | undefined; - /** - * Payment amount - */ - paymentAmount?: number | null | undefined; - item?: LinkedInvoiceItem | undefined; - taxRate?: LinkedTaxRateInput | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; - purchaseOrder?: LinkedPurchaseOrder | null | undefined; - /** - * A list of linked tracking categories. - */ - trackingCategories?: Array | null | undefined; - /** - * The customer this entity is linked to. - */ - customer?: LinkedCustomerInput | null | undefined; - /** - * Rebilling metadata for this line item. - */ - rebilling?: Rebilling | null | undefined; - /** - * 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. - */ - rowVersion?: string | null | undefined; - /** - * A list of linked worktags. This is only supported for Workday. - */ - worktags?: Array | undefined; -}; - -/** @internal */ -export const BillLineItemType$inboundSchema: z.ZodNativeEnum< - typeof BillLineItemType -> = z.nativeEnum(BillLineItemType); - -/** @internal */ -export const BillLineItemType$outboundSchema: z.ZodNativeEnum< - typeof BillLineItemType -> = BillLineItemType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillLineItemType$ { - /** @deprecated use `BillLineItemType$inboundSchema` instead. */ - export const inboundSchema = BillLineItemType$inboundSchema; - /** @deprecated use `BillLineItemType$outboundSchema` instead. */ - export const outboundSchema = BillLineItemType$outboundSchema; -} - /** @internal */ export const BillLineItem$inboundSchema: z.ZodType< BillLineItem, @@ -374,7 +180,7 @@ export const BillLineItem$inboundSchema: z.ZodType< code: z.nullable(z.string()).optional(), line_number: z.nullable(z.number().int()).optional(), description: z.nullable(z.string()).optional(), - type: z.nullable(BillLineItemType$inboundSchema).optional(), + type: z.nullable(LineItemType$inboundSchema).optional(), tax_amount: z.nullable(z.number()).optional(), total_amount: z.nullable(z.number()).optional(), quantity: z.nullable(z.number()).optional(), @@ -445,146 +251,6 @@ export const BillLineItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BillLineItem$Outbound = { - id?: string | undefined; - row_id?: string | undefined; - code?: string | null | undefined; - line_number?: number | null | undefined; - description?: string | null | undefined; - type?: string | null | undefined; - tax_amount?: number | null | undefined; - total_amount?: number | null | undefined; - quantity?: number | null | undefined; - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - location_id?: string | null | undefined; - department_id?: string | null | undefined; - subsidiary_id?: string | null | undefined; - category_id?: string | null | undefined; - shipping_id?: string | null | undefined; - memo?: string | null | undefined; - prepaid?: boolean | null | undefined; - tax_applicable_on?: string | null | undefined; - tax_recoverability?: string | null | undefined; - tax_method?: string | null | undefined; - retention_amount?: number | null | undefined; - payment_amount?: number | null | undefined; - item?: LinkedInvoiceItem$Outbound | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - purchase_order?: LinkedPurchaseOrder$Outbound | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - customer?: LinkedCustomer$Outbound | null | undefined; - rebilling?: Rebilling$Outbound | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - worktags?: Array | undefined; -}; - -/** @internal */ -export const BillLineItem$outboundSchema: z.ZodType< - BillLineItem$Outbound, - z.ZodTypeDef, - BillLineItem -> = z.object({ - id: z.string().optional(), - rowId: z.string().optional(), - code: z.nullable(z.string()).optional(), - lineNumber: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(BillLineItemType$outboundSchema).optional(), - taxAmount: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - locationId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - categoryId: z.nullable(z.string()).optional(), - shippingId: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - prepaid: z.nullable(z.boolean()).optional(), - taxApplicableOn: z.nullable(z.string()).optional(), - taxRecoverability: z.nullable(z.string()).optional(), - taxMethod: z.nullable(z.string()).optional(), - retentionAmount: z.nullable(z.number()).optional(), - paymentAmount: z.nullable(z.number()).optional(), - item: LinkedInvoiceItem$outboundSchema.optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - purchaseOrder: z.nullable(LinkedPurchaseOrder$outboundSchema).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - rebilling: z.nullable(Rebilling$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - rowId: "row_id", - lineNumber: "line_number", - taxAmount: "tax_amount", - totalAmount: "total_amount", - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - locationId: "location_id", - departmentId: "department_id", - subsidiaryId: "subsidiary_id", - categoryId: "category_id", - shippingId: "shipping_id", - taxApplicableOn: "tax_applicable_on", - taxRecoverability: "tax_recoverability", - taxMethod: "tax_method", - retentionAmount: "retention_amount", - paymentAmount: "payment_amount", - taxRate: "tax_rate", - ledgerAccount: "ledger_account", - purchaseOrder: "purchase_order", - trackingCategories: "tracking_categories", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillLineItem$ { - /** @deprecated use `BillLineItem$inboundSchema` instead. */ - export const inboundSchema = BillLineItem$inboundSchema; - /** @deprecated use `BillLineItem$outboundSchema` instead. */ - export const outboundSchema = BillLineItem$outboundSchema; - /** @deprecated use `BillLineItem$Outbound` instead. */ - export type Outbound = BillLineItem$Outbound; -} - -export function billLineItemToJSON(billLineItem: BillLineItem): string { - return JSON.stringify(BillLineItem$outboundSchema.parse(billLineItem)); -} - export function billLineItemFromJSON( jsonString: string, ): SafeParseResult { @@ -594,212 +260,3 @@ export function billLineItemFromJSON( `Failed to parse 'BillLineItem' from JSON`, ); } - -/** @internal */ -export const BillLineItemInput$inboundSchema: z.ZodType< - BillLineItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - row_id: z.string().optional(), - code: z.nullable(z.string()).optional(), - line_number: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(BillLineItemType$inboundSchema).optional(), - tax_amount: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unit_price: z.nullable(z.number()).optional(), - unit_of_measure: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - discount_amount: z.nullable(z.number()).optional(), - location_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - subsidiary_id: z.nullable(z.string()).optional(), - category_id: z.nullable(z.string()).optional(), - shipping_id: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - prepaid: z.nullable(z.boolean()).optional(), - tax_applicable_on: z.nullable(z.string()).optional(), - tax_recoverability: z.nullable(z.string()).optional(), - tax_method: z.nullable(z.string()).optional(), - retention_amount: z.nullable(z.number()).optional(), - payment_amount: z.nullable(z.number()).optional(), - item: LinkedInvoiceItem$inboundSchema.optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - purchase_order: z.nullable(LinkedPurchaseOrder$inboundSchema).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - rebilling: z.nullable(Rebilling$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "row_id": "rowId", - "line_number": "lineNumber", - "tax_amount": "taxAmount", - "total_amount": "totalAmount", - "unit_price": "unitPrice", - "unit_of_measure": "unitOfMeasure", - "discount_percentage": "discountPercentage", - "discount_amount": "discountAmount", - "location_id": "locationId", - "department_id": "departmentId", - "subsidiary_id": "subsidiaryId", - "category_id": "categoryId", - "shipping_id": "shippingId", - "tax_applicable_on": "taxApplicableOn", - "tax_recoverability": "taxRecoverability", - "tax_method": "taxMethod", - "retention_amount": "retentionAmount", - "payment_amount": "paymentAmount", - "tax_rate": "taxRate", - "ledger_account": "ledgerAccount", - "purchase_order": "purchaseOrder", - "tracking_categories": "trackingCategories", - "row_version": "rowVersion", - }); -}); - -/** @internal */ -export type BillLineItemInput$Outbound = { - row_id?: string | undefined; - code?: string | null | undefined; - line_number?: number | null | undefined; - description?: string | null | undefined; - type?: string | null | undefined; - tax_amount?: number | null | undefined; - total_amount?: number | null | undefined; - quantity?: number | null | undefined; - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - location_id?: string | null | undefined; - department_id?: string | null | undefined; - subsidiary_id?: string | null | undefined; - category_id?: string | null | undefined; - shipping_id?: string | null | undefined; - memo?: string | null | undefined; - prepaid?: boolean | null | undefined; - tax_applicable_on?: string | null | undefined; - tax_recoverability?: string | null | undefined; - tax_method?: string | null | undefined; - retention_amount?: number | null | undefined; - payment_amount?: number | null | undefined; - item?: LinkedInvoiceItem$Outbound | undefined; - tax_rate?: LinkedTaxRateInput$Outbound | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; - purchase_order?: LinkedPurchaseOrder$Outbound | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - customer?: LinkedCustomerInput$Outbound | null | undefined; - rebilling?: Rebilling$Outbound | null | undefined; - row_version?: string | null | undefined; - worktags?: Array | undefined; -}; - -/** @internal */ -export const BillLineItemInput$outboundSchema: z.ZodType< - BillLineItemInput$Outbound, - z.ZodTypeDef, - BillLineItemInput -> = z.object({ - rowId: z.string().optional(), - code: z.nullable(z.string()).optional(), - lineNumber: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(BillLineItemType$outboundSchema).optional(), - taxAmount: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - locationId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - categoryId: z.nullable(z.string()).optional(), - shippingId: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - prepaid: z.nullable(z.boolean()).optional(), - taxApplicableOn: z.nullable(z.string()).optional(), - taxRecoverability: z.nullable(z.string()).optional(), - taxMethod: z.nullable(z.string()).optional(), - retentionAmount: z.nullable(z.number()).optional(), - paymentAmount: z.nullable(z.number()).optional(), - item: LinkedInvoiceItem$outboundSchema.optional(), - taxRate: LinkedTaxRateInput$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), - purchaseOrder: z.nullable(LinkedPurchaseOrder$outboundSchema).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(), - rebilling: z.nullable(Rebilling$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - rowId: "row_id", - lineNumber: "line_number", - taxAmount: "tax_amount", - totalAmount: "total_amount", - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - locationId: "location_id", - departmentId: "department_id", - subsidiaryId: "subsidiary_id", - categoryId: "category_id", - shippingId: "shipping_id", - taxApplicableOn: "tax_applicable_on", - taxRecoverability: "tax_recoverability", - taxMethod: "tax_method", - retentionAmount: "retention_amount", - paymentAmount: "payment_amount", - taxRate: "tax_rate", - ledgerAccount: "ledger_account", - purchaseOrder: "purchase_order", - trackingCategories: "tracking_categories", - rowVersion: "row_version", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillLineItemInput$ { - /** @deprecated use `BillLineItemInput$inboundSchema` instead. */ - export const inboundSchema = BillLineItemInput$inboundSchema; - /** @deprecated use `BillLineItemInput$outboundSchema` instead. */ - export const outboundSchema = BillLineItemInput$outboundSchema; - /** @deprecated use `BillLineItemInput$Outbound` instead. */ - export type Outbound = BillLineItemInput$Outbound; -} - -export function billLineItemInputToJSON( - billLineItemInput: BillLineItemInput, -): string { - return JSON.stringify( - BillLineItemInput$outboundSchema.parse(billLineItemInput), - ); -} - -export function billLineItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillLineItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillLineItemInput' from JSON`, - ); -} diff --git a/src/models/components/billlineiteminput.ts b/src/models/components/billlineiteminput.ts new file mode 100644 index 000000000..2ed2537a6 --- /dev/null +++ b/src/models/components/billlineiteminput.ts @@ -0,0 +1,281 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { LineItemType, LineItemType$outboundSchema } from "./lineitemtype.js"; +import { + LinkedCustomerInput, + LinkedCustomerInput$Outbound, + LinkedCustomerInput$outboundSchema, +} from "./linkedcustomerinput.js"; +import { + LinkedInvoiceItem, + LinkedInvoiceItem$Outbound, + LinkedInvoiceItem$outboundSchema, +} from "./linkedinvoiceitem.js"; +import { + LinkedLedgerAccount, + LinkedLedgerAccount$Outbound, + LinkedLedgerAccount$outboundSchema, +} from "./linkedledgeraccount.js"; +import { + LinkedPurchaseOrder, + LinkedPurchaseOrder$Outbound, + LinkedPurchaseOrder$outboundSchema, +} from "./linkedpurchaseorder.js"; +import { + LinkedTaxRateInput, + LinkedTaxRateInput$Outbound, + LinkedTaxRateInput$outboundSchema, +} from "./linkedtaxrateinput.js"; +import { + LinkedTrackingCategory, + LinkedTrackingCategory$Outbound, + LinkedTrackingCategory$outboundSchema, +} from "./linkedtrackingcategory.js"; +import { + LinkedWorktag, + LinkedWorktag$Outbound, + LinkedWorktag$outboundSchema, +} from "./linkedworktag.js"; +import { + Rebilling, + Rebilling$Outbound, + Rebilling$outboundSchema, +} from "./rebilling.js"; + +export type BillLineItemInput = { + /** + * Row ID + */ + rowId?: string | undefined; + /** + * User defined item code + */ + code?: string | null | undefined; + /** + * Line number in the invoice + */ + lineNumber?: number | null | undefined; + /** + * User defined description + */ + description?: string | null | undefined; + /** + * Line Item type + */ + type?: LineItemType | null | undefined; + /** + * Tax amount + */ + taxAmount?: number | null | undefined; + /** + * Total amount of the line item + */ + totalAmount?: number | null | undefined; + quantity?: number | null | undefined; + unitPrice?: number | null | undefined; + /** + * Description of the unit type the item is sold as, ie: kg, hour. + */ + unitOfMeasure?: string | null | undefined; + /** + * Discount percentage applied to the line item when supported downstream. + */ + discountPercentage?: number | null | undefined; + /** + * Discount amount applied to the line item when supported downstream. + */ + discountAmount?: number | null | undefined; + /** + * The ID of the location + */ + locationId?: string | null | undefined; + /** + * The ID of the department + */ + departmentId?: string | null | undefined; + /** + * The ID of the subsidiary + */ + subsidiaryId?: string | null | undefined; + /** + * ID of the category of the line item + */ + categoryId?: string | null | undefined; + /** + * ID of the shipping of the line item + */ + shippingId?: string | null | undefined; + /** + * Memo + */ + memo?: string | null | undefined; + /** + * Whether the line item is prepaid + */ + prepaid?: boolean | null | undefined; + /** + * Tax applicable on + */ + taxApplicableOn?: string | null | undefined; + /** + * Tax recoverability + */ + taxRecoverability?: string | null | undefined; + /** + * Method of tax calculation + */ + taxMethod?: string | null | undefined; + /** + * Retention amount + */ + retentionAmount?: number | null | undefined; + /** + * Payment amount + */ + paymentAmount?: number | null | undefined; + item?: LinkedInvoiceItem | undefined; + taxRate?: LinkedTaxRateInput | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; + purchaseOrder?: LinkedPurchaseOrder | null | undefined; + /** + * A list of linked tracking categories. + */ + trackingCategories?: Array | null | undefined; + /** + * The customer this entity is linked to. + */ + customer?: LinkedCustomerInput | null | undefined; + /** + * Rebilling metadata for this line item. + */ + rebilling?: Rebilling | null | undefined; + /** + * 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. + */ + rowVersion?: string | null | undefined; + /** + * A list of linked worktags. This is only supported for Workday. + */ + worktags?: Array | undefined; +}; + +/** @internal */ +export type BillLineItemInput$Outbound = { + row_id?: string | undefined; + code?: string | null | undefined; + line_number?: number | null | undefined; + description?: string | null | undefined; + type?: string | null | undefined; + tax_amount?: number | null | undefined; + total_amount?: number | null | undefined; + quantity?: number | null | undefined; + unit_price?: number | null | undefined; + unit_of_measure?: string | null | undefined; + discount_percentage?: number | null | undefined; + discount_amount?: number | null | undefined; + location_id?: string | null | undefined; + department_id?: string | null | undefined; + subsidiary_id?: string | null | undefined; + category_id?: string | null | undefined; + shipping_id?: string | null | undefined; + memo?: string | null | undefined; + prepaid?: boolean | null | undefined; + tax_applicable_on?: string | null | undefined; + tax_recoverability?: string | null | undefined; + tax_method?: string | null | undefined; + retention_amount?: number | null | undefined; + payment_amount?: number | null | undefined; + item?: LinkedInvoiceItem$Outbound | undefined; + tax_rate?: LinkedTaxRateInput$Outbound | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; + purchase_order?: LinkedPurchaseOrder$Outbound | null | undefined; + tracking_categories?: + | Array + | null + | undefined; + customer?: LinkedCustomerInput$Outbound | null | undefined; + rebilling?: Rebilling$Outbound | null | undefined; + row_version?: string | null | undefined; + worktags?: Array | undefined; +}; + +/** @internal */ +export const BillLineItemInput$outboundSchema: z.ZodType< + BillLineItemInput$Outbound, + z.ZodTypeDef, + BillLineItemInput +> = z.object({ + rowId: z.string().optional(), + code: z.nullable(z.string()).optional(), + lineNumber: z.nullable(z.number().int()).optional(), + description: z.nullable(z.string()).optional(), + type: z.nullable(LineItemType$outboundSchema).optional(), + taxAmount: z.nullable(z.number()).optional(), + totalAmount: z.nullable(z.number()).optional(), + quantity: z.nullable(z.number()).optional(), + unitPrice: z.nullable(z.number()).optional(), + unitOfMeasure: z.nullable(z.string()).optional(), + discountPercentage: z.nullable(z.number()).optional(), + discountAmount: z.nullable(z.number()).optional(), + locationId: z.nullable(z.string()).optional(), + departmentId: z.nullable(z.string()).optional(), + subsidiaryId: z.nullable(z.string()).optional(), + categoryId: z.nullable(z.string()).optional(), + shippingId: z.nullable(z.string()).optional(), + memo: z.nullable(z.string()).optional(), + prepaid: z.nullable(z.boolean()).optional(), + taxApplicableOn: z.nullable(z.string()).optional(), + taxRecoverability: z.nullable(z.string()).optional(), + taxMethod: z.nullable(z.string()).optional(), + retentionAmount: z.nullable(z.number()).optional(), + paymentAmount: z.nullable(z.number()).optional(), + item: LinkedInvoiceItem$outboundSchema.optional(), + taxRate: LinkedTaxRateInput$outboundSchema.optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), + purchaseOrder: z.nullable(LinkedPurchaseOrder$outboundSchema).optional(), + trackingCategories: z.nullable( + z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), + ).optional(), + customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(), + rebilling: z.nullable(Rebilling$outboundSchema).optional(), + rowVersion: z.nullable(z.string()).optional(), + worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(), +}).transform((v) => { + return remap$(v, { + rowId: "row_id", + lineNumber: "line_number", + taxAmount: "tax_amount", + totalAmount: "total_amount", + unitPrice: "unit_price", + unitOfMeasure: "unit_of_measure", + discountPercentage: "discount_percentage", + discountAmount: "discount_amount", + locationId: "location_id", + departmentId: "department_id", + subsidiaryId: "subsidiary_id", + categoryId: "category_id", + shippingId: "shipping_id", + taxApplicableOn: "tax_applicable_on", + taxRecoverability: "tax_recoverability", + taxMethod: "tax_method", + retentionAmount: "retention_amount", + paymentAmount: "payment_amount", + taxRate: "tax_rate", + ledgerAccount: "ledger_account", + purchaseOrder: "purchase_order", + trackingCategories: "tracking_categories", + rowVersion: "row_version", + }); +}); + +export function billLineItemInputToJSON( + billLineItemInput: BillLineItemInput, +): string { + return JSON.stringify( + BillLineItemInput$outboundSchema.parse(billLineItemInput), + ); +} diff --git a/src/models/components/billpayment.ts b/src/models/components/billpayment.ts index 42e712f17..31c9c8126 100644 --- a/src/models/components/billpayment.ts +++ b/src/models/components/billpayment.ts @@ -25,21 +25,12 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedSupplier, LinkedSupplier$inboundSchema, - LinkedSupplier$Outbound, - LinkedSupplier$outboundSchema, } from "./linkedsupplier.js"; import { LinkedSupplierInput, - LinkedSupplierInput$inboundSchema, LinkedSupplierInput$Outbound, LinkedSupplierInput$outboundSchema, } from "./linkedsupplierinput.js"; @@ -272,7 +263,7 @@ export type BillPaymentInput = { * A unique identifier for an object. */ paymentMethodId?: string | null | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ @@ -329,44 +320,20 @@ export type BillPaymentInput = { export const BillPaymentType$inboundSchema: z.ZodNativeEnum< typeof BillPaymentType > = z.nativeEnum(BillPaymentType); - /** @internal */ export const BillPaymentType$outboundSchema: z.ZodNativeEnum< typeof BillPaymentType > = BillPaymentType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillPaymentType$ { - /** @deprecated use `BillPaymentType$inboundSchema` instead. */ - export const inboundSchema = BillPaymentType$inboundSchema; - /** @deprecated use `BillPaymentType$outboundSchema` instead. */ - export const outboundSchema = BillPaymentType$outboundSchema; -} - /** @internal */ export const BillPaymentAllocationType$inboundSchema: z.ZodNativeEnum< typeof BillPaymentAllocationType > = z.nativeEnum(BillPaymentAllocationType); - /** @internal */ export const BillPaymentAllocationType$outboundSchema: z.ZodNativeEnum< typeof BillPaymentAllocationType > = BillPaymentAllocationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillPaymentAllocationType$ { - /** @deprecated use `BillPaymentAllocationType$inboundSchema` instead. */ - export const inboundSchema = BillPaymentAllocationType$inboundSchema; - /** @deprecated use `BillPaymentAllocationType$outboundSchema` instead. */ - export const outboundSchema = BillPaymentAllocationType$outboundSchema; -} - /** @internal */ export const Allocations$inboundSchema: z.ZodType< Allocations, @@ -384,49 +351,6 @@ export const Allocations$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Allocations$Outbound = { - id?: string | null | undefined; - type?: string | undefined; - code?: string | undefined; - amount?: number | null | undefined; - allocation_id?: string | undefined; -}; - -/** @internal */ -export const Allocations$outboundSchema: z.ZodType< - Allocations$Outbound, - z.ZodTypeDef, - Allocations -> = z.object({ - id: z.nullable(z.string()).optional(), - type: BillPaymentAllocationType$outboundSchema.optional(), - code: z.string().optional(), - amount: z.nullable(z.number()).optional(), - allocationId: z.string().optional(), -}).transform((v) => { - return remap$(v, { - allocationId: "allocation_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Allocations$ { - /** @deprecated use `Allocations$inboundSchema` instead. */ - export const inboundSchema = Allocations$inboundSchema; - /** @deprecated use `Allocations$outboundSchema` instead. */ - export const outboundSchema = Allocations$outboundSchema; - /** @deprecated use `Allocations$Outbound` instead. */ - export type Outbound = Allocations$Outbound; -} - -export function allocationsToJSON(allocations: Allocations): string { - return JSON.stringify(Allocations$outboundSchema.parse(allocations)); -} - export function allocationsFromJSON( jsonString: string, ): SafeParseResult { @@ -503,119 +427,6 @@ export const BillPayment$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type BillPayment$Outbound = { - id: string; - downstream_id?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - total_amount: number | null; - reference?: string | null | undefined; - payment_method?: string | null | undefined; - payment_method_reference?: string | null | undefined; - payment_method_id?: string | null | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - transaction_date: string | null; - supplier?: LinkedSupplier$Outbound | null | undefined; - company_id?: string | null | undefined; - reconciled?: boolean | null | undefined; - status?: string | undefined; - type?: string | undefined; - allocations?: Array | undefined; - note?: string | null | undefined; - number?: string | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - display_id?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const BillPayment$outboundSchema: z.ZodType< - BillPayment$Outbound, - z.ZodTypeDef, - BillPayment -> = z.object({ - id: z.string(), - downstreamId: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()), - reference: z.nullable(z.string()).optional(), - paymentMethod: z.nullable(z.string()).optional(), - paymentMethodReference: z.nullable(z.string()).optional(), - paymentMethodId: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - supplier: z.nullable(LinkedSupplier$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - reconciled: z.nullable(z.boolean()).optional(), - status: PaymentStatus$outboundSchema.optional(), - type: BillPaymentType$outboundSchema.optional(), - allocations: z.array(z.lazy(() => Allocations$outboundSchema)).optional(), - note: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - currencyRate: "currency_rate", - totalAmount: "total_amount", - paymentMethod: "payment_method", - paymentMethodReference: "payment_method_reference", - paymentMethodId: "payment_method_id", - transactionDate: "transaction_date", - companyId: "company_id", - trackingCategories: "tracking_categories", - customFields: "custom_fields", - rowVersion: "row_version", - displayId: "display_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillPayment$ { - /** @deprecated use `BillPayment$inboundSchema` instead. */ - export const inboundSchema = BillPayment$inboundSchema; - /** @deprecated use `BillPayment$outboundSchema` instead. */ - export const outboundSchema = BillPayment$outboundSchema; - /** @deprecated use `BillPayment$Outbound` instead. */ - export type Outbound = BillPayment$Outbound; -} - -export function billPaymentToJSON(billPayment: BillPayment): string { - return JSON.stringify(BillPayment$outboundSchema.parse(billPayment)); -} - export function billPaymentFromJSON( jsonString: string, ): SafeParseResult { @@ -626,22 +437,6 @@ export function billPaymentFromJSON( ); } -/** @internal */ -export const BillPaymentAllocations$inboundSchema: z.ZodType< - BillPaymentAllocations, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - type: BillPaymentAllocationType$inboundSchema.optional(), - amount: z.nullable(z.number()).optional(), - allocation_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "allocation_id": "allocationId", - }); -}); - /** @internal */ export type BillPaymentAllocations$Outbound = { id?: string | null | undefined; @@ -666,19 +461,6 @@ export const BillPaymentAllocations$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillPaymentAllocations$ { - /** @deprecated use `BillPaymentAllocations$inboundSchema` instead. */ - export const inboundSchema = BillPaymentAllocations$inboundSchema; - /** @deprecated use `BillPaymentAllocations$outboundSchema` instead. */ - export const outboundSchema = BillPaymentAllocations$outboundSchema; - /** @deprecated use `BillPaymentAllocations$Outbound` instead. */ - export type Outbound = BillPaymentAllocations$Outbound; -} - export function billPaymentAllocationsToJSON( billPaymentAllocations: BillPaymentAllocations, ): string { @@ -687,66 +469,6 @@ export function billPaymentAllocationsToJSON( ); } -export function billPaymentAllocationsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillPaymentAllocations$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillPaymentAllocations' from JSON`, - ); -} - -/** @internal */ -export const BillPaymentInput$inboundSchema: z.ZodType< - BillPaymentInput, - z.ZodTypeDef, - unknown -> = z.object({ - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()), - reference: z.nullable(z.string()).optional(), - payment_method: z.nullable(z.string()).optional(), - payment_method_reference: z.nullable(z.string()).optional(), - payment_method_id: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - reconciled: z.nullable(z.boolean()).optional(), - status: PaymentStatus$inboundSchema.optional(), - type: BillPaymentType$inboundSchema.optional(), - allocations: z.array(z.lazy(() => BillPaymentAllocations$inboundSchema)) - .optional(), - note: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "currency_rate": "currencyRate", - "total_amount": "totalAmount", - "payment_method": "paymentMethod", - "payment_method_reference": "paymentMethodReference", - "payment_method_id": "paymentMethodId", - "transaction_date": "transactionDate", - "company_id": "companyId", - "tracking_categories": "trackingCategories", - "custom_fields": "customFields", - "row_version": "rowVersion", - "display_id": "displayId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type BillPaymentInput$Outbound = { currency?: string | null | undefined; @@ -756,7 +478,7 @@ export type BillPaymentInput$Outbound = { payment_method?: string | null | undefined; payment_method_reference?: string | null | undefined; payment_method_id?: string | null | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; transaction_date: string | null; supplier?: LinkedSupplierInput$Outbound | null | undefined; company_id?: string | null | undefined; @@ -789,7 +511,7 @@ export const BillPaymentInput$outboundSchema: z.ZodType< paymentMethod: z.nullable(z.string()).optional(), paymentMethodReference: z.nullable(z.string()).optional(), paymentMethodId: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), transactionDate: z.nullable(z.date().transform(v => v.toISOString())), supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(), companyId: z.nullable(z.string()).optional(), @@ -824,19 +546,6 @@ export const BillPaymentInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillPaymentInput$ { - /** @deprecated use `BillPaymentInput$inboundSchema` instead. */ - export const inboundSchema = BillPaymentInput$inboundSchema; - /** @deprecated use `BillPaymentInput$outboundSchema` instead. */ - export const outboundSchema = BillPaymentInput$outboundSchema; - /** @deprecated use `BillPaymentInput$Outbound` instead. */ - export type Outbound = BillPaymentInput$Outbound; -} - export function billPaymentInputToJSON( billPaymentInput: BillPaymentInput, ): string { @@ -844,13 +553,3 @@ export function billPaymentInputToJSON( BillPaymentInput$outboundSchema.parse(billPaymentInput), ); } - -export function billPaymentInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillPaymentInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillPaymentInput' from JSON`, - ); -} diff --git a/src/models/components/billsfilter.ts b/src/models/components/billsfilter.ts index 4c2a5cbcd..b9d935575 100644 --- a/src/models/components/billsfilter.ts +++ b/src/models/components/billsfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by bill status @@ -30,42 +27,10 @@ export type BillsFilter = { status?: BillsFilterStatus | undefined; }; -/** @internal */ -export const BillsFilterStatus$inboundSchema: z.ZodNativeEnum< - typeof BillsFilterStatus -> = z.nativeEnum(BillsFilterStatus); - /** @internal */ export const BillsFilterStatus$outboundSchema: z.ZodNativeEnum< typeof BillsFilterStatus -> = BillsFilterStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillsFilterStatus$ { - /** @deprecated use `BillsFilterStatus$inboundSchema` instead. */ - export const inboundSchema = BillsFilterStatus$inboundSchema; - /** @deprecated use `BillsFilterStatus$outboundSchema` instead. */ - export const outboundSchema = BillsFilterStatus$outboundSchema; -} - -/** @internal */ -export const BillsFilter$inboundSchema: z.ZodType< - BillsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - status: BillsFilterStatus$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - }); -}); +> = z.nativeEnum(BillsFilterStatus); /** @internal */ export type BillsFilter$Outbound = { @@ -87,29 +52,6 @@ export const BillsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillsFilter$ { - /** @deprecated use `BillsFilter$inboundSchema` instead. */ - export const inboundSchema = BillsFilter$inboundSchema; - /** @deprecated use `BillsFilter$outboundSchema` instead. */ - export const outboundSchema = BillsFilter$outboundSchema; - /** @deprecated use `BillsFilter$Outbound` instead. */ - export type Outbound = BillsFilter$Outbound; -} - export function billsFilterToJSON(billsFilter: BillsFilter): string { return JSON.stringify(BillsFilter$outboundSchema.parse(billsFilter)); } - -export function billsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillsFilter' from JSON`, - ); -} diff --git a/src/models/components/billssort.ts b/src/models/components/billssort.ts index ac0e72416..80ecf3140 100644 --- a/src/models/components/billssort.ts +++ b/src/models/components/billssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,31 +33,7 @@ export type BillsSort = { }; /** @internal */ -export const By$inboundSchema: z.ZodNativeEnum = z.nativeEnum(By); - -/** @internal */ -export const By$outboundSchema: z.ZodNativeEnum = By$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace By$ { - /** @deprecated use `By$inboundSchema` instead. */ - export const inboundSchema = By$inboundSchema; - /** @deprecated use `By$outboundSchema` instead. */ - export const outboundSchema = By$outboundSchema; -} - -/** @internal */ -export const BillsSort$inboundSchema: z.ZodType< - BillsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: By$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +export const By$outboundSchema: z.ZodNativeEnum = z.nativeEnum(By); /** @internal */ export type BillsSort$Outbound = { @@ -79,29 +51,6 @@ export const BillsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillsSort$ { - /** @deprecated use `BillsSort$inboundSchema` instead. */ - export const inboundSchema = BillsSort$inboundSchema; - /** @deprecated use `BillsSort$outboundSchema` instead. */ - export const outboundSchema = BillsSort$outboundSchema; - /** @deprecated use `BillsSort$Outbound` instead. */ - export type Outbound = BillsSort$Outbound; -} - export function billsSortToJSON(billsSort: BillsSort): string { return JSON.stringify(BillsSort$outboundSchema.parse(billsSort)); } - -export function billsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BillsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BillsSort' from JSON`, - ); -} diff --git a/src/models/components/categoriesfilter.ts b/src/models/components/categoriesfilter.ts index e7adfc318..679fa1148 100644 --- a/src/models/components/categoriesfilter.ts +++ b/src/models/components/categoriesfilter.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of the category. @@ -29,35 +26,10 @@ export type CategoriesFilter = { type?: CategoriesFilterType | undefined; }; -/** @internal */ -export const CategoriesFilterType$inboundSchema: z.ZodNativeEnum< - typeof CategoriesFilterType -> = z.nativeEnum(CategoriesFilterType); - /** @internal */ export const CategoriesFilterType$outboundSchema: z.ZodNativeEnum< typeof CategoriesFilterType -> = CategoriesFilterType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CategoriesFilterType$ { - /** @deprecated use `CategoriesFilterType$inboundSchema` instead. */ - export const inboundSchema = CategoriesFilterType$inboundSchema; - /** @deprecated use `CategoriesFilterType$outboundSchema` instead. */ - export const outboundSchema = CategoriesFilterType$outboundSchema; -} - -/** @internal */ -export const CategoriesFilter$inboundSchema: z.ZodType< - CategoriesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - type: CategoriesFilterType$inboundSchema.optional(), -}); +> = z.nativeEnum(CategoriesFilterType); /** @internal */ export type CategoriesFilter$Outbound = { @@ -73,19 +45,6 @@ export const CategoriesFilter$outboundSchema: z.ZodType< type: CategoriesFilterType$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CategoriesFilter$ { - /** @deprecated use `CategoriesFilter$inboundSchema` instead. */ - export const inboundSchema = CategoriesFilter$inboundSchema; - /** @deprecated use `CategoriesFilter$outboundSchema` instead. */ - export const outboundSchema = CategoriesFilter$outboundSchema; - /** @deprecated use `CategoriesFilter$Outbound` instead. */ - export type Outbound = CategoriesFilter$Outbound; -} - export function categoriesFilterToJSON( categoriesFilter: CategoriesFilter, ): string { @@ -93,13 +52,3 @@ export function categoriesFilterToJSON( CategoriesFilter$outboundSchema.parse(categoriesFilter), ); } - -export function categoriesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CategoriesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CategoriesFilter' from JSON`, - ); -} diff --git a/src/models/components/category.ts b/src/models/components/category.ts index 5cbfebed9..bf2612d66 100644 --- a/src/models/components/category.ts +++ b/src/models/components/category.ts @@ -11,8 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; /** @@ -96,42 +94,11 @@ export type Category = { export const CategoryType$inboundSchema: z.ZodNativeEnum = z.nativeEnum(CategoryType); -/** @internal */ -export const CategoryType$outboundSchema: z.ZodNativeEnum = - CategoryType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CategoryType$ { - /** @deprecated use `CategoryType$inboundSchema` instead. */ - export const inboundSchema = CategoryType$inboundSchema; - /** @deprecated use `CategoryType$outboundSchema` instead. */ - export const outboundSchema = CategoryType$outboundSchema; -} - /** @internal */ export const CategoryStatus$inboundSchema: z.ZodNativeEnum< typeof CategoryStatus > = z.nativeEnum(CategoryStatus); -/** @internal */ -export const CategoryStatus$outboundSchema: z.ZodNativeEnum< - typeof CategoryStatus -> = CategoryStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CategoryStatus$ { - /** @deprecated use `CategoryStatus$inboundSchema` instead. */ - export const inboundSchema = CategoryStatus$inboundSchema; - /** @deprecated use `CategoryStatus$outboundSchema` instead. */ - export const outboundSchema = CategoryStatus$outboundSchema; -} - /** @internal */ export const Category$inboundSchema: z.ZodType< Category, @@ -167,70 +134,6 @@ export const Category$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Category$Outbound = { - id?: string | undefined; - name?: string | undefined; - display_id?: string | null | undefined; - type?: string | undefined; - status?: string | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Category$outboundSchema: z.ZodType< - Category$Outbound, - z.ZodTypeDef, - Category -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - displayId: z.nullable(z.string()).optional(), - type: CategoryType$outboundSchema.optional(), - status: CategoryStatus$outboundSchema.optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Category$ { - /** @deprecated use `Category$inboundSchema` instead. */ - export const inboundSchema = Category$inboundSchema; - /** @deprecated use `Category$outboundSchema` instead. */ - export const outboundSchema = Category$outboundSchema; - /** @deprecated use `Category$Outbound` instead. */ - export type Outbound = Category$Outbound; -} - -export function categoryToJSON(category: Category): string { - return JSON.stringify(Category$outboundSchema.parse(category)); -} - export function categoryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/collection.ts b/src/models/components/collection.ts index e785647a2..26cb4843c 100644 --- a/src/models/components/collection.ts +++ b/src/models/components/collection.ts @@ -70,58 +70,6 @@ export const Collection$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Collection$Outbound = { - id: string; - parent_id?: string | null | undefined; - type?: string | null | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const Collection$outboundSchema: z.ZodType< - Collection$Outbound, - z.ZodTypeDef, - Collection -> = z.object({ - id: z.string(), - parentId: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Collection$ { - /** @deprecated use `Collection$inboundSchema` instead. */ - export const inboundSchema = Collection$inboundSchema; - /** @deprecated use `Collection$outboundSchema` instead. */ - export const outboundSchema = Collection$outboundSchema; - /** @deprecated use `Collection$Outbound` instead. */ - export type Outbound = Collection$Outbound; -} - -export function collectionToJSON(collection: Collection): string { - return JSON.stringify(Collection$outboundSchema.parse(collection)); -} - export function collectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/collectionssort.ts b/src/models/components/collectionssort.ts index 50c73ec11..cbdf5c2f5 100644 --- a/src/models/components/collectionssort.ts +++ b/src/models/components/collectionssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,36 +33,10 @@ export type CollectionsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const CollectionsSortBy$inboundSchema: z.ZodNativeEnum< - typeof CollectionsSortBy -> = z.nativeEnum(CollectionsSortBy); - /** @internal */ export const CollectionsSortBy$outboundSchema: z.ZodNativeEnum< typeof CollectionsSortBy -> = CollectionsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionsSortBy$ { - /** @deprecated use `CollectionsSortBy$inboundSchema` instead. */ - export const inboundSchema = CollectionsSortBy$inboundSchema; - /** @deprecated use `CollectionsSortBy$outboundSchema` instead. */ - export const outboundSchema = CollectionsSortBy$outboundSchema; -} - -/** @internal */ -export const CollectionsSort$inboundSchema: z.ZodType< - CollectionsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: CollectionsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(CollectionsSortBy); /** @internal */ export type CollectionsSort$Outbound = { @@ -84,31 +54,8 @@ export const CollectionsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionsSort$ { - /** @deprecated use `CollectionsSort$inboundSchema` instead. */ - export const inboundSchema = CollectionsSort$inboundSchema; - /** @deprecated use `CollectionsSort$outboundSchema` instead. */ - export const outboundSchema = CollectionsSort$outboundSchema; - /** @deprecated use `CollectionsSort$Outbound` instead. */ - export type Outbound = CollectionsSort$Outbound; -} - export function collectionsSortToJSON( collectionsSort: CollectionsSort, ): string { return JSON.stringify(CollectionsSort$outboundSchema.parse(collectionsSort)); } - -export function collectionsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CollectionsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CollectionsSort' from JSON`, - ); -} diff --git a/src/models/components/collectiontag.ts b/src/models/components/collectiontag.ts index f6cf463b6..0fecd524a 100644 --- a/src/models/components/collectiontag.ts +++ b/src/models/components/collectiontag.ts @@ -38,45 +38,6 @@ export const CollectionTag$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CollectionTag$Outbound = { - id: string | null; - name?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CollectionTag$outboundSchema: z.ZodType< - CollectionTag$Outbound, - z.ZodTypeDef, - CollectionTag -> = z.object({ - id: z.nullable(z.string()), - name: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - customMappings: "custom_mappings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionTag$ { - /** @deprecated use `CollectionTag$inboundSchema` instead. */ - export const inboundSchema = CollectionTag$inboundSchema; - /** @deprecated use `CollectionTag$outboundSchema` instead. */ - export const outboundSchema = CollectionTag$outboundSchema; - /** @deprecated use `CollectionTag$Outbound` instead. */ - export type Outbound = CollectionTag$Outbound; -} - -export function collectionTagToJSON(collectionTag: CollectionTag): string { - return JSON.stringify(CollectionTag$outboundSchema.parse(collectionTag)); -} - export function collectionTagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/collectiontaginput.ts b/src/models/components/collectiontaginput.ts index fe76f9c23..54f90ec5d 100644 --- a/src/models/components/collectiontaginput.ts +++ b/src/models/components/collectiontaginput.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CollectionTagInput = { /** @@ -14,15 +11,6 @@ export type CollectionTagInput = { id: string | null; }; -/** @internal */ -export const CollectionTagInput$inboundSchema: z.ZodType< - CollectionTagInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()), -}); - /** @internal */ export type CollectionTagInput$Outbound = { id: string | null; @@ -37,19 +25,6 @@ export const CollectionTagInput$outboundSchema: z.ZodType< id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionTagInput$ { - /** @deprecated use `CollectionTagInput$inboundSchema` instead. */ - export const inboundSchema = CollectionTagInput$inboundSchema; - /** @deprecated use `CollectionTagInput$outboundSchema` instead. */ - export const outboundSchema = CollectionTagInput$outboundSchema; - /** @deprecated use `CollectionTagInput$Outbound` instead. */ - export type Outbound = CollectionTagInput$Outbound; -} - export function collectionTagInputToJSON( collectionTagInput: CollectionTagInput, ): string { @@ -57,13 +32,3 @@ export function collectionTagInputToJSON( CollectionTagInput$outboundSchema.parse(collectionTagInput), ); } - -export function collectionTagInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CollectionTagInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CollectionTagInput' from JSON`, - ); -} diff --git a/src/models/components/collectionticketcomment.ts b/src/models/components/collectionticketcomment.ts index e847f4020..6a53b6d8b 100644 --- a/src/models/components/collectionticketcomment.ts +++ b/src/models/components/collectionticketcomment.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type CollectionTicketComment = { @@ -72,61 +70,6 @@ export const CollectionTicketComment$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CollectionTicketComment$Outbound = { - id?: string | undefined; - body?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const CollectionTicketComment$outboundSchema: z.ZodType< - CollectionTicketComment$Outbound, - z.ZodTypeDef, - CollectionTicketComment -> = z.object({ - id: z.string().optional(), - body: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - customMappings: "custom_mappings", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionTicketComment$ { - /** @deprecated use `CollectionTicketComment$inboundSchema` instead. */ - export const inboundSchema = CollectionTicketComment$inboundSchema; - /** @deprecated use `CollectionTicketComment$outboundSchema` instead. */ - export const outboundSchema = CollectionTicketComment$outboundSchema; - /** @deprecated use `CollectionTicketComment$Outbound` instead. */ - export type Outbound = CollectionTicketComment$Outbound; -} - -export function collectionTicketCommentToJSON( - collectionTicketComment: CollectionTicketComment, -): string { - return JSON.stringify( - CollectionTicketComment$outboundSchema.parse(collectionTicketComment), - ); -} - export function collectionTicketCommentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/collectionticketcommentinput.ts b/src/models/components/collectionticketcommentinput.ts index f6aa54adc..f4bbc2684 100644 --- a/src/models/components/collectionticketcommentinput.ts +++ b/src/models/components/collectionticketcommentinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -25,20 +21,6 @@ export type CollectionTicketCommentInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const CollectionTicketCommentInput$inboundSchema: z.ZodType< - CollectionTicketCommentInput, - z.ZodTypeDef, - unknown -> = z.object({ - body: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CollectionTicketCommentInput$Outbound = { body?: string | null | undefined; @@ -59,19 +41,6 @@ export const CollectionTicketCommentInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionTicketCommentInput$ { - /** @deprecated use `CollectionTicketCommentInput$inboundSchema` instead. */ - export const inboundSchema = CollectionTicketCommentInput$inboundSchema; - /** @deprecated use `CollectionTicketCommentInput$outboundSchema` instead. */ - export const outboundSchema = CollectionTicketCommentInput$outboundSchema; - /** @deprecated use `CollectionTicketCommentInput$Outbound` instead. */ - export type Outbound = CollectionTicketCommentInput$Outbound; -} - export function collectionTicketCommentInputToJSON( collectionTicketCommentInput: CollectionTicketCommentInput, ): string { @@ -81,13 +50,3 @@ export function collectionTicketCommentInputToJSON( ), ); } - -export function collectionTicketCommentInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CollectionTicketCommentInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CollectionTicketCommentInput' from JSON`, - ); -} diff --git a/src/models/components/collectionuser.ts b/src/models/components/collectionuser.ts index 8f74215d8..b0a58d1f5 100644 --- a/src/models/components/collectionuser.ts +++ b/src/models/components/collectionuser.ts @@ -77,62 +77,6 @@ export const CollectionUser$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CollectionUser$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - email?: string | null | undefined; - photo_url?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const CollectionUser$outboundSchema: z.ZodType< - CollectionUser$Outbound, - z.ZodTypeDef, - CollectionUser -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - email: z.nullable(z.string()).optional(), - photoUrl: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - photoUrl: "photo_url", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectionUser$ { - /** @deprecated use `CollectionUser$inboundSchema` instead. */ - export const inboundSchema = CollectionUser$inboundSchema; - /** @deprecated use `CollectionUser$outboundSchema` instead. */ - export const outboundSchema = CollectionUser$outboundSchema; - /** @deprecated use `CollectionUser$Outbound` instead. */ - export type Outbound = CollectionUser$Outbound; -} - -export function collectionUserToJSON(collectionUser: CollectionUser): string { - return JSON.stringify(CollectionUser$outboundSchema.parse(collectionUser)); -} - export function collectionUserFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/commentssort.ts b/src/models/components/commentssort.ts index 35ecb7c4c..31691899a 100644 --- a/src/models/components/commentssort.ts +++ b/src/models/components/commentssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type CommentsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const CommentsSortBy$inboundSchema: z.ZodNativeEnum< - typeof CommentsSortBy -> = z.nativeEnum(CommentsSortBy); - /** @internal */ export const CommentsSortBy$outboundSchema: z.ZodNativeEnum< typeof CommentsSortBy -> = CommentsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CommentsSortBy$ { - /** @deprecated use `CommentsSortBy$inboundSchema` instead. */ - export const inboundSchema = CommentsSortBy$inboundSchema; - /** @deprecated use `CommentsSortBy$outboundSchema` instead. */ - export const outboundSchema = CommentsSortBy$outboundSchema; -} - -/** @internal */ -export const CommentsSort$inboundSchema: z.ZodType< - CommentsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: CommentsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(CommentsSortBy); /** @internal */ export type CommentsSort$Outbound = { @@ -83,29 +53,6 @@ export const CommentsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CommentsSort$ { - /** @deprecated use `CommentsSort$inboundSchema` instead. */ - export const inboundSchema = CommentsSort$inboundSchema; - /** @deprecated use `CommentsSort$outboundSchema` instead. */ - export const outboundSchema = CommentsSort$outboundSchema; - /** @deprecated use `CommentsSort$Outbound` instead. */ - export type Outbound = CommentsSort$Outbound; -} - export function commentsSortToJSON(commentsSort: CommentsSort): string { return JSON.stringify(CommentsSort$outboundSchema.parse(commentsSort)); } - -export function commentsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CommentsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CommentsSort' from JSON`, - ); -} diff --git a/src/models/components/companiesfilter.ts b/src/models/components/companiesfilter.ts index e5535bcbd..12710556a 100644 --- a/src/models/components/companiesfilter.ts +++ b/src/models/components/companiesfilter.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CompaniesFilter = { /** @@ -14,15 +11,6 @@ export type CompaniesFilter = { name?: string | undefined; }; -/** @internal */ -export const CompaniesFilter$inboundSchema: z.ZodType< - CompaniesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), -}); - /** @internal */ export type CompaniesFilter$Outbound = { name?: string | undefined; @@ -37,31 +25,8 @@ export const CompaniesFilter$outboundSchema: z.ZodType< name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompaniesFilter$ { - /** @deprecated use `CompaniesFilter$inboundSchema` instead. */ - export const inboundSchema = CompaniesFilter$inboundSchema; - /** @deprecated use `CompaniesFilter$outboundSchema` instead. */ - export const outboundSchema = CompaniesFilter$outboundSchema; - /** @deprecated use `CompaniesFilter$Outbound` instead. */ - export type Outbound = CompaniesFilter$Outbound; -} - export function companiesFilterToJSON( companiesFilter: CompaniesFilter, ): string { return JSON.stringify(CompaniesFilter$outboundSchema.parse(companiesFilter)); } - -export function companiesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CompaniesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CompaniesFilter' from JSON`, - ); -} diff --git a/src/models/components/companiessort.ts b/src/models/components/companiessort.ts index 0b8892c2d..182eb1901 100644 --- a/src/models/components/companiessort.ts +++ b/src/models/components/companiessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,36 +33,10 @@ export type CompaniesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const CompaniesSortBy$inboundSchema: z.ZodNativeEnum< - typeof CompaniesSortBy -> = z.nativeEnum(CompaniesSortBy); - /** @internal */ export const CompaniesSortBy$outboundSchema: z.ZodNativeEnum< typeof CompaniesSortBy -> = CompaniesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompaniesSortBy$ { - /** @deprecated use `CompaniesSortBy$inboundSchema` instead. */ - export const inboundSchema = CompaniesSortBy$inboundSchema; - /** @deprecated use `CompaniesSortBy$outboundSchema` instead. */ - export const outboundSchema = CompaniesSortBy$outboundSchema; -} - -/** @internal */ -export const CompaniesSort$inboundSchema: z.ZodType< - CompaniesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: CompaniesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(CompaniesSortBy); /** @internal */ export type CompaniesSort$Outbound = { @@ -84,29 +54,6 @@ export const CompaniesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompaniesSort$ { - /** @deprecated use `CompaniesSort$inboundSchema` instead. */ - export const inboundSchema = CompaniesSort$inboundSchema; - /** @deprecated use `CompaniesSort$outboundSchema` instead. */ - export const outboundSchema = CompaniesSort$outboundSchema; - /** @deprecated use `CompaniesSort$Outbound` instead. */ - export type Outbound = CompaniesSort$Outbound; -} - export function companiesSortToJSON(companiesSort: CompaniesSort): string { return JSON.stringify(CompaniesSort$outboundSchema.parse(companiesSort)); } - -export function companiesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CompaniesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CompaniesSort' from JSON`, - ); -} diff --git a/src/models/components/company1.ts b/src/models/components/company1.ts index ade966afe..19ede1678 100644 --- a/src/models/components/company1.ts +++ b/src/models/components/company1.ts @@ -324,7 +324,6 @@ export const CompanyRowType$inboundSchema: z.ZodType< id: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }); - /** @internal */ export type CompanyRowType$Outbound = { id?: string | null | undefined; @@ -341,23 +340,9 @@ export const CompanyRowType$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompanyRowType$ { - /** @deprecated use `CompanyRowType$inboundSchema` instead. */ - export const inboundSchema = CompanyRowType$inboundSchema; - /** @deprecated use `CompanyRowType$outboundSchema` instead. */ - export const outboundSchema = CompanyRowType$outboundSchema; - /** @deprecated use `CompanyRowType$Outbound` instead. */ - export type Outbound = CompanyRowType$Outbound; -} - export function companyRowTypeToJSON(companyRowType: CompanyRowType): string { return JSON.stringify(CompanyRowType$outboundSchema.parse(companyRowType)); } - export function companyRowTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -452,149 +437,6 @@ export const Company1$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Company1$Outbound = { - id?: string | undefined; - name: string | null; - interaction_count?: number | null | undefined; - owner_id?: string | null | undefined; - image?: string | null | undefined; - description?: string | null | undefined; - vat_number?: string | null | undefined; - currency?: string | null | undefined; - status?: string | null | undefined; - fax?: string | null | undefined; - annual_revenue?: string | null | undefined; - number_of_employees?: string | null | undefined; - industry?: string | null | undefined; - ownership?: string | null | undefined; - sales_tax_number?: string | null | undefined; - payee_number?: string | null | undefined; - abn_or_tfn?: string | null | undefined; - abn_branch?: string | null | undefined; - acn?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - parent_id?: string | null | undefined; - bank_accounts?: Array | undefined; - websites?: Array | undefined; - addresses?: Array | undefined; - social_links?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - row_type?: CompanyRowType$Outbound | undefined; - custom_fields?: Array | undefined; - tags?: Array | null | undefined; - read_only?: boolean | null | undefined; - last_activity_at?: string | null | undefined; - deleted?: boolean | undefined; - salutation?: string | null | undefined; - birthday?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Company1$outboundSchema: z.ZodType< - Company1$Outbound, - z.ZodTypeDef, - Company1 -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()), - interactionCount: z.nullable(z.number().int()).optional(), - ownerId: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - vatNumber: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - status: z.nullable(z.string()).optional(), - fax: z.nullable(z.string()).optional(), - annualRevenue: z.nullable(z.string()).optional(), - numberOfEmployees: z.nullable(z.string()).optional(), - industry: z.nullable(z.string()).optional(), - ownership: z.nullable(z.string()).optional(), - salesTaxNumber: z.nullable(z.string()).optional(), - payeeNumber: z.nullable(z.string()).optional(), - abnOrTfn: z.nullable(z.string()).optional(), - abnBranch: z.nullable(z.string()).optional(), - acn: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - parentId: z.nullable(z.string()).optional(), - bankAccounts: z.array(BankAccount1$outboundSchema).optional(), - websites: z.array(Website$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - socialLinks: z.array(SocialLink$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - rowType: z.lazy(() => CompanyRowType$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - tags: z.nullable(z.array(z.string())).optional(), - readOnly: z.nullable(z.boolean()).optional(), - lastActivityAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - deleted: z.boolean().optional(), - salutation: z.nullable(z.string()).optional(), - birthday: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - interactionCount: "interaction_count", - ownerId: "owner_id", - vatNumber: "vat_number", - annualRevenue: "annual_revenue", - numberOfEmployees: "number_of_employees", - salesTaxNumber: "sales_tax_number", - payeeNumber: "payee_number", - abnOrTfn: "abn_or_tfn", - abnBranch: "abn_branch", - firstName: "first_name", - lastName: "last_name", - parentId: "parent_id", - bankAccounts: "bank_accounts", - socialLinks: "social_links", - phoneNumbers: "phone_numbers", - rowType: "row_type", - customFields: "custom_fields", - readOnly: "read_only", - lastActivityAt: "last_activity_at", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Company1$ { - /** @deprecated use `Company1$inboundSchema` instead. */ - export const inboundSchema = Company1$inboundSchema; - /** @deprecated use `Company1$outboundSchema` instead. */ - export const outboundSchema = Company1$outboundSchema; - /** @deprecated use `Company1$Outbound` instead. */ - export type Outbound = Company1$Outbound; -} - -export function company1ToJSON(company1: Company1): string { - return JSON.stringify(Company1$outboundSchema.parse(company1)); -} - export function company1FromJSON( jsonString: string, ): SafeParseResult { @@ -605,66 +447,6 @@ export function company1FromJSON( ); } -/** @internal */ -export const Company1Input$inboundSchema: z.ZodType< - Company1Input, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()), - owner_id: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - vat_number: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - status: z.nullable(z.string()).optional(), - fax: z.nullable(z.string()).optional(), - annual_revenue: z.nullable(z.string()).optional(), - number_of_employees: z.nullable(z.string()).optional(), - industry: z.nullable(z.string()).optional(), - ownership: z.nullable(z.string()).optional(), - sales_tax_number: z.nullable(z.string()).optional(), - payee_number: z.nullable(z.string()).optional(), - abn_or_tfn: z.nullable(z.string()).optional(), - abn_branch: z.nullable(z.string()).optional(), - acn: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - bank_accounts: z.array(BankAccount1$inboundSchema).optional(), - websites: z.array(Website$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - social_links: z.array(SocialLink$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - row_type: z.lazy(() => CompanyRowType$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - tags: z.nullable(z.array(z.string())).optional(), - read_only: z.nullable(z.boolean()).optional(), - salutation: z.nullable(z.string()).optional(), - birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "owner_id": "ownerId", - "vat_number": "vatNumber", - "annual_revenue": "annualRevenue", - "number_of_employees": "numberOfEmployees", - "sales_tax_number": "salesTaxNumber", - "payee_number": "payeeNumber", - "abn_or_tfn": "abnOrTfn", - "abn_branch": "abnBranch", - "first_name": "firstName", - "last_name": "lastName", - "bank_accounts": "bankAccounts", - "social_links": "socialLinks", - "phone_numbers": "phoneNumbers", - "row_type": "rowType", - "custom_fields": "customFields", - "read_only": "readOnly", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type Company1Input$Outbound = { name: string | null; @@ -762,29 +544,6 @@ export const Company1Input$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Company1Input$ { - /** @deprecated use `Company1Input$inboundSchema` instead. */ - export const inboundSchema = Company1Input$inboundSchema; - /** @deprecated use `Company1Input$outboundSchema` instead. */ - export const outboundSchema = Company1Input$outboundSchema; - /** @deprecated use `Company1Input$Outbound` instead. */ - export type Outbound = Company1Input$Outbound; -} - export function company1InputToJSON(company1Input: Company1Input): string { return JSON.stringify(Company1Input$outboundSchema.parse(company1Input)); } - -export function company1InputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Company1Input$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Company1Input' from JSON`, - ); -} diff --git a/src/models/components/companyinfo.ts b/src/models/components/companyinfo.ts index c75a0ab07..f2d34ecfc 100644 --- a/src/models/components/companyinfo.ts +++ b/src/models/components/companyinfo.ts @@ -9,35 +9,11 @@ import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; -import { - PhoneNumber, - PhoneNumber$inboundSchema, - PhoneNumber$Outbound, - PhoneNumber$outboundSchema, -} from "./phonenumber.js"; -import { - TaxRate, - TaxRate$inboundSchema, - TaxRate$Outbound, - TaxRate$outboundSchema, -} from "./taxrate.js"; +import { Address, Address$inboundSchema } from "./address.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { Email, Email$inboundSchema } from "./email.js"; +import { PhoneNumber, PhoneNumber$inboundSchema } from "./phonenumber.js"; +import { TaxRate, TaxRate$inboundSchema } from "./taxrate.js"; /** * Based on the status some functionality is enabled or disabled. @@ -178,64 +154,16 @@ export const CompanyStatus$inboundSchema: z.ZodNativeEnum< typeof CompanyStatus > = z.nativeEnum(CompanyStatus); -/** @internal */ -export const CompanyStatus$outboundSchema: z.ZodNativeEnum< - typeof CompanyStatus -> = CompanyStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompanyStatus$ { - /** @deprecated use `CompanyStatus$inboundSchema` instead. */ - export const inboundSchema = CompanyStatus$inboundSchema; - /** @deprecated use `CompanyStatus$outboundSchema` instead. */ - export const outboundSchema = CompanyStatus$outboundSchema; -} - /** @internal */ export const TheStartMonthOfFiscalYear$inboundSchema: z.ZodNativeEnum< typeof TheStartMonthOfFiscalYear > = z.nativeEnum(TheStartMonthOfFiscalYear); -/** @internal */ -export const TheStartMonthOfFiscalYear$outboundSchema: z.ZodNativeEnum< - typeof TheStartMonthOfFiscalYear -> = TheStartMonthOfFiscalYear$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TheStartMonthOfFiscalYear$ { - /** @deprecated use `TheStartMonthOfFiscalYear$inboundSchema` instead. */ - export const inboundSchema = TheStartMonthOfFiscalYear$inboundSchema; - /** @deprecated use `TheStartMonthOfFiscalYear$outboundSchema` instead. */ - export const outboundSchema = TheStartMonthOfFiscalYear$outboundSchema; -} - /** @internal */ export const TrackingCategoriesMode$inboundSchema: z.ZodNativeEnum< typeof TrackingCategoriesMode > = z.nativeEnum(TrackingCategoriesMode); -/** @internal */ -export const TrackingCategoriesMode$outboundSchema: z.ZodNativeEnum< - typeof TrackingCategoriesMode -> = TrackingCategoriesMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingCategoriesMode$ { - /** @deprecated use `TrackingCategoriesMode$inboundSchema` instead. */ - export const inboundSchema = TrackingCategoriesMode$inboundSchema; - /** @deprecated use `TrackingCategoriesMode$outboundSchema` instead. */ - export const outboundSchema = TrackingCategoriesMode$outboundSchema; -} - /** @internal */ export const CompanyInfo$inboundSchema: z.ZodType< CompanyInfo, @@ -292,104 +220,6 @@ export const CompanyInfo$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CompanyInfo$Outbound = { - id?: string | undefined; - company_name?: string | null | undefined; - status?: string | undefined; - legal_name?: string | undefined; - country?: string | null | undefined; - sales_tax_number?: string | null | undefined; - automated_sales_tax?: boolean | undefined; - sales_tax_enabled?: boolean | undefined; - default_sales_tax?: TaxRate$Outbound | undefined; - currency?: string | null | undefined; - language?: string | null | undefined; - fiscal_year_start_month?: string | undefined; - company_start_date?: string | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - tracking_categories_enabled?: boolean | undefined; - tracking_categories_mode?: string | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const CompanyInfo$outboundSchema: z.ZodType< - CompanyInfo$Outbound, - z.ZodTypeDef, - CompanyInfo -> = z.object({ - id: z.string().optional(), - companyName: z.nullable(z.string()).optional(), - status: CompanyStatus$outboundSchema.optional(), - legalName: z.string().optional(), - country: z.nullable(z.string()).optional(), - salesTaxNumber: z.nullable(z.string()).optional(), - automatedSalesTax: z.boolean().optional(), - salesTaxEnabled: z.boolean().optional(), - defaultSalesTax: TaxRate$outboundSchema.optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - language: z.nullable(z.string()).optional(), - fiscalYearStartMonth: TheStartMonthOfFiscalYear$outboundSchema.optional(), - companyStartDate: z.instanceof(RFCDate).transform(v => v.toString()) - .optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - trackingCategoriesEnabled: z.boolean().optional(), - trackingCategoriesMode: TrackingCategoriesMode$outboundSchema.optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - companyName: "company_name", - legalName: "legal_name", - salesTaxNumber: "sales_tax_number", - automatedSalesTax: "automated_sales_tax", - salesTaxEnabled: "sales_tax_enabled", - defaultSalesTax: "default_sales_tax", - fiscalYearStartMonth: "fiscal_year_start_month", - companyStartDate: "company_start_date", - phoneNumbers: "phone_numbers", - customMappings: "custom_mappings", - trackingCategoriesEnabled: "tracking_categories_enabled", - trackingCategoriesMode: "tracking_categories_mode", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompanyInfo$ { - /** @deprecated use `CompanyInfo$inboundSchema` instead. */ - export const inboundSchema = CompanyInfo$inboundSchema; - /** @deprecated use `CompanyInfo$outboundSchema` instead. */ - export const outboundSchema = CompanyInfo$outboundSchema; - /** @deprecated use `CompanyInfo$Outbound` instead. */ - export type Outbound = CompanyInfo$Outbound; -} - -export function companyInfoToJSON(companyInfo: CompanyInfo): string { - return JSON.stringify(CompanyInfo$outboundSchema.parse(companyInfo)); -} - export function companyInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/compensation.ts b/src/models/components/compensation.ts index a489bfb42..ac41be226 100644 --- a/src/models/components/compensation.ts +++ b/src/models/components/compensation.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Benefit, - Benefit$inboundSchema, - Benefit$Outbound, - Benefit$outboundSchema, -} from "./benefit.js"; -import { - Deduction, - Deduction$inboundSchema, - Deduction$Outbound, - Deduction$outboundSchema, -} from "./deduction.js"; -import { - Tax, - Tax$inboundSchema, - Tax$Outbound, - Tax$outboundSchema, -} from "./tax.js"; +import { Benefit, Benefit$inboundSchema } from "./benefit.js"; +import { Deduction, Deduction$inboundSchema } from "./deduction.js"; +import { Tax, Tax$inboundSchema } from "./tax.js"; export type Compensation = { /** @@ -73,53 +58,6 @@ export const Compensation$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Compensation$Outbound = { - employee_id: string | null; - net_pay?: number | null | undefined; - gross_pay?: number | null | undefined; - taxes?: Array | null | undefined; - deductions?: Array | null | undefined; - benefits?: Array | null | undefined; -}; - -/** @internal */ -export const Compensation$outboundSchema: z.ZodType< - Compensation$Outbound, - z.ZodTypeDef, - Compensation -> = z.object({ - employeeId: z.nullable(z.string()), - netPay: z.nullable(z.number()).optional(), - grossPay: z.nullable(z.number()).optional(), - taxes: z.nullable(z.array(Tax$outboundSchema)).optional(), - deductions: z.nullable(z.array(Deduction$outboundSchema)).optional(), - benefits: z.nullable(z.array(Benefit$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - netPay: "net_pay", - grossPay: "gross_pay", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Compensation$ { - /** @deprecated use `Compensation$inboundSchema` instead. */ - export const inboundSchema = Compensation$inboundSchema; - /** @deprecated use `Compensation$outboundSchema` instead. */ - export const outboundSchema = Compensation$outboundSchema; - /** @deprecated use `Compensation$Outbound` instead. */ - export type Outbound = Compensation$Outbound; -} - -export function compensationToJSON(compensation: Compensation): string { - return JSON.stringify(Compensation$outboundSchema.parse(compensation)); -} - export function compensationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connection.ts b/src/models/components/connection.ts index 11af1b5e6..c296f759b 100644 --- a/src/models/components/connection.ts +++ b/src/models/components/connection.ts @@ -8,25 +8,14 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AuthType, - AuthType$inboundSchema, - AuthType$outboundSchema, -} from "./authtype.js"; +import { AuthType, AuthType$inboundSchema } from "./authtype.js"; import { ConnectionState, ConnectionState$inboundSchema, - ConnectionState$outboundSchema, } from "./connectionstate.js"; -import { - ConsentRecord, - ConsentRecord$inboundSchema, - ConsentRecord$Outbound, - ConsentRecord$outboundSchema, -} from "./consentrecord.js"; +import { ConsentRecord, ConsentRecord$inboundSchema } from "./consentrecord.js"; import { ConsentRecordInput, - ConsentRecordInput$inboundSchema, ConsentRecordInput$Outbound, ConsentRecordInput$outboundSchema, } from "./consentrecordinput.js"; @@ -35,36 +24,19 @@ import { ConsentState$inboundSchema, ConsentState$outboundSchema, } from "./consentstate.js"; -import { - CustomMapping, - CustomMapping$inboundSchema, - CustomMapping$Outbound, - CustomMapping$outboundSchema, -} from "./custommapping.js"; +import { CustomMapping, CustomMapping$inboundSchema } from "./custommapping.js"; import { CustomMappingInput, - CustomMappingInput$inboundSchema, CustomMappingInput$Outbound, CustomMappingInput$outboundSchema, } from "./custommappinginput.js"; -import { - DataScopes, - DataScopes$inboundSchema, - DataScopes$Outbound, - DataScopes$outboundSchema, -} from "./datascopes.js"; +import { DataScopes, DataScopes$inboundSchema } from "./datascopes.js"; import { DataScopesInput, - DataScopesInput$inboundSchema, DataScopesInput$Outbound, DataScopesInput$outboundSchema, } from "./datascopesinput.js"; -import { - FormField, - FormField$inboundSchema, - FormField$Outbound, - FormField$outboundSchema, -} from "./formfield.js"; +import { FormField, FormField$inboundSchema } from "./formfield.js"; import { FormFieldOption, FormFieldOption$inboundSchema, @@ -74,18 +46,14 @@ import { import { IntegrationState, IntegrationState$inboundSchema, - IntegrationState$outboundSchema, } from "./integrationstate.js"; import { OAuthGrantType, OAuthGrantType$inboundSchema, - OAuthGrantType$outboundSchema, } from "./oauthgranttype.js"; import { WebhookSubscription, WebhookSubscription$inboundSchema, - WebhookSubscription$Outbound, - WebhookSubscription$outboundSchema, } from "./webhooksubscription.js"; /** @@ -315,48 +283,16 @@ export const ConnectionStatus$inboundSchema: z.ZodNativeEnum< typeof ConnectionStatus > = z.nativeEnum(ConnectionStatus); -/** @internal */ -export const ConnectionStatus$outboundSchema: z.ZodNativeEnum< - typeof ConnectionStatus -> = ConnectionStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionStatus$ { - /** @deprecated use `ConnectionStatus$inboundSchema` instead. */ - export const inboundSchema = ConnectionStatus$inboundSchema; - /** @deprecated use `ConnectionStatus$outboundSchema` instead. */ - export const outboundSchema = ConnectionStatus$outboundSchema; -} - /** @internal */ export const Target$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Target); -/** @internal */ -export const Target$outboundSchema: z.ZodNativeEnum = - Target$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Target$ { - /** @deprecated use `Target$inboundSchema` instead. */ - export const inboundSchema = Target$inboundSchema; - /** @deprecated use `Target$outboundSchema` instead. */ - export const outboundSchema = Target$outboundSchema; -} - /** @internal */ export const ConnectionValue5$inboundSchema: z.ZodType< ConnectionValue5, z.ZodTypeDef, unknown > = z.union([z.string(), z.number().int(), z.number()]); - /** @internal */ export type ConnectionValue5$Outbound = string | number | number; @@ -367,19 +303,6 @@ export const ConnectionValue5$outboundSchema: z.ZodType< ConnectionValue5 > = z.union([z.string(), z.number().int(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionValue5$ { - /** @deprecated use `ConnectionValue5$inboundSchema` instead. */ - export const inboundSchema = ConnectionValue5$inboundSchema; - /** @deprecated use `ConnectionValue5$outboundSchema` instead. */ - export const outboundSchema = ConnectionValue5$outboundSchema; - /** @deprecated use `ConnectionValue5$Outbound` instead. */ - export type Outbound = ConnectionValue5$Outbound; -} - export function connectionValue5ToJSON( connectionValue5: ConnectionValue5, ): string { @@ -387,7 +310,6 @@ export function connectionValue5ToJSON( ConnectionValue5$outboundSchema.parse(connectionValue5), ); } - export function connectionValue5FromJSON( jsonString: string, ): SafeParseResult { @@ -410,7 +332,6 @@ export const ConnectionValue$inboundSchema: z.ZodType< z.boolean(), z.array(z.union([z.string(), z.number().int(), z.number()])), ]); - /** @internal */ export type ConnectionValue$Outbound = | string @@ -432,25 +353,11 @@ export const ConnectionValue$outboundSchema: z.ZodType< z.array(z.union([z.string(), z.number().int(), z.number()])), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionValue$ { - /** @deprecated use `ConnectionValue$inboundSchema` instead. */ - export const inboundSchema = ConnectionValue$inboundSchema; - /** @deprecated use `ConnectionValue$outboundSchema` instead. */ - export const outboundSchema = ConnectionValue$outboundSchema; - /** @deprecated use `ConnectionValue$Outbound` instead. */ - export type Outbound = ConnectionValue$Outbound; -} - export function connectionValueToJSON( connectionValue: ConnectionValue, ): string { return JSON.stringify(ConnectionValue$outboundSchema.parse(connectionValue)); } - export function connectionValueFromJSON( jsonString: string, ): SafeParseResult { @@ -479,55 +386,6 @@ export const Defaults$inboundSchema: z.ZodType< ]).optional(), }); -/** @internal */ -export type Defaults$Outbound = { - target?: string | undefined; - id?: string | undefined; - options?: Array | undefined; - value?: - | string - | number - | number - | boolean - | Array - | undefined; -}; - -/** @internal */ -export const Defaults$outboundSchema: z.ZodType< - Defaults$Outbound, - z.ZodTypeDef, - Defaults -> = z.object({ - target: Target$outboundSchema.optional(), - id: z.string().optional(), - options: z.array(FormFieldOption$outboundSchema).optional(), - value: z.union([ - z.string(), - z.number().int(), - z.number(), - z.boolean(), - z.array(z.union([z.string(), z.number().int(), z.number()])), - ]).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Defaults$ { - /** @deprecated use `Defaults$inboundSchema` instead. */ - export const inboundSchema = Defaults$inboundSchema; - /** @deprecated use `Defaults$outboundSchema` instead. */ - export const outboundSchema = Defaults$outboundSchema; - /** @deprecated use `Defaults$Outbound` instead. */ - export type Outbound = Defaults$Outbound; -} - -export function defaultsToJSON(defaults: Defaults): string { - return JSON.stringify(Defaults$outboundSchema.parse(defaults)); -} - export function defaultsFromJSON( jsonString: string, ): SafeParseResult { @@ -548,39 +406,6 @@ export const Configuration$inboundSchema: z.ZodType< defaults: z.array(z.lazy(() => Defaults$inboundSchema)).optional(), }); -/** @internal */ -export type Configuration$Outbound = { - resource?: string | undefined; - defaults?: Array | undefined; -}; - -/** @internal */ -export const Configuration$outboundSchema: z.ZodType< - Configuration$Outbound, - z.ZodTypeDef, - Configuration -> = z.object({ - resource: z.string().optional(), - defaults: z.array(z.lazy(() => Defaults$outboundSchema)).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Configuration$ { - /** @deprecated use `Configuration$inboundSchema` instead. */ - export const inboundSchema = Configuration$inboundSchema; - /** @deprecated use `Configuration$outboundSchema` instead. */ - export const outboundSchema = Configuration$outboundSchema; - /** @deprecated use `Configuration$Outbound` instead. */ - export type Outbound = Configuration$Outbound; -} - -export function configurationToJSON(configuration: Configuration): string { - return JSON.stringify(Configuration$outboundSchema.parse(configuration)); -} - export function configurationFromJSON( jsonString: string, ): SafeParseResult { @@ -595,21 +420,6 @@ export function configurationFromJSON( export const Health$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Health); -/** @internal */ -export const Health$outboundSchema: z.ZodNativeEnum = - Health$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Health$ { - /** @deprecated use `Health$inboundSchema` instead. */ - export const inboundSchema = Health$inboundSchema; - /** @deprecated use `Health$outboundSchema` instead. */ - export const outboundSchema = Health$outboundSchema; -} - /** @internal */ export const Connection$inboundSchema: z.ZodType< Connection, @@ -683,138 +493,6 @@ export const Connection$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Connection$Outbound = { - id?: string | undefined; - service_id?: string | undefined; - name?: string | undefined; - tag_line?: string | undefined; - unified_api?: string | undefined; - state?: string | undefined; - integration_state?: string | undefined; - auth_type?: string | undefined; - oauth_grant_type?: string | undefined; - status?: string | undefined; - enabled?: boolean | undefined; - website?: string | undefined; - icon?: string | undefined; - logo?: string | undefined; - authorize_url?: string | null | undefined; - revoke_url?: string | null | undefined; - settings?: { [k: string]: any } | null | undefined; - metadata?: { [k: string]: any } | null | undefined; - form_fields?: Array | undefined; - configuration?: Array | undefined; - configurable_resources?: Array | undefined; - resource_schema_support?: Array | undefined; - resource_settings_support?: Array | undefined; - validation_support?: boolean | undefined; - schema_support?: boolean | undefined; - settings_required_for_authorization?: Array | undefined; - subscriptions?: Array | undefined; - has_guide?: boolean | undefined; - custom_mappings?: Array | undefined; - consent_state?: string | undefined; - consents?: Array | undefined; - latest_consent?: ConsentRecord$Outbound | undefined; - application_data_scopes?: DataScopes$Outbound | undefined; - health?: string | undefined; - credentials_expire_at?: number | undefined; - last_refresh_failed_at?: number | undefined; - created_at?: number | undefined; - updated_at?: number | null | undefined; -}; - -/** @internal */ -export const Connection$outboundSchema: z.ZodType< - Connection$Outbound, - z.ZodTypeDef, - Connection -> = z.object({ - id: z.string().optional(), - serviceId: z.string().optional(), - name: z.string().optional(), - tagLine: z.string().optional(), - unifiedApi: z.string().optional(), - state: ConnectionState$outboundSchema.optional(), - integrationState: IntegrationState$outboundSchema.optional(), - authType: AuthType$outboundSchema.optional(), - oauthGrantType: OAuthGrantType$outboundSchema.optional(), - status: ConnectionStatus$outboundSchema.optional(), - enabled: z.boolean().optional(), - website: z.string().optional(), - icon: z.string().optional(), - logo: z.string().optional(), - authorizeUrl: z.nullable(z.string()).optional(), - revokeUrl: z.nullable(z.string()).optional(), - settings: z.nullable(z.record(z.any())).optional(), - metadata: z.nullable(z.record(z.any())).optional(), - formFields: z.array(FormField$outboundSchema).optional(), - configuration: z.array(z.lazy(() => Configuration$outboundSchema)).optional(), - configurableResources: z.array(z.string()).optional(), - resourceSchemaSupport: z.array(z.string()).optional(), - resourceSettingsSupport: z.array(z.string()).optional(), - validationSupport: z.boolean().optional(), - schemaSupport: z.boolean().optional(), - settingsRequiredForAuthorization: z.array(z.string()).optional(), - subscriptions: z.array(WebhookSubscription$outboundSchema).optional(), - hasGuide: z.boolean().optional(), - customMappings: z.array(CustomMapping$outboundSchema).optional(), - consentState: ConsentState$outboundSchema.optional(), - consents: z.array(ConsentRecord$outboundSchema).optional(), - latestConsent: ConsentRecord$outboundSchema.optional(), - applicationDataScopes: DataScopes$outboundSchema.optional(), - health: Health$outboundSchema.optional(), - credentialsExpireAt: z.number().optional(), - lastRefreshFailedAt: z.number().optional(), - createdAt: z.number().optional(), - updatedAt: z.nullable(z.number()).optional(), -}).transform((v) => { - return remap$(v, { - serviceId: "service_id", - tagLine: "tag_line", - unifiedApi: "unified_api", - integrationState: "integration_state", - authType: "auth_type", - oauthGrantType: "oauth_grant_type", - authorizeUrl: "authorize_url", - revokeUrl: "revoke_url", - formFields: "form_fields", - configurableResources: "configurable_resources", - resourceSchemaSupport: "resource_schema_support", - resourceSettingsSupport: "resource_settings_support", - validationSupport: "validation_support", - schemaSupport: "schema_support", - settingsRequiredForAuthorization: "settings_required_for_authorization", - hasGuide: "has_guide", - customMappings: "custom_mappings", - consentState: "consent_state", - latestConsent: "latest_consent", - applicationDataScopes: "application_data_scopes", - credentialsExpireAt: "credentials_expire_at", - lastRefreshFailedAt: "last_refresh_failed_at", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Connection$ { - /** @deprecated use `Connection$inboundSchema` instead. */ - export const inboundSchema = Connection$inboundSchema; - /** @deprecated use `Connection$outboundSchema` instead. */ - export const outboundSchema = Connection$outboundSchema; - /** @deprecated use `Connection$Outbound` instead. */ - export type Outbound = Connection$Outbound; -} - -export function connectionToJSON(connection: Connection): string { - return JSON.stringify(Connection$outboundSchema.parse(connection)); -} - export function connectionFromJSON( jsonString: string, ): SafeParseResult { @@ -825,23 +503,6 @@ export function connectionFromJSON( ); } -/** @internal */ -export const ConnectionDefaults$inboundSchema: z.ZodType< - ConnectionDefaults, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - options: z.array(FormFieldOption$inboundSchema).optional(), - value: z.union([ - z.string(), - z.number().int(), - z.number(), - z.boolean(), - z.array(z.union([z.string(), z.number().int(), z.number()])), - ]).optional(), -}); - /** @internal */ export type ConnectionDefaults$Outbound = { id?: string | undefined; @@ -872,19 +533,6 @@ export const ConnectionDefaults$outboundSchema: z.ZodType< ]).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionDefaults$ { - /** @deprecated use `ConnectionDefaults$inboundSchema` instead. */ - export const inboundSchema = ConnectionDefaults$inboundSchema; - /** @deprecated use `ConnectionDefaults$outboundSchema` instead. */ - export const outboundSchema = ConnectionDefaults$outboundSchema; - /** @deprecated use `ConnectionDefaults$Outbound` instead. */ - export type Outbound = ConnectionDefaults$Outbound; -} - export function connectionDefaultsToJSON( connectionDefaults: ConnectionDefaults, ): string { @@ -893,26 +541,6 @@ export function connectionDefaultsToJSON( ); } -export function connectionDefaultsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectionDefaults$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectionDefaults' from JSON`, - ); -} - -/** @internal */ -export const ConnectionConfiguration$inboundSchema: z.ZodType< - ConnectionConfiguration, - z.ZodTypeDef, - unknown -> = z.object({ - resource: z.string().optional(), - defaults: z.array(z.lazy(() => ConnectionDefaults$inboundSchema)).optional(), -}); - /** @internal */ export type ConnectionConfiguration$Outbound = { resource?: string | undefined; @@ -929,19 +557,6 @@ export const ConnectionConfiguration$outboundSchema: z.ZodType< defaults: z.array(z.lazy(() => ConnectionDefaults$outboundSchema)).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionConfiguration$ { - /** @deprecated use `ConnectionConfiguration$inboundSchema` instead. */ - export const inboundSchema = ConnectionConfiguration$inboundSchema; - /** @deprecated use `ConnectionConfiguration$outboundSchema` instead. */ - export const outboundSchema = ConnectionConfiguration$outboundSchema; - /** @deprecated use `ConnectionConfiguration$Outbound` instead. */ - export type Outbound = ConnectionConfiguration$Outbound; -} - export function connectionConfigurationToJSON( connectionConfiguration: ConnectionConfiguration, ): string { @@ -950,40 +565,6 @@ export function connectionConfigurationToJSON( ); } -export function connectionConfigurationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectionConfiguration$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectionConfiguration' from JSON`, - ); -} - -/** @internal */ -export const ConnectionInput$inboundSchema: z.ZodType< - ConnectionInput, - z.ZodTypeDef, - unknown -> = z.object({ - enabled: z.boolean().optional(), - settings: z.nullable(z.record(z.any())).optional(), - metadata: z.nullable(z.record(z.any())).optional(), - configuration: z.array(z.lazy(() => ConnectionConfiguration$inboundSchema)) - .optional(), - custom_mappings: z.array(CustomMappingInput$inboundSchema).optional(), - consent_state: ConsentState$inboundSchema.optional(), - latest_consent: ConsentRecordInput$inboundSchema.optional(), - application_data_scopes: DataScopesInput$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "custom_mappings": "customMappings", - "consent_state": "consentState", - "latest_consent": "latestConsent", - "application_data_scopes": "applicationDataScopes", - }); -}); - /** @internal */ export type ConnectionInput$Outbound = { enabled?: boolean | undefined; @@ -1020,31 +601,8 @@ export const ConnectionInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionInput$ { - /** @deprecated use `ConnectionInput$inboundSchema` instead. */ - export const inboundSchema = ConnectionInput$inboundSchema; - /** @deprecated use `ConnectionInput$outboundSchema` instead. */ - export const outboundSchema = ConnectionInput$outboundSchema; - /** @deprecated use `ConnectionInput$Outbound` instead. */ - export type Outbound = ConnectionInput$Outbound; -} - export function connectionInputToJSON( connectionInput: ConnectionInput, ): string { return JSON.stringify(ConnectionInput$outboundSchema.parse(connectionInput)); } - -export function connectionInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectionInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectionInput' from JSON`, - ); -} diff --git a/src/models/components/connectionimportdata.ts b/src/models/components/connectionimportdata.ts index 7c4223649..e695cca0a 100644 --- a/src/models/components/connectionimportdata.ts +++ b/src/models/components/connectionimportdata.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Credentials = { /** @@ -39,27 +36,6 @@ export type ConnectionImportData = { metadata?: { [k: string]: any } | null | undefined; }; -/** @internal */ -export const Credentials$inboundSchema: z.ZodType< - Credentials, - z.ZodTypeDef, - unknown -> = z.object({ - refresh_token: z.nullable(z.string()).optional(), - access_token: z.string().optional(), - issued_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - expires_in: z.nullable(z.number().int()).optional(), -}).transform((v) => { - return remap$(v, { - "refresh_token": "refreshToken", - "access_token": "accessToken", - "issued_at": "issuedAt", - "expires_in": "expiresIn", - }); -}); - /** @internal */ export type Credentials$Outbound = { refresh_token?: string | null | undefined; @@ -87,44 +63,10 @@ export const Credentials$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Credentials$ { - /** @deprecated use `Credentials$inboundSchema` instead. */ - export const inboundSchema = Credentials$inboundSchema; - /** @deprecated use `Credentials$outboundSchema` instead. */ - export const outboundSchema = Credentials$outboundSchema; - /** @deprecated use `Credentials$Outbound` instead. */ - export type Outbound = Credentials$Outbound; -} - export function credentialsToJSON(credentials: Credentials): string { return JSON.stringify(Credentials$outboundSchema.parse(credentials)); } -export function credentialsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Credentials$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Credentials' from JSON`, - ); -} - -/** @internal */ -export const ConnectionImportData$inboundSchema: z.ZodType< - ConnectionImportData, - z.ZodTypeDef, - unknown -> = z.object({ - credentials: z.lazy(() => Credentials$inboundSchema).optional(), - settings: z.nullable(z.record(z.any())).optional(), - metadata: z.nullable(z.record(z.any())).optional(), -}); - /** @internal */ export type ConnectionImportData$Outbound = { credentials?: Credentials$Outbound | undefined; @@ -143,19 +85,6 @@ export const ConnectionImportData$outboundSchema: z.ZodType< metadata: z.nullable(z.record(z.any())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionImportData$ { - /** @deprecated use `ConnectionImportData$inboundSchema` instead. */ - export const inboundSchema = ConnectionImportData$inboundSchema; - /** @deprecated use `ConnectionImportData$outboundSchema` instead. */ - export const outboundSchema = ConnectionImportData$outboundSchema; - /** @deprecated use `ConnectionImportData$Outbound` instead. */ - export type Outbound = ConnectionImportData$Outbound; -} - export function connectionImportDataToJSON( connectionImportData: ConnectionImportData, ): string { @@ -163,13 +92,3 @@ export function connectionImportDataToJSON( ConnectionImportData$outboundSchema.parse(connectionImportData), ); } - -export function connectionImportDataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectionImportData$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectionImportData' from JSON`, - ); -} diff --git a/src/models/components/connectionstate.ts b/src/models/components/connectionstate.ts index 677bb2c0f..39b06576b 100644 --- a/src/models/components/connectionstate.ts +++ b/src/models/components/connectionstate.ts @@ -24,19 +24,3 @@ export type ConnectionState = ClosedEnum; export const ConnectionState$inboundSchema: z.ZodNativeEnum< typeof ConnectionState > = z.nativeEnum(ConnectionState); - -/** @internal */ -export const ConnectionState$outboundSchema: z.ZodNativeEnum< - typeof ConnectionState -> = ConnectionState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionState$ { - /** @deprecated use `ConnectionState$inboundSchema` instead. */ - export const inboundSchema = ConnectionState$inboundSchema; - /** @deprecated use `ConnectionState$outboundSchema` instead. */ - export const outboundSchema = ConnectionState$outboundSchema; -} diff --git a/src/models/components/connector.ts b/src/models/components/connector.ts index ef0f7f9a0..8008e59a9 100644 --- a/src/models/components/connector.ts +++ b/src/models/components/connector.ts @@ -8,51 +8,28 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ConnectorDoc, - ConnectorDoc$inboundSchema, - ConnectorDoc$Outbound, - ConnectorDoc$outboundSchema, -} from "./connectordoc.js"; +import { ConnectorDoc, ConnectorDoc$inboundSchema } from "./connectordoc.js"; import { ConnectorEvent, ConnectorEvent$inboundSchema, - ConnectorEvent$Outbound, - ConnectorEvent$outboundSchema, } from "./connectorevent.js"; import { ConnectorSetting, ConnectorSetting$inboundSchema, - ConnectorSetting$Outbound, - ConnectorSetting$outboundSchema, } from "./connectorsetting.js"; import { ConnectorStatus, ConnectorStatus$inboundSchema, - ConnectorStatus$outboundSchema, } from "./connectorstatus.js"; import { LinkedConnectorResource, LinkedConnectorResource$inboundSchema, - LinkedConnectorResource$Outbound, - LinkedConnectorResource$outboundSchema, } from "./linkedconnectorresource.js"; -import { - SchemaSupport, - SchemaSupport$inboundSchema, - SchemaSupport$Outbound, - SchemaSupport$outboundSchema, -} from "./schemasupport.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { SchemaSupport, SchemaSupport$inboundSchema } from "./schemasupport.js"; +import { UnifiedApiId, UnifiedApiId$inboundSchema } from "./unifiedapiid.js"; import { WebhookSupport, WebhookSupport$inboundSchema, - WebhookSupport$Outbound, - WebhookSupport$outboundSchema, } from "./webhooksupport.js"; /** @@ -273,64 +250,16 @@ export const ConnectorAuthType$inboundSchema: z.ZodNativeEnum< typeof ConnectorAuthType > = z.nativeEnum(ConnectorAuthType); -/** @internal */ -export const ConnectorAuthType$outboundSchema: z.ZodNativeEnum< - typeof ConnectorAuthType -> = ConnectorAuthType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorAuthType$ { - /** @deprecated use `ConnectorAuthType$inboundSchema` instead. */ - export const inboundSchema = ConnectorAuthType$inboundSchema; - /** @deprecated use `ConnectorAuthType$outboundSchema` instead. */ - export const outboundSchema = ConnectorAuthType$outboundSchema; -} - /** @internal */ export const ConnectorOauthGrantType$inboundSchema: z.ZodNativeEnum< typeof ConnectorOauthGrantType > = z.nativeEnum(ConnectorOauthGrantType); -/** @internal */ -export const ConnectorOauthGrantType$outboundSchema: z.ZodNativeEnum< - typeof ConnectorOauthGrantType -> = ConnectorOauthGrantType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorOauthGrantType$ { - /** @deprecated use `ConnectorOauthGrantType$inboundSchema` instead. */ - export const inboundSchema = ConnectorOauthGrantType$inboundSchema; - /** @deprecated use `ConnectorOauthGrantType$outboundSchema` instead. */ - export const outboundSchema = ConnectorOauthGrantType$outboundSchema; -} - /** @internal */ export const OauthCredentialsSource$inboundSchema: z.ZodNativeEnum< typeof OauthCredentialsSource > = z.nativeEnum(OauthCredentialsSource); -/** @internal */ -export const OauthCredentialsSource$outboundSchema: z.ZodNativeEnum< - typeof OauthCredentialsSource -> = OauthCredentialsSource$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OauthCredentialsSource$ { - /** @deprecated use `OauthCredentialsSource$inboundSchema` instead. */ - export const inboundSchema = OauthCredentialsSource$inboundSchema; - /** @deprecated use `OauthCredentialsSource$outboundSchema` instead. */ - export const outboundSchema = OauthCredentialsSource$outboundSchema; -} - /** @internal */ export const OauthScopes$inboundSchema: z.ZodType< OauthScopes, @@ -346,45 +275,6 @@ export const OauthScopes$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OauthScopes$Outbound = { - id?: string | undefined; - label?: string | undefined; - default_apis?: Array | undefined; -}; - -/** @internal */ -export const OauthScopes$outboundSchema: z.ZodType< - OauthScopes$Outbound, - z.ZodTypeDef, - OauthScopes -> = z.object({ - id: z.string().optional(), - label: z.string().optional(), - defaultApis: z.array(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - defaultApis: "default_apis", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OauthScopes$ { - /** @deprecated use `OauthScopes$inboundSchema` instead. */ - export const inboundSchema = OauthScopes$inboundSchema; - /** @deprecated use `OauthScopes$outboundSchema` instead. */ - export const outboundSchema = OauthScopes$outboundSchema; - /** @deprecated use `OauthScopes$Outbound` instead. */ - export type Outbound = OauthScopes$Outbound; -} - -export function oauthScopesToJSON(oauthScopes: OauthScopes): string { - return JSON.stringify(OauthScopes$outboundSchema.parse(oauthScopes)); -} - export function oauthScopesFromJSON( jsonString: string, ): SafeParseResult { @@ -405,43 +295,6 @@ export const ConnectorOauthScopes$inboundSchema: z.ZodType< label: z.string().optional(), }); -/** @internal */ -export type ConnectorOauthScopes$Outbound = { - id?: string | undefined; - label?: string | undefined; -}; - -/** @internal */ -export const ConnectorOauthScopes$outboundSchema: z.ZodType< - ConnectorOauthScopes$Outbound, - z.ZodTypeDef, - ConnectorOauthScopes -> = z.object({ - id: z.string().optional(), - label: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorOauthScopes$ { - /** @deprecated use `ConnectorOauthScopes$inboundSchema` instead. */ - export const inboundSchema = ConnectorOauthScopes$inboundSchema; - /** @deprecated use `ConnectorOauthScopes$outboundSchema` instead. */ - export const outboundSchema = ConnectorOauthScopes$outboundSchema; - /** @deprecated use `ConnectorOauthScopes$Outbound` instead. */ - export type Outbound = ConnectorOauthScopes$Outbound; -} - -export function connectorOauthScopesToJSON( - connectorOauthScopes: ConnectorOauthScopes, -): string { - return JSON.stringify( - ConnectorOauthScopes$outboundSchema.parse(connectorOauthScopes), - ); -} - export function connectorOauthScopesFromJSON( jsonString: string, ): SafeParseResult { @@ -477,59 +330,6 @@ export const UnifiedApis$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnifiedApis$Outbound = { - id?: string | undefined; - name?: string | undefined; - auth_only?: boolean | undefined; - oauth_scopes?: Array | undefined; - supported_resources?: Array | undefined; - downstream_unsupported_resources?: Array | undefined; - supported_events?: Array | undefined; -}; - -/** @internal */ -export const UnifiedApis$outboundSchema: z.ZodType< - UnifiedApis$Outbound, - z.ZodTypeDef, - UnifiedApis -> = z.object({ - id: UnifiedApiId$outboundSchema.optional(), - name: z.string().optional(), - authOnly: z.boolean().optional(), - oauthScopes: z.array(z.lazy(() => ConnectorOauthScopes$outboundSchema)) - .optional(), - supportedResources: z.array(LinkedConnectorResource$outboundSchema) - .optional(), - downstreamUnsupportedResources: z.array(z.string()).optional(), - supportedEvents: z.array(ConnectorEvent$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - authOnly: "auth_only", - oauthScopes: "oauth_scopes", - supportedResources: "supported_resources", - downstreamUnsupportedResources: "downstream_unsupported_resources", - supportedEvents: "supported_events", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnifiedApis$ { - /** @deprecated use `UnifiedApis$inboundSchema` instead. */ - export const inboundSchema = UnifiedApis$inboundSchema; - /** @deprecated use `UnifiedApis$outboundSchema` instead. */ - export const outboundSchema = UnifiedApis$outboundSchema; - /** @deprecated use `UnifiedApis$Outbound` instead. */ - export type Outbound = UnifiedApis$Outbound; -} - -export function unifiedApisToJSON(unifiedApis: UnifiedApis): string { - return JSON.stringify(UnifiedApis$outboundSchema.parse(unifiedApis)); -} - export function unifiedApisFromJSON( jsonString: string, ): SafeParseResult { @@ -550,39 +350,6 @@ export const TlsSupport$inboundSchema: z.ZodType< description: z.string().optional(), }); -/** @internal */ -export type TlsSupport$Outbound = { - type?: string | undefined; - description?: string | undefined; -}; - -/** @internal */ -export const TlsSupport$outboundSchema: z.ZodType< - TlsSupport$Outbound, - z.ZodTypeDef, - TlsSupport -> = z.object({ - type: z.string().optional(), - description: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TlsSupport$ { - /** @deprecated use `TlsSupport$inboundSchema` instead. */ - export const inboundSchema = TlsSupport$inboundSchema; - /** @deprecated use `TlsSupport$outboundSchema` instead. */ - export const outboundSchema = TlsSupport$outboundSchema; - /** @deprecated use `TlsSupport$Outbound` instead. */ - export type Outbound = TlsSupport$Outbound; -} - -export function tlsSupportToJSON(tlsSupport: TlsSupport): string { - return JSON.stringify(TlsSupport$outboundSchema.parse(tlsSupport)); -} - export function tlsSupportFromJSON( jsonString: string, ): SafeParseResult { @@ -655,117 +422,6 @@ export const Connector$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Connector$Outbound = { - id?: string | undefined; - name?: string | undefined; - status?: string | undefined; - description?: string | null | undefined; - icon_url?: string | undefined; - logo_url?: string | undefined; - website_url?: string | undefined; - signup_url?: string | undefined; - partner_signup_url?: string | undefined; - free_trial_available?: boolean | undefined; - auth_type?: string | undefined; - auth_only?: boolean | undefined; - blind_mapped?: boolean | undefined; - oauth_grant_type?: string | undefined; - oauth_credentials_source?: string | undefined; - oauth_scopes?: Array | undefined; - custom_scopes?: boolean | undefined; - has_sandbox_credentials?: boolean | undefined; - settings?: Array | undefined; - service_id?: string | undefined; - unified_apis?: Array | undefined; - supported_resources?: Array | undefined; - configurable_resources?: Array | undefined; - supported_events?: Array | undefined; - webhook_support?: WebhookSupport$Outbound | undefined; - schema_support?: SchemaSupport$Outbound | undefined; - docs?: Array | undefined; - tls_support?: TlsSupport$Outbound | undefined; -}; - -/** @internal */ -export const Connector$outboundSchema: z.ZodType< - Connector$Outbound, - z.ZodTypeDef, - Connector -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - status: ConnectorStatus$outboundSchema.optional(), - description: z.nullable(z.string()).optional(), - iconUrl: z.string().optional(), - logoUrl: z.string().optional(), - websiteUrl: z.string().optional(), - signupUrl: z.string().optional(), - partnerSignupUrl: z.string().optional(), - freeTrialAvailable: z.boolean().optional(), - authType: ConnectorAuthType$outboundSchema.optional(), - authOnly: z.boolean().optional(), - blindMapped: z.boolean().optional(), - oauthGrantType: ConnectorOauthGrantType$outboundSchema.optional(), - oauthCredentialsSource: OauthCredentialsSource$outboundSchema.optional(), - oauthScopes: z.array(z.lazy(() => OauthScopes$outboundSchema)).optional(), - customScopes: z.boolean().optional(), - hasSandboxCredentials: z.boolean().optional(), - settings: z.array(ConnectorSetting$outboundSchema).optional(), - serviceId: z.string().optional(), - unifiedApis: z.array(z.lazy(() => UnifiedApis$outboundSchema)).optional(), - supportedResources: z.array(LinkedConnectorResource$outboundSchema) - .optional(), - configurableResources: z.array(z.string()).optional(), - supportedEvents: z.array(ConnectorEvent$outboundSchema).optional(), - webhookSupport: WebhookSupport$outboundSchema.optional(), - schemaSupport: SchemaSupport$outboundSchema.optional(), - docs: z.array(ConnectorDoc$outboundSchema).optional(), - tlsSupport: z.lazy(() => TlsSupport$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - iconUrl: "icon_url", - logoUrl: "logo_url", - websiteUrl: "website_url", - signupUrl: "signup_url", - partnerSignupUrl: "partner_signup_url", - freeTrialAvailable: "free_trial_available", - authType: "auth_type", - authOnly: "auth_only", - blindMapped: "blind_mapped", - oauthGrantType: "oauth_grant_type", - oauthCredentialsSource: "oauth_credentials_source", - oauthScopes: "oauth_scopes", - customScopes: "custom_scopes", - hasSandboxCredentials: "has_sandbox_credentials", - serviceId: "service_id", - unifiedApis: "unified_apis", - supportedResources: "supported_resources", - configurableResources: "configurable_resources", - supportedEvents: "supported_events", - webhookSupport: "webhook_support", - schemaSupport: "schema_support", - tlsSupport: "tls_support", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Connector$ { - /** @deprecated use `Connector$inboundSchema` instead. */ - export const inboundSchema = Connector$inboundSchema; - /** @deprecated use `Connector$outboundSchema` instead. */ - export const outboundSchema = Connector$outboundSchema; - /** @deprecated use `Connector$Outbound` instead. */ - export type Outbound = Connector$Outbound; -} - -export function connectorToJSON(connector: Connector): string { - return JSON.stringify(Connector$outboundSchema.parse(connector)); -} - export function connectorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connectordoc.ts b/src/models/components/connectordoc.ts index 311307b57..f5d1bd126 100644 --- a/src/models/components/connectordoc.ts +++ b/src/models/components/connectordoc.ts @@ -58,40 +58,10 @@ export type ConnectorDoc = { export const Audience$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Audience); -/** @internal */ -export const Audience$outboundSchema: z.ZodNativeEnum = - Audience$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Audience$ { - /** @deprecated use `Audience$inboundSchema` instead. */ - export const inboundSchema = Audience$inboundSchema; - /** @deprecated use `Audience$outboundSchema` instead. */ - export const outboundSchema = Audience$outboundSchema; -} - /** @internal */ export const Format$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Format); -/** @internal */ -export const Format$outboundSchema: z.ZodNativeEnum = - Format$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; -} - /** @internal */ export const ConnectorDoc$inboundSchema: z.ZodType< ConnectorDoc, @@ -105,45 +75,6 @@ export const ConnectorDoc$inboundSchema: z.ZodType< url: z.string().optional(), }); -/** @internal */ -export type ConnectorDoc$Outbound = { - id?: string | undefined; - name?: string | undefined; - audience?: string | undefined; - format?: string | undefined; - url?: string | undefined; -}; - -/** @internal */ -export const ConnectorDoc$outboundSchema: z.ZodType< - ConnectorDoc$Outbound, - z.ZodTypeDef, - ConnectorDoc -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - audience: Audience$outboundSchema.optional(), - format: Format$outboundSchema.optional(), - url: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorDoc$ { - /** @deprecated use `ConnectorDoc$inboundSchema` instead. */ - export const inboundSchema = ConnectorDoc$inboundSchema; - /** @deprecated use `ConnectorDoc$outboundSchema` instead. */ - export const outboundSchema = ConnectorDoc$outboundSchema; - /** @deprecated use `ConnectorDoc$Outbound` instead. */ - export type Outbound = ConnectorDoc$Outbound; -} - -export function connectorDocToJSON(connectorDoc: ConnectorDoc): string { - return JSON.stringify(ConnectorDoc$outboundSchema.parse(connectorDoc)); -} - export function connectorDocFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connectorevent.ts b/src/models/components/connectorevent.ts index 39085746c..2b82a91c6 100644 --- a/src/models/components/connectorevent.ts +++ b/src/models/components/connectorevent.ts @@ -48,21 +48,6 @@ export type ConnectorEvent = { export const EventSource$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EventSource); -/** @internal */ -export const EventSource$outboundSchema: z.ZodNativeEnum = - EventSource$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventSource$ { - /** @deprecated use `EventSource$inboundSchema` instead. */ - export const inboundSchema = EventSource$inboundSchema; - /** @deprecated use `EventSource$outboundSchema` instead. */ - export const outboundSchema = EventSource$outboundSchema; -} - /** @internal */ export const ConnectorEvent$inboundSchema: z.ZodType< ConnectorEvent, @@ -83,52 +68,6 @@ export const ConnectorEvent$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorEvent$Outbound = { - event_type?: string | undefined; - event_source?: string | undefined; - downstream_event_type?: string | undefined; - resources?: Array | undefined; - entity_type?: string | undefined; -}; - -/** @internal */ -export const ConnectorEvent$outboundSchema: z.ZodType< - ConnectorEvent$Outbound, - z.ZodTypeDef, - ConnectorEvent -> = z.object({ - eventType: z.string().optional(), - eventSource: EventSource$outboundSchema.optional(), - downstreamEventType: z.string().optional(), - resources: z.array(z.string()).optional(), - entityType: z.string().optional(), -}).transform((v) => { - return remap$(v, { - eventType: "event_type", - eventSource: "event_source", - downstreamEventType: "downstream_event_type", - entityType: "entity_type", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorEvent$ { - /** @deprecated use `ConnectorEvent$inboundSchema` instead. */ - export const inboundSchema = ConnectorEvent$inboundSchema; - /** @deprecated use `ConnectorEvent$outboundSchema` instead. */ - export const outboundSchema = ConnectorEvent$outboundSchema; - /** @deprecated use `ConnectorEvent$Outbound` instead. */ - export type Outbound = ConnectorEvent$Outbound; -} - -export function connectorEventToJSON(connectorEvent: ConnectorEvent): string { - return JSON.stringify(ConnectorEvent$outboundSchema.parse(connectorEvent)); -} - export function connectorEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connectorresource.ts b/src/models/components/connectorresource.ts index db797ab09..b7ab999ae 100644 --- a/src/models/components/connectorresource.ts +++ b/src/models/components/connectorresource.ts @@ -10,19 +10,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PaginationCoverage, PaginationCoverage$inboundSchema, - PaginationCoverage$Outbound, - PaginationCoverage$outboundSchema, } from "./paginationcoverage.js"; import { ResourceStatus, ResourceStatus$inboundSchema, - ResourceStatus$outboundSchema, } from "./resourcestatus.js"; import { SupportedProperty, SupportedProperty$inboundSchema, - SupportedProperty$Outbound, - SupportedProperty$outboundSchema, } from "./supportedproperty.js"; export type ConnectorResource = { @@ -116,80 +111,6 @@ export const ConnectorResource$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorResource$Outbound = { - id?: string | undefined; - name?: string | undefined; - downstream_id?: string | undefined; - downstream_name?: string | undefined; - status?: string | undefined; - pagination_supported?: boolean | undefined; - pagination?: PaginationCoverage$Outbound | undefined; - custom_fields_supported?: boolean | undefined; - supported_operations?: Array | undefined; - downstream_unsupported_operations?: Array | undefined; - supported_filters?: Array | undefined; - supported_sort_by?: Array | undefined; - supported_fields?: Array | undefined; - supported_list_fields?: Array | undefined; -}; - -/** @internal */ -export const ConnectorResource$outboundSchema: z.ZodType< - ConnectorResource$Outbound, - z.ZodTypeDef, - ConnectorResource -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - downstreamId: z.string().optional(), - downstreamName: z.string().optional(), - status: ResourceStatus$outboundSchema.optional(), - paginationSupported: z.boolean().optional(), - pagination: PaginationCoverage$outboundSchema.optional(), - customFieldsSupported: z.boolean().optional(), - supportedOperations: z.array(z.string()).optional(), - downstreamUnsupportedOperations: z.array(z.string()).optional(), - supportedFilters: z.array(z.string()).optional(), - supportedSortBy: z.array(z.string()).optional(), - supportedFields: z.array(SupportedProperty$outboundSchema).optional(), - supportedListFields: z.array(SupportedProperty$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - downstreamName: "downstream_name", - paginationSupported: "pagination_supported", - customFieldsSupported: "custom_fields_supported", - supportedOperations: "supported_operations", - downstreamUnsupportedOperations: "downstream_unsupported_operations", - supportedFilters: "supported_filters", - supportedSortBy: "supported_sort_by", - supportedFields: "supported_fields", - supportedListFields: "supported_list_fields", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorResource$ { - /** @deprecated use `ConnectorResource$inboundSchema` instead. */ - export const inboundSchema = ConnectorResource$inboundSchema; - /** @deprecated use `ConnectorResource$outboundSchema` instead. */ - export const outboundSchema = ConnectorResource$outboundSchema; - /** @deprecated use `ConnectorResource$Outbound` instead. */ - export type Outbound = ConnectorResource$Outbound; -} - -export function connectorResourceToJSON( - connectorResource: ConnectorResource, -): string { - return JSON.stringify( - ConnectorResource$outboundSchema.parse(connectorResource), - ); -} - export function connectorResourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connectorsetting.ts b/src/models/components/connectorsetting.ts index ad8eb2906..9ec4a5857 100644 --- a/src/models/components/connectorsetting.ts +++ b/src/models/components/connectorsetting.ts @@ -37,22 +37,6 @@ export const ConnectorSettingType$inboundSchema: z.ZodNativeEnum< typeof ConnectorSettingType > = z.nativeEnum(ConnectorSettingType); -/** @internal */ -export const ConnectorSettingType$outboundSchema: z.ZodNativeEnum< - typeof ConnectorSettingType -> = ConnectorSettingType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorSettingType$ { - /** @deprecated use `ConnectorSettingType$inboundSchema` instead. */ - export const inboundSchema = ConnectorSettingType$inboundSchema; - /** @deprecated use `ConnectorSettingType$outboundSchema` instead. */ - export const outboundSchema = ConnectorSettingType$outboundSchema; -} - /** @internal */ export const ConnectorSetting$inboundSchema: z.ZodType< ConnectorSetting, @@ -64,45 +48,6 @@ export const ConnectorSetting$inboundSchema: z.ZodType< type: ConnectorSettingType$inboundSchema.optional(), }); -/** @internal */ -export type ConnectorSetting$Outbound = { - id?: string | undefined; - label?: string | undefined; - type?: string | undefined; -}; - -/** @internal */ -export const ConnectorSetting$outboundSchema: z.ZodType< - ConnectorSetting$Outbound, - z.ZodTypeDef, - ConnectorSetting -> = z.object({ - id: z.string().optional(), - label: z.string().optional(), - type: ConnectorSettingType$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorSetting$ { - /** @deprecated use `ConnectorSetting$inboundSchema` instead. */ - export const inboundSchema = ConnectorSetting$inboundSchema; - /** @deprecated use `ConnectorSetting$outboundSchema` instead. */ - export const outboundSchema = ConnectorSetting$outboundSchema; - /** @deprecated use `ConnectorSetting$Outbound` instead. */ - export type Outbound = ConnectorSetting$Outbound; -} - -export function connectorSettingToJSON( - connectorSetting: ConnectorSetting, -): string { - return JSON.stringify( - ConnectorSetting$outboundSchema.parse(connectorSetting), - ); -} - export function connectorSettingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/connectorsfilter.ts b/src/models/components/connectorsfilter.ts index f9c211393..be399f49f 100644 --- a/src/models/components/connectorsfilter.ts +++ b/src/models/components/connectorsfilter.ts @@ -4,19 +4,11 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConnectorStatus, - ConnectorStatus$inboundSchema, ConnectorStatus$outboundSchema, } from "./connectorstatus.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { UnifiedApiId, UnifiedApiId$outboundSchema } from "./unifiedapiid.js"; export type ConnectorsFilter = { /** @@ -29,20 +21,6 @@ export type ConnectorsFilter = { status?: ConnectorStatus | undefined; }; -/** @internal */ -export const ConnectorsFilter$inboundSchema: z.ZodType< - ConnectorsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - unified_api: UnifiedApiId$inboundSchema.optional(), - status: ConnectorStatus$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - }); -}); - /** @internal */ export type ConnectorsFilter$Outbound = { unified_api?: string | undefined; @@ -63,19 +41,6 @@ export const ConnectorsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorsFilter$ { - /** @deprecated use `ConnectorsFilter$inboundSchema` instead. */ - export const inboundSchema = ConnectorsFilter$inboundSchema; - /** @deprecated use `ConnectorsFilter$outboundSchema` instead. */ - export const outboundSchema = ConnectorsFilter$outboundSchema; - /** @deprecated use `ConnectorsFilter$Outbound` instead. */ - export type Outbound = ConnectorsFilter$Outbound; -} - export function connectorsFilterToJSON( connectorsFilter: ConnectorsFilter, ): string { @@ -83,13 +48,3 @@ export function connectorsFilterToJSON( ConnectorsFilter$outboundSchema.parse(connectorsFilter), ); } - -export function connectorsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorsFilter' from JSON`, - ); -} diff --git a/src/models/components/connectorstatus.ts b/src/models/components/connectorstatus.ts index f84b1ba53..e202d6bff 100644 --- a/src/models/components/connectorstatus.ts +++ b/src/models/components/connectorstatus.ts @@ -24,19 +24,7 @@ export type ConnectorStatus = ClosedEnum; export const ConnectorStatus$inboundSchema: z.ZodNativeEnum< typeof ConnectorStatus > = z.nativeEnum(ConnectorStatus); - /** @internal */ export const ConnectorStatus$outboundSchema: z.ZodNativeEnum< typeof ConnectorStatus > = ConnectorStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorStatus$ { - /** @deprecated use `ConnectorStatus$inboundSchema` instead. */ - export const inboundSchema = ConnectorStatus$inboundSchema; - /** @deprecated use `ConnectorStatus$outboundSchema` instead. */ - export const outboundSchema = ConnectorStatus$outboundSchema; -} diff --git a/src/models/components/consentrecord.ts b/src/models/components/consentrecord.ts index 90423c94a..0d8c14689 100644 --- a/src/models/components/consentrecord.ts +++ b/src/models/components/consentrecord.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DataScopesResources, DataScopesResources$inboundSchema, - DataScopesResources$Outbound, - DataScopesResources$outboundSchema, } from "./datascopesresources.js"; export type ConsentRecord = { @@ -49,47 +47,6 @@ export const ConsentRecord$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConsentRecord$Outbound = { - id: string; - created_at: string; - granted: boolean; - resources: DataScopesResources$Outbound; -}; - -/** @internal */ -export const ConsentRecord$outboundSchema: z.ZodType< - ConsentRecord$Outbound, - z.ZodTypeDef, - ConsentRecord -> = z.object({ - id: z.string(), - createdAt: z.string(), - granted: z.boolean(), - resources: DataScopesResources$outboundSchema, -}).transform((v) => { - return remap$(v, { - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsentRecord$ { - /** @deprecated use `ConsentRecord$inboundSchema` instead. */ - export const inboundSchema = ConsentRecord$inboundSchema; - /** @deprecated use `ConsentRecord$outboundSchema` instead. */ - export const outboundSchema = ConsentRecord$outboundSchema; - /** @deprecated use `ConsentRecord$Outbound` instead. */ - export type Outbound = ConsentRecord$Outbound; -} - -export function consentRecordToJSON(consentRecord: ConsentRecord): string { - return JSON.stringify(ConsentRecord$outboundSchema.parse(consentRecord)); -} - export function consentRecordFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/consentrecordinput.ts b/src/models/components/consentrecordinput.ts index c1d4f8db4..519990712 100644 --- a/src/models/components/consentrecordinput.ts +++ b/src/models/components/consentrecordinput.ts @@ -3,12 +3,8 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DataScopesResources, - DataScopesResources$inboundSchema, DataScopesResources$Outbound, DataScopesResources$outboundSchema, } from "./datascopesresources.js"; @@ -24,16 +20,6 @@ export type ConsentRecordInput = { resources: DataScopesResources; }; -/** @internal */ -export const ConsentRecordInput$inboundSchema: z.ZodType< - ConsentRecordInput, - z.ZodTypeDef, - unknown -> = z.object({ - granted: z.boolean(), - resources: DataScopesResources$inboundSchema, -}); - /** @internal */ export type ConsentRecordInput$Outbound = { granted: boolean; @@ -50,19 +36,6 @@ export const ConsentRecordInput$outboundSchema: z.ZodType< resources: DataScopesResources$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsentRecordInput$ { - /** @deprecated use `ConsentRecordInput$inboundSchema` instead. */ - export const inboundSchema = ConsentRecordInput$inboundSchema; - /** @deprecated use `ConsentRecordInput$outboundSchema` instead. */ - export const outboundSchema = ConsentRecordInput$outboundSchema; - /** @deprecated use `ConsentRecordInput$Outbound` instead. */ - export type Outbound = ConsentRecordInput$Outbound; -} - export function consentRecordInputToJSON( consentRecordInput: ConsentRecordInput, ): string { @@ -70,13 +43,3 @@ export function consentRecordInputToJSON( ConsentRecordInput$outboundSchema.parse(consentRecordInput), ); } - -export function consentRecordInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConsentRecordInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConsentRecordInput' from JSON`, - ); -} diff --git a/src/models/components/consentstate.ts b/src/models/components/consentstate.ts index 0a427491d..a9382b448 100644 --- a/src/models/components/consentstate.ts +++ b/src/models/components/consentstate.ts @@ -24,18 +24,6 @@ export type ConsentState = ClosedEnum; /** @internal */ export const ConsentState$inboundSchema: z.ZodNativeEnum = z.nativeEnum(ConsentState); - /** @internal */ export const ConsentState$outboundSchema: z.ZodNativeEnum = ConsentState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsentState$ { - /** @deprecated use `ConsentState$inboundSchema` instead. */ - export const inboundSchema = ConsentState$inboundSchema; - /** @deprecated use `ConsentState$outboundSchema` instead. */ - export const outboundSchema = ConsentState$outboundSchema; -} diff --git a/src/models/components/consumer.ts b/src/models/components/consumer.ts index 64697c925..05d8ab203 100644 --- a/src/models/components/consumer.ts +++ b/src/models/components/consumer.ts @@ -10,20 +10,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerConnection, ConsumerConnection$inboundSchema, - ConsumerConnection$Outbound, - ConsumerConnection$outboundSchema, } from "./consumerconnection.js"; import { ConsumerMetadata, ConsumerMetadata$inboundSchema, - ConsumerMetadata$Outbound, - ConsumerMetadata$outboundSchema, } from "./consumermetadata.js"; import { RequestCountAllocation, RequestCountAllocation$inboundSchema, - RequestCountAllocation$Outbound, - RequestCountAllocation$outboundSchema, } from "./requestcountallocation.js"; export type Consumer = { @@ -74,63 +68,6 @@ export const Consumer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Consumer$Outbound = { - consumer_id: string; - application_id?: string | undefined; - metadata?: ConsumerMetadata$Outbound | undefined; - connections?: Array | undefined; - services?: Array | undefined; - aggregated_request_count?: number | undefined; - request_counts?: RequestCountAllocation$Outbound | undefined; - created?: string | undefined; - modified?: string | undefined; - request_count_updated?: string | undefined; -}; - -/** @internal */ -export const Consumer$outboundSchema: z.ZodType< - Consumer$Outbound, - z.ZodTypeDef, - Consumer -> = z.object({ - consumerId: z.string(), - applicationId: z.string().optional(), - metadata: ConsumerMetadata$outboundSchema.optional(), - connections: z.array(ConsumerConnection$outboundSchema).optional(), - services: z.array(z.string()).optional(), - aggregatedRequestCount: z.number().optional(), - requestCounts: RequestCountAllocation$outboundSchema.optional(), - created: z.string().optional(), - modified: z.string().optional(), - requestCountUpdated: z.string().optional(), -}).transform((v) => { - return remap$(v, { - consumerId: "consumer_id", - applicationId: "application_id", - aggregatedRequestCount: "aggregated_request_count", - requestCounts: "request_counts", - requestCountUpdated: "request_count_updated", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Consumer$ { - /** @deprecated use `Consumer$inboundSchema` instead. */ - export const inboundSchema = Consumer$inboundSchema; - /** @deprecated use `Consumer$outboundSchema` instead. */ - export const outboundSchema = Consumer$outboundSchema; - /** @deprecated use `Consumer$Outbound` instead. */ - export type Outbound = Consumer$Outbound; -} - -export function consumerToJSON(consumer: Consumer): string { - return JSON.stringify(Consumer$outboundSchema.parse(consumer)); -} - export function consumerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/consumerconnection.ts b/src/models/components/consumerconnection.ts index c8a4315be..a59e47b4b 100644 --- a/src/models/components/consumerconnection.ts +++ b/src/models/components/consumerconnection.ts @@ -7,15 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AuthType, - AuthType$inboundSchema, - AuthType$outboundSchema, -} from "./authtype.js"; +import { AuthType, AuthType$inboundSchema } from "./authtype.js"; import { ConnectionState, ConnectionState$inboundSchema, - ConnectionState$outboundSchema, } from "./connectionstate.js"; export type ConsumerConnection = { @@ -83,81 +78,6 @@ export const ConsumerConnection$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConsumerConnection$Outbound = { - id?: string | undefined; - name?: string | undefined; - icon?: string | undefined; - logo?: string | undefined; - website?: string | undefined; - tag_line?: string | undefined; - service_id?: string | undefined; - unified_api?: string | undefined; - consumer_id?: string | undefined; - auth_type?: string | undefined; - enabled?: boolean | undefined; - settings?: { [k: string]: any } | null | undefined; - metadata?: { [k: string]: any } | null | undefined; - created_at?: string | undefined; - updated_at?: string | null | undefined; - state?: string | undefined; -}; - -/** @internal */ -export const ConsumerConnection$outboundSchema: z.ZodType< - ConsumerConnection$Outbound, - z.ZodTypeDef, - ConsumerConnection -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - icon: z.string().optional(), - logo: z.string().optional(), - website: z.string().optional(), - tagLine: z.string().optional(), - serviceId: z.string().optional(), - unifiedApi: z.string().optional(), - consumerId: z.string().optional(), - authType: AuthType$outboundSchema.optional(), - enabled: z.boolean().optional(), - settings: z.nullable(z.record(z.any())).optional(), - metadata: z.nullable(z.record(z.any())).optional(), - createdAt: z.string().optional(), - updatedAt: z.nullable(z.string()).optional(), - state: ConnectionState$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - tagLine: "tag_line", - serviceId: "service_id", - unifiedApi: "unified_api", - consumerId: "consumer_id", - authType: "auth_type", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsumerConnection$ { - /** @deprecated use `ConsumerConnection$inboundSchema` instead. */ - export const inboundSchema = ConsumerConnection$inboundSchema; - /** @deprecated use `ConsumerConnection$outboundSchema` instead. */ - export const outboundSchema = ConsumerConnection$outboundSchema; - /** @deprecated use `ConsumerConnection$Outbound` instead. */ - export type Outbound = ConsumerConnection$Outbound; -} - -export function consumerConnectionToJSON( - consumerConnection: ConsumerConnection, -): string { - return JSON.stringify( - ConsumerConnection$outboundSchema.parse(consumerConnection), - ); -} - export function consumerConnectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/consumermetadata.ts b/src/models/components/consumermetadata.ts index 3d3ff2311..9ced976cf 100644 --- a/src/models/components/consumermetadata.ts +++ b/src/models/components/consumermetadata.ts @@ -46,7 +46,6 @@ export const ConsumerMetadata$inboundSchema: z.ZodType< "user_name": "userName", }); }); - /** @internal */ export type ConsumerMetadata$Outbound = { account_name?: string | undefined; @@ -72,19 +71,6 @@ export const ConsumerMetadata$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsumerMetadata$ { - /** @deprecated use `ConsumerMetadata$inboundSchema` instead. */ - export const inboundSchema = ConsumerMetadata$inboundSchema; - /** @deprecated use `ConsumerMetadata$outboundSchema` instead. */ - export const outboundSchema = ConsumerMetadata$outboundSchema; - /** @deprecated use `ConsumerMetadata$Outbound` instead. */ - export type Outbound = ConsumerMetadata$Outbound; -} - export function consumerMetadataToJSON( consumerMetadata: ConsumerMetadata, ): string { @@ -92,7 +78,6 @@ export function consumerMetadataToJSON( ConsumerMetadata$outboundSchema.parse(consumerMetadata), ); } - export function consumerMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/consumerrequestcountsindaterangeresponse.ts b/src/models/components/consumerrequestcountsindaterangeresponse.ts index f6f070c06..4b1f1a1d2 100644 --- a/src/models/components/consumerrequestcountsindaterangeresponse.ts +++ b/src/models/components/consumerrequestcountsindaterangeresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { RequestCountAllocation, RequestCountAllocation$inboundSchema, - RequestCountAllocation$Outbound, - RequestCountAllocation$outboundSchema, } from "./requestcountallocation.js"; export type ConsumerRequestCountsInDateRangeResponseData = { @@ -66,66 +64,6 @@ export const ConsumerRequestCountsInDateRangeResponseData$inboundSchema: }); }); -/** @internal */ -export type ConsumerRequestCountsInDateRangeResponseData$Outbound = { - application_id?: string | undefined; - consumer_id?: string | undefined; - start_datetime?: string | undefined; - end_datetime?: string | undefined; - aggregated_request_count?: number | undefined; - request_counts?: RequestCountAllocation$Outbound | undefined; -}; - -/** @internal */ -export const ConsumerRequestCountsInDateRangeResponseData$outboundSchema: - z.ZodType< - ConsumerRequestCountsInDateRangeResponseData$Outbound, - z.ZodTypeDef, - ConsumerRequestCountsInDateRangeResponseData - > = z.object({ - applicationId: z.string().optional(), - consumerId: z.string().optional(), - startDatetime: z.string().optional(), - endDatetime: z.string().optional(), - aggregatedRequestCount: z.number().optional(), - requestCounts: RequestCountAllocation$outboundSchema.optional(), - }).transform((v) => { - return remap$(v, { - applicationId: "application_id", - consumerId: "consumer_id", - startDatetime: "start_datetime", - endDatetime: "end_datetime", - aggregatedRequestCount: "aggregated_request_count", - requestCounts: "request_counts", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsumerRequestCountsInDateRangeResponseData$ { - /** @deprecated use `ConsumerRequestCountsInDateRangeResponseData$inboundSchema` instead. */ - export const inboundSchema = - ConsumerRequestCountsInDateRangeResponseData$inboundSchema; - /** @deprecated use `ConsumerRequestCountsInDateRangeResponseData$outboundSchema` instead. */ - export const outboundSchema = - ConsumerRequestCountsInDateRangeResponseData$outboundSchema; - /** @deprecated use `ConsumerRequestCountsInDateRangeResponseData$Outbound` instead. */ - export type Outbound = ConsumerRequestCountsInDateRangeResponseData$Outbound; -} - -export function consumerRequestCountsInDateRangeResponseDataToJSON( - consumerRequestCountsInDateRangeResponseData: - ConsumerRequestCountsInDateRangeResponseData, -): string { - return JSON.stringify( - ConsumerRequestCountsInDateRangeResponseData$outboundSchema.parse( - consumerRequestCountsInDateRangeResponseData, - ), - ); -} - export function consumerRequestCountsInDateRangeResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -161,59 +99,6 @@ export const ConsumerRequestCountsInDateRangeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConsumerRequestCountsInDateRangeResponse$Outbound = { - status_code: number; - status: string; - data: ConsumerRequestCountsInDateRangeResponseData$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const ConsumerRequestCountsInDateRangeResponse$outboundSchema: z.ZodType< - ConsumerRequestCountsInDateRangeResponse$Outbound, - z.ZodTypeDef, - ConsumerRequestCountsInDateRangeResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.lazy(() => - ConsumerRequestCountsInDateRangeResponseData$outboundSchema - ), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConsumerRequestCountsInDateRangeResponse$ { - /** @deprecated use `ConsumerRequestCountsInDateRangeResponse$inboundSchema` instead. */ - export const inboundSchema = - ConsumerRequestCountsInDateRangeResponse$inboundSchema; - /** @deprecated use `ConsumerRequestCountsInDateRangeResponse$outboundSchema` instead. */ - export const outboundSchema = - ConsumerRequestCountsInDateRangeResponse$outboundSchema; - /** @deprecated use `ConsumerRequestCountsInDateRangeResponse$Outbound` instead. */ - export type Outbound = ConsumerRequestCountsInDateRangeResponse$Outbound; -} - -export function consumerRequestCountsInDateRangeResponseToJSON( - consumerRequestCountsInDateRangeResponse: - ConsumerRequestCountsInDateRangeResponse, -): string { - return JSON.stringify( - ConsumerRequestCountsInDateRangeResponse$outboundSchema.parse( - consumerRequestCountsInDateRangeResponse, - ), - ); -} - export function consumerRequestCountsInDateRangeResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/components/contact.ts b/src/models/components/contact.ts index a1abeff16..84714982e 100644 --- a/src/models/components/contact.ts +++ b/src/models/components/contact.ts @@ -339,43 +339,19 @@ export type ContactInput = { /** @internal */ export const ContactType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ContactType); - /** @internal */ export const ContactType$outboundSchema: z.ZodNativeEnum = ContactType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactType$ { - /** @deprecated use `ContactType$inboundSchema` instead. */ - export const inboundSchema = ContactType$inboundSchema; - /** @deprecated use `ContactType$outboundSchema` instead. */ - export const outboundSchema = ContactType$outboundSchema; -} - /** @internal */ export const ContactGender$inboundSchema: z.ZodNativeEnum< typeof ContactGender > = z.nativeEnum(ContactGender); - /** @internal */ export const ContactGender$outboundSchema: z.ZodNativeEnum< typeof ContactGender > = ContactGender$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactGender$ { - /** @deprecated use `ContactGender$inboundSchema` instead. */ - export const inboundSchema = ContactGender$inboundSchema; - /** @deprecated use `ContactGender$outboundSchema` instead. */ - export const outboundSchema = ContactGender$outboundSchema; -} - /** @internal */ export const Contact$inboundSchema: z.ZodType = z.object({ @@ -457,143 +433,6 @@ export const Contact$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Contact$Outbound = { - id?: string | undefined; - name?: string | null | undefined; - owner_id?: string | null | undefined; - type?: string | null | undefined; - company_id?: string | null | undefined; - company_name?: string | null | undefined; - lead_id?: string | null | undefined; - first_name?: string | null | undefined; - middle_name?: string | null | undefined; - last_name?: string | null | undefined; - prefix?: string | null | undefined; - suffix?: string | null | undefined; - title?: string | null | undefined; - department?: string | null | undefined; - language?: string | null | undefined; - gender?: string | null | undefined; - birthday?: string | null | undefined; - image?: string | null | undefined; - photo_url?: string | null | undefined; - lead_source?: string | null | undefined; - fax?: string | null | undefined; - description?: string | null | undefined; - current_balance?: number | null | undefined; - status?: string | null | undefined; - active?: boolean | null | undefined; - websites?: Array | undefined; - addresses?: Array | undefined; - social_links?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - email_domain?: string | null | undefined; - custom_fields?: Array | null | undefined; - tags?: Array | null | undefined; - first_call_at?: string | null | undefined; - first_email_at?: string | null | undefined; - last_activity_at?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - opportunity_ids?: Array | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Contact$outboundSchema: z.ZodType< - Contact$Outbound, - z.ZodTypeDef, - Contact -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - type: z.nullable(ContactType$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - leadId: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - gender: z.nullable(ContactGender$outboundSchema).optional(), - birthday: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - photoUrl: z.nullable(z.string()).optional(), - leadSource: z.nullable(z.string()).optional(), - fax: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - currentBalance: z.nullable(z.number()).optional(), - status: z.nullable(z.string()).optional(), - active: z.nullable(z.boolean()).optional(), - websites: z.array(Website$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - socialLinks: z.array(SocialLink$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - emailDomain: z.nullable(z.string()).optional(), - customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(), - tags: z.nullable(z.array(z.string())).optional(), - firstCallAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - firstEmailAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - lastActivityAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - opportunityIds: z.array(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - ownerId: "owner_id", - companyId: "company_id", - companyName: "company_name", - leadId: "lead_id", - firstName: "first_name", - middleName: "middle_name", - lastName: "last_name", - photoUrl: "photo_url", - leadSource: "lead_source", - currentBalance: "current_balance", - socialLinks: "social_links", - phoneNumbers: "phone_numbers", - emailDomain: "email_domain", - customFields: "custom_fields", - firstCallAt: "first_call_at", - firstEmailAt: "first_email_at", - lastActivityAt: "last_activity_at", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - opportunityIds: "opportunity_ids", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Contact$ { - /** @deprecated use `Contact$inboundSchema` instead. */ - export const inboundSchema = Contact$inboundSchema; - /** @deprecated use `Contact$outboundSchema` instead. */ - export const outboundSchema = Contact$outboundSchema; - /** @deprecated use `Contact$Outbound` instead. */ - export type Outbound = Contact$Outbound; -} - -export function contactToJSON(contact: Contact): string { - return JSON.stringify(Contact$outboundSchema.parse(contact)); -} - export function contactFromJSON( jsonString: string, ): SafeParseResult { @@ -604,67 +443,6 @@ export function contactFromJSON( ); } -/** @internal */ -export const ContactInput$inboundSchema: z.ZodType< - ContactInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - type: z.nullable(ContactType$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - lead_id: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - gender: z.nullable(ContactGender$inboundSchema).optional(), - birthday: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - photo_url: z.nullable(z.string()).optional(), - lead_source: z.nullable(z.string()).optional(), - fax: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - current_balance: z.nullable(z.number()).optional(), - status: z.nullable(z.string()).optional(), - active: z.nullable(z.boolean()).optional(), - websites: z.array(Website$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - social_links: z.array(SocialLink$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - email_domain: z.nullable(z.string()).optional(), - custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(), - tags: z.nullable(z.array(z.string())).optional(), - opportunity_ids: z.array(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "owner_id": "ownerId", - "company_id": "companyId", - "company_name": "companyName", - "lead_id": "leadId", - "first_name": "firstName", - "middle_name": "middleName", - "last_name": "lastName", - "photo_url": "photoUrl", - "lead_source": "leadSource", - "current_balance": "currentBalance", - "social_links": "socialLinks", - "phone_numbers": "phoneNumbers", - "email_domain": "emailDomain", - "custom_fields": "customFields", - "opportunity_ids": "opportunityIds", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type ContactInput$Outbound = { name?: string | null | undefined; @@ -764,29 +542,6 @@ export const ContactInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactInput$ { - /** @deprecated use `ContactInput$inboundSchema` instead. */ - export const inboundSchema = ContactInput$inboundSchema; - /** @deprecated use `ContactInput$outboundSchema` instead. */ - export const outboundSchema = ContactInput$outboundSchema; - /** @deprecated use `ContactInput$Outbound` instead. */ - export type Outbound = ContactInput$Outbound; -} - export function contactInputToJSON(contactInput: ContactInput): string { return JSON.stringify(ContactInput$outboundSchema.parse(contactInput)); } - -export function contactInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ContactInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ContactInput' from JSON`, - ); -} diff --git a/src/models/components/contactsfilter.ts b/src/models/components/contactsfilter.ts index 53c92153d..8e8a35b96 100644 --- a/src/models/components/contactsfilter.ts +++ b/src/models/components/contactsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ContactsFilter = { /** @@ -39,29 +36,6 @@ export type ContactsFilter = { ownerId?: string | undefined; }; -/** @internal */ -export const ContactsFilter$inboundSchema: z.ZodType< - ContactsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - first_name: z.string().optional(), - last_name: z.string().optional(), - email: z.string().optional(), - phone_number: z.string().optional(), - company_id: z.string().optional(), - owner_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "phone_number": "phoneNumber", - "company_id": "companyId", - "owner_id": "ownerId", - }); -}); - /** @internal */ export type ContactsFilter$Outbound = { name?: string | undefined; @@ -96,29 +70,6 @@ export const ContactsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactsFilter$ { - /** @deprecated use `ContactsFilter$inboundSchema` instead. */ - export const inboundSchema = ContactsFilter$inboundSchema; - /** @deprecated use `ContactsFilter$outboundSchema` instead. */ - export const outboundSchema = ContactsFilter$outboundSchema; - /** @deprecated use `ContactsFilter$Outbound` instead. */ - export type Outbound = ContactsFilter$Outbound; -} - export function contactsFilterToJSON(contactsFilter: ContactsFilter): string { return JSON.stringify(ContactsFilter$outboundSchema.parse(contactsFilter)); } - -export function contactsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ContactsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ContactsFilter' from JSON`, - ); -} diff --git a/src/models/components/contactssort.ts b/src/models/components/contactssort.ts index 40214fb79..2cc437c88 100644 --- a/src/models/components/contactssort.ts +++ b/src/models/components/contactssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -40,36 +36,10 @@ export type ContactsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const ContactsSortBy$inboundSchema: z.ZodNativeEnum< - typeof ContactsSortBy -> = z.nativeEnum(ContactsSortBy); - /** @internal */ export const ContactsSortBy$outboundSchema: z.ZodNativeEnum< typeof ContactsSortBy -> = ContactsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactsSortBy$ { - /** @deprecated use `ContactsSortBy$inboundSchema` instead. */ - export const inboundSchema = ContactsSortBy$inboundSchema; - /** @deprecated use `ContactsSortBy$outboundSchema` instead. */ - export const outboundSchema = ContactsSortBy$outboundSchema; -} - -/** @internal */ -export const ContactsSort$inboundSchema: z.ZodType< - ContactsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: ContactsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(ContactsSortBy); /** @internal */ export type ContactsSort$Outbound = { @@ -87,29 +57,6 @@ export const ContactsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContactsSort$ { - /** @deprecated use `ContactsSort$inboundSchema` instead. */ - export const inboundSchema = ContactsSort$inboundSchema; - /** @deprecated use `ContactsSort$outboundSchema` instead. */ - export const outboundSchema = ContactsSort$outboundSchema; - /** @deprecated use `ContactsSort$Outbound` instead. */ - export type Outbound = ContactsSort$Outbound; -} - export function contactsSortToJSON(contactsSort: ContactsSort): string { return JSON.stringify(ContactsSort$outboundSchema.parse(contactsSort)); } - -export function contactsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ContactsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ContactsSort' from JSON`, - ); -} diff --git a/src/models/components/copyfolderrequest.ts b/src/models/components/copyfolderrequest.ts index 34278f394..1b8a7d0ee 100644 --- a/src/models/components/copyfolderrequest.ts +++ b/src/models/components/copyfolderrequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -29,22 +25,6 @@ export type CopyFolderRequest = { passThrough?: Array | undefined; }; -/** @internal */ -export const CopyFolderRequest$inboundSchema: z.ZodType< - CopyFolderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - parent_folder_id: z.string(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_folder_id": "parentFolderId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CopyFolderRequest$Outbound = { name?: string | undefined; @@ -68,19 +48,6 @@ export const CopyFolderRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CopyFolderRequest$ { - /** @deprecated use `CopyFolderRequest$inboundSchema` instead. */ - export const inboundSchema = CopyFolderRequest$inboundSchema; - /** @deprecated use `CopyFolderRequest$outboundSchema` instead. */ - export const outboundSchema = CopyFolderRequest$outboundSchema; - /** @deprecated use `CopyFolderRequest$Outbound` instead. */ - export type Outbound = CopyFolderRequest$Outbound; -} - export function copyFolderRequestToJSON( copyFolderRequest: CopyFolderRequest, ): string { @@ -88,13 +55,3 @@ export function copyFolderRequestToJSON( CopyFolderRequest$outboundSchema.parse(copyFolderRequest), ); } - -export function copyFolderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CopyFolderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CopyFolderRequest' from JSON`, - ); -} diff --git a/src/models/components/createaccountingdepartmentresponse.ts b/src/models/components/createaccountingdepartmentresponse.ts index 3256c2fa7..aca88d7c8 100644 --- a/src/models/components/createaccountingdepartmentresponse.ts +++ b/src/models/components/createaccountingdepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Department @@ -68,61 +63,6 @@ export const CreateAccountingDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateAccountingDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateAccountingDepartmentResponse$outboundSchema: z.ZodType< - CreateAccountingDepartmentResponse$Outbound, - z.ZodTypeDef, - CreateAccountingDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateAccountingDepartmentResponse$ { - /** @deprecated use `CreateAccountingDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = CreateAccountingDepartmentResponse$inboundSchema; - /** @deprecated use `CreateAccountingDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = - CreateAccountingDepartmentResponse$outboundSchema; - /** @deprecated use `CreateAccountingDepartmentResponse$Outbound` instead. */ - export type Outbound = CreateAccountingDepartmentResponse$Outbound; -} - -export function createAccountingDepartmentResponseToJSON( - createAccountingDepartmentResponse: CreateAccountingDepartmentResponse, -): string { - return JSON.stringify( - CreateAccountingDepartmentResponse$outboundSchema.parse( - createAccountingDepartmentResponse, - ), - ); -} - export function createAccountingDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createaccountinglocationresponse.ts b/src/models/components/createaccountinglocationresponse.ts index 8ea731cd2..a97c207b7 100644 --- a/src/models/components/createaccountinglocationresponse.ts +++ b/src/models/components/createaccountinglocationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Location @@ -68,60 +63,6 @@ export const CreateAccountingLocationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateAccountingLocationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateAccountingLocationResponse$outboundSchema: z.ZodType< - CreateAccountingLocationResponse$Outbound, - z.ZodTypeDef, - CreateAccountingLocationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateAccountingLocationResponse$ { - /** @deprecated use `CreateAccountingLocationResponse$inboundSchema` instead. */ - export const inboundSchema = CreateAccountingLocationResponse$inboundSchema; - /** @deprecated use `CreateAccountingLocationResponse$outboundSchema` instead. */ - export const outboundSchema = CreateAccountingLocationResponse$outboundSchema; - /** @deprecated use `CreateAccountingLocationResponse$Outbound` instead. */ - export type Outbound = CreateAccountingLocationResponse$Outbound; -} - -export function createAccountingLocationResponseToJSON( - createAccountingLocationResponse: CreateAccountingLocationResponse, -): string { - return JSON.stringify( - CreateAccountingLocationResponse$outboundSchema.parse( - createAccountingLocationResponse, - ), - ); -} - export function createAccountingLocationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createactivityresponse.ts b/src/models/components/createactivityresponse.ts index 208ca9682..cbed2e6a4 100644 --- a/src/models/components/createactivityresponse.ts +++ b/src/models/components/createactivityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Activity created @@ -68,58 +63,6 @@ export const CreateActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateActivityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateActivityResponse$outboundSchema: z.ZodType< - CreateActivityResponse$Outbound, - z.ZodTypeDef, - CreateActivityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateActivityResponse$ { - /** @deprecated use `CreateActivityResponse$inboundSchema` instead. */ - export const inboundSchema = CreateActivityResponse$inboundSchema; - /** @deprecated use `CreateActivityResponse$outboundSchema` instead. */ - export const outboundSchema = CreateActivityResponse$outboundSchema; - /** @deprecated use `CreateActivityResponse$Outbound` instead. */ - export type Outbound = CreateActivityResponse$Outbound; -} - -export function createActivityResponseToJSON( - createActivityResponse: CreateActivityResponse, -): string { - return JSON.stringify( - CreateActivityResponse$outboundSchema.parse(createActivityResponse), - ); -} - export function createActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createapplicantresponse.ts b/src/models/components/createapplicantresponse.ts index f60e6fbfa..7e9e0c380 100644 --- a/src/models/components/createapplicantresponse.ts +++ b/src/models/components/createapplicantresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applicants @@ -68,58 +63,6 @@ export const CreateApplicantResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateApplicantResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateApplicantResponse$outboundSchema: z.ZodType< - CreateApplicantResponse$Outbound, - z.ZodTypeDef, - CreateApplicantResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateApplicantResponse$ { - /** @deprecated use `CreateApplicantResponse$inboundSchema` instead. */ - export const inboundSchema = CreateApplicantResponse$inboundSchema; - /** @deprecated use `CreateApplicantResponse$outboundSchema` instead. */ - export const outboundSchema = CreateApplicantResponse$outboundSchema; - /** @deprecated use `CreateApplicantResponse$Outbound` instead. */ - export type Outbound = CreateApplicantResponse$Outbound; -} - -export function createApplicantResponseToJSON( - createApplicantResponse: CreateApplicantResponse, -): string { - return JSON.stringify( - CreateApplicantResponse$outboundSchema.parse(createApplicantResponse), - ); -} - export function createApplicantResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createapplicationresponse.ts b/src/models/components/createapplicationresponse.ts index 9e2ca1526..109b4c30e 100644 --- a/src/models/components/createapplicationresponse.ts +++ b/src/models/components/createapplicationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applications @@ -68,58 +63,6 @@ export const CreateApplicationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateApplicationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateApplicationResponse$outboundSchema: z.ZodType< - CreateApplicationResponse$Outbound, - z.ZodTypeDef, - CreateApplicationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateApplicationResponse$ { - /** @deprecated use `CreateApplicationResponse$inboundSchema` instead. */ - export const inboundSchema = CreateApplicationResponse$inboundSchema; - /** @deprecated use `CreateApplicationResponse$outboundSchema` instead. */ - export const outboundSchema = CreateApplicationResponse$outboundSchema; - /** @deprecated use `CreateApplicationResponse$Outbound` instead. */ - export type Outbound = CreateApplicationResponse$Outbound; -} - -export function createApplicationResponseToJSON( - createApplicationResponse: CreateApplicationResponse, -): string { - return JSON.stringify( - CreateApplicationResponse$outboundSchema.parse(createApplicationResponse), - ); -} - export function createApplicationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createattachmentresponse.ts b/src/models/components/createattachmentresponse.ts index 0211ab814..3b6ead3d2 100644 --- a/src/models/components/createattachmentresponse.ts +++ b/src/models/components/createattachmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Attachments @@ -68,58 +63,6 @@ export const CreateAttachmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateAttachmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateAttachmentResponse$outboundSchema: z.ZodType< - CreateAttachmentResponse$Outbound, - z.ZodTypeDef, - CreateAttachmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateAttachmentResponse$ { - /** @deprecated use `CreateAttachmentResponse$inboundSchema` instead. */ - export const inboundSchema = CreateAttachmentResponse$inboundSchema; - /** @deprecated use `CreateAttachmentResponse$outboundSchema` instead. */ - export const outboundSchema = CreateAttachmentResponse$outboundSchema; - /** @deprecated use `CreateAttachmentResponse$Outbound` instead. */ - export type Outbound = CreateAttachmentResponse$Outbound; -} - -export function createAttachmentResponseToJSON( - createAttachmentResponse: CreateAttachmentResponse, -): string { - return JSON.stringify( - CreateAttachmentResponse$outboundSchema.parse(createAttachmentResponse), - ); -} - export function createAttachmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbankaccountresponse.ts b/src/models/components/createbankaccountresponse.ts index fdea81115..dd7c08b77 100644 --- a/src/models/components/createbankaccountresponse.ts +++ b/src/models/components/createbankaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Account created @@ -62,55 +57,6 @@ export const CreateBankAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateBankAccountResponse$Outbound = { - status_code: number; - status: string; - service?: string | undefined; - resource?: string | undefined; - operation?: string | undefined; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const CreateBankAccountResponse$outboundSchema: z.ZodType< - CreateBankAccountResponse$Outbound, - z.ZodTypeDef, - CreateBankAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string().optional(), - resource: z.string().optional(), - operation: z.string().optional(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBankAccountResponse$ { - /** @deprecated use `CreateBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBankAccountResponse$inboundSchema; - /** @deprecated use `CreateBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBankAccountResponse$outboundSchema; - /** @deprecated use `CreateBankAccountResponse$Outbound` instead. */ - export type Outbound = CreateBankAccountResponse$Outbound; -} - -export function createBankAccountResponseToJSON( - createBankAccountResponse: CreateBankAccountResponse, -): string { - return JSON.stringify( - CreateBankAccountResponse$outboundSchema.parse(createBankAccountResponse), - ); -} - export function createBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbankfeedaccountresponse.ts b/src/models/components/createbankfeedaccountresponse.ts index a9ffa6a45..7a8c97cac 100644 --- a/src/models/components/createbankfeedaccountresponse.ts +++ b/src/models/components/createbankfeedaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Accounts @@ -68,60 +63,6 @@ export const CreateBankFeedAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateBankFeedAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateBankFeedAccountResponse$outboundSchema: z.ZodType< - CreateBankFeedAccountResponse$Outbound, - z.ZodTypeDef, - CreateBankFeedAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBankFeedAccountResponse$ { - /** @deprecated use `CreateBankFeedAccountResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBankFeedAccountResponse$inboundSchema; - /** @deprecated use `CreateBankFeedAccountResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBankFeedAccountResponse$outboundSchema; - /** @deprecated use `CreateBankFeedAccountResponse$Outbound` instead. */ - export type Outbound = CreateBankFeedAccountResponse$Outbound; -} - -export function createBankFeedAccountResponseToJSON( - createBankFeedAccountResponse: CreateBankFeedAccountResponse, -): string { - return JSON.stringify( - CreateBankFeedAccountResponse$outboundSchema.parse( - createBankFeedAccountResponse, - ), - ); -} - export function createBankFeedAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbankfeedstatementresponse.ts b/src/models/components/createbankfeedstatementresponse.ts index d0b4f87f4..2de233eeb 100644 --- a/src/models/components/createbankfeedstatementresponse.ts +++ b/src/models/components/createbankfeedstatementresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Statements @@ -68,60 +63,6 @@ export const CreateBankFeedStatementResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateBankFeedStatementResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateBankFeedStatementResponse$outboundSchema: z.ZodType< - CreateBankFeedStatementResponse$Outbound, - z.ZodTypeDef, - CreateBankFeedStatementResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBankFeedStatementResponse$ { - /** @deprecated use `CreateBankFeedStatementResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBankFeedStatementResponse$inboundSchema; - /** @deprecated use `CreateBankFeedStatementResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBankFeedStatementResponse$outboundSchema; - /** @deprecated use `CreateBankFeedStatementResponse$Outbound` instead. */ - export type Outbound = CreateBankFeedStatementResponse$Outbound; -} - -export function createBankFeedStatementResponseToJSON( - createBankFeedStatementResponse: CreateBankFeedStatementResponse, -): string { - return JSON.stringify( - CreateBankFeedStatementResponse$outboundSchema.parse( - createBankFeedStatementResponse, - ), - ); -} - export function createBankFeedStatementResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbillpaymentresponse.ts b/src/models/components/createbillpaymentresponse.ts index 3894ba7a3..93dc19e7a 100644 --- a/src/models/components/createbillpaymentresponse.ts +++ b/src/models/components/createbillpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill Payment created @@ -68,58 +63,6 @@ export const CreateBillPaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateBillPaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateBillPaymentResponse$outboundSchema: z.ZodType< - CreateBillPaymentResponse$Outbound, - z.ZodTypeDef, - CreateBillPaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBillPaymentResponse$ { - /** @deprecated use `CreateBillPaymentResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBillPaymentResponse$inboundSchema; - /** @deprecated use `CreateBillPaymentResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBillPaymentResponse$outboundSchema; - /** @deprecated use `CreateBillPaymentResponse$Outbound` instead. */ - export type Outbound = CreateBillPaymentResponse$Outbound; -} - -export function createBillPaymentResponseToJSON( - createBillPaymentResponse: CreateBillPaymentResponse, -): string { - return JSON.stringify( - CreateBillPaymentResponse$outboundSchema.parse(createBillPaymentResponse), - ); -} - export function createBillPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbillresponse.ts b/src/models/components/createbillresponse.ts index 858b77f86..4f8a7a4f1 100644 --- a/src/models/components/createbillresponse.ts +++ b/src/models/components/createbillresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill created @@ -68,58 +63,6 @@ export const CreateBillResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateBillResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateBillResponse$outboundSchema: z.ZodType< - CreateBillResponse$Outbound, - z.ZodTypeDef, - CreateBillResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBillResponse$ { - /** @deprecated use `CreateBillResponse$inboundSchema` instead. */ - export const inboundSchema = CreateBillResponse$inboundSchema; - /** @deprecated use `CreateBillResponse$outboundSchema` instead. */ - export const outboundSchema = CreateBillResponse$outboundSchema; - /** @deprecated use `CreateBillResponse$Outbound` instead. */ - export type Outbound = CreateBillResponse$Outbound; -} - -export function createBillResponseToJSON( - createBillResponse: CreateBillResponse, -): string { - return JSON.stringify( - CreateBillResponse$outboundSchema.parse(createBillResponse), - ); -} - export function createBillResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcallbackstate.ts b/src/models/components/createcallbackstate.ts index d4c63f411..d9cdfab29 100644 --- a/src/models/components/createcallbackstate.ts +++ b/src/models/components/createcallbackstate.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateCallbackState = { /** @@ -15,19 +12,6 @@ export type CreateCallbackState = { redirectUri?: string | undefined; }; -/** @internal */ -export const CreateCallbackState$inboundSchema: z.ZodType< - CreateCallbackState, - z.ZodTypeDef, - unknown -> = z.object({ - redirect_uri: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "redirect_uri": "redirectUri", - }); -}); - /** @internal */ export type CreateCallbackState$Outbound = { redirect_uri?: string | undefined; @@ -46,19 +30,6 @@ export const CreateCallbackState$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCallbackState$ { - /** @deprecated use `CreateCallbackState$inboundSchema` instead. */ - export const inboundSchema = CreateCallbackState$inboundSchema; - /** @deprecated use `CreateCallbackState$outboundSchema` instead. */ - export const outboundSchema = CreateCallbackState$outboundSchema; - /** @deprecated use `CreateCallbackState$Outbound` instead. */ - export type Outbound = CreateCallbackState$Outbound; -} - export function createCallbackStateToJSON( createCallbackState: CreateCallbackState, ): string { @@ -66,13 +37,3 @@ export function createCallbackStateToJSON( CreateCallbackState$outboundSchema.parse(createCallbackState), ); } - -export function createCallbackStateFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateCallbackState$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateCallbackState' from JSON`, - ); -} diff --git a/src/models/components/createcallbackstateresponse.ts b/src/models/components/createcallbackstateresponse.ts index a65f8d365..5a55bb4e5 100644 --- a/src/models/components/createcallbackstateresponse.ts +++ b/src/models/components/createcallbackstateresponse.ts @@ -43,43 +43,6 @@ export const CreateCallbackStateResponseData$inboundSchema: z.ZodType< state: z.string().optional(), }); -/** @internal */ -export type CreateCallbackStateResponseData$Outbound = { - state?: string | undefined; -}; - -/** @internal */ -export const CreateCallbackStateResponseData$outboundSchema: z.ZodType< - CreateCallbackStateResponseData$Outbound, - z.ZodTypeDef, - CreateCallbackStateResponseData -> = z.object({ - state: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCallbackStateResponseData$ { - /** @deprecated use `CreateCallbackStateResponseData$inboundSchema` instead. */ - export const inboundSchema = CreateCallbackStateResponseData$inboundSchema; - /** @deprecated use `CreateCallbackStateResponseData$outboundSchema` instead. */ - export const outboundSchema = CreateCallbackStateResponseData$outboundSchema; - /** @deprecated use `CreateCallbackStateResponseData$Outbound` instead. */ - export type Outbound = CreateCallbackStateResponseData$Outbound; -} - -export function createCallbackStateResponseDataToJSON( - createCallbackStateResponseData: CreateCallbackStateResponseData, -): string { - return JSON.stringify( - CreateCallbackStateResponseData$outboundSchema.parse( - createCallbackStateResponseData, - ), - ); -} - export function createCallbackStateResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -107,54 +70,6 @@ export const CreateCallbackStateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCallbackStateResponse$Outbound = { - status_code: number; - status: string; - data: CreateCallbackStateResponseData$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCallbackStateResponse$outboundSchema: z.ZodType< - CreateCallbackStateResponse$Outbound, - z.ZodTypeDef, - CreateCallbackStateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.lazy(() => CreateCallbackStateResponseData$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCallbackStateResponse$ { - /** @deprecated use `CreateCallbackStateResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCallbackStateResponse$inboundSchema; - /** @deprecated use `CreateCallbackStateResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCallbackStateResponse$outboundSchema; - /** @deprecated use `CreateCallbackStateResponse$Outbound` instead. */ - export type Outbound = CreateCallbackStateResponse$Outbound; -} - -export function createCallbackStateResponseToJSON( - createCallbackStateResponse: CreateCallbackStateResponse, -): string { - return JSON.stringify( - CreateCallbackStateResponse$outboundSchema.parse( - createCallbackStateResponse, - ), - ); -} - export function createCallbackStateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcommentresponse.ts b/src/models/components/createcommentresponse.ts index 3e1c39cc3..60f1039c4 100644 --- a/src/models/components/createcommentresponse.ts +++ b/src/models/components/createcommentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Create a Comment @@ -68,58 +63,6 @@ export const CreateCommentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCommentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCommentResponse$outboundSchema: z.ZodType< - CreateCommentResponse$Outbound, - z.ZodTypeDef, - CreateCommentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCommentResponse$ { - /** @deprecated use `CreateCommentResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCommentResponse$inboundSchema; - /** @deprecated use `CreateCommentResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCommentResponse$outboundSchema; - /** @deprecated use `CreateCommentResponse$Outbound` instead. */ - export type Outbound = CreateCommentResponse$Outbound; -} - -export function createCommentResponseToJSON( - createCommentResponse: CreateCommentResponse, -): string { - return JSON.stringify( - CreateCommentResponse$outboundSchema.parse(createCommentResponse), - ); -} - export function createCommentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcompanyresponse.ts b/src/models/components/createcompanyresponse.ts index 9a985c5fb..300ed37f3 100644 --- a/src/models/components/createcompanyresponse.ts +++ b/src/models/components/createcompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Company created @@ -68,58 +63,6 @@ export const CreateCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCompanyResponse$outboundSchema: z.ZodType< - CreateCompanyResponse$Outbound, - z.ZodTypeDef, - CreateCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCompanyResponse$ { - /** @deprecated use `CreateCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCompanyResponse$inboundSchema; - /** @deprecated use `CreateCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCompanyResponse$outboundSchema; - /** @deprecated use `CreateCompanyResponse$Outbound` instead. */ - export type Outbound = CreateCompanyResponse$Outbound; -} - -export function createCompanyResponseToJSON( - createCompanyResponse: CreateCompanyResponse, -): string { - return JSON.stringify( - CreateCompanyResponse$outboundSchema.parse(createCompanyResponse), - ); -} - export function createCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createconnectionresponse.ts b/src/models/components/createconnectionresponse.ts index 8adcaf3c8..2289d971e 100644 --- a/src/models/components/createconnectionresponse.ts +++ b/src/models/components/createconnectionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connection, - Connection$inboundSchema, - Connection$Outbound, - Connection$outboundSchema, -} from "./connection.js"; +import { Connection, Connection$inboundSchema } from "./connection.js"; /** * Connection created @@ -50,52 +45,6 @@ export const CreateConnectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateConnectionResponse$Outbound = { - status_code: number; - status: string; - data: Connection$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateConnectionResponse$outboundSchema: z.ZodType< - CreateConnectionResponse$Outbound, - z.ZodTypeDef, - CreateConnectionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Connection$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateConnectionResponse$ { - /** @deprecated use `CreateConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = CreateConnectionResponse$inboundSchema; - /** @deprecated use `CreateConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = CreateConnectionResponse$outboundSchema; - /** @deprecated use `CreateConnectionResponse$Outbound` instead. */ - export type Outbound = CreateConnectionResponse$Outbound; -} - -export function createConnectionResponseToJSON( - createConnectionResponse: CreateConnectionResponse, -): string { - return JSON.stringify( - CreateConnectionResponse$outboundSchema.parse(createConnectionResponse), - ); -} - export function createConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createconsumerrequest.ts b/src/models/components/createconsumerrequest.ts index 0ea6440b2..15a656d56 100644 --- a/src/models/components/createconsumerrequest.ts +++ b/src/models/components/createconsumerrequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerMetadata, - ConsumerMetadata$inboundSchema, ConsumerMetadata$Outbound, ConsumerMetadata$outboundSchema, } from "./consumermetadata.js"; @@ -25,20 +21,6 @@ export type CreateConsumerRequest = { metadata?: ConsumerMetadata | undefined; }; -/** @internal */ -export const CreateConsumerRequest$inboundSchema: z.ZodType< - CreateConsumerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumer_id: z.string(), - metadata: ConsumerMetadata$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "consumer_id": "consumerId", - }); -}); - /** @internal */ export type CreateConsumerRequest$Outbound = { consumer_id: string; @@ -59,19 +41,6 @@ export const CreateConsumerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateConsumerRequest$ { - /** @deprecated use `CreateConsumerRequest$inboundSchema` instead. */ - export const inboundSchema = CreateConsumerRequest$inboundSchema; - /** @deprecated use `CreateConsumerRequest$outboundSchema` instead. */ - export const outboundSchema = CreateConsumerRequest$outboundSchema; - /** @deprecated use `CreateConsumerRequest$Outbound` instead. */ - export type Outbound = CreateConsumerRequest$Outbound; -} - export function createConsumerRequestToJSON( createConsumerRequest: CreateConsumerRequest, ): string { @@ -79,13 +48,3 @@ export function createConsumerRequestToJSON( CreateConsumerRequest$outboundSchema.parse(createConsumerRequest), ); } - -export function createConsumerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateConsumerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateConsumerRequest' from JSON`, - ); -} diff --git a/src/models/components/createconsumerresponse.ts b/src/models/components/createconsumerresponse.ts index e44ac8f07..81af91ab6 100644 --- a/src/models/components/createconsumerresponse.ts +++ b/src/models/components/createconsumerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Consumer, - Consumer$inboundSchema, - Consumer$Outbound, - Consumer$outboundSchema, -} from "./consumer.js"; +import { Consumer, Consumer$inboundSchema } from "./consumer.js"; /** * Consumer created @@ -50,52 +45,6 @@ export const CreateConsumerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateConsumerResponse$Outbound = { - status_code: number; - status: string; - data: Consumer$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateConsumerResponse$outboundSchema: z.ZodType< - CreateConsumerResponse$Outbound, - z.ZodTypeDef, - CreateConsumerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Consumer$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateConsumerResponse$ { - /** @deprecated use `CreateConsumerResponse$inboundSchema` instead. */ - export const inboundSchema = CreateConsumerResponse$inboundSchema; - /** @deprecated use `CreateConsumerResponse$outboundSchema` instead. */ - export const outboundSchema = CreateConsumerResponse$outboundSchema; - /** @deprecated use `CreateConsumerResponse$Outbound` instead. */ - export type Outbound = CreateConsumerResponse$Outbound; -} - -export function createConsumerResponseToJSON( - createConsumerResponse: CreateConsumerResponse, -): string { - return JSON.stringify( - CreateConsumerResponse$outboundSchema.parse(createConsumerResponse), - ); -} - export function createConsumerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcontactresponse.ts b/src/models/components/createcontactresponse.ts index 941f32eba..6f3c2a907 100644 --- a/src/models/components/createcontactresponse.ts +++ b/src/models/components/createcontactresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Contact created @@ -68,58 +63,6 @@ export const CreateContactResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateContactResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateContactResponse$outboundSchema: z.ZodType< - CreateContactResponse$Outbound, - z.ZodTypeDef, - CreateContactResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateContactResponse$ { - /** @deprecated use `CreateContactResponse$inboundSchema` instead. */ - export const inboundSchema = CreateContactResponse$inboundSchema; - /** @deprecated use `CreateContactResponse$outboundSchema` instead. */ - export const outboundSchema = CreateContactResponse$outboundSchema; - /** @deprecated use `CreateContactResponse$Outbound` instead. */ - export type Outbound = CreateContactResponse$Outbound; -} - -export function createContactResponseToJSON( - createContactResponse: CreateContactResponse, -): string { - return JSON.stringify( - CreateContactResponse$outboundSchema.parse(createContactResponse), - ); -} - export function createContactResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcreditnoteresponse.ts b/src/models/components/createcreditnoteresponse.ts index f269df3b2..7fedb5c1a 100644 --- a/src/models/components/createcreditnoteresponse.ts +++ b/src/models/components/createcreditnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Credit Note created @@ -68,58 +63,6 @@ export const CreateCreditNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCreditNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCreditNoteResponse$outboundSchema: z.ZodType< - CreateCreditNoteResponse$Outbound, - z.ZodTypeDef, - CreateCreditNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCreditNoteResponse$ { - /** @deprecated use `CreateCreditNoteResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCreditNoteResponse$inboundSchema; - /** @deprecated use `CreateCreditNoteResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCreditNoteResponse$outboundSchema; - /** @deprecated use `CreateCreditNoteResponse$Outbound` instead. */ - export type Outbound = CreateCreditNoteResponse$Outbound; -} - -export function createCreditNoteResponseToJSON( - createCreditNoteResponse: CreateCreditNoteResponse, -): string { - return JSON.stringify( - CreateCreditNoteResponse$outboundSchema.parse(createCreditNoteResponse), - ); -} - export function createCreditNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcustomerresponse.ts b/src/models/components/createcustomerresponse.ts index d6b5c4bd3..812273a8c 100644 --- a/src/models/components/createcustomerresponse.ts +++ b/src/models/components/createcustomerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Customers @@ -68,58 +63,6 @@ export const CreateCustomerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCustomerResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCustomerResponse$outboundSchema: z.ZodType< - CreateCustomerResponse$Outbound, - z.ZodTypeDef, - CreateCustomerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomerResponse$ { - /** @deprecated use `CreateCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomerResponse$inboundSchema; - /** @deprecated use `CreateCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomerResponse$outboundSchema; - /** @deprecated use `CreateCustomerResponse$Outbound` instead. */ - export type Outbound = CreateCustomerResponse$Outbound; -} - -export function createCustomerResponseToJSON( - createCustomerResponse: CreateCustomerResponse, -): string { - return JSON.stringify( - CreateCustomerResponse$outboundSchema.parse(createCustomerResponse), - ); -} - export function createCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcustomobjectresponse.ts b/src/models/components/createcustomobjectresponse.ts index 434db7db4..8013ad351 100644 --- a/src/models/components/createcustomobjectresponse.ts +++ b/src/models/components/createcustomobjectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Custom object created @@ -68,58 +63,6 @@ export const CreateCustomObjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCustomObjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCustomObjectResponse$outboundSchema: z.ZodType< - CreateCustomObjectResponse$Outbound, - z.ZodTypeDef, - CreateCustomObjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomObjectResponse$ { - /** @deprecated use `CreateCustomObjectResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomObjectResponse$inboundSchema; - /** @deprecated use `CreateCustomObjectResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomObjectResponse$outboundSchema; - /** @deprecated use `CreateCustomObjectResponse$Outbound` instead. */ - export type Outbound = CreateCustomObjectResponse$Outbound; -} - -export function createCustomObjectResponseToJSON( - createCustomObjectResponse: CreateCustomObjectResponse, -): string { - return JSON.stringify( - CreateCustomObjectResponse$outboundSchema.parse(createCustomObjectResponse), - ); -} - export function createCustomObjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createcustomobjectschemaresponse.ts b/src/models/components/createcustomobjectschemaresponse.ts index 4513865df..99f8ad359 100644 --- a/src/models/components/createcustomobjectschemaresponse.ts +++ b/src/models/components/createcustomobjectschemaresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomObjectSchema, CustomObjectSchema$inboundSchema, - CustomObjectSchema$Outbound, - CustomObjectSchema$outboundSchema, } from "./customobjectschema.js"; /** @@ -65,60 +63,6 @@ export const CreateCustomObjectSchemaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateCustomObjectSchemaResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CustomObjectSchema$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateCustomObjectSchemaResponse$outboundSchema: z.ZodType< - CreateCustomObjectSchemaResponse$Outbound, - z.ZodTypeDef, - CreateCustomObjectSchemaResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CustomObjectSchema$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateCustomObjectSchemaResponse$ { - /** @deprecated use `CreateCustomObjectSchemaResponse$inboundSchema` instead. */ - export const inboundSchema = CreateCustomObjectSchemaResponse$inboundSchema; - /** @deprecated use `CreateCustomObjectSchemaResponse$outboundSchema` instead. */ - export const outboundSchema = CreateCustomObjectSchemaResponse$outboundSchema; - /** @deprecated use `CreateCustomObjectSchemaResponse$Outbound` instead. */ - export type Outbound = CreateCustomObjectSchemaResponse$Outbound; -} - -export function createCustomObjectSchemaResponseToJSON( - createCustomObjectSchemaResponse: CreateCustomObjectSchemaResponse, -): string { - return JSON.stringify( - CreateCustomObjectSchemaResponse$outboundSchema.parse( - createCustomObjectSchemaResponse, - ), - ); -} - export function createCustomObjectSchemaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createdepartmentresponse.ts b/src/models/components/createdepartmentresponse.ts index 7faad99b9..b01e605d2 100644 --- a/src/models/components/createdepartmentresponse.ts +++ b/src/models/components/createdepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Departments @@ -68,58 +63,6 @@ export const CreateDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateDepartmentResponse$outboundSchema: z.ZodType< - CreateDepartmentResponse$Outbound, - z.ZodTypeDef, - CreateDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDepartmentResponse$ { - /** @deprecated use `CreateDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = CreateDepartmentResponse$inboundSchema; - /** @deprecated use `CreateDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = CreateDepartmentResponse$outboundSchema; - /** @deprecated use `CreateDepartmentResponse$Outbound` instead. */ - export type Outbound = CreateDepartmentResponse$Outbound; -} - -export function createDepartmentResponseToJSON( - createDepartmentResponse: CreateDepartmentResponse, -): string { - return JSON.stringify( - CreateDepartmentResponse$outboundSchema.parse(createDepartmentResponse), - ); -} - export function createDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createdrivegroupresponse.ts b/src/models/components/createdrivegroupresponse.ts index 41166c829..7713e24fb 100644 --- a/src/models/components/createdrivegroupresponse.ts +++ b/src/models/components/createdrivegroupresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * DriveGroups @@ -68,58 +63,6 @@ export const CreateDriveGroupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDriveGroupResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateDriveGroupResponse$outboundSchema: z.ZodType< - CreateDriveGroupResponse$Outbound, - z.ZodTypeDef, - CreateDriveGroupResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDriveGroupResponse$ { - /** @deprecated use `CreateDriveGroupResponse$inboundSchema` instead. */ - export const inboundSchema = CreateDriveGroupResponse$inboundSchema; - /** @deprecated use `CreateDriveGroupResponse$outboundSchema` instead. */ - export const outboundSchema = CreateDriveGroupResponse$outboundSchema; - /** @deprecated use `CreateDriveGroupResponse$Outbound` instead. */ - export type Outbound = CreateDriveGroupResponse$Outbound; -} - -export function createDriveGroupResponseToJSON( - createDriveGroupResponse: CreateDriveGroupResponse, -): string { - return JSON.stringify( - CreateDriveGroupResponse$outboundSchema.parse(createDriveGroupResponse), - ); -} - export function createDriveGroupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createdriveresponse.ts b/src/models/components/createdriveresponse.ts index d62669fdf..8cfd3639a 100644 --- a/src/models/components/createdriveresponse.ts +++ b/src/models/components/createdriveresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Drives @@ -68,58 +63,6 @@ export const CreateDriveResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateDriveResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateDriveResponse$outboundSchema: z.ZodType< - CreateDriveResponse$Outbound, - z.ZodTypeDef, - CreateDriveResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateDriveResponse$ { - /** @deprecated use `CreateDriveResponse$inboundSchema` instead. */ - export const inboundSchema = CreateDriveResponse$inboundSchema; - /** @deprecated use `CreateDriveResponse$outboundSchema` instead. */ - export const outboundSchema = CreateDriveResponse$outboundSchema; - /** @deprecated use `CreateDriveResponse$Outbound` instead. */ - export type Outbound = CreateDriveResponse$Outbound; -} - -export function createDriveResponseToJSON( - createDriveResponse: CreateDriveResponse, -): string { - return JSON.stringify( - CreateDriveResponse$outboundSchema.parse(createDriveResponse), - ); -} - export function createDriveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createemployeeresponse.ts b/src/models/components/createemployeeresponse.ts index 35f1a2fc1..e82d3eb4f 100644 --- a/src/models/components/createemployeeresponse.ts +++ b/src/models/components/createemployeeresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Employees @@ -68,58 +63,6 @@ export const CreateEmployeeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateEmployeeResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateEmployeeResponse$outboundSchema: z.ZodType< - CreateEmployeeResponse$Outbound, - z.ZodTypeDef, - CreateEmployeeResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateEmployeeResponse$ { - /** @deprecated use `CreateEmployeeResponse$inboundSchema` instead. */ - export const inboundSchema = CreateEmployeeResponse$inboundSchema; - /** @deprecated use `CreateEmployeeResponse$outboundSchema` instead. */ - export const outboundSchema = CreateEmployeeResponse$outboundSchema; - /** @deprecated use `CreateEmployeeResponse$Outbound` instead. */ - export type Outbound = CreateEmployeeResponse$Outbound; -} - -export function createEmployeeResponseToJSON( - createEmployeeResponse: CreateEmployeeResponse, -): string { - return JSON.stringify( - CreateEmployeeResponse$outboundSchema.parse(createEmployeeResponse), - ); -} - export function createEmployeeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createexpenseresponse.ts b/src/models/components/createexpenseresponse.ts index b8c77f473..95ff1132a 100644 --- a/src/models/components/createexpenseresponse.ts +++ b/src/models/components/createexpenseresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Expenses @@ -68,58 +63,6 @@ export const CreateExpenseResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateExpenseResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateExpenseResponse$outboundSchema: z.ZodType< - CreateExpenseResponse$Outbound, - z.ZodTypeDef, - CreateExpenseResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateExpenseResponse$ { - /** @deprecated use `CreateExpenseResponse$inboundSchema` instead. */ - export const inboundSchema = CreateExpenseResponse$inboundSchema; - /** @deprecated use `CreateExpenseResponse$outboundSchema` instead. */ - export const outboundSchema = CreateExpenseResponse$outboundSchema; - /** @deprecated use `CreateExpenseResponse$Outbound` instead. */ - export type Outbound = CreateExpenseResponse$Outbound; -} - -export function createExpenseResponseToJSON( - createExpenseResponse: CreateExpenseResponse, -): string { - return JSON.stringify( - CreateExpenseResponse$outboundSchema.parse(createExpenseResponse), - ); -} - export function createExpenseResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createfolderrequest.ts b/src/models/components/createfolderrequest.ts index 64a48efb5..1b5735791 100644 --- a/src/models/components/createfolderrequest.ts +++ b/src/models/components/createfolderrequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -37,25 +33,6 @@ export type CreateFolderRequest = { passThrough?: Array | undefined; }; -/** @internal */ -export const CreateFolderRequest$inboundSchema: z.ZodType< - CreateFolderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - description: z.string().optional(), - parent_folder_id: z.string(), - drive_id: z.string().optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_folder_id": "parentFolderId", - "drive_id": "driveId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CreateFolderRequest$Outbound = { name: string; @@ -84,19 +61,6 @@ export const CreateFolderRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateFolderRequest$ { - /** @deprecated use `CreateFolderRequest$inboundSchema` instead. */ - export const inboundSchema = CreateFolderRequest$inboundSchema; - /** @deprecated use `CreateFolderRequest$outboundSchema` instead. */ - export const outboundSchema = CreateFolderRequest$outboundSchema; - /** @deprecated use `CreateFolderRequest$Outbound` instead. */ - export type Outbound = CreateFolderRequest$Outbound; -} - export function createFolderRequestToJSON( createFolderRequest: CreateFolderRequest, ): string { @@ -104,13 +68,3 @@ export function createFolderRequestToJSON( CreateFolderRequest$outboundSchema.parse(createFolderRequest), ); } - -export function createFolderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateFolderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateFolderRequest' from JSON`, - ); -} diff --git a/src/models/components/createfolderresponse.ts b/src/models/components/createfolderresponse.ts index 50594de36..37df14f6f 100644 --- a/src/models/components/createfolderresponse.ts +++ b/src/models/components/createfolderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Folders @@ -68,58 +63,6 @@ export const CreateFolderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateFolderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateFolderResponse$outboundSchema: z.ZodType< - CreateFolderResponse$Outbound, - z.ZodTypeDef, - CreateFolderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateFolderResponse$ { - /** @deprecated use `CreateFolderResponse$inboundSchema` instead. */ - export const inboundSchema = CreateFolderResponse$inboundSchema; - /** @deprecated use `CreateFolderResponse$outboundSchema` instead. */ - export const outboundSchema = CreateFolderResponse$outboundSchema; - /** @deprecated use `CreateFolderResponse$Outbound` instead. */ - export type Outbound = CreateFolderResponse$Outbound; -} - -export function createFolderResponseToJSON( - createFolderResponse: CreateFolderResponse, -): string { - return JSON.stringify( - CreateFolderResponse$outboundSchema.parse(createFolderResponse), - ); -} - export function createFolderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createhriscompanyresponse.ts b/src/models/components/createhriscompanyresponse.ts index 06a93b092..75ea42360 100644 --- a/src/models/components/createhriscompanyresponse.ts +++ b/src/models/components/createhriscompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Companies @@ -68,58 +63,6 @@ export const CreateHrisCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateHrisCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateHrisCompanyResponse$outboundSchema: z.ZodType< - CreateHrisCompanyResponse$Outbound, - z.ZodTypeDef, - CreateHrisCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateHrisCompanyResponse$ { - /** @deprecated use `CreateHrisCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = CreateHrisCompanyResponse$inboundSchema; - /** @deprecated use `CreateHrisCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = CreateHrisCompanyResponse$outboundSchema; - /** @deprecated use `CreateHrisCompanyResponse$Outbound` instead. */ - export type Outbound = CreateHrisCompanyResponse$Outbound; -} - -export function createHrisCompanyResponseToJSON( - createHrisCompanyResponse: CreateHrisCompanyResponse, -): string { - return JSON.stringify( - CreateHrisCompanyResponse$outboundSchema.parse(createHrisCompanyResponse), - ); -} - export function createHrisCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createinvoiceitemresponse.ts b/src/models/components/createinvoiceitemresponse.ts index cd591bc64..e11c110df 100644 --- a/src/models/components/createinvoiceitemresponse.ts +++ b/src/models/components/createinvoiceitemresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * InvoiceItems @@ -68,58 +63,6 @@ export const CreateInvoiceItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateInvoiceItemResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateInvoiceItemResponse$outboundSchema: z.ZodType< - CreateInvoiceItemResponse$Outbound, - z.ZodTypeDef, - CreateInvoiceItemResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceItemResponse$ { - /** @deprecated use `CreateInvoiceItemResponse$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceItemResponse$inboundSchema; - /** @deprecated use `CreateInvoiceItemResponse$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceItemResponse$outboundSchema; - /** @deprecated use `CreateInvoiceItemResponse$Outbound` instead. */ - export type Outbound = CreateInvoiceItemResponse$Outbound; -} - -export function createInvoiceItemResponseToJSON( - createInvoiceItemResponse: CreateInvoiceItemResponse, -): string { - return JSON.stringify( - CreateInvoiceItemResponse$outboundSchema.parse(createInvoiceItemResponse), - ); -} - export function createInvoiceItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createinvoiceresponse.ts b/src/models/components/createinvoiceresponse.ts index 61be618f3..e92285dd5 100644 --- a/src/models/components/createinvoiceresponse.ts +++ b/src/models/components/createinvoiceresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { InvoiceResponse, InvoiceResponse$inboundSchema, - InvoiceResponse$Outbound, - InvoiceResponse$outboundSchema, } from "./invoiceresponse.js"; /** @@ -65,58 +63,6 @@ export const CreateInvoiceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateInvoiceResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: InvoiceResponse$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateInvoiceResponse$outboundSchema: z.ZodType< - CreateInvoiceResponse$Outbound, - z.ZodTypeDef, - CreateInvoiceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: InvoiceResponse$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateInvoiceResponse$ { - /** @deprecated use `CreateInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = CreateInvoiceResponse$inboundSchema; - /** @deprecated use `CreateInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = CreateInvoiceResponse$outboundSchema; - /** @deprecated use `CreateInvoiceResponse$Outbound` instead. */ - export type Outbound = CreateInvoiceResponse$Outbound; -} - -export function createInvoiceResponseToJSON( - createInvoiceResponse: CreateInvoiceResponse, -): string { - return JSON.stringify( - CreateInvoiceResponse$outboundSchema.parse(createInvoiceResponse), - ); -} - export function createInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createjournalentryresponse.ts b/src/models/components/createjournalentryresponse.ts index b2a259a14..29acd0d28 100644 --- a/src/models/components/createjournalentryresponse.ts +++ b/src/models/components/createjournalentryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * JournalEntries @@ -68,58 +63,6 @@ export const CreateJournalEntryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateJournalEntryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateJournalEntryResponse$outboundSchema: z.ZodType< - CreateJournalEntryResponse$Outbound, - z.ZodTypeDef, - CreateJournalEntryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateJournalEntryResponse$ { - /** @deprecated use `CreateJournalEntryResponse$inboundSchema` instead. */ - export const inboundSchema = CreateJournalEntryResponse$inboundSchema; - /** @deprecated use `CreateJournalEntryResponse$outboundSchema` instead. */ - export const outboundSchema = CreateJournalEntryResponse$outboundSchema; - /** @deprecated use `CreateJournalEntryResponse$Outbound` instead. */ - export type Outbound = CreateJournalEntryResponse$Outbound; -} - -export function createJournalEntryResponseToJSON( - createJournalEntryResponse: CreateJournalEntryResponse, -): string { - return JSON.stringify( - CreateJournalEntryResponse$outboundSchema.parse(createJournalEntryResponse), - ); -} - export function createJournalEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createleadresponse.ts b/src/models/components/createleadresponse.ts index 4fb771a72..2e0f030d1 100644 --- a/src/models/components/createleadresponse.ts +++ b/src/models/components/createleadresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Lead created @@ -68,58 +63,6 @@ export const CreateLeadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateLeadResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateLeadResponse$outboundSchema: z.ZodType< - CreateLeadResponse$Outbound, - z.ZodTypeDef, - CreateLeadResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateLeadResponse$ { - /** @deprecated use `CreateLeadResponse$inboundSchema` instead. */ - export const inboundSchema = CreateLeadResponse$inboundSchema; - /** @deprecated use `CreateLeadResponse$outboundSchema` instead. */ - export const outboundSchema = CreateLeadResponse$outboundSchema; - /** @deprecated use `CreateLeadResponse$Outbound` instead. */ - export type Outbound = CreateLeadResponse$Outbound; -} - -export function createLeadResponseToJSON( - createLeadResponse: CreateLeadResponse, -): string { - return JSON.stringify( - CreateLeadResponse$outboundSchema.parse(createLeadResponse), - ); -} - export function createLeadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createledgeraccountresponse.ts b/src/models/components/createledgeraccountresponse.ts index eca426233..eebb8c957 100644 --- a/src/models/components/createledgeraccountresponse.ts +++ b/src/models/components/createledgeraccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * LedgerAccount created @@ -68,60 +63,6 @@ export const CreateLedgerAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateLedgerAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateLedgerAccountResponse$outboundSchema: z.ZodType< - CreateLedgerAccountResponse$Outbound, - z.ZodTypeDef, - CreateLedgerAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateLedgerAccountResponse$ { - /** @deprecated use `CreateLedgerAccountResponse$inboundSchema` instead. */ - export const inboundSchema = CreateLedgerAccountResponse$inboundSchema; - /** @deprecated use `CreateLedgerAccountResponse$outboundSchema` instead. */ - export const outboundSchema = CreateLedgerAccountResponse$outboundSchema; - /** @deprecated use `CreateLedgerAccountResponse$Outbound` instead. */ - export type Outbound = CreateLedgerAccountResponse$Outbound; -} - -export function createLedgerAccountResponseToJSON( - createLedgerAccountResponse: CreateLedgerAccountResponse, -): string { - return JSON.stringify( - CreateLedgerAccountResponse$outboundSchema.parse( - createLedgerAccountResponse, - ), - ); -} - export function createLedgerAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createmessageresponse.ts b/src/models/components/createmessageresponse.ts index 52e1fa242..9d90ea73d 100644 --- a/src/models/components/createmessageresponse.ts +++ b/src/models/components/createmessageresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Messages @@ -68,58 +63,6 @@ export const CreateMessageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateMessageResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateMessageResponse$outboundSchema: z.ZodType< - CreateMessageResponse$Outbound, - z.ZodTypeDef, - CreateMessageResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMessageResponse$ { - /** @deprecated use `CreateMessageResponse$inboundSchema` instead. */ - export const inboundSchema = CreateMessageResponse$inboundSchema; - /** @deprecated use `CreateMessageResponse$outboundSchema` instead. */ - export const outboundSchema = CreateMessageResponse$outboundSchema; - /** @deprecated use `CreateMessageResponse$Outbound` instead. */ - export type Outbound = CreateMessageResponse$Outbound; -} - -export function createMessageResponseToJSON( - createMessageResponse: CreateMessageResponse, -): string { - return JSON.stringify( - CreateMessageResponse$outboundSchema.parse(createMessageResponse), - ); -} - export function createMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createnoteresponse.ts b/src/models/components/createnoteresponse.ts index e1ff7e4b6..c984c52a6 100644 --- a/src/models/components/createnoteresponse.ts +++ b/src/models/components/createnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Note created @@ -68,58 +63,6 @@ export const CreateNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateNoteResponse$outboundSchema: z.ZodType< - CreateNoteResponse$Outbound, - z.ZodTypeDef, - CreateNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateNoteResponse$ { - /** @deprecated use `CreateNoteResponse$inboundSchema` instead. */ - export const inboundSchema = CreateNoteResponse$inboundSchema; - /** @deprecated use `CreateNoteResponse$outboundSchema` instead. */ - export const outboundSchema = CreateNoteResponse$outboundSchema; - /** @deprecated use `CreateNoteResponse$Outbound` instead. */ - export type Outbound = CreateNoteResponse$Outbound; -} - -export function createNoteResponseToJSON( - createNoteResponse: CreateNoteResponse, -): string { - return JSON.stringify( - CreateNoteResponse$outboundSchema.parse(createNoteResponse), - ); -} - export function createNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createopportunityresponse.ts b/src/models/components/createopportunityresponse.ts index 5a7117857..e850939ca 100644 --- a/src/models/components/createopportunityresponse.ts +++ b/src/models/components/createopportunityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Opportunity created @@ -68,58 +63,6 @@ export const CreateOpportunityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateOpportunityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateOpportunityResponse$outboundSchema: z.ZodType< - CreateOpportunityResponse$Outbound, - z.ZodTypeDef, - CreateOpportunityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpportunityResponse$ { - /** @deprecated use `CreateOpportunityResponse$inboundSchema` instead. */ - export const inboundSchema = CreateOpportunityResponse$inboundSchema; - /** @deprecated use `CreateOpportunityResponse$outboundSchema` instead. */ - export const outboundSchema = CreateOpportunityResponse$outboundSchema; - /** @deprecated use `CreateOpportunityResponse$Outbound` instead. */ - export type Outbound = CreateOpportunityResponse$Outbound; -} - -export function createOpportunityResponseToJSON( - createOpportunityResponse: CreateOpportunityResponse, -): string { - return JSON.stringify( - CreateOpportunityResponse$outboundSchema.parse(createOpportunityResponse), - ); -} - export function createOpportunityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createpaymentresponse.ts b/src/models/components/createpaymentresponse.ts index b626025b7..ddea335ff 100644 --- a/src/models/components/createpaymentresponse.ts +++ b/src/models/components/createpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Payment created @@ -68,58 +63,6 @@ export const CreatePaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreatePaymentResponse$outboundSchema: z.ZodType< - CreatePaymentResponse$Outbound, - z.ZodTypeDef, - CreatePaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePaymentResponse$ { - /** @deprecated use `CreatePaymentResponse$inboundSchema` instead. */ - export const inboundSchema = CreatePaymentResponse$inboundSchema; - /** @deprecated use `CreatePaymentResponse$outboundSchema` instead. */ - export const outboundSchema = CreatePaymentResponse$outboundSchema; - /** @deprecated use `CreatePaymentResponse$Outbound` instead. */ - export type Outbound = CreatePaymentResponse$Outbound; -} - -export function createPaymentResponseToJSON( - createPaymentResponse: CreatePaymentResponse, -): string { - return JSON.stringify( - CreatePaymentResponse$outboundSchema.parse(createPaymentResponse), - ); -} - export function createPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createpipelineresponse.ts b/src/models/components/createpipelineresponse.ts index 1d67ccb58..eff2ec5cb 100644 --- a/src/models/components/createpipelineresponse.ts +++ b/src/models/components/createpipelineresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Pipeline created @@ -68,58 +63,6 @@ export const CreatePipelineResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePipelineResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreatePipelineResponse$outboundSchema: z.ZodType< - CreatePipelineResponse$Outbound, - z.ZodTypeDef, - CreatePipelineResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePipelineResponse$ { - /** @deprecated use `CreatePipelineResponse$inboundSchema` instead. */ - export const inboundSchema = CreatePipelineResponse$inboundSchema; - /** @deprecated use `CreatePipelineResponse$outboundSchema` instead. */ - export const outboundSchema = CreatePipelineResponse$outboundSchema; - /** @deprecated use `CreatePipelineResponse$Outbound` instead. */ - export type Outbound = CreatePipelineResponse$Outbound; -} - -export function createPipelineResponseToJSON( - createPipelineResponse: CreatePipelineResponse, -): string { - return JSON.stringify( - CreatePipelineResponse$outboundSchema.parse(createPipelineResponse), - ); -} - export function createPipelineResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createprojectresponse.ts b/src/models/components/createprojectresponse.ts index 657f9cb1d..d13f9d0be 100644 --- a/src/models/components/createprojectresponse.ts +++ b/src/models/components/createprojectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Projects @@ -62,55 +57,6 @@ export const CreateProjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateProjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const CreateProjectResponse$outboundSchema: z.ZodType< - CreateProjectResponse$Outbound, - z.ZodTypeDef, - CreateProjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateProjectResponse$ { - /** @deprecated use `CreateProjectResponse$inboundSchema` instead. */ - export const inboundSchema = CreateProjectResponse$inboundSchema; - /** @deprecated use `CreateProjectResponse$outboundSchema` instead. */ - export const outboundSchema = CreateProjectResponse$outboundSchema; - /** @deprecated use `CreateProjectResponse$Outbound` instead. */ - export type Outbound = CreateProjectResponse$Outbound; -} - -export function createProjectResponseToJSON( - createProjectResponse: CreateProjectResponse, -): string { - return JSON.stringify( - CreateProjectResponse$outboundSchema.parse(createProjectResponse), - ); -} - export function createProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createpurchaseorderresponse.ts b/src/models/components/createpurchaseorderresponse.ts index 020e6704c..931570d23 100644 --- a/src/models/components/createpurchaseorderresponse.ts +++ b/src/models/components/createpurchaseorderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * PurchaseOrders @@ -68,60 +63,6 @@ export const CreatePurchaseOrderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreatePurchaseOrderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreatePurchaseOrderResponse$outboundSchema: z.ZodType< - CreatePurchaseOrderResponse$Outbound, - z.ZodTypeDef, - CreatePurchaseOrderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePurchaseOrderResponse$ { - /** @deprecated use `CreatePurchaseOrderResponse$inboundSchema` instead. */ - export const inboundSchema = CreatePurchaseOrderResponse$inboundSchema; - /** @deprecated use `CreatePurchaseOrderResponse$outboundSchema` instead. */ - export const outboundSchema = CreatePurchaseOrderResponse$outboundSchema; - /** @deprecated use `CreatePurchaseOrderResponse$Outbound` instead. */ - export type Outbound = CreatePurchaseOrderResponse$Outbound; -} - -export function createPurchaseOrderResponseToJSON( - createPurchaseOrderResponse: CreatePurchaseOrderResponse, -): string { - return JSON.stringify( - CreatePurchaseOrderResponse$outboundSchema.parse( - createPurchaseOrderResponse, - ), - ); -} - export function createPurchaseOrderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createquoteresponse.ts b/src/models/components/createquoteresponse.ts index 6d66b4f01..075cd699f 100644 --- a/src/models/components/createquoteresponse.ts +++ b/src/models/components/createquoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Quotes @@ -62,55 +57,6 @@ export const CreateQuoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateQuoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const CreateQuoteResponse$outboundSchema: z.ZodType< - CreateQuoteResponse$Outbound, - z.ZodTypeDef, - CreateQuoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateQuoteResponse$ { - /** @deprecated use `CreateQuoteResponse$inboundSchema` instead. */ - export const inboundSchema = CreateQuoteResponse$inboundSchema; - /** @deprecated use `CreateQuoteResponse$outboundSchema` instead. */ - export const outboundSchema = CreateQuoteResponse$outboundSchema; - /** @deprecated use `CreateQuoteResponse$Outbound` instead. */ - export type Outbound = CreateQuoteResponse$Outbound; -} - -export function createQuoteResponseToJSON( - createQuoteResponse: CreateQuoteResponse, -): string { - return JSON.stringify( - CreateQuoteResponse$outboundSchema.parse(createQuoteResponse), - ); -} - export function createQuoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsessionresponse.ts b/src/models/components/createsessionresponse.ts index 453da30b3..6ce904788 100644 --- a/src/models/components/createsessionresponse.ts +++ b/src/models/components/createsessionresponse.ts @@ -47,48 +47,6 @@ export const CreateSessionResponseData$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSessionResponseData$Outbound = { - session_uri: string; - session_token: string; -}; - -/** @internal */ -export const CreateSessionResponseData$outboundSchema: z.ZodType< - CreateSessionResponseData$Outbound, - z.ZodTypeDef, - CreateSessionResponseData -> = z.object({ - sessionUri: z.string(), - sessionToken: z.string(), -}).transform((v) => { - return remap$(v, { - sessionUri: "session_uri", - sessionToken: "session_token", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSessionResponseData$ { - /** @deprecated use `CreateSessionResponseData$inboundSchema` instead. */ - export const inboundSchema = CreateSessionResponseData$inboundSchema; - /** @deprecated use `CreateSessionResponseData$outboundSchema` instead. */ - export const outboundSchema = CreateSessionResponseData$outboundSchema; - /** @deprecated use `CreateSessionResponseData$Outbound` instead. */ - export type Outbound = CreateSessionResponseData$Outbound; -} - -export function createSessionResponseDataToJSON( - createSessionResponseData: CreateSessionResponseData, -): string { - return JSON.stringify( - CreateSessionResponseData$outboundSchema.parse(createSessionResponseData), - ); -} - export function createSessionResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -116,52 +74,6 @@ export const CreateSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSessionResponse$Outbound = { - status_code: number; - status: string; - data: CreateSessionResponseData$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateSessionResponse$outboundSchema: z.ZodType< - CreateSessionResponse$Outbound, - z.ZodTypeDef, - CreateSessionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.lazy(() => CreateSessionResponseData$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSessionResponse$ { - /** @deprecated use `CreateSessionResponse$inboundSchema` instead. */ - export const inboundSchema = CreateSessionResponse$inboundSchema; - /** @deprecated use `CreateSessionResponse$outboundSchema` instead. */ - export const outboundSchema = CreateSessionResponse$outboundSchema; - /** @deprecated use `CreateSessionResponse$Outbound` instead. */ - export type Outbound = CreateSessionResponse$Outbound; -} - -export function createSessionResponseToJSON( - createSessionResponse: CreateSessionResponse, -): string { - return JSON.stringify( - CreateSessionResponse$outboundSchema.parse(createSessionResponse), - ); -} - export function createSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsharedlinkresponse.ts b/src/models/components/createsharedlinkresponse.ts index f841ab399..f0249d757 100644 --- a/src/models/components/createsharedlinkresponse.ts +++ b/src/models/components/createsharedlinkresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Shared Links @@ -68,58 +63,6 @@ export const CreateSharedLinkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSharedLinkResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateSharedLinkResponse$outboundSchema: z.ZodType< - CreateSharedLinkResponse$Outbound, - z.ZodTypeDef, - CreateSharedLinkResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSharedLinkResponse$ { - /** @deprecated use `CreateSharedLinkResponse$inboundSchema` instead. */ - export const inboundSchema = CreateSharedLinkResponse$inboundSchema; - /** @deprecated use `CreateSharedLinkResponse$outboundSchema` instead. */ - export const outboundSchema = CreateSharedLinkResponse$outboundSchema; - /** @deprecated use `CreateSharedLinkResponse$Outbound` instead. */ - export type Outbound = CreateSharedLinkResponse$Outbound; -} - -export function createSharedLinkResponseToJSON( - createSharedLinkResponse: CreateSharedLinkResponse, -): string { - return JSON.stringify( - CreateSharedLinkResponse$outboundSchema.parse(createSharedLinkResponse), - ); -} - export function createSharedLinkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsubsidiaryresponse.ts b/src/models/components/createsubsidiaryresponse.ts index 334e7045a..723e220c1 100644 --- a/src/models/components/createsubsidiaryresponse.ts +++ b/src/models/components/createsubsidiaryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Subsidiaries @@ -68,58 +63,6 @@ export const CreateSubsidiaryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSubsidiaryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateSubsidiaryResponse$outboundSchema: z.ZodType< - CreateSubsidiaryResponse$Outbound, - z.ZodTypeDef, - CreateSubsidiaryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSubsidiaryResponse$ { - /** @deprecated use `CreateSubsidiaryResponse$inboundSchema` instead. */ - export const inboundSchema = CreateSubsidiaryResponse$inboundSchema; - /** @deprecated use `CreateSubsidiaryResponse$outboundSchema` instead. */ - export const outboundSchema = CreateSubsidiaryResponse$outboundSchema; - /** @deprecated use `CreateSubsidiaryResponse$Outbound` instead. */ - export type Outbound = CreateSubsidiaryResponse$Outbound; -} - -export function createSubsidiaryResponseToJSON( - createSubsidiaryResponse: CreateSubsidiaryResponse, -): string { - return JSON.stringify( - CreateSubsidiaryResponse$outboundSchema.parse(createSubsidiaryResponse), - ); -} - export function createSubsidiaryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsupplierresponse.ts b/src/models/components/createsupplierresponse.ts index fe4f01103..4cfaa04a8 100644 --- a/src/models/components/createsupplierresponse.ts +++ b/src/models/components/createsupplierresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Supplier created @@ -68,58 +63,6 @@ export const CreateSupplierResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateSupplierResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateSupplierResponse$outboundSchema: z.ZodType< - CreateSupplierResponse$Outbound, - z.ZodTypeDef, - CreateSupplierResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupplierResponse$ { - /** @deprecated use `CreateSupplierResponse$inboundSchema` instead. */ - export const inboundSchema = CreateSupplierResponse$inboundSchema; - /** @deprecated use `CreateSupplierResponse$outboundSchema` instead. */ - export const outboundSchema = CreateSupplierResponse$outboundSchema; - /** @deprecated use `CreateSupplierResponse$Outbound` instead. */ - export type Outbound = CreateSupplierResponse$Outbound; -} - -export function createSupplierResponseToJSON( - createSupplierResponse: CreateSupplierResponse, -): string { - return JSON.stringify( - CreateSupplierResponse$outboundSchema.parse(createSupplierResponse), - ); -} - export function createSupplierResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createtaxrateresponse.ts b/src/models/components/createtaxrateresponse.ts index 3e1fc0b55..fb642fef6 100644 --- a/src/models/components/createtaxrateresponse.ts +++ b/src/models/components/createtaxrateresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TaxRate created @@ -68,58 +63,6 @@ export const CreateTaxRateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateTaxRateResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateTaxRateResponse$outboundSchema: z.ZodType< - CreateTaxRateResponse$Outbound, - z.ZodTypeDef, - CreateTaxRateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTaxRateResponse$ { - /** @deprecated use `CreateTaxRateResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTaxRateResponse$inboundSchema; - /** @deprecated use `CreateTaxRateResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTaxRateResponse$outboundSchema; - /** @deprecated use `CreateTaxRateResponse$Outbound` instead. */ - export type Outbound = CreateTaxRateResponse$Outbound; -} - -export function createTaxRateResponseToJSON( - createTaxRateResponse: CreateTaxRateResponse, -): string { - return JSON.stringify( - CreateTaxRateResponse$outboundSchema.parse(createTaxRateResponse), - ); -} - export function createTaxRateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createticketresponse.ts b/src/models/components/createticketresponse.ts index fc1701175..250e588dc 100644 --- a/src/models/components/createticketresponse.ts +++ b/src/models/components/createticketresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Create a Ticket @@ -68,58 +63,6 @@ export const CreateTicketResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateTicketResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateTicketResponse$outboundSchema: z.ZodType< - CreateTicketResponse$Outbound, - z.ZodTypeDef, - CreateTicketResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTicketResponse$ { - /** @deprecated use `CreateTicketResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTicketResponse$inboundSchema; - /** @deprecated use `CreateTicketResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTicketResponse$outboundSchema; - /** @deprecated use `CreateTicketResponse$Outbound` instead. */ - export type Outbound = CreateTicketResponse$Outbound; -} - -export function createTicketResponseToJSON( - createTicketResponse: CreateTicketResponse, -): string { - return JSON.stringify( - CreateTicketResponse$outboundSchema.parse(createTicketResponse), - ); -} - export function createTicketResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createtimeoffrequestresponse.ts b/src/models/components/createtimeoffrequestresponse.ts index 38462a1c7..9ccdd577f 100644 --- a/src/models/components/createtimeoffrequestresponse.ts +++ b/src/models/components/createtimeoffrequestresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TimeOffRequests @@ -68,60 +63,6 @@ export const CreateTimeOffRequestResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateTimeOffRequestResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateTimeOffRequestResponse$outboundSchema: z.ZodType< - CreateTimeOffRequestResponse$Outbound, - z.ZodTypeDef, - CreateTimeOffRequestResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTimeOffRequestResponse$ { - /** @deprecated use `CreateTimeOffRequestResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTimeOffRequestResponse$inboundSchema; - /** @deprecated use `CreateTimeOffRequestResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTimeOffRequestResponse$outboundSchema; - /** @deprecated use `CreateTimeOffRequestResponse$Outbound` instead. */ - export type Outbound = CreateTimeOffRequestResponse$Outbound; -} - -export function createTimeOffRequestResponseToJSON( - createTimeOffRequestResponse: CreateTimeOffRequestResponse, -): string { - return JSON.stringify( - CreateTimeOffRequestResponse$outboundSchema.parse( - createTimeOffRequestResponse, - ), - ); -} - export function createTimeOffRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createtrackingcategoryresponse.ts b/src/models/components/createtrackingcategoryresponse.ts index bbcd12305..518594b2c 100644 --- a/src/models/components/createtrackingcategoryresponse.ts +++ b/src/models/components/createtrackingcategoryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Tracking category created @@ -68,60 +63,6 @@ export const CreateTrackingCategoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateTrackingCategoryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateTrackingCategoryResponse$outboundSchema: z.ZodType< - CreateTrackingCategoryResponse$Outbound, - z.ZodTypeDef, - CreateTrackingCategoryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTrackingCategoryResponse$ { - /** @deprecated use `CreateTrackingCategoryResponse$inboundSchema` instead. */ - export const inboundSchema = CreateTrackingCategoryResponse$inboundSchema; - /** @deprecated use `CreateTrackingCategoryResponse$outboundSchema` instead. */ - export const outboundSchema = CreateTrackingCategoryResponse$outboundSchema; - /** @deprecated use `CreateTrackingCategoryResponse$Outbound` instead. */ - export type Outbound = CreateTrackingCategoryResponse$Outbound; -} - -export function createTrackingCategoryResponseToJSON( - createTrackingCategoryResponse: CreateTrackingCategoryResponse, -): string { - return JSON.stringify( - CreateTrackingCategoryResponse$outboundSchema.parse( - createTrackingCategoryResponse, - ), - ); -} - export function createTrackingCategoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createuploadsessionrequest.ts b/src/models/components/createuploadsessionrequest.ts index ba3494e5a..d927563fe 100644 --- a/src/models/components/createuploadsessionrequest.ts +++ b/src/models/components/createuploadsessionrequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -37,25 +33,6 @@ export type CreateUploadSessionRequest = { passThrough?: Array | undefined; }; -/** @internal */ -export const CreateUploadSessionRequest$inboundSchema: z.ZodType< - CreateUploadSessionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - parent_folder_id: z.string(), - drive_id: z.string().optional(), - size: z.nullable(z.number().int()), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_folder_id": "parentFolderId", - "drive_id": "driveId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CreateUploadSessionRequest$Outbound = { name: string; @@ -84,19 +61,6 @@ export const CreateUploadSessionRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateUploadSessionRequest$ { - /** @deprecated use `CreateUploadSessionRequest$inboundSchema` instead. */ - export const inboundSchema = CreateUploadSessionRequest$inboundSchema; - /** @deprecated use `CreateUploadSessionRequest$outboundSchema` instead. */ - export const outboundSchema = CreateUploadSessionRequest$outboundSchema; - /** @deprecated use `CreateUploadSessionRequest$Outbound` instead. */ - export type Outbound = CreateUploadSessionRequest$Outbound; -} - export function createUploadSessionRequestToJSON( createUploadSessionRequest: CreateUploadSessionRequest, ): string { @@ -104,13 +68,3 @@ export function createUploadSessionRequestToJSON( CreateUploadSessionRequest$outboundSchema.parse(createUploadSessionRequest), ); } - -export function createUploadSessionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateUploadSessionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateUploadSessionRequest' from JSON`, - ); -} diff --git a/src/models/components/createuploadsessionresponse.ts b/src/models/components/createuploadsessionresponse.ts index 061069cf1..785f0df93 100644 --- a/src/models/components/createuploadsessionresponse.ts +++ b/src/models/components/createuploadsessionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * UploadSessions @@ -68,60 +63,6 @@ export const CreateUploadSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateUploadSessionResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateUploadSessionResponse$outboundSchema: z.ZodType< - CreateUploadSessionResponse$Outbound, - z.ZodTypeDef, - CreateUploadSessionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateUploadSessionResponse$ { - /** @deprecated use `CreateUploadSessionResponse$inboundSchema` instead. */ - export const inboundSchema = CreateUploadSessionResponse$inboundSchema; - /** @deprecated use `CreateUploadSessionResponse$outboundSchema` instead. */ - export const outboundSchema = CreateUploadSessionResponse$outboundSchema; - /** @deprecated use `CreateUploadSessionResponse$Outbound` instead. */ - export type Outbound = CreateUploadSessionResponse$Outbound; -} - -export function createUploadSessionResponseToJSON( - createUploadSessionResponse: CreateUploadSessionResponse, -): string { - return JSON.stringify( - CreateUploadSessionResponse$outboundSchema.parse( - createUploadSessionResponse, - ), - ); -} - export function createUploadSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createuserresponse.ts b/src/models/components/createuserresponse.ts index 94709043c..94a12328e 100644 --- a/src/models/components/createuserresponse.ts +++ b/src/models/components/createuserresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * User created @@ -68,58 +63,6 @@ export const CreateUserResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateUserResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateUserResponse$outboundSchema: z.ZodType< - CreateUserResponse$Outbound, - z.ZodTypeDef, - CreateUserResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateUserResponse$ { - /** @deprecated use `CreateUserResponse$inboundSchema` instead. */ - export const inboundSchema = CreateUserResponse$inboundSchema; - /** @deprecated use `CreateUserResponse$outboundSchema` instead. */ - export const outboundSchema = CreateUserResponse$outboundSchema; - /** @deprecated use `CreateUserResponse$Outbound` instead. */ - export type Outbound = CreateUserResponse$Outbound; -} - -export function createUserResponseToJSON( - createUserResponse: CreateUserResponse, -): string { - return JSON.stringify( - CreateUserResponse$outboundSchema.parse(createUserResponse), - ); -} - export function createUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createwebhookrequest.ts b/src/models/components/createwebhookrequest.ts index 13482832f..d580ca4f0 100644 --- a/src/models/components/createwebhookrequest.ts +++ b/src/models/components/createwebhookrequest.ts @@ -4,22 +4,10 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Status, - Status$inboundSchema, - Status$outboundSchema, -} from "./status.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { Status, Status$outboundSchema } from "./status.js"; +import { UnifiedApiId, UnifiedApiId$outboundSchema } from "./unifiedapiid.js"; import { WebhookEventType, - WebhookEventType$inboundSchema, WebhookEventType$outboundSchema, } from "./webhookeventtype.js"; @@ -46,24 +34,6 @@ export type CreateWebhookRequest = { events: Array; }; -/** @internal */ -export const CreateWebhookRequest$inboundSchema: z.ZodType< - CreateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - unified_api: UnifiedApiId$inboundSchema, - status: Status$inboundSchema, - delivery_url: z.string(), - events: z.array(WebhookEventType$inboundSchema), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - "delivery_url": "deliveryUrl", - }); -}); - /** @internal */ export type CreateWebhookRequest$Outbound = { description?: string | null | undefined; @@ -91,19 +61,6 @@ export const CreateWebhookRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWebhookRequest$ { - /** @deprecated use `CreateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = CreateWebhookRequest$inboundSchema; - /** @deprecated use `CreateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = CreateWebhookRequest$outboundSchema; - /** @deprecated use `CreateWebhookRequest$Outbound` instead. */ - export type Outbound = CreateWebhookRequest$Outbound; -} - export function createWebhookRequestToJSON( createWebhookRequest: CreateWebhookRequest, ): string { @@ -111,13 +68,3 @@ export function createWebhookRequestToJSON( CreateWebhookRequest$outboundSchema.parse(createWebhookRequest), ); } - -export function createWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateWebhookRequest' from JSON`, - ); -} diff --git a/src/models/components/createwebhookresponse.ts b/src/models/components/createwebhookresponse.ts index f6188e79d..2890971a3 100644 --- a/src/models/components/createwebhookresponse.ts +++ b/src/models/components/createwebhookresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Webhook, - Webhook$inboundSchema, - Webhook$Outbound, - Webhook$outboundSchema, -} from "./webhook.js"; +import { Webhook, Webhook$inboundSchema } from "./webhook.js"; /** * Webhooks @@ -50,52 +45,6 @@ export const CreateWebhookResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreateWebhookResponse$Outbound = { - status_code: number; - status: string; - data: Webhook$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const CreateWebhookResponse$outboundSchema: z.ZodType< - CreateWebhookResponse$Outbound, - z.ZodTypeDef, - CreateWebhookResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Webhook$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWebhookResponse$ { - /** @deprecated use `CreateWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = CreateWebhookResponse$inboundSchema; - /** @deprecated use `CreateWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = CreateWebhookResponse$outboundSchema; - /** @deprecated use `CreateWebhookResponse$Outbound` instead. */ - export type Outbound = CreateWebhookResponse$Outbound; -} - -export function createWebhookResponseToJSON( - createWebhookResponse: CreateWebhookResponse, -): string { - return JSON.stringify( - CreateWebhookResponse$outboundSchema.parse(createWebhookResponse), - ); -} - export function createWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/creditnote.ts b/src/models/components/creditnote.ts index 3816dbe34..2880666ed 100644 --- a/src/models/components/creditnote.ts +++ b/src/models/components/creditnote.ts @@ -17,10 +17,7 @@ import { import { Allocation, Allocation$inboundSchema, - Allocation$Outbound, - Allocation$outboundSchema, AllocationInput, - AllocationInput$inboundSchema, AllocationInput$Outbound, AllocationInput$outboundSchema, } from "./allocation.js"; @@ -38,22 +35,16 @@ import { import { InvoiceLineItem, InvoiceLineItem$inboundSchema, - InvoiceLineItem$Outbound, - InvoiceLineItem$outboundSchema, InvoiceLineItemInput, - InvoiceLineItemInput$inboundSchema, InvoiceLineItemInput$Outbound, InvoiceLineItemInput$outboundSchema, } from "./invoicelineitem.js"; import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; @@ -63,12 +54,6 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$inboundSchema, @@ -307,7 +292,7 @@ export type CreditNoteInput = { * Type of payment */ type?: CreditNoteType | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; lineItems?: Array | undefined; allocations?: Array | undefined; /** @@ -339,44 +324,20 @@ export type CreditNoteInput = { export const CreditNoteStatus$inboundSchema: z.ZodNativeEnum< typeof CreditNoteStatus > = z.nativeEnum(CreditNoteStatus); - /** @internal */ export const CreditNoteStatus$outboundSchema: z.ZodNativeEnum< typeof CreditNoteStatus > = CreditNoteStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNoteStatus$ { - /** @deprecated use `CreditNoteStatus$inboundSchema` instead. */ - export const inboundSchema = CreditNoteStatus$inboundSchema; - /** @deprecated use `CreditNoteStatus$outboundSchema` instead. */ - export const outboundSchema = CreditNoteStatus$outboundSchema; -} - /** @internal */ export const CreditNoteType$inboundSchema: z.ZodNativeEnum< typeof CreditNoteType > = z.nativeEnum(CreditNoteType); - /** @internal */ export const CreditNoteType$outboundSchema: z.ZodNativeEnum< typeof CreditNoteType > = CreditNoteType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNoteType$ { - /** @deprecated use `CreditNoteType$inboundSchema` instead. */ - export const inboundSchema = CreditNoteType$inboundSchema; - /** @deprecated use `CreditNoteType$outboundSchema` instead. */ - export const outboundSchema = CreditNoteType$outboundSchema; -} - /** @internal */ export const CreditNote$inboundSchema: z.ZodType< CreditNote, @@ -455,136 +416,6 @@ export const CreditNote$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CreditNote$Outbound = { - id: string; - number?: string | null | undefined; - customer?: LinkedCustomer$Outbound | null | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - tax_inclusive?: boolean | null | undefined; - sub_total?: number | null | undefined; - total_amount: number; - total_tax?: number | null | undefined; - tax_code?: string | null | undefined; - balance?: number | null | undefined; - remaining_credit?: number | null | undefined; - status?: string | undefined; - reference?: string | null | undefined; - date_issued?: string | undefined; - date_paid?: string | null | undefined; - type?: string | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - line_items?: Array | undefined; - allocations?: Array | undefined; - note?: string | null | undefined; - terms?: string | null | undefined; - billing_address?: Address$Outbound | undefined; - shipping_address?: Address$Outbound | undefined; - tracking_categories?: - | Array - | null - | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const CreditNote$outboundSchema: z.ZodType< - CreditNote$Outbound, - z.ZodTypeDef, - CreditNote -> = z.object({ - id: z.string(), - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalAmount: z.number(), - totalTax: z.nullable(z.number()).optional(), - taxCode: z.nullable(z.string()).optional(), - balance: z.nullable(z.number()).optional(), - remainingCredit: z.nullable(z.number()).optional(), - status: CreditNoteStatus$outboundSchema.optional(), - reference: z.nullable(z.string()).optional(), - dateIssued: z.date().transform(v => v.toISOString()).optional(), - datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(), - type: CreditNoteType$outboundSchema.optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - lineItems: z.array(InvoiceLineItem$outboundSchema).optional(), - allocations: z.array(Allocation$outboundSchema).optional(), - note: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - billingAddress: Address$outboundSchema.optional(), - shippingAddress: Address$outboundSchema.optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - companyId: "company_id", - departmentId: "department_id", - currencyRate: "currency_rate", - taxInclusive: "tax_inclusive", - subTotal: "sub_total", - totalAmount: "total_amount", - totalTax: "total_tax", - taxCode: "tax_code", - remainingCredit: "remaining_credit", - dateIssued: "date_issued", - datePaid: "date_paid", - lineItems: "line_items", - billingAddress: "billing_address", - shippingAddress: "shipping_address", - trackingCategories: "tracking_categories", - customMappings: "custom_mappings", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNote$ { - /** @deprecated use `CreditNote$inboundSchema` instead. */ - export const inboundSchema = CreditNote$inboundSchema; - /** @deprecated use `CreditNote$outboundSchema` instead. */ - export const outboundSchema = CreditNote$outboundSchema; - /** @deprecated use `CreditNote$Outbound` instead. */ - export type Outbound = CreditNote$Outbound; -} - -export function creditNoteToJSON(creditNote: CreditNote): string { - return JSON.stringify(CreditNote$outboundSchema.parse(creditNote)); -} - export function creditNoteFromJSON( jsonString: string, ): SafeParseResult { @@ -595,69 +426,6 @@ export function creditNoteFromJSON( ); } -/** @internal */ -export const CreditNoteInput$inboundSchema: z.ZodType< - CreditNoteInput, - z.ZodTypeDef, - unknown -> = z.object({ - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_amount: z.number(), - total_tax: z.nullable(z.number()).optional(), - tax_code: z.nullable(z.string()).optional(), - balance: z.nullable(z.number()).optional(), - remaining_credit: z.nullable(z.number()).optional(), - status: CreditNoteStatus$inboundSchema.optional(), - reference: z.nullable(z.string()).optional(), - date_issued: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - date_paid: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - type: CreditNoteType$inboundSchema.optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(), - allocations: z.array(AllocationInput$inboundSchema).optional(), - note: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - billing_address: Address$inboundSchema.optional(), - shipping_address: Address$inboundSchema.optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "company_id": "companyId", - "department_id": "departmentId", - "currency_rate": "currencyRate", - "tax_inclusive": "taxInclusive", - "sub_total": "subTotal", - "total_amount": "totalAmount", - "total_tax": "totalTax", - "tax_code": "taxCode", - "remaining_credit": "remainingCredit", - "date_issued": "dateIssued", - "date_paid": "datePaid", - "line_items": "lineItems", - "billing_address": "billingAddress", - "shipping_address": "shippingAddress", - "tracking_categories": "trackingCategories", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CreditNoteInput$Outbound = { number?: string | null | undefined; @@ -678,7 +446,7 @@ export type CreditNoteInput$Outbound = { date_issued?: string | undefined; date_paid?: string | null | undefined; type?: string | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; line_items?: Array | undefined; allocations?: Array | undefined; note?: string | null | undefined; @@ -718,7 +486,7 @@ export const CreditNoteInput$outboundSchema: z.ZodType< dateIssued: z.date().transform(v => v.toISOString()).optional(), datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(), type: CreditNoteType$outboundSchema.optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), lineItems: z.array(InvoiceLineItemInput$outboundSchema).optional(), allocations: z.array(AllocationInput$outboundSchema).optional(), note: z.nullable(z.string()).optional(), @@ -754,31 +522,8 @@ export const CreditNoteInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNoteInput$ { - /** @deprecated use `CreditNoteInput$inboundSchema` instead. */ - export const inboundSchema = CreditNoteInput$inboundSchema; - /** @deprecated use `CreditNoteInput$outboundSchema` instead. */ - export const outboundSchema = CreditNoteInput$outboundSchema; - /** @deprecated use `CreditNoteInput$Outbound` instead. */ - export type Outbound = CreditNoteInput$Outbound; -} - export function creditNoteInputToJSON( creditNoteInput: CreditNoteInput, ): string { return JSON.stringify(CreditNoteInput$outboundSchema.parse(creditNoteInput)); } - -export function creditNoteInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreditNoteInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreditNoteInput' from JSON`, - ); -} diff --git a/src/models/components/creditnotesfilter.ts b/src/models/components/creditnotesfilter.ts index 5082e8503..12a7445ec 100644 --- a/src/models/components/creditnotesfilter.ts +++ b/src/models/components/creditnotesfilter.ts @@ -4,29 +4,11 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreditNotesFilter = { updatedSince?: Date | undefined; }; -/** @internal */ -export const CreditNotesFilter$inboundSchema: z.ZodType< - CreditNotesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - }); -}); - /** @internal */ export type CreditNotesFilter$Outbound = { updated_since?: string | undefined; @@ -45,19 +27,6 @@ export const CreditNotesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNotesFilter$ { - /** @deprecated use `CreditNotesFilter$inboundSchema` instead. */ - export const inboundSchema = CreditNotesFilter$inboundSchema; - /** @deprecated use `CreditNotesFilter$outboundSchema` instead. */ - export const outboundSchema = CreditNotesFilter$outboundSchema; - /** @deprecated use `CreditNotesFilter$Outbound` instead. */ - export type Outbound = CreditNotesFilter$Outbound; -} - export function creditNotesFilterToJSON( creditNotesFilter: CreditNotesFilter, ): string { @@ -65,13 +34,3 @@ export function creditNotesFilterToJSON( CreditNotesFilter$outboundSchema.parse(creditNotesFilter), ); } - -export function creditNotesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreditNotesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreditNotesFilter' from JSON`, - ); -} diff --git a/src/models/components/creditnotessort.ts b/src/models/components/creditnotessort.ts index ff4fad419..2ff6daca6 100644 --- a/src/models/components/creditnotessort.ts +++ b/src/models/components/creditnotessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type CreditNotesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const CreditNotesSortBy$inboundSchema: z.ZodNativeEnum< - typeof CreditNotesSortBy -> = z.nativeEnum(CreditNotesSortBy); - /** @internal */ export const CreditNotesSortBy$outboundSchema: z.ZodNativeEnum< typeof CreditNotesSortBy -> = CreditNotesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNotesSortBy$ { - /** @deprecated use `CreditNotesSortBy$inboundSchema` instead. */ - export const inboundSchema = CreditNotesSortBy$inboundSchema; - /** @deprecated use `CreditNotesSortBy$outboundSchema` instead. */ - export const outboundSchema = CreditNotesSortBy$outboundSchema; -} - -/** @internal */ -export const CreditNotesSort$inboundSchema: z.ZodType< - CreditNotesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: CreditNotesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(CreditNotesSortBy); /** @internal */ export type CreditNotesSort$Outbound = { @@ -83,31 +53,8 @@ export const CreditNotesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditNotesSort$ { - /** @deprecated use `CreditNotesSort$inboundSchema` instead. */ - export const inboundSchema = CreditNotesSort$inboundSchema; - /** @deprecated use `CreditNotesSort$outboundSchema` instead. */ - export const outboundSchema = CreditNotesSort$outboundSchema; - /** @deprecated use `CreditNotesSort$Outbound` instead. */ - export type Outbound = CreditNotesSort$Outbound; -} - export function creditNotesSortToJSON( creditNotesSort: CreditNotesSort, ): string { return JSON.stringify(CreditNotesSort$outboundSchema.parse(creditNotesSort)); } - -export function creditNotesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreditNotesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreditNotesSort' from JSON`, - ); -} diff --git a/src/models/components/creditordebit.ts b/src/models/components/creditordebit.ts index a6aaabd4d..1212ad8e3 100644 --- a/src/models/components/creditordebit.ts +++ b/src/models/components/creditordebit.ts @@ -21,19 +21,7 @@ export type CreditOrDebit = ClosedEnum; export const CreditOrDebit$inboundSchema: z.ZodNativeEnum< typeof CreditOrDebit > = z.nativeEnum(CreditOrDebit); - /** @internal */ export const CreditOrDebit$outboundSchema: z.ZodNativeEnum< typeof CreditOrDebit > = CreditOrDebit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreditOrDebit$ { - /** @deprecated use `CreditOrDebit$inboundSchema` instead. */ - export const inboundSchema = CreditOrDebit$inboundSchema; - /** @deprecated use `CreditOrDebit$outboundSchema` instead. */ - export const outboundSchema = CreditOrDebit$outboundSchema; -} diff --git a/src/models/components/currency.ts b/src/models/components/currency.ts index 3f9b36c69..6523bcadb 100644 --- a/src/models/components/currency.ts +++ b/src/models/components/currency.ts @@ -201,18 +201,6 @@ export type Currency = ClosedEnum; /** @internal */ export const Currency$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Currency); - /** @internal */ export const Currency$outboundSchema: z.ZodNativeEnum = Currency$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Currency$ { - /** @deprecated use `Currency$inboundSchema` instead. */ - export const inboundSchema = Currency$inboundSchema; - /** @deprecated use `Currency$outboundSchema` instead. */ - export const outboundSchema = Currency$outboundSchema; -} diff --git a/src/models/components/customer.ts b/src/models/components/customer.ts index cc8671df2..382f7afe6 100644 --- a/src/models/components/customer.ts +++ b/src/models/components/customer.ts @@ -43,27 +43,15 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedParentCustomer, LinkedParentCustomer$inboundSchema, LinkedParentCustomer$Outbound, LinkedParentCustomer$outboundSchema, } from "./linkedparentcustomer.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -283,7 +271,7 @@ export type CustomerInput = { * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; /** * The parent customer this entity is linked to. */ @@ -319,23 +307,11 @@ export type CustomerInput = { export const CustomerStatusStatus$inboundSchema: z.ZodNativeEnum< typeof CustomerStatusStatus > = z.nativeEnum(CustomerStatusStatus); - /** @internal */ export const CustomerStatusStatus$outboundSchema: z.ZodNativeEnum< typeof CustomerStatusStatus > = CustomerStatusStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomerStatusStatus$ { - /** @deprecated use `CustomerStatusStatus$inboundSchema` instead. */ - export const inboundSchema = CustomerStatusStatus$inboundSchema; - /** @deprecated use `CustomerStatusStatus$outboundSchema` instead. */ - export const outboundSchema = CustomerStatusStatus$outboundSchema; -} - /** @internal */ export const Customer$inboundSchema: z.ZodType< Customer, @@ -410,134 +386,6 @@ export const Customer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Customer$Outbound = { - id: string; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - display_name?: string | null | undefined; - company_name?: string | null | undefined; - company_id?: string | null | undefined; - customer_category?: string | null | undefined; - title?: string | null | undefined; - first_name?: string | null | undefined; - middle_name?: string | null | undefined; - last_name?: string | null | undefined; - suffix?: string | null | undefined; - individual?: boolean | null | undefined; - project?: boolean | null | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - websites?: Array | undefined; - bank_accounts?: Array | undefined; - notes?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tax_number?: string | null | undefined; - currency?: string | null | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - parent?: LinkedParentCustomer$Outbound | null | undefined; - status?: string | null | undefined; - payment_method?: string | null | undefined; - terms?: string | null | undefined; - channel?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Customer$outboundSchema: z.ZodType< - Customer$Outbound, - z.ZodTypeDef, - Customer -> = z.object({ - id: z.string(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - customerCategory: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - individual: z.nullable(z.boolean()).optional(), - project: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - websites: z.array(Website$outboundSchema).optional(), - bankAccounts: z.array(BankAccount$outboundSchema).optional(), - notes: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - taxNumber: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - parent: z.nullable(LinkedParentCustomer$outboundSchema).optional(), - status: z.nullable(CustomerStatusStatus$outboundSchema).optional(), - paymentMethod: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - displayName: "display_name", - companyName: "company_name", - companyId: "company_id", - customerCategory: "customer_category", - firstName: "first_name", - middleName: "middle_name", - lastName: "last_name", - phoneNumbers: "phone_numbers", - bankAccounts: "bank_accounts", - taxRate: "tax_rate", - taxNumber: "tax_number", - paymentMethod: "payment_method", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Customer$ { - /** @deprecated use `Customer$inboundSchema` instead. */ - export const inboundSchema = Customer$inboundSchema; - /** @deprecated use `Customer$outboundSchema` instead. */ - export const outboundSchema = Customer$outboundSchema; - /** @deprecated use `Customer$Outbound` instead. */ - export type Outbound = Customer$Outbound; -} - -export function customerToJSON(customer: Customer): string { - return JSON.stringify(Customer$outboundSchema.parse(customer)); -} - export function customerFromJSON( jsonString: string, ): SafeParseResult { @@ -548,63 +396,6 @@ export function customerFromJSON( ); } -/** @internal */ -export const CustomerInput$inboundSchema: z.ZodType< - CustomerInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - display_name: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - customer_category: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - individual: z.nullable(z.boolean()).optional(), - project: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - websites: z.array(Website$inboundSchema).optional(), - bank_accounts: z.array(BankAccount$inboundSchema).optional(), - notes: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tax_number: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - parent: z.nullable(LinkedParentCustomer$inboundSchema).optional(), - status: z.nullable(CustomerStatusStatus$inboundSchema).optional(), - payment_method: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "display_name": "displayName", - "company_name": "companyName", - "company_id": "companyId", - "customer_category": "customerCategory", - "first_name": "firstName", - "middle_name": "middleName", - "last_name": "lastName", - "phone_numbers": "phoneNumbers", - "bank_accounts": "bankAccounts", - "tax_rate": "taxRate", - "tax_number": "taxNumber", - "payment_method": "paymentMethod", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CustomerInput$Outbound = { display_id?: string | null | undefined; @@ -628,7 +419,7 @@ export type CustomerInput$Outbound = { tax_rate?: LinkedTaxRateInput$Outbound | undefined; tax_number?: string | null | undefined; currency?: string | null | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; parent?: LinkedParentCustomer$Outbound | null | undefined; status?: string | null | undefined; payment_method?: string | null | undefined; @@ -666,7 +457,7 @@ export const CustomerInput$outboundSchema: z.ZodType< taxRate: LinkedTaxRateInput$outboundSchema.optional(), taxNumber: z.nullable(z.string()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), parent: z.nullable(LinkedParentCustomer$outboundSchema).optional(), status: z.nullable(CustomerStatusStatus$outboundSchema).optional(), paymentMethod: z.nullable(z.string()).optional(), @@ -696,29 +487,6 @@ export const CustomerInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomerInput$ { - /** @deprecated use `CustomerInput$inboundSchema` instead. */ - export const inboundSchema = CustomerInput$inboundSchema; - /** @deprecated use `CustomerInput$outboundSchema` instead. */ - export const outboundSchema = CustomerInput$outboundSchema; - /** @deprecated use `CustomerInput$Outbound` instead. */ - export type Outbound = CustomerInput$Outbound; -} - export function customerInputToJSON(customerInput: CustomerInput): string { return JSON.stringify(CustomerInput$outboundSchema.parse(customerInput)); } - -export function customerInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomerInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomerInput' from JSON`, - ); -} diff --git a/src/models/components/customersfilter.ts b/src/models/components/customersfilter.ts index dc3637c82..48340a545 100644 --- a/src/models/components/customersfilter.ts +++ b/src/models/components/customersfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Status of customer to filter on @@ -55,53 +52,10 @@ export type CustomersFilter = { supplierId?: string | undefined; }; -/** @internal */ -export const CustomersFilterStatus$inboundSchema: z.ZodNativeEnum< - typeof CustomersFilterStatus -> = z.nativeEnum(CustomersFilterStatus); - /** @internal */ export const CustomersFilterStatus$outboundSchema: z.ZodNativeEnum< typeof CustomersFilterStatus -> = CustomersFilterStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomersFilterStatus$ { - /** @deprecated use `CustomersFilterStatus$inboundSchema` instead. */ - export const inboundSchema = CustomersFilterStatus$inboundSchema; - /** @deprecated use `CustomersFilterStatus$outboundSchema` instead. */ - export const outboundSchema = CustomersFilterStatus$outboundSchema; -} - -/** @internal */ -export const CustomersFilter$inboundSchema: z.ZodType< - CustomersFilter, - z.ZodTypeDef, - unknown -> = z.object({ - company_name: z.string().optional(), - display_name: z.string().optional(), - first_name: z.string().optional(), - last_name: z.string().optional(), - email: z.string().optional(), - status: z.nullable(CustomersFilterStatus$inboundSchema).optional(), - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - supplier_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "company_name": "companyName", - "display_name": "displayName", - "first_name": "firstName", - "last_name": "lastName", - "updated_since": "updatedSince", - "supplier_id": "supplierId", - }); -}); +> = z.nativeEnum(CustomersFilterStatus); /** @internal */ export type CustomersFilter$Outbound = { @@ -140,31 +94,8 @@ export const CustomersFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomersFilter$ { - /** @deprecated use `CustomersFilter$inboundSchema` instead. */ - export const inboundSchema = CustomersFilter$inboundSchema; - /** @deprecated use `CustomersFilter$outboundSchema` instead. */ - export const outboundSchema = CustomersFilter$outboundSchema; - /** @deprecated use `CustomersFilter$Outbound` instead. */ - export type Outbound = CustomersFilter$Outbound; -} - export function customersFilterToJSON( customersFilter: CustomersFilter, ): string { return JSON.stringify(CustomersFilter$outboundSchema.parse(customersFilter)); } - -export function customersFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomersFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomersFilter' from JSON`, - ); -} diff --git a/src/models/components/customerssort.ts b/src/models/components/customerssort.ts index 5091ca5cc..5f352c4ad 100644 --- a/src/models/components/customerssort.ts +++ b/src/models/components/customerssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type CustomersSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const CustomersSortBy$inboundSchema: z.ZodNativeEnum< - typeof CustomersSortBy -> = z.nativeEnum(CustomersSortBy); - /** @internal */ export const CustomersSortBy$outboundSchema: z.ZodNativeEnum< typeof CustomersSortBy -> = CustomersSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomersSortBy$ { - /** @deprecated use `CustomersSortBy$inboundSchema` instead. */ - export const inboundSchema = CustomersSortBy$inboundSchema; - /** @deprecated use `CustomersSortBy$outboundSchema` instead. */ - export const outboundSchema = CustomersSortBy$outboundSchema; -} - -/** @internal */ -export const CustomersSort$inboundSchema: z.ZodType< - CustomersSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: CustomersSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(CustomersSortBy); /** @internal */ export type CustomersSort$Outbound = { @@ -83,29 +53,6 @@ export const CustomersSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomersSort$ { - /** @deprecated use `CustomersSort$inboundSchema` instead. */ - export const inboundSchema = CustomersSort$inboundSchema; - /** @deprecated use `CustomersSort$outboundSchema` instead. */ - export const outboundSchema = CustomersSort$outboundSchema; - /** @deprecated use `CustomersSort$Outbound` instead. */ - export type Outbound = CustomersSort$Outbound; -} - export function customersSortToJSON(customersSort: CustomersSort): string { return JSON.stringify(CustomersSort$outboundSchema.parse(customersSort)); } - -export function customersSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomersSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomersSort' from JSON`, - ); -} diff --git a/src/models/components/customfield.ts b/src/models/components/customfield.ts index f5a5ffc93..c6df2480a 100644 --- a/src/models/components/customfield.ts +++ b/src/models/components/customfield.ts @@ -42,7 +42,6 @@ export type CustomField = { /** @internal */ export const Five$inboundSchema: z.ZodType = z .union([z.string(), z.number(), z.boolean(), z.record(z.any())]); - /** @internal */ export type Five$Outbound = string | number | boolean | { [k: string]: any }; @@ -50,23 +49,9 @@ export type Five$Outbound = string | number | boolean | { [k: string]: any }; export const Five$outboundSchema: z.ZodType = z.union([z.string(), z.number(), z.boolean(), z.record(z.any())]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Five$ { - /** @deprecated use `Five$inboundSchema` instead. */ - export const inboundSchema = Five$inboundSchema; - /** @deprecated use `Five$outboundSchema` instead. */ - export const outboundSchema = Five$outboundSchema; - /** @deprecated use `Five$Outbound` instead. */ - export type Outbound = Five$Outbound; -} - export function fiveToJSON(five: Five): string { return JSON.stringify(Five$outboundSchema.parse(five)); } - export function fiveFromJSON( jsonString: string, ): SafeParseResult { @@ -90,7 +75,6 @@ export const Value$inboundSchema: z.ZodType = z ), ), ]); - /** @internal */ export type Value$Outbound = | string @@ -116,23 +100,9 @@ export const Value$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value$ { - /** @deprecated use `Value$inboundSchema` instead. */ - export const inboundSchema = Value$inboundSchema; - /** @deprecated use `Value$outboundSchema` instead. */ - export const outboundSchema = Value$outboundSchema; - /** @deprecated use `Value$Outbound` instead. */ - export type Outbound = Value$Outbound; -} - export function valueToJSON(value: Value): string { return JSON.stringify(Value$outboundSchema.parse(value)); } - export function valueFromJSON( jsonString: string, ): SafeParseResult { @@ -166,7 +136,6 @@ export const CustomField$inboundSchema: z.ZodType< ]), ).optional(), }); - /** @internal */ export type CustomField$Outbound = { id: string | null; @@ -206,23 +175,9 @@ export const CustomField$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomField$ { - /** @deprecated use `CustomField$inboundSchema` instead. */ - export const inboundSchema = CustomField$inboundSchema; - /** @deprecated use `CustomField$outboundSchema` instead. */ - export const outboundSchema = CustomField$outboundSchema; - /** @deprecated use `CustomField$Outbound` instead. */ - export type Outbound = CustomField$Outbound; -} - export function customFieldToJSON(customField: CustomField): string { return JSON.stringify(CustomField$outboundSchema.parse(customField)); } - export function customFieldFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/customfieldfinder.ts b/src/models/components/customfieldfinder.ts index 280b6e215..d86a0d2f1 100644 --- a/src/models/components/customfieldfinder.ts +++ b/src/models/components/customfieldfinder.ts @@ -43,49 +43,6 @@ export const CustomFieldFinder$inboundSchema: z.ZodType< finder: z.string().optional(), }); -/** @internal */ -export type CustomFieldFinder$Outbound = { - id?: string | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - value?: any | undefined; - finder?: string | undefined; -}; - -/** @internal */ -export const CustomFieldFinder$outboundSchema: z.ZodType< - CustomFieldFinder$Outbound, - z.ZodTypeDef, - CustomFieldFinder -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - value: z.any().optional(), - finder: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomFieldFinder$ { - /** @deprecated use `CustomFieldFinder$inboundSchema` instead. */ - export const inboundSchema = CustomFieldFinder$inboundSchema; - /** @deprecated use `CustomFieldFinder$outboundSchema` instead. */ - export const outboundSchema = CustomFieldFinder$outboundSchema; - /** @deprecated use `CustomFieldFinder$Outbound` instead. */ - export type Outbound = CustomFieldFinder$Outbound; -} - -export function customFieldFinderToJSON( - customFieldFinder: CustomFieldFinder, -): string { - return JSON.stringify( - CustomFieldFinder$outboundSchema.parse(customFieldFinder), - ); -} - export function customFieldFinderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/custommapping.ts b/src/models/components/custommapping.ts index bf8f9da01..856c61038 100644 --- a/src/models/components/custommapping.ts +++ b/src/models/components/custommapping.ts @@ -69,58 +69,6 @@ export const CustomMapping$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CustomMapping$Outbound = { - id?: string | undefined; - label?: string | undefined; - description?: string | null | undefined; - value?: string | undefined; - key?: string | undefined; - required?: boolean | undefined; - custom_field?: boolean | undefined; - consumer_id?: string | null | undefined; - example?: string | null | undefined; -}; - -/** @internal */ -export const CustomMapping$outboundSchema: z.ZodType< - CustomMapping$Outbound, - z.ZodTypeDef, - CustomMapping -> = z.object({ - id: z.string().optional(), - label: z.string().optional(), - description: z.nullable(z.string()).optional(), - value: z.string().optional(), - key: z.string().optional(), - required: z.boolean().optional(), - customField: z.boolean().optional(), - consumerId: z.nullable(z.string()).optional(), - example: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - customField: "custom_field", - consumerId: "consumer_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomMapping$ { - /** @deprecated use `CustomMapping$inboundSchema` instead. */ - export const inboundSchema = CustomMapping$inboundSchema; - /** @deprecated use `CustomMapping$outboundSchema` instead. */ - export const outboundSchema = CustomMapping$outboundSchema; - /** @deprecated use `CustomMapping$Outbound` instead. */ - export type Outbound = CustomMapping$Outbound; -} - -export function customMappingToJSON(customMapping: CustomMapping): string { - return JSON.stringify(CustomMapping$outboundSchema.parse(customMapping)); -} - export function customMappingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/custommappinginput.ts b/src/models/components/custommappinginput.ts index 23e8b8a8e..1596fd986 100644 --- a/src/models/components/custommappinginput.ts +++ b/src/models/components/custommappinginput.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CustomMappingInput = { /** @@ -14,15 +11,6 @@ export type CustomMappingInput = { value?: string | undefined; }; -/** @internal */ -export const CustomMappingInput$inboundSchema: z.ZodType< - CustomMappingInput, - z.ZodTypeDef, - unknown -> = z.object({ - value: z.string().optional(), -}); - /** @internal */ export type CustomMappingInput$Outbound = { value?: string | undefined; @@ -37,19 +25,6 @@ export const CustomMappingInput$outboundSchema: z.ZodType< value: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomMappingInput$ { - /** @deprecated use `CustomMappingInput$inboundSchema` instead. */ - export const inboundSchema = CustomMappingInput$inboundSchema; - /** @deprecated use `CustomMappingInput$outboundSchema` instead. */ - export const outboundSchema = CustomMappingInput$outboundSchema; - /** @deprecated use `CustomMappingInput$Outbound` instead. */ - export type Outbound = CustomMappingInput$Outbound; -} - export function customMappingInputToJSON( customMappingInput: CustomMappingInput, ): string { @@ -57,13 +32,3 @@ export function customMappingInputToJSON( CustomMappingInput$outboundSchema.parse(customMappingInput), ); } - -export function customMappingInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomMappingInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomMappingInput' from JSON`, - ); -} diff --git a/src/models/components/customobject.ts b/src/models/components/customobject.ts index 3ff6dce6e..fa7f51268 100644 --- a/src/models/components/customobject.ts +++ b/src/models/components/customobject.ts @@ -76,7 +76,6 @@ export const CustomObjectFields$inboundSchema: z.ZodType< name: z.string().optional(), value: z.string().optional(), }); - /** @internal */ export type CustomObjectFields$Outbound = { name?: string | undefined; @@ -93,19 +92,6 @@ export const CustomObjectFields$outboundSchema: z.ZodType< value: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectFields$ { - /** @deprecated use `CustomObjectFields$inboundSchema` instead. */ - export const inboundSchema = CustomObjectFields$inboundSchema; - /** @deprecated use `CustomObjectFields$outboundSchema` instead. */ - export const outboundSchema = CustomObjectFields$outboundSchema; - /** @deprecated use `CustomObjectFields$Outbound` instead. */ - export type Outbound = CustomObjectFields$Outbound; -} - export function customObjectFieldsToJSON( customObjectFields: CustomObjectFields, ): string { @@ -113,7 +99,6 @@ export function customObjectFieldsToJSON( CustomObjectFields$outboundSchema.parse(customObjectFields), ); } - export function customObjectFieldsFromJSON( jsonString: string, ): SafeParseResult { @@ -150,62 +135,6 @@ export const CustomObject$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CustomObject$Outbound = { - id?: string | undefined; - owner_id?: string | undefined; - name?: string | null | undefined; - fields?: Array | undefined; - updated_by?: string | undefined; - created_by?: string | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const CustomObject$outboundSchema: z.ZodType< - CustomObject$Outbound, - z.ZodTypeDef, - CustomObject -> = z.object({ - id: z.string().optional(), - ownerId: z.string().optional(), - name: z.nullable(z.string()).optional(), - fields: z.array(z.lazy(() => CustomObjectFields$outboundSchema)).optional(), - updatedBy: z.string().optional(), - createdBy: z.string().optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - ownerId: "owner_id", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObject$ { - /** @deprecated use `CustomObject$inboundSchema` instead. */ - export const inboundSchema = CustomObject$inboundSchema; - /** @deprecated use `CustomObject$outboundSchema` instead. */ - export const outboundSchema = CustomObject$outboundSchema; - /** @deprecated use `CustomObject$Outbound` instead. */ - export type Outbound = CustomObject$Outbound; -} - -export function customObjectToJSON(customObject: CustomObject): string { - return JSON.stringify(CustomObject$outboundSchema.parse(customObject)); -} - export function customObjectFromJSON( jsonString: string, ): SafeParseResult { @@ -216,21 +145,6 @@ export function customObjectFromJSON( ); } -/** @internal */ -export const CustomObjectInput$inboundSchema: z.ZodType< - CustomObjectInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - fields: z.array(z.lazy(() => CustomObjectFields$inboundSchema)).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CustomObjectInput$Outbound = { name?: string | null | undefined; @@ -253,19 +167,6 @@ export const CustomObjectInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectInput$ { - /** @deprecated use `CustomObjectInput$inboundSchema` instead. */ - export const inboundSchema = CustomObjectInput$inboundSchema; - /** @deprecated use `CustomObjectInput$outboundSchema` instead. */ - export const outboundSchema = CustomObjectInput$outboundSchema; - /** @deprecated use `CustomObjectInput$Outbound` instead. */ - export type Outbound = CustomObjectInput$Outbound; -} - export function customObjectInputToJSON( customObjectInput: CustomObjectInput, ): string { @@ -273,13 +174,3 @@ export function customObjectInputToJSON( CustomObjectInput$outboundSchema.parse(customObjectInput), ); } - -export function customObjectInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomObjectInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomObjectInput' from JSON`, - ); -} diff --git a/src/models/components/customobjectschema.ts b/src/models/components/customobjectschema.ts index 9bdacc1ee..2b92359c0 100644 --- a/src/models/components/customobjectschema.ts +++ b/src/models/components/customobjectschema.ts @@ -130,23 +130,11 @@ export type CustomObjectSchemaInput = { export const CustomObjectSchemaType$inboundSchema: z.ZodNativeEnum< typeof CustomObjectSchemaType > = z.nativeEnum(CustomObjectSchemaType); - /** @internal */ export const CustomObjectSchemaType$outboundSchema: z.ZodNativeEnum< typeof CustomObjectSchemaType > = CustomObjectSchemaType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectSchemaType$ { - /** @deprecated use `CustomObjectSchemaType$inboundSchema` instead. */ - export const inboundSchema = CustomObjectSchemaType$inboundSchema; - /** @deprecated use `CustomObjectSchemaType$outboundSchema` instead. */ - export const outboundSchema = CustomObjectSchemaType$outboundSchema; -} - /** @internal */ export const CustomObjectSchemaOptions$inboundSchema: z.ZodType< CustomObjectSchemaOptions, @@ -156,7 +144,6 @@ export const CustomObjectSchemaOptions$inboundSchema: z.ZodType< value: z.string().optional(), label: z.string().optional(), }); - /** @internal */ export type CustomObjectSchemaOptions$Outbound = { value?: string | undefined; @@ -173,19 +160,6 @@ export const CustomObjectSchemaOptions$outboundSchema: z.ZodType< label: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectSchemaOptions$ { - /** @deprecated use `CustomObjectSchemaOptions$inboundSchema` instead. */ - export const inboundSchema = CustomObjectSchemaOptions$inboundSchema; - /** @deprecated use `CustomObjectSchemaOptions$outboundSchema` instead. */ - export const outboundSchema = CustomObjectSchemaOptions$outboundSchema; - /** @deprecated use `CustomObjectSchemaOptions$Outbound` instead. */ - export type Outbound = CustomObjectSchemaOptions$Outbound; -} - export function customObjectSchemaOptionsToJSON( customObjectSchemaOptions: CustomObjectSchemaOptions, ): string { @@ -193,7 +167,6 @@ export function customObjectSchemaOptionsToJSON( CustomObjectSchemaOptions$outboundSchema.parse(customObjectSchemaOptions), ); } - export function customObjectSchemaOptionsFromJSON( jsonString: string, ): SafeParseResult { @@ -221,7 +194,6 @@ export const Fields$inboundSchema: z.ZodType = z "default_value": "defaultValue", }); }); - /** @internal */ export type Fields$Outbound = { id?: string | undefined; @@ -254,23 +226,9 @@ export const Fields$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Fields$ { - /** @deprecated use `Fields$inboundSchema` instead. */ - export const inboundSchema = Fields$inboundSchema; - /** @deprecated use `Fields$outboundSchema` instead. */ - export const outboundSchema = Fields$outboundSchema; - /** @deprecated use `Fields$Outbound` instead. */ - export type Outbound = Fields$Outbound; -} - export function fieldsToJSON(fields: Fields): string { return JSON.stringify(Fields$outboundSchema.parse(fields)); } - export function fieldsFromJSON( jsonString: string, ): SafeParseResult { @@ -308,69 +266,6 @@ export const CustomObjectSchema$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CustomObjectSchema$Outbound = { - id?: string | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - fields?: Array | undefined; - visible?: boolean | null | undefined; - active?: boolean | null | undefined; - created_by?: string | null | undefined; - updated_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const CustomObjectSchema$outboundSchema: z.ZodType< - CustomObjectSchema$Outbound, - z.ZodTypeDef, - CustomObjectSchema -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - fields: z.array(z.lazy(() => Fields$outboundSchema)).optional(), - visible: z.nullable(z.boolean()).optional(), - active: z.nullable(z.boolean()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - createdBy: "created_by", - updatedBy: "updated_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectSchema$ { - /** @deprecated use `CustomObjectSchema$inboundSchema` instead. */ - export const inboundSchema = CustomObjectSchema$inboundSchema; - /** @deprecated use `CustomObjectSchema$outboundSchema` instead. */ - export const outboundSchema = CustomObjectSchema$outboundSchema; - /** @deprecated use `CustomObjectSchema$Outbound` instead. */ - export type Outbound = CustomObjectSchema$Outbound; -} - -export function customObjectSchemaToJSON( - customObjectSchema: CustomObjectSchema, -): string { - return JSON.stringify( - CustomObjectSchema$outboundSchema.parse(customObjectSchema), - ); -} - export function customObjectSchemaFromJSON( jsonString: string, ): SafeParseResult { @@ -381,24 +276,6 @@ export function customObjectSchemaFromJSON( ); } -/** @internal */ -export const CustomObjectSchemaInput$inboundSchema: z.ZodType< - CustomObjectSchemaInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - fields: z.array(z.lazy(() => Fields$inboundSchema)).optional(), - visible: z.nullable(z.boolean()).optional(), - active: z.nullable(z.boolean()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CustomObjectSchemaInput$Outbound = { name?: string | null | undefined; @@ -427,19 +304,6 @@ export const CustomObjectSchemaInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomObjectSchemaInput$ { - /** @deprecated use `CustomObjectSchemaInput$inboundSchema` instead. */ - export const inboundSchema = CustomObjectSchemaInput$inboundSchema; - /** @deprecated use `CustomObjectSchemaInput$outboundSchema` instead. */ - export const outboundSchema = CustomObjectSchemaInput$outboundSchema; - /** @deprecated use `CustomObjectSchemaInput$Outbound` instead. */ - export type Outbound = CustomObjectSchemaInput$Outbound; -} - export function customObjectSchemaInputToJSON( customObjectSchemaInput: CustomObjectSchemaInput, ): string { @@ -447,13 +311,3 @@ export function customObjectSchemaInputToJSON( CustomObjectSchemaInput$outboundSchema.parse(customObjectSchemaInput), ); } - -export function customObjectSchemaInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CustomObjectSchemaInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomObjectSchemaInput' from JSON`, - ); -} diff --git a/src/models/components/datascopes.ts b/src/models/components/datascopes.ts index 62a827470..f9c9dcad3 100644 --- a/src/models/components/datascopes.ts +++ b/src/models/components/datascopes.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DataScopesResources, DataScopesResources$inboundSchema, - DataScopesResources$Outbound, - DataScopesResources$outboundSchema, } from "./datascopesresources.js"; export type DataScopes = { @@ -44,45 +42,6 @@ export const DataScopes$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DataScopes$Outbound = { - enabled?: boolean | undefined; - updated_at?: string | undefined; - resources?: DataScopesResources$Outbound | undefined; -}; - -/** @internal */ -export const DataScopes$outboundSchema: z.ZodType< - DataScopes$Outbound, - z.ZodTypeDef, - DataScopes -> = z.object({ - enabled: z.boolean().optional(), - updatedAt: z.string().optional(), - resources: DataScopesResources$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataScopes$ { - /** @deprecated use `DataScopes$inboundSchema` instead. */ - export const inboundSchema = DataScopes$inboundSchema; - /** @deprecated use `DataScopes$outboundSchema` instead. */ - export const outboundSchema = DataScopes$outboundSchema; - /** @deprecated use `DataScopes$Outbound` instead. */ - export type Outbound = DataScopes$Outbound; -} - -export function dataScopesToJSON(dataScopes: DataScopes): string { - return JSON.stringify(DataScopes$outboundSchema.parse(dataScopes)); -} - export function dataScopesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/datascopesinput.ts b/src/models/components/datascopesinput.ts index c89515d3c..86f4105e0 100644 --- a/src/models/components/datascopesinput.ts +++ b/src/models/components/datascopesinput.ts @@ -3,12 +3,8 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DataScopesResources, - DataScopesResources$inboundSchema, DataScopesResources$Outbound, DataScopesResources$outboundSchema, } from "./datascopesresources.js"; @@ -24,16 +20,6 @@ export type DataScopesInput = { resources?: DataScopesResources | undefined; }; -/** @internal */ -export const DataScopesInput$inboundSchema: z.ZodType< - DataScopesInput, - z.ZodTypeDef, - unknown -> = z.object({ - enabled: z.boolean().optional(), - resources: DataScopesResources$inboundSchema.optional(), -}); - /** @internal */ export type DataScopesInput$Outbound = { enabled?: boolean | undefined; @@ -50,31 +36,8 @@ export const DataScopesInput$outboundSchema: z.ZodType< resources: DataScopesResources$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataScopesInput$ { - /** @deprecated use `DataScopesInput$inboundSchema` instead. */ - export const inboundSchema = DataScopesInput$inboundSchema; - /** @deprecated use `DataScopesInput$outboundSchema` instead. */ - export const outboundSchema = DataScopesInput$outboundSchema; - /** @deprecated use `DataScopesInput$Outbound` instead. */ - export type Outbound = DataScopesInput$Outbound; -} - export function dataScopesInputToJSON( dataScopesInput: DataScopesInput, ): string { return JSON.stringify(DataScopesInput$outboundSchema.parse(dataScopesInput)); } - -export function dataScopesInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DataScopesInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DataScopesInput' from JSON`, - ); -} diff --git a/src/models/components/datascopesresources.ts b/src/models/components/datascopesresources.ts index f351bf2ca..0d70f9a00 100644 --- a/src/models/components/datascopesresources.ts +++ b/src/models/components/datascopesresources.ts @@ -41,23 +41,11 @@ export type DataScopesResources = { export const DataScopesResources2$inboundSchema: z.ZodNativeEnum< typeof DataScopesResources2 > = z.nativeEnum(DataScopesResources2); - /** @internal */ export const DataScopesResources2$outboundSchema: z.ZodNativeEnum< typeof DataScopesResources2 > = DataScopesResources2$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataScopesResources2$ { - /** @deprecated use `DataScopesResources2$inboundSchema` instead. */ - export const inboundSchema = DataScopesResources2$inboundSchema; - /** @deprecated use `DataScopesResources2$outboundSchema` instead. */ - export const outboundSchema = DataScopesResources2$outboundSchema; -} - /** @internal */ export const DataScopesResources1$inboundSchema: z.ZodType< DataScopesResources1, @@ -67,7 +55,6 @@ export const DataScopesResources1$inboundSchema: z.ZodType< read: z.boolean().optional(), write: z.boolean().optional(), }); - /** @internal */ export type DataScopesResources1$Outbound = { read?: boolean | undefined; @@ -84,19 +71,6 @@ export const DataScopesResources1$outboundSchema: z.ZodType< write: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataScopesResources1$ { - /** @deprecated use `DataScopesResources1$inboundSchema` instead. */ - export const inboundSchema = DataScopesResources1$inboundSchema; - /** @deprecated use `DataScopesResources1$outboundSchema` instead. */ - export const outboundSchema = DataScopesResources1$outboundSchema; - /** @deprecated use `DataScopesResources1$Outbound` instead. */ - export type Outbound = DataScopesResources1$Outbound; -} - export function dataScopesResources1ToJSON( dataScopesResources1: DataScopesResources1, ): string { @@ -104,7 +78,6 @@ export function dataScopesResources1ToJSON( DataScopesResources1$outboundSchema.parse(dataScopesResources1), ); } - export function dataScopesResources1FromJSON( jsonString: string, ): SafeParseResult { @@ -124,7 +97,6 @@ export const DataScopesResources$inboundSchema: z.ZodType< z.record(z.record(z.lazy(() => DataScopesResources1$inboundSchema))), DataScopesResources2$inboundSchema, ]); - /** @internal */ export type DataScopesResources$Outbound = { [k: string]: { [k: string]: DataScopesResources1$Outbound }; @@ -140,19 +112,6 @@ export const DataScopesResources$outboundSchema: z.ZodType< DataScopesResources2$outboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataScopesResources$ { - /** @deprecated use `DataScopesResources$inboundSchema` instead. */ - export const inboundSchema = DataScopesResources$inboundSchema; - /** @deprecated use `DataScopesResources$outboundSchema` instead. */ - export const outboundSchema = DataScopesResources$outboundSchema; - /** @deprecated use `DataScopesResources$Outbound` instead. */ - export type Outbound = DataScopesResources$Outbound; -} - export function dataScopesResourcesToJSON( dataScopesResources: DataScopesResources, ): string { @@ -160,7 +119,6 @@ export function dataScopesResourcesToJSON( DataScopesResources$outboundSchema.parse(dataScopesResources), ); } - export function dataScopesResourcesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deduction.ts b/src/models/components/deduction.ts index 3bd49da08..b895bba1f 100644 --- a/src/models/components/deduction.ts +++ b/src/models/components/deduction.ts @@ -28,39 +28,6 @@ export const Deduction$inboundSchema: z.ZodType< amount: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Deduction$Outbound = { - name?: string | null | undefined; - amount?: number | null | undefined; -}; - -/** @internal */ -export const Deduction$outboundSchema: z.ZodType< - Deduction$Outbound, - z.ZodTypeDef, - Deduction -> = z.object({ - name: z.nullable(z.string()).optional(), - amount: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Deduction$ { - /** @deprecated use `Deduction$inboundSchema` instead. */ - export const inboundSchema = Deduction$inboundSchema; - /** @deprecated use `Deduction$outboundSchema` instead. */ - export const outboundSchema = Deduction$outboundSchema; - /** @deprecated use `Deduction$Outbound` instead. */ - export type Outbound = Deduction$Outbound; -} - -export function deductionToJSON(deduction: Deduction): string { - return JSON.stringify(Deduction$outboundSchema.parse(deduction)); -} - export function deductionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteaccountingdepartmentresponse.ts b/src/models/components/deleteaccountingdepartmentresponse.ts index 7f0148e20..e993155d0 100644 --- a/src/models/components/deleteaccountingdepartmentresponse.ts +++ b/src/models/components/deleteaccountingdepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Department deleted @@ -68,61 +63,6 @@ export const DeleteAccountingDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteAccountingDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteAccountingDepartmentResponse$outboundSchema: z.ZodType< - DeleteAccountingDepartmentResponse$Outbound, - z.ZodTypeDef, - DeleteAccountingDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAccountingDepartmentResponse$ { - /** @deprecated use `DeleteAccountingDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteAccountingDepartmentResponse$inboundSchema; - /** @deprecated use `DeleteAccountingDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = - DeleteAccountingDepartmentResponse$outboundSchema; - /** @deprecated use `DeleteAccountingDepartmentResponse$Outbound` instead. */ - export type Outbound = DeleteAccountingDepartmentResponse$Outbound; -} - -export function deleteAccountingDepartmentResponseToJSON( - deleteAccountingDepartmentResponse: DeleteAccountingDepartmentResponse, -): string { - return JSON.stringify( - DeleteAccountingDepartmentResponse$outboundSchema.parse( - deleteAccountingDepartmentResponse, - ), - ); -} - export function deleteAccountingDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteaccountinglocationresponse.ts b/src/models/components/deleteaccountinglocationresponse.ts index 3f5a0ef2a..4f88878d0 100644 --- a/src/models/components/deleteaccountinglocationresponse.ts +++ b/src/models/components/deleteaccountinglocationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Location deleted @@ -68,60 +63,6 @@ export const DeleteAccountingLocationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteAccountingLocationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteAccountingLocationResponse$outboundSchema: z.ZodType< - DeleteAccountingLocationResponse$Outbound, - z.ZodTypeDef, - DeleteAccountingLocationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAccountingLocationResponse$ { - /** @deprecated use `DeleteAccountingLocationResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteAccountingLocationResponse$inboundSchema; - /** @deprecated use `DeleteAccountingLocationResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteAccountingLocationResponse$outboundSchema; - /** @deprecated use `DeleteAccountingLocationResponse$Outbound` instead. */ - export type Outbound = DeleteAccountingLocationResponse$Outbound; -} - -export function deleteAccountingLocationResponseToJSON( - deleteAccountingLocationResponse: DeleteAccountingLocationResponse, -): string { - return JSON.stringify( - DeleteAccountingLocationResponse$outboundSchema.parse( - deleteAccountingLocationResponse, - ), - ); -} - export function deleteAccountingLocationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteactivityresponse.ts b/src/models/components/deleteactivityresponse.ts index 13a84197f..e724888ad 100644 --- a/src/models/components/deleteactivityresponse.ts +++ b/src/models/components/deleteactivityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Activity deleted @@ -68,58 +63,6 @@ export const DeleteActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteActivityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteActivityResponse$outboundSchema: z.ZodType< - DeleteActivityResponse$Outbound, - z.ZodTypeDef, - DeleteActivityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteActivityResponse$ { - /** @deprecated use `DeleteActivityResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteActivityResponse$inboundSchema; - /** @deprecated use `DeleteActivityResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteActivityResponse$outboundSchema; - /** @deprecated use `DeleteActivityResponse$Outbound` instead. */ - export type Outbound = DeleteActivityResponse$Outbound; -} - -export function deleteActivityResponseToJSON( - deleteActivityResponse: DeleteActivityResponse, -): string { - return JSON.stringify( - DeleteActivityResponse$outboundSchema.parse(deleteActivityResponse), - ); -} - export function deleteActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteapplicantresponse.ts b/src/models/components/deleteapplicantresponse.ts index 5a4bd5294..d9dc1fe34 100644 --- a/src/models/components/deleteapplicantresponse.ts +++ b/src/models/components/deleteapplicantresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applicants @@ -68,58 +63,6 @@ export const DeleteApplicantResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteApplicantResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteApplicantResponse$outboundSchema: z.ZodType< - DeleteApplicantResponse$Outbound, - z.ZodTypeDef, - DeleteApplicantResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteApplicantResponse$ { - /** @deprecated use `DeleteApplicantResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteApplicantResponse$inboundSchema; - /** @deprecated use `DeleteApplicantResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteApplicantResponse$outboundSchema; - /** @deprecated use `DeleteApplicantResponse$Outbound` instead. */ - export type Outbound = DeleteApplicantResponse$Outbound; -} - -export function deleteApplicantResponseToJSON( - deleteApplicantResponse: DeleteApplicantResponse, -): string { - return JSON.stringify( - DeleteApplicantResponse$outboundSchema.parse(deleteApplicantResponse), - ); -} - export function deleteApplicantResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteapplicationresponse.ts b/src/models/components/deleteapplicationresponse.ts index b55c1e1de..adb885118 100644 --- a/src/models/components/deleteapplicationresponse.ts +++ b/src/models/components/deleteapplicationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applications @@ -68,58 +63,6 @@ export const DeleteApplicationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteApplicationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteApplicationResponse$outboundSchema: z.ZodType< - DeleteApplicationResponse$Outbound, - z.ZodTypeDef, - DeleteApplicationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteApplicationResponse$ { - /** @deprecated use `DeleteApplicationResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteApplicationResponse$inboundSchema; - /** @deprecated use `DeleteApplicationResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteApplicationResponse$outboundSchema; - /** @deprecated use `DeleteApplicationResponse$Outbound` instead. */ - export type Outbound = DeleteApplicationResponse$Outbound; -} - -export function deleteApplicationResponseToJSON( - deleteApplicationResponse: DeleteApplicationResponse, -): string { - return JSON.stringify( - DeleteApplicationResponse$outboundSchema.parse(deleteApplicationResponse), - ); -} - export function deleteApplicationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteattachmentresponse.ts b/src/models/components/deleteattachmentresponse.ts index 6f90e0547..02d72c3a5 100644 --- a/src/models/components/deleteattachmentresponse.ts +++ b/src/models/components/deleteattachmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Attachments @@ -68,58 +63,6 @@ export const DeleteAttachmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteAttachmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteAttachmentResponse$outboundSchema: z.ZodType< - DeleteAttachmentResponse$Outbound, - z.ZodTypeDef, - DeleteAttachmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAttachmentResponse$ { - /** @deprecated use `DeleteAttachmentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteAttachmentResponse$inboundSchema; - /** @deprecated use `DeleteAttachmentResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteAttachmentResponse$outboundSchema; - /** @deprecated use `DeleteAttachmentResponse$Outbound` instead. */ - export type Outbound = DeleteAttachmentResponse$Outbound; -} - -export function deleteAttachmentResponseToJSON( - deleteAttachmentResponse: DeleteAttachmentResponse, -): string { - return JSON.stringify( - DeleteAttachmentResponse$outboundSchema.parse(deleteAttachmentResponse), - ); -} - export function deleteAttachmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletebankaccountresponse.ts b/src/models/components/deletebankaccountresponse.ts index f06325dc5..dbae78799 100644 --- a/src/models/components/deletebankaccountresponse.ts +++ b/src/models/components/deletebankaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Account deleted @@ -62,55 +57,6 @@ export const DeleteBankAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteBankAccountResponse$Outbound = { - status_code: number; - status: string; - service?: string | undefined; - resource?: string | undefined; - operation?: string | undefined; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const DeleteBankAccountResponse$outboundSchema: z.ZodType< - DeleteBankAccountResponse$Outbound, - z.ZodTypeDef, - DeleteBankAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string().optional(), - resource: z.string().optional(), - operation: z.string().optional(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBankAccountResponse$ { - /** @deprecated use `DeleteBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBankAccountResponse$inboundSchema; - /** @deprecated use `DeleteBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBankAccountResponse$outboundSchema; - /** @deprecated use `DeleteBankAccountResponse$Outbound` instead. */ - export type Outbound = DeleteBankAccountResponse$Outbound; -} - -export function deleteBankAccountResponseToJSON( - deleteBankAccountResponse: DeleteBankAccountResponse, -): string { - return JSON.stringify( - DeleteBankAccountResponse$outboundSchema.parse(deleteBankAccountResponse), - ); -} - export function deleteBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletebankfeedaccountresponse.ts b/src/models/components/deletebankfeedaccountresponse.ts index dd3686289..7b73f7817 100644 --- a/src/models/components/deletebankfeedaccountresponse.ts +++ b/src/models/components/deletebankfeedaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Accounts @@ -68,60 +63,6 @@ export const DeleteBankFeedAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteBankFeedAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteBankFeedAccountResponse$outboundSchema: z.ZodType< - DeleteBankFeedAccountResponse$Outbound, - z.ZodTypeDef, - DeleteBankFeedAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBankFeedAccountResponse$ { - /** @deprecated use `DeleteBankFeedAccountResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBankFeedAccountResponse$inboundSchema; - /** @deprecated use `DeleteBankFeedAccountResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBankFeedAccountResponse$outboundSchema; - /** @deprecated use `DeleteBankFeedAccountResponse$Outbound` instead. */ - export type Outbound = DeleteBankFeedAccountResponse$Outbound; -} - -export function deleteBankFeedAccountResponseToJSON( - deleteBankFeedAccountResponse: DeleteBankFeedAccountResponse, -): string { - return JSON.stringify( - DeleteBankFeedAccountResponse$outboundSchema.parse( - deleteBankFeedAccountResponse, - ), - ); -} - export function deleteBankFeedAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletebankfeedstatementresponse.ts b/src/models/components/deletebankfeedstatementresponse.ts index e9d1c483c..dd1874d3e 100644 --- a/src/models/components/deletebankfeedstatementresponse.ts +++ b/src/models/components/deletebankfeedstatementresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Statements @@ -68,60 +63,6 @@ export const DeleteBankFeedStatementResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteBankFeedStatementResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteBankFeedStatementResponse$outboundSchema: z.ZodType< - DeleteBankFeedStatementResponse$Outbound, - z.ZodTypeDef, - DeleteBankFeedStatementResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBankFeedStatementResponse$ { - /** @deprecated use `DeleteBankFeedStatementResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBankFeedStatementResponse$inboundSchema; - /** @deprecated use `DeleteBankFeedStatementResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBankFeedStatementResponse$outboundSchema; - /** @deprecated use `DeleteBankFeedStatementResponse$Outbound` instead. */ - export type Outbound = DeleteBankFeedStatementResponse$Outbound; -} - -export function deleteBankFeedStatementResponseToJSON( - deleteBankFeedStatementResponse: DeleteBankFeedStatementResponse, -): string { - return JSON.stringify( - DeleteBankFeedStatementResponse$outboundSchema.parse( - deleteBankFeedStatementResponse, - ), - ); -} - export function deleteBankFeedStatementResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletebillpaymentresponse.ts b/src/models/components/deletebillpaymentresponse.ts index a08066b32..f0500abb3 100644 --- a/src/models/components/deletebillpaymentresponse.ts +++ b/src/models/components/deletebillpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill Payment deleted @@ -68,58 +63,6 @@ export const DeleteBillPaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteBillPaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteBillPaymentResponse$outboundSchema: z.ZodType< - DeleteBillPaymentResponse$Outbound, - z.ZodTypeDef, - DeleteBillPaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBillPaymentResponse$ { - /** @deprecated use `DeleteBillPaymentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBillPaymentResponse$inboundSchema; - /** @deprecated use `DeleteBillPaymentResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBillPaymentResponse$outboundSchema; - /** @deprecated use `DeleteBillPaymentResponse$Outbound` instead. */ - export type Outbound = DeleteBillPaymentResponse$Outbound; -} - -export function deleteBillPaymentResponseToJSON( - deleteBillPaymentResponse: DeleteBillPaymentResponse, -): string { - return JSON.stringify( - DeleteBillPaymentResponse$outboundSchema.parse(deleteBillPaymentResponse), - ); -} - export function deleteBillPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletebillresponse.ts b/src/models/components/deletebillresponse.ts index f0565682f..0f4c5442f 100644 --- a/src/models/components/deletebillresponse.ts +++ b/src/models/components/deletebillresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill deleted @@ -68,58 +63,6 @@ export const DeleteBillResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteBillResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteBillResponse$outboundSchema: z.ZodType< - DeleteBillResponse$Outbound, - z.ZodTypeDef, - DeleteBillResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBillResponse$ { - /** @deprecated use `DeleteBillResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteBillResponse$inboundSchema; - /** @deprecated use `DeleteBillResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteBillResponse$outboundSchema; - /** @deprecated use `DeleteBillResponse$Outbound` instead. */ - export type Outbound = DeleteBillResponse$Outbound; -} - -export function deleteBillResponseToJSON( - deleteBillResponse: DeleteBillResponse, -): string { - return JSON.stringify( - DeleteBillResponse$outboundSchema.parse(deleteBillResponse), - ); -} - export function deleteBillResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecommentresponse.ts b/src/models/components/deletecommentresponse.ts index 833fac159..9fe68070f 100644 --- a/src/models/components/deletecommentresponse.ts +++ b/src/models/components/deletecommentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Delete a Comment @@ -68,58 +63,6 @@ export const DeleteCommentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCommentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCommentResponse$outboundSchema: z.ZodType< - DeleteCommentResponse$Outbound, - z.ZodTypeDef, - DeleteCommentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCommentResponse$ { - /** @deprecated use `DeleteCommentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCommentResponse$inboundSchema; - /** @deprecated use `DeleteCommentResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCommentResponse$outboundSchema; - /** @deprecated use `DeleteCommentResponse$Outbound` instead. */ - export type Outbound = DeleteCommentResponse$Outbound; -} - -export function deleteCommentResponseToJSON( - deleteCommentResponse: DeleteCommentResponse, -): string { - return JSON.stringify( - DeleteCommentResponse$outboundSchema.parse(deleteCommentResponse), - ); -} - export function deleteCommentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecompanyresponse.ts b/src/models/components/deletecompanyresponse.ts index ee5477749..0a84d677e 100644 --- a/src/models/components/deletecompanyresponse.ts +++ b/src/models/components/deletecompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Company deleted @@ -68,58 +63,6 @@ export const DeleteCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCompanyResponse$outboundSchema: z.ZodType< - DeleteCompanyResponse$Outbound, - z.ZodTypeDef, - DeleteCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCompanyResponse$ { - /** @deprecated use `DeleteCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCompanyResponse$inboundSchema; - /** @deprecated use `DeleteCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCompanyResponse$outboundSchema; - /** @deprecated use `DeleteCompanyResponse$Outbound` instead. */ - export type Outbound = DeleteCompanyResponse$Outbound; -} - -export function deleteCompanyResponseToJSON( - deleteCompanyResponse: DeleteCompanyResponse, -): string { - return JSON.stringify( - DeleteCompanyResponse$outboundSchema.parse(deleteCompanyResponse), - ); -} - export function deleteCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteconsumerresponse.ts b/src/models/components/deleteconsumerresponse.ts index 5f5d2b979..c4177d861 100644 --- a/src/models/components/deleteconsumerresponse.ts +++ b/src/models/components/deleteconsumerresponse.ts @@ -47,45 +47,6 @@ export const DeleteConsumerResponseData$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteConsumerResponseData$Outbound = { - consumer_id?: string | undefined; -}; - -/** @internal */ -export const DeleteConsumerResponseData$outboundSchema: z.ZodType< - DeleteConsumerResponseData$Outbound, - z.ZodTypeDef, - DeleteConsumerResponseData -> = z.object({ - consumerId: z.string().optional(), -}).transform((v) => { - return remap$(v, { - consumerId: "consumer_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConsumerResponseData$ { - /** @deprecated use `DeleteConsumerResponseData$inboundSchema` instead. */ - export const inboundSchema = DeleteConsumerResponseData$inboundSchema; - /** @deprecated use `DeleteConsumerResponseData$outboundSchema` instead. */ - export const outboundSchema = DeleteConsumerResponseData$outboundSchema; - /** @deprecated use `DeleteConsumerResponseData$Outbound` instead. */ - export type Outbound = DeleteConsumerResponseData$Outbound; -} - -export function deleteConsumerResponseDataToJSON( - deleteConsumerResponseData: DeleteConsumerResponseData, -): string { - return JSON.stringify( - DeleteConsumerResponseData$outboundSchema.parse(deleteConsumerResponseData), - ); -} - export function deleteConsumerResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -113,52 +74,6 @@ export const DeleteConsumerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteConsumerResponse$Outbound = { - status_code: number; - status: string; - data: DeleteConsumerResponseData$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteConsumerResponse$outboundSchema: z.ZodType< - DeleteConsumerResponse$Outbound, - z.ZodTypeDef, - DeleteConsumerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.lazy(() => DeleteConsumerResponseData$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConsumerResponse$ { - /** @deprecated use `DeleteConsumerResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteConsumerResponse$inboundSchema; - /** @deprecated use `DeleteConsumerResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteConsumerResponse$outboundSchema; - /** @deprecated use `DeleteConsumerResponse$Outbound` instead. */ - export type Outbound = DeleteConsumerResponse$Outbound; -} - -export function deleteConsumerResponseToJSON( - deleteConsumerResponse: DeleteConsumerResponse, -): string { - return JSON.stringify( - DeleteConsumerResponse$outboundSchema.parse(deleteConsumerResponse), - ); -} - export function deleteConsumerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecontactresponse.ts b/src/models/components/deletecontactresponse.ts index 940b79710..dd59f2e2c 100644 --- a/src/models/components/deletecontactresponse.ts +++ b/src/models/components/deletecontactresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Contact deleted @@ -68,58 +63,6 @@ export const DeleteContactResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteContactResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteContactResponse$outboundSchema: z.ZodType< - DeleteContactResponse$Outbound, - z.ZodTypeDef, - DeleteContactResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteContactResponse$ { - /** @deprecated use `DeleteContactResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteContactResponse$inboundSchema; - /** @deprecated use `DeleteContactResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteContactResponse$outboundSchema; - /** @deprecated use `DeleteContactResponse$Outbound` instead. */ - export type Outbound = DeleteContactResponse$Outbound; -} - -export function deleteContactResponseToJSON( - deleteContactResponse: DeleteContactResponse, -): string { - return JSON.stringify( - DeleteContactResponse$outboundSchema.parse(deleteContactResponse), - ); -} - export function deleteContactResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecreditnoteresponse.ts b/src/models/components/deletecreditnoteresponse.ts index 767dfa850..62a264275 100644 --- a/src/models/components/deletecreditnoteresponse.ts +++ b/src/models/components/deletecreditnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Credit Note deleted @@ -68,58 +63,6 @@ export const DeleteCreditNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCreditNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCreditNoteResponse$outboundSchema: z.ZodType< - DeleteCreditNoteResponse$Outbound, - z.ZodTypeDef, - DeleteCreditNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCreditNoteResponse$ { - /** @deprecated use `DeleteCreditNoteResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCreditNoteResponse$inboundSchema; - /** @deprecated use `DeleteCreditNoteResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCreditNoteResponse$outboundSchema; - /** @deprecated use `DeleteCreditNoteResponse$Outbound` instead. */ - export type Outbound = DeleteCreditNoteResponse$Outbound; -} - -export function deleteCreditNoteResponseToJSON( - deleteCreditNoteResponse: DeleteCreditNoteResponse, -): string { - return JSON.stringify( - DeleteCreditNoteResponse$outboundSchema.parse(deleteCreditNoteResponse), - ); -} - export function deleteCreditNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecustomerresponse.ts b/src/models/components/deletecustomerresponse.ts index 542ea7eb0..ba3e01c4a 100644 --- a/src/models/components/deletecustomerresponse.ts +++ b/src/models/components/deletecustomerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Customers @@ -68,58 +63,6 @@ export const DeleteCustomerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCustomerResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCustomerResponse$outboundSchema: z.ZodType< - DeleteCustomerResponse$Outbound, - z.ZodTypeDef, - DeleteCustomerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomerResponse$ { - /** @deprecated use `DeleteCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomerResponse$inboundSchema; - /** @deprecated use `DeleteCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomerResponse$outboundSchema; - /** @deprecated use `DeleteCustomerResponse$Outbound` instead. */ - export type Outbound = DeleteCustomerResponse$Outbound; -} - -export function deleteCustomerResponseToJSON( - deleteCustomerResponse: DeleteCustomerResponse, -): string { - return JSON.stringify( - DeleteCustomerResponse$outboundSchema.parse(deleteCustomerResponse), - ); -} - export function deleteCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecustomobjectresponse.ts b/src/models/components/deletecustomobjectresponse.ts index 047ae11ab..dd24ea623 100644 --- a/src/models/components/deletecustomobjectresponse.ts +++ b/src/models/components/deletecustomobjectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Custom object deleted @@ -68,58 +63,6 @@ export const DeleteCustomObjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCustomObjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCustomObjectResponse$outboundSchema: z.ZodType< - DeleteCustomObjectResponse$Outbound, - z.ZodTypeDef, - DeleteCustomObjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomObjectResponse$ { - /** @deprecated use `DeleteCustomObjectResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomObjectResponse$inboundSchema; - /** @deprecated use `DeleteCustomObjectResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomObjectResponse$outboundSchema; - /** @deprecated use `DeleteCustomObjectResponse$Outbound` instead. */ - export type Outbound = DeleteCustomObjectResponse$Outbound; -} - -export function deleteCustomObjectResponseToJSON( - deleteCustomObjectResponse: DeleteCustomObjectResponse, -): string { - return JSON.stringify( - DeleteCustomObjectResponse$outboundSchema.parse(deleteCustomObjectResponse), - ); -} - export function deleteCustomObjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletecustomobjectschemaresponse.ts b/src/models/components/deletecustomobjectschemaresponse.ts index 3b0ac8489..921dfbf9c 100644 --- a/src/models/components/deletecustomobjectschemaresponse.ts +++ b/src/models/components/deletecustomobjectschemaresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Custom object schema deleted @@ -68,60 +63,6 @@ export const DeleteCustomObjectSchemaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteCustomObjectSchemaResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteCustomObjectSchemaResponse$outboundSchema: z.ZodType< - DeleteCustomObjectSchemaResponse$Outbound, - z.ZodTypeDef, - DeleteCustomObjectSchemaResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteCustomObjectSchemaResponse$ { - /** @deprecated use `DeleteCustomObjectSchemaResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteCustomObjectSchemaResponse$inboundSchema; - /** @deprecated use `DeleteCustomObjectSchemaResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteCustomObjectSchemaResponse$outboundSchema; - /** @deprecated use `DeleteCustomObjectSchemaResponse$Outbound` instead. */ - export type Outbound = DeleteCustomObjectSchemaResponse$Outbound; -} - -export function deleteCustomObjectSchemaResponseToJSON( - deleteCustomObjectSchemaResponse: DeleteCustomObjectSchemaResponse, -): string { - return JSON.stringify( - DeleteCustomObjectSchemaResponse$outboundSchema.parse( - deleteCustomObjectSchemaResponse, - ), - ); -} - export function deleteCustomObjectSchemaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletedepartmentresponse.ts b/src/models/components/deletedepartmentresponse.ts index 3afe955ef..2456e9e0a 100644 --- a/src/models/components/deletedepartmentresponse.ts +++ b/src/models/components/deletedepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Departments @@ -68,58 +63,6 @@ export const DeleteDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteDepartmentResponse$outboundSchema: z.ZodType< - DeleteDepartmentResponse$Outbound, - z.ZodTypeDef, - DeleteDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDepartmentResponse$ { - /** @deprecated use `DeleteDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteDepartmentResponse$inboundSchema; - /** @deprecated use `DeleteDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteDepartmentResponse$outboundSchema; - /** @deprecated use `DeleteDepartmentResponse$Outbound` instead. */ - export type Outbound = DeleteDepartmentResponse$Outbound; -} - -export function deleteDepartmentResponseToJSON( - deleteDepartmentResponse: DeleteDepartmentResponse, -): string { - return JSON.stringify( - DeleteDepartmentResponse$outboundSchema.parse(deleteDepartmentResponse), - ); -} - export function deleteDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletedrivegroupresponse.ts b/src/models/components/deletedrivegroupresponse.ts index 2cbbd4f13..3575aa48e 100644 --- a/src/models/components/deletedrivegroupresponse.ts +++ b/src/models/components/deletedrivegroupresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * DriveGroups @@ -68,58 +63,6 @@ export const DeleteDriveGroupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteDriveGroupResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteDriveGroupResponse$outboundSchema: z.ZodType< - DeleteDriveGroupResponse$Outbound, - z.ZodTypeDef, - DeleteDriveGroupResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDriveGroupResponse$ { - /** @deprecated use `DeleteDriveGroupResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteDriveGroupResponse$inboundSchema; - /** @deprecated use `DeleteDriveGroupResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteDriveGroupResponse$outboundSchema; - /** @deprecated use `DeleteDriveGroupResponse$Outbound` instead. */ - export type Outbound = DeleteDriveGroupResponse$Outbound; -} - -export function deleteDriveGroupResponseToJSON( - deleteDriveGroupResponse: DeleteDriveGroupResponse, -): string { - return JSON.stringify( - DeleteDriveGroupResponse$outboundSchema.parse(deleteDriveGroupResponse), - ); -} - export function deleteDriveGroupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletedriveresponse.ts b/src/models/components/deletedriveresponse.ts index 9ac39837e..8fe6eade2 100644 --- a/src/models/components/deletedriveresponse.ts +++ b/src/models/components/deletedriveresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Drives @@ -68,58 +63,6 @@ export const DeleteDriveResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteDriveResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteDriveResponse$outboundSchema: z.ZodType< - DeleteDriveResponse$Outbound, - z.ZodTypeDef, - DeleteDriveResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteDriveResponse$ { - /** @deprecated use `DeleteDriveResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteDriveResponse$inboundSchema; - /** @deprecated use `DeleteDriveResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteDriveResponse$outboundSchema; - /** @deprecated use `DeleteDriveResponse$Outbound` instead. */ - export type Outbound = DeleteDriveResponse$Outbound; -} - -export function deleteDriveResponseToJSON( - deleteDriveResponse: DeleteDriveResponse, -): string { - return JSON.stringify( - DeleteDriveResponse$outboundSchema.parse(deleteDriveResponse), - ); -} - export function deleteDriveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteemployeeresponse.ts b/src/models/components/deleteemployeeresponse.ts index 694f60917..06f39f579 100644 --- a/src/models/components/deleteemployeeresponse.ts +++ b/src/models/components/deleteemployeeresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Employees @@ -68,58 +63,6 @@ export const DeleteEmployeeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteEmployeeResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteEmployeeResponse$outboundSchema: z.ZodType< - DeleteEmployeeResponse$Outbound, - z.ZodTypeDef, - DeleteEmployeeResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteEmployeeResponse$ { - /** @deprecated use `DeleteEmployeeResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteEmployeeResponse$inboundSchema; - /** @deprecated use `DeleteEmployeeResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteEmployeeResponse$outboundSchema; - /** @deprecated use `DeleteEmployeeResponse$Outbound` instead. */ - export type Outbound = DeleteEmployeeResponse$Outbound; -} - -export function deleteEmployeeResponseToJSON( - deleteEmployeeResponse: DeleteEmployeeResponse, -): string { - return JSON.stringify( - DeleteEmployeeResponse$outboundSchema.parse(deleteEmployeeResponse), - ); -} - export function deleteEmployeeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteexpenseresponse.ts b/src/models/components/deleteexpenseresponse.ts index 566c3781b..a4a4f5c58 100644 --- a/src/models/components/deleteexpenseresponse.ts +++ b/src/models/components/deleteexpenseresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Expenses @@ -68,58 +63,6 @@ export const DeleteExpenseResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteExpenseResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteExpenseResponse$outboundSchema: z.ZodType< - DeleteExpenseResponse$Outbound, - z.ZodTypeDef, - DeleteExpenseResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteExpenseResponse$ { - /** @deprecated use `DeleteExpenseResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteExpenseResponse$inboundSchema; - /** @deprecated use `DeleteExpenseResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteExpenseResponse$outboundSchema; - /** @deprecated use `DeleteExpenseResponse$Outbound` instead. */ - export type Outbound = DeleteExpenseResponse$Outbound; -} - -export function deleteExpenseResponseToJSON( - deleteExpenseResponse: DeleteExpenseResponse, -): string { - return JSON.stringify( - DeleteExpenseResponse$outboundSchema.parse(deleteExpenseResponse), - ); -} - export function deleteExpenseResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletefileresponse.ts b/src/models/components/deletefileresponse.ts index 743f9a2be..da9499154 100644 --- a/src/models/components/deletefileresponse.ts +++ b/src/models/components/deletefileresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Files @@ -68,58 +63,6 @@ export const DeleteFileResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteFileResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteFileResponse$outboundSchema: z.ZodType< - DeleteFileResponse$Outbound, - z.ZodTypeDef, - DeleteFileResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteFileResponse$ { - /** @deprecated use `DeleteFileResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteFileResponse$inboundSchema; - /** @deprecated use `DeleteFileResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteFileResponse$outboundSchema; - /** @deprecated use `DeleteFileResponse$Outbound` instead. */ - export type Outbound = DeleteFileResponse$Outbound; -} - -export function deleteFileResponseToJSON( - deleteFileResponse: DeleteFileResponse, -): string { - return JSON.stringify( - DeleteFileResponse$outboundSchema.parse(deleteFileResponse), - ); -} - export function deleteFileResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletefolderresponse.ts b/src/models/components/deletefolderresponse.ts index baf8bbb5f..8665eae2b 100644 --- a/src/models/components/deletefolderresponse.ts +++ b/src/models/components/deletefolderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Folders @@ -68,58 +63,6 @@ export const DeleteFolderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteFolderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteFolderResponse$outboundSchema: z.ZodType< - DeleteFolderResponse$Outbound, - z.ZodTypeDef, - DeleteFolderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteFolderResponse$ { - /** @deprecated use `DeleteFolderResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteFolderResponse$inboundSchema; - /** @deprecated use `DeleteFolderResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteFolderResponse$outboundSchema; - /** @deprecated use `DeleteFolderResponse$Outbound` instead. */ - export type Outbound = DeleteFolderResponse$Outbound; -} - -export function deleteFolderResponseToJSON( - deleteFolderResponse: DeleteFolderResponse, -): string { - return JSON.stringify( - DeleteFolderResponse$outboundSchema.parse(deleteFolderResponse), - ); -} - export function deleteFolderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletehriscompanyresponse.ts b/src/models/components/deletehriscompanyresponse.ts index 944a52179..7d62ab1e0 100644 --- a/src/models/components/deletehriscompanyresponse.ts +++ b/src/models/components/deletehriscompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Companies @@ -68,58 +63,6 @@ export const DeleteHrisCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteHrisCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteHrisCompanyResponse$outboundSchema: z.ZodType< - DeleteHrisCompanyResponse$Outbound, - z.ZodTypeDef, - DeleteHrisCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisCompanyResponse$ { - /** @deprecated use `DeleteHrisCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteHrisCompanyResponse$inboundSchema; - /** @deprecated use `DeleteHrisCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteHrisCompanyResponse$outboundSchema; - /** @deprecated use `DeleteHrisCompanyResponse$Outbound` instead. */ - export type Outbound = DeleteHrisCompanyResponse$Outbound; -} - -export function deleteHrisCompanyResponseToJSON( - deleteHrisCompanyResponse: DeleteHrisCompanyResponse, -): string { - return JSON.stringify( - DeleteHrisCompanyResponse$outboundSchema.parse(deleteHrisCompanyResponse), - ); -} - export function deleteHrisCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteinvoiceresponse.ts b/src/models/components/deleteinvoiceresponse.ts index 16fdfca84..b4434a3e2 100644 --- a/src/models/components/deleteinvoiceresponse.ts +++ b/src/models/components/deleteinvoiceresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { InvoiceResponse, InvoiceResponse$inboundSchema, - InvoiceResponse$Outbound, - InvoiceResponse$outboundSchema, } from "./invoiceresponse.js"; /** @@ -65,58 +63,6 @@ export const DeleteInvoiceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteInvoiceResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: InvoiceResponse$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteInvoiceResponse$outboundSchema: z.ZodType< - DeleteInvoiceResponse$Outbound, - z.ZodTypeDef, - DeleteInvoiceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: InvoiceResponse$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteInvoiceResponse$ { - /** @deprecated use `DeleteInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteInvoiceResponse$inboundSchema; - /** @deprecated use `DeleteInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteInvoiceResponse$outboundSchema; - /** @deprecated use `DeleteInvoiceResponse$Outbound` instead. */ - export type Outbound = DeleteInvoiceResponse$Outbound; -} - -export function deleteInvoiceResponseToJSON( - deleteInvoiceResponse: DeleteInvoiceResponse, -): string { - return JSON.stringify( - DeleteInvoiceResponse$outboundSchema.parse(deleteInvoiceResponse), - ); -} - export function deleteInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletejournalentryresponse.ts b/src/models/components/deletejournalentryresponse.ts index e6a91dea8..860e8cdde 100644 --- a/src/models/components/deletejournalentryresponse.ts +++ b/src/models/components/deletejournalentryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * JournalEntries @@ -68,58 +63,6 @@ export const DeleteJournalEntryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteJournalEntryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteJournalEntryResponse$outboundSchema: z.ZodType< - DeleteJournalEntryResponse$Outbound, - z.ZodTypeDef, - DeleteJournalEntryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteJournalEntryResponse$ { - /** @deprecated use `DeleteJournalEntryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteJournalEntryResponse$inboundSchema; - /** @deprecated use `DeleteJournalEntryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteJournalEntryResponse$outboundSchema; - /** @deprecated use `DeleteJournalEntryResponse$Outbound` instead. */ - export type Outbound = DeleteJournalEntryResponse$Outbound; -} - -export function deleteJournalEntryResponseToJSON( - deleteJournalEntryResponse: DeleteJournalEntryResponse, -): string { - return JSON.stringify( - DeleteJournalEntryResponse$outboundSchema.parse(deleteJournalEntryResponse), - ); -} - export function deleteJournalEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteleadresponse.ts b/src/models/components/deleteleadresponse.ts index be7d57212..87345e4c1 100644 --- a/src/models/components/deleteleadresponse.ts +++ b/src/models/components/deleteleadresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Lead deleted @@ -68,58 +63,6 @@ export const DeleteLeadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLeadResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteLeadResponse$outboundSchema: z.ZodType< - DeleteLeadResponse$Outbound, - z.ZodTypeDef, - DeleteLeadResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLeadResponse$ { - /** @deprecated use `DeleteLeadResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteLeadResponse$inboundSchema; - /** @deprecated use `DeleteLeadResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteLeadResponse$outboundSchema; - /** @deprecated use `DeleteLeadResponse$Outbound` instead. */ - export type Outbound = DeleteLeadResponse$Outbound; -} - -export function deleteLeadResponseToJSON( - deleteLeadResponse: DeleteLeadResponse, -): string { - return JSON.stringify( - DeleteLeadResponse$outboundSchema.parse(deleteLeadResponse), - ); -} - export function deleteLeadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteledgeraccountresponse.ts b/src/models/components/deleteledgeraccountresponse.ts index 1dd8a16c6..acbcc8f98 100644 --- a/src/models/components/deleteledgeraccountresponse.ts +++ b/src/models/components/deleteledgeraccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * LedgerAccount deleted @@ -68,60 +63,6 @@ export const DeleteLedgerAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteLedgerAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteLedgerAccountResponse$outboundSchema: z.ZodType< - DeleteLedgerAccountResponse$Outbound, - z.ZodTypeDef, - DeleteLedgerAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteLedgerAccountResponse$ { - /** @deprecated use `DeleteLedgerAccountResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteLedgerAccountResponse$inboundSchema; - /** @deprecated use `DeleteLedgerAccountResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteLedgerAccountResponse$outboundSchema; - /** @deprecated use `DeleteLedgerAccountResponse$Outbound` instead. */ - export type Outbound = DeleteLedgerAccountResponse$Outbound; -} - -export function deleteLedgerAccountResponseToJSON( - deleteLedgerAccountResponse: DeleteLedgerAccountResponse, -): string { - return JSON.stringify( - DeleteLedgerAccountResponse$outboundSchema.parse( - deleteLedgerAccountResponse, - ), - ); -} - export function deleteLedgerAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletemessageresponse.ts b/src/models/components/deletemessageresponse.ts index bcad9f8ac..3cf2a67e1 100644 --- a/src/models/components/deletemessageresponse.ts +++ b/src/models/components/deletemessageresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Messages @@ -68,58 +63,6 @@ export const DeleteMessageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteMessageResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteMessageResponse$outboundSchema: z.ZodType< - DeleteMessageResponse$Outbound, - z.ZodTypeDef, - DeleteMessageResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteMessageResponse$ { - /** @deprecated use `DeleteMessageResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteMessageResponse$inboundSchema; - /** @deprecated use `DeleteMessageResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteMessageResponse$outboundSchema; - /** @deprecated use `DeleteMessageResponse$Outbound` instead. */ - export type Outbound = DeleteMessageResponse$Outbound; -} - -export function deleteMessageResponseToJSON( - deleteMessageResponse: DeleteMessageResponse, -): string { - return JSON.stringify( - DeleteMessageResponse$outboundSchema.parse(deleteMessageResponse), - ); -} - export function deleteMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletenoteresponse.ts b/src/models/components/deletenoteresponse.ts index a66e55c7a..b7b4514cd 100644 --- a/src/models/components/deletenoteresponse.ts +++ b/src/models/components/deletenoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Note deleted @@ -68,58 +63,6 @@ export const DeleteNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteNoteResponse$outboundSchema: z.ZodType< - DeleteNoteResponse$Outbound, - z.ZodTypeDef, - DeleteNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteNoteResponse$ { - /** @deprecated use `DeleteNoteResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteNoteResponse$inboundSchema; - /** @deprecated use `DeleteNoteResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteNoteResponse$outboundSchema; - /** @deprecated use `DeleteNoteResponse$Outbound` instead. */ - export type Outbound = DeleteNoteResponse$Outbound; -} - -export function deleteNoteResponseToJSON( - deleteNoteResponse: DeleteNoteResponse, -): string { - return JSON.stringify( - DeleteNoteResponse$outboundSchema.parse(deleteNoteResponse), - ); -} - export function deleteNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteopportunityresponse.ts b/src/models/components/deleteopportunityresponse.ts index e4d586aee..ce6c5d420 100644 --- a/src/models/components/deleteopportunityresponse.ts +++ b/src/models/components/deleteopportunityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Opportunity deleted @@ -68,58 +63,6 @@ export const DeleteOpportunityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteOpportunityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteOpportunityResponse$outboundSchema: z.ZodType< - DeleteOpportunityResponse$Outbound, - z.ZodTypeDef, - DeleteOpportunityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteOpportunityResponse$ { - /** @deprecated use `DeleteOpportunityResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteOpportunityResponse$inboundSchema; - /** @deprecated use `DeleteOpportunityResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteOpportunityResponse$outboundSchema; - /** @deprecated use `DeleteOpportunityResponse$Outbound` instead. */ - export type Outbound = DeleteOpportunityResponse$Outbound; -} - -export function deleteOpportunityResponseToJSON( - deleteOpportunityResponse: DeleteOpportunityResponse, -): string { - return JSON.stringify( - DeleteOpportunityResponse$outboundSchema.parse(deleteOpportunityResponse), - ); -} - export function deleteOpportunityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletepaymentresponse.ts b/src/models/components/deletepaymentresponse.ts index 83ad5a26b..94b59d41f 100644 --- a/src/models/components/deletepaymentresponse.ts +++ b/src/models/components/deletepaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Payment deleted @@ -68,58 +63,6 @@ export const DeletePaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeletePaymentResponse$outboundSchema: z.ZodType< - DeletePaymentResponse$Outbound, - z.ZodTypeDef, - DeletePaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePaymentResponse$ { - /** @deprecated use `DeletePaymentResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePaymentResponse$inboundSchema; - /** @deprecated use `DeletePaymentResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePaymentResponse$outboundSchema; - /** @deprecated use `DeletePaymentResponse$Outbound` instead. */ - export type Outbound = DeletePaymentResponse$Outbound; -} - -export function deletePaymentResponseToJSON( - deletePaymentResponse: DeletePaymentResponse, -): string { - return JSON.stringify( - DeletePaymentResponse$outboundSchema.parse(deletePaymentResponse), - ); -} - export function deletePaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletepipelineresponse.ts b/src/models/components/deletepipelineresponse.ts index 6c5291dc4..56e55fced 100644 --- a/src/models/components/deletepipelineresponse.ts +++ b/src/models/components/deletepipelineresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Pipeline deleted @@ -68,58 +63,6 @@ export const DeletePipelineResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePipelineResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeletePipelineResponse$outboundSchema: z.ZodType< - DeletePipelineResponse$Outbound, - z.ZodTypeDef, - DeletePipelineResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePipelineResponse$ { - /** @deprecated use `DeletePipelineResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePipelineResponse$inboundSchema; - /** @deprecated use `DeletePipelineResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePipelineResponse$outboundSchema; - /** @deprecated use `DeletePipelineResponse$Outbound` instead. */ - export type Outbound = DeletePipelineResponse$Outbound; -} - -export function deletePipelineResponseToJSON( - deletePipelineResponse: DeletePipelineResponse, -): string { - return JSON.stringify( - DeletePipelineResponse$outboundSchema.parse(deletePipelineResponse), - ); -} - export function deletePipelineResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteprojectresponse.ts b/src/models/components/deleteprojectresponse.ts index 205928fca..e9bf04139 100644 --- a/src/models/components/deleteprojectresponse.ts +++ b/src/models/components/deleteprojectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Projects @@ -62,55 +57,6 @@ export const DeleteProjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteProjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const DeleteProjectResponse$outboundSchema: z.ZodType< - DeleteProjectResponse$Outbound, - z.ZodTypeDef, - DeleteProjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteProjectResponse$ { - /** @deprecated use `DeleteProjectResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteProjectResponse$inboundSchema; - /** @deprecated use `DeleteProjectResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteProjectResponse$outboundSchema; - /** @deprecated use `DeleteProjectResponse$Outbound` instead. */ - export type Outbound = DeleteProjectResponse$Outbound; -} - -export function deleteProjectResponseToJSON( - deleteProjectResponse: DeleteProjectResponse, -): string { - return JSON.stringify( - DeleteProjectResponse$outboundSchema.parse(deleteProjectResponse), - ); -} - export function deleteProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletepurchaseorderresponse.ts b/src/models/components/deletepurchaseorderresponse.ts index 3cbd1b8f1..ab10d2bae 100644 --- a/src/models/components/deletepurchaseorderresponse.ts +++ b/src/models/components/deletepurchaseorderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * PurchaseOrders @@ -68,60 +63,6 @@ export const DeletePurchaseOrderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeletePurchaseOrderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeletePurchaseOrderResponse$outboundSchema: z.ZodType< - DeletePurchaseOrderResponse$Outbound, - z.ZodTypeDef, - DeletePurchaseOrderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeletePurchaseOrderResponse$ { - /** @deprecated use `DeletePurchaseOrderResponse$inboundSchema` instead. */ - export const inboundSchema = DeletePurchaseOrderResponse$inboundSchema; - /** @deprecated use `DeletePurchaseOrderResponse$outboundSchema` instead. */ - export const outboundSchema = DeletePurchaseOrderResponse$outboundSchema; - /** @deprecated use `DeletePurchaseOrderResponse$Outbound` instead. */ - export type Outbound = DeletePurchaseOrderResponse$Outbound; -} - -export function deletePurchaseOrderResponseToJSON( - deletePurchaseOrderResponse: DeletePurchaseOrderResponse, -): string { - return JSON.stringify( - DeletePurchaseOrderResponse$outboundSchema.parse( - deletePurchaseOrderResponse, - ), - ); -} - export function deletePurchaseOrderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletequoteresponse.ts b/src/models/components/deletequoteresponse.ts index b56e278cf..95e40836c 100644 --- a/src/models/components/deletequoteresponse.ts +++ b/src/models/components/deletequoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Quotes @@ -62,55 +57,6 @@ export const DeleteQuoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteQuoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const DeleteQuoteResponse$outboundSchema: z.ZodType< - DeleteQuoteResponse$Outbound, - z.ZodTypeDef, - DeleteQuoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteQuoteResponse$ { - /** @deprecated use `DeleteQuoteResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteQuoteResponse$inboundSchema; - /** @deprecated use `DeleteQuoteResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteQuoteResponse$outboundSchema; - /** @deprecated use `DeleteQuoteResponse$Outbound` instead. */ - export type Outbound = DeleteQuoteResponse$Outbound; -} - -export function deleteQuoteResponseToJSON( - deleteQuoteResponse: DeleteQuoteResponse, -): string { - return JSON.stringify( - DeleteQuoteResponse$outboundSchema.parse(deleteQuoteResponse), - ); -} - export function deleteQuoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletesharedlinkresponse.ts b/src/models/components/deletesharedlinkresponse.ts index 4bb069bd9..30af0a741 100644 --- a/src/models/components/deletesharedlinkresponse.ts +++ b/src/models/components/deletesharedlinkresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Shared Links @@ -68,58 +63,6 @@ export const DeleteSharedLinkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteSharedLinkResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteSharedLinkResponse$outboundSchema: z.ZodType< - DeleteSharedLinkResponse$Outbound, - z.ZodTypeDef, - DeleteSharedLinkResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSharedLinkResponse$ { - /** @deprecated use `DeleteSharedLinkResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteSharedLinkResponse$inboundSchema; - /** @deprecated use `DeleteSharedLinkResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteSharedLinkResponse$outboundSchema; - /** @deprecated use `DeleteSharedLinkResponse$Outbound` instead. */ - export type Outbound = DeleteSharedLinkResponse$Outbound; -} - -export function deleteSharedLinkResponseToJSON( - deleteSharedLinkResponse: DeleteSharedLinkResponse, -): string { - return JSON.stringify( - DeleteSharedLinkResponse$outboundSchema.parse(deleteSharedLinkResponse), - ); -} - export function deleteSharedLinkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletesubsidiaryresponse.ts b/src/models/components/deletesubsidiaryresponse.ts index 4bfdd16df..da53fa08b 100644 --- a/src/models/components/deletesubsidiaryresponse.ts +++ b/src/models/components/deletesubsidiaryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Subsidiarys @@ -68,58 +63,6 @@ export const DeleteSubsidiaryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteSubsidiaryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteSubsidiaryResponse$outboundSchema: z.ZodType< - DeleteSubsidiaryResponse$Outbound, - z.ZodTypeDef, - DeleteSubsidiaryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSubsidiaryResponse$ { - /** @deprecated use `DeleteSubsidiaryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteSubsidiaryResponse$inboundSchema; - /** @deprecated use `DeleteSubsidiaryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteSubsidiaryResponse$outboundSchema; - /** @deprecated use `DeleteSubsidiaryResponse$Outbound` instead. */ - export type Outbound = DeleteSubsidiaryResponse$Outbound; -} - -export function deleteSubsidiaryResponseToJSON( - deleteSubsidiaryResponse: DeleteSubsidiaryResponse, -): string { - return JSON.stringify( - DeleteSubsidiaryResponse$outboundSchema.parse(deleteSubsidiaryResponse), - ); -} - export function deleteSubsidiaryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletesupplierresponse.ts b/src/models/components/deletesupplierresponse.ts index ec2561120..eba97c2d9 100644 --- a/src/models/components/deletesupplierresponse.ts +++ b/src/models/components/deletesupplierresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Supplier deleted @@ -68,58 +63,6 @@ export const DeleteSupplierResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteSupplierResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteSupplierResponse$outboundSchema: z.ZodType< - DeleteSupplierResponse$Outbound, - z.ZodTypeDef, - DeleteSupplierResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteSupplierResponse$ { - /** @deprecated use `DeleteSupplierResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteSupplierResponse$inboundSchema; - /** @deprecated use `DeleteSupplierResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteSupplierResponse$outboundSchema; - /** @deprecated use `DeleteSupplierResponse$Outbound` instead. */ - export type Outbound = DeleteSupplierResponse$Outbound; -} - -export function deleteSupplierResponseToJSON( - deleteSupplierResponse: DeleteSupplierResponse, -): string { - return JSON.stringify( - DeleteSupplierResponse$outboundSchema.parse(deleteSupplierResponse), - ); -} - export function deleteSupplierResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletetaxrateresponse.ts b/src/models/components/deletetaxrateresponse.ts index 2b86b7861..ef593443e 100644 --- a/src/models/components/deletetaxrateresponse.ts +++ b/src/models/components/deletetaxrateresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TaxRates deleted @@ -68,58 +63,6 @@ export const DeleteTaxRateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteTaxRateResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteTaxRateResponse$outboundSchema: z.ZodType< - DeleteTaxRateResponse$Outbound, - z.ZodTypeDef, - DeleteTaxRateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTaxRateResponse$ { - /** @deprecated use `DeleteTaxRateResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTaxRateResponse$inboundSchema; - /** @deprecated use `DeleteTaxRateResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTaxRateResponse$outboundSchema; - /** @deprecated use `DeleteTaxRateResponse$Outbound` instead. */ - export type Outbound = DeleteTaxRateResponse$Outbound; -} - -export function deleteTaxRateResponseToJSON( - deleteTaxRateResponse: DeleteTaxRateResponse, -): string { - return JSON.stringify( - DeleteTaxRateResponse$outboundSchema.parse(deleteTaxRateResponse), - ); -} - export function deleteTaxRateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteticketresponse.ts b/src/models/components/deleteticketresponse.ts index ce67f5100..0a6e02245 100644 --- a/src/models/components/deleteticketresponse.ts +++ b/src/models/components/deleteticketresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Delete a Ticket @@ -68,58 +63,6 @@ export const DeleteTicketResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteTicketResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteTicketResponse$outboundSchema: z.ZodType< - DeleteTicketResponse$Outbound, - z.ZodTypeDef, - DeleteTicketResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTicketResponse$ { - /** @deprecated use `DeleteTicketResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTicketResponse$inboundSchema; - /** @deprecated use `DeleteTicketResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTicketResponse$outboundSchema; - /** @deprecated use `DeleteTicketResponse$Outbound` instead. */ - export type Outbound = DeleteTicketResponse$Outbound; -} - -export function deleteTicketResponseToJSON( - deleteTicketResponse: DeleteTicketResponse, -): string { - return JSON.stringify( - DeleteTicketResponse$outboundSchema.parse(deleteTicketResponse), - ); -} - export function deleteTicketResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletetimeoffrequestresponse.ts b/src/models/components/deletetimeoffrequestresponse.ts index b99a5b2e0..57d6b9fc8 100644 --- a/src/models/components/deletetimeoffrequestresponse.ts +++ b/src/models/components/deletetimeoffrequestresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TimeOffRequests @@ -68,60 +63,6 @@ export const DeleteTimeOffRequestResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteTimeOffRequestResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteTimeOffRequestResponse$outboundSchema: z.ZodType< - DeleteTimeOffRequestResponse$Outbound, - z.ZodTypeDef, - DeleteTimeOffRequestResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTimeOffRequestResponse$ { - /** @deprecated use `DeleteTimeOffRequestResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTimeOffRequestResponse$inboundSchema; - /** @deprecated use `DeleteTimeOffRequestResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTimeOffRequestResponse$outboundSchema; - /** @deprecated use `DeleteTimeOffRequestResponse$Outbound` instead. */ - export type Outbound = DeleteTimeOffRequestResponse$Outbound; -} - -export function deleteTimeOffRequestResponseToJSON( - deleteTimeOffRequestResponse: DeleteTimeOffRequestResponse, -): string { - return JSON.stringify( - DeleteTimeOffRequestResponse$outboundSchema.parse( - deleteTimeOffRequestResponse, - ), - ); -} - export function deleteTimeOffRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletetrackingcategoryresponse.ts b/src/models/components/deletetrackingcategoryresponse.ts index 455b4e446..be2ebbb0f 100644 --- a/src/models/components/deletetrackingcategoryresponse.ts +++ b/src/models/components/deletetrackingcategoryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Tracking category deleted @@ -68,60 +63,6 @@ export const DeleteTrackingCategoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteTrackingCategoryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteTrackingCategoryResponse$outboundSchema: z.ZodType< - DeleteTrackingCategoryResponse$Outbound, - z.ZodTypeDef, - DeleteTrackingCategoryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTrackingCategoryResponse$ { - /** @deprecated use `DeleteTrackingCategoryResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteTrackingCategoryResponse$inboundSchema; - /** @deprecated use `DeleteTrackingCategoryResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteTrackingCategoryResponse$outboundSchema; - /** @deprecated use `DeleteTrackingCategoryResponse$Outbound` instead. */ - export type Outbound = DeleteTrackingCategoryResponse$Outbound; -} - -export function deleteTrackingCategoryResponseToJSON( - deleteTrackingCategoryResponse: DeleteTrackingCategoryResponse, -): string { - return JSON.stringify( - DeleteTrackingCategoryResponse$outboundSchema.parse( - deleteTrackingCategoryResponse, - ), - ); -} - export function deleteTrackingCategoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteuploadsessionresponse.ts b/src/models/components/deleteuploadsessionresponse.ts index 49b731172..18d34708e 100644 --- a/src/models/components/deleteuploadsessionresponse.ts +++ b/src/models/components/deleteuploadsessionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * UploadSessions @@ -68,60 +63,6 @@ export const DeleteUploadSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteUploadSessionResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteUploadSessionResponse$outboundSchema: z.ZodType< - DeleteUploadSessionResponse$Outbound, - z.ZodTypeDef, - DeleteUploadSessionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteUploadSessionResponse$ { - /** @deprecated use `DeleteUploadSessionResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteUploadSessionResponse$inboundSchema; - /** @deprecated use `DeleteUploadSessionResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteUploadSessionResponse$outboundSchema; - /** @deprecated use `DeleteUploadSessionResponse$Outbound` instead. */ - export type Outbound = DeleteUploadSessionResponse$Outbound; -} - -export function deleteUploadSessionResponseToJSON( - deleteUploadSessionResponse: DeleteUploadSessionResponse, -): string { - return JSON.stringify( - DeleteUploadSessionResponse$outboundSchema.parse( - deleteUploadSessionResponse, - ), - ); -} - export function deleteUploadSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deleteuserresponse.ts b/src/models/components/deleteuserresponse.ts index c43245417..25475f68a 100644 --- a/src/models/components/deleteuserresponse.ts +++ b/src/models/components/deleteuserresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * User deleted @@ -68,58 +63,6 @@ export const DeleteUserResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteUserResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteUserResponse$outboundSchema: z.ZodType< - DeleteUserResponse$Outbound, - z.ZodTypeDef, - DeleteUserResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteUserResponse$ { - /** @deprecated use `DeleteUserResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteUserResponse$inboundSchema; - /** @deprecated use `DeleteUserResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteUserResponse$outboundSchema; - /** @deprecated use `DeleteUserResponse$Outbound` instead. */ - export type Outbound = DeleteUserResponse$Outbound; -} - -export function deleteUserResponseToJSON( - deleteUserResponse: DeleteUserResponse, -): string { - return JSON.stringify( - DeleteUserResponse$outboundSchema.parse(deleteUserResponse), - ); -} - export function deleteUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deletewebhookresponse.ts b/src/models/components/deletewebhookresponse.ts index d043cdbd1..1e1f31be7 100644 --- a/src/models/components/deletewebhookresponse.ts +++ b/src/models/components/deletewebhookresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Webhook, - Webhook$inboundSchema, - Webhook$Outbound, - Webhook$outboundSchema, -} from "./webhook.js"; +import { Webhook, Webhook$inboundSchema } from "./webhook.js"; /** * Webhooks @@ -50,52 +45,6 @@ export const DeleteWebhookResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeleteWebhookResponse$Outbound = { - status_code: number; - status: string; - data: Webhook$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const DeleteWebhookResponse$outboundSchema: z.ZodType< - DeleteWebhookResponse$Outbound, - z.ZodTypeDef, - DeleteWebhookResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Webhook$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteWebhookResponse$ { - /** @deprecated use `DeleteWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = DeleteWebhookResponse$inboundSchema; - /** @deprecated use `DeleteWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = DeleteWebhookResponse$outboundSchema; - /** @deprecated use `DeleteWebhookResponse$Outbound` instead. */ - export type Outbound = DeleteWebhookResponse$Outbound; -} - -export function deleteWebhookResponseToJSON( - deleteWebhookResponse: DeleteWebhookResponse, -): string { - return JSON.stringify( - DeleteWebhookResponse$outboundSchema.parse(deleteWebhookResponse), - ); -} - export function deleteWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/department.ts b/src/models/components/department.ts index d188d9848..c30b5b4c1 100644 --- a/src/models/components/department.ts +++ b/src/models/components/department.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Department = { @@ -88,67 +86,6 @@ export const Department$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Department$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - name?: string | null | undefined; - code?: string | null | undefined; - description?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Department$outboundSchema: z.ZodType< - Department$Outbound, - z.ZodTypeDef, - Department -> = z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Department$ { - /** @deprecated use `Department$inboundSchema` instead. */ - export const inboundSchema = Department$inboundSchema; - /** @deprecated use `Department$outboundSchema` instead. */ - export const outboundSchema = Department$outboundSchema; - /** @deprecated use `Department$Outbound` instead. */ - export type Outbound = Department$Outbound; -} - -export function departmentToJSON(department: Department): string { - return JSON.stringify(Department$outboundSchema.parse(department)); -} - export function departmentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/departmentinput.ts b/src/models/components/departmentinput.ts index 6a5a083d2..1421ba6c6 100644 --- a/src/models/components/departmentinput.ts +++ b/src/models/components/departmentinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -27,22 +23,6 @@ export type DepartmentInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const DepartmentInput$inboundSchema: z.ZodType< - DepartmentInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type DepartmentInput$Outbound = { name?: string | null | undefined; @@ -67,31 +47,8 @@ export const DepartmentInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DepartmentInput$ { - /** @deprecated use `DepartmentInput$inboundSchema` instead. */ - export const inboundSchema = DepartmentInput$inboundSchema; - /** @deprecated use `DepartmentInput$outboundSchema` instead. */ - export const outboundSchema = DepartmentInput$outboundSchema; - /** @deprecated use `DepartmentInput$Outbound` instead. */ - export type Outbound = DepartmentInput$Outbound; -} - export function departmentInputToJSON( departmentInput: DepartmentInput, ): string { return JSON.stringify(DepartmentInput$outboundSchema.parse(departmentInput)); } - -export function departmentInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DepartmentInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DepartmentInput' from JSON`, - ); -} diff --git a/src/models/components/deprecatedlinkedsupplier.ts b/src/models/components/deprecatedlinkedsupplier.ts index e8ec6cd68..9a7424457 100644 --- a/src/models/components/deprecatedlinkedsupplier.ts +++ b/src/models/components/deprecatedlinkedsupplier.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; +import { Address, Address$inboundSchema } from "./address.js"; /** * The supplier this entity is linked to. @@ -58,55 +53,6 @@ export const DeprecatedLinkedSupplier$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DeprecatedLinkedSupplier$Outbound = { - id?: string | undefined; - display_id?: string | null | undefined; - display_name?: string | null | undefined; - company_name?: string | null | undefined; - address?: Address$Outbound | undefined; -}; - -/** @internal */ -export const DeprecatedLinkedSupplier$outboundSchema: z.ZodType< - DeprecatedLinkedSupplier$Outbound, - z.ZodTypeDef, - DeprecatedLinkedSupplier -> = z.object({ - id: z.string().optional(), - displayId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - address: Address$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - displayName: "display_name", - companyName: "company_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeprecatedLinkedSupplier$ { - /** @deprecated use `DeprecatedLinkedSupplier$inboundSchema` instead. */ - export const inboundSchema = DeprecatedLinkedSupplier$inboundSchema; - /** @deprecated use `DeprecatedLinkedSupplier$outboundSchema` instead. */ - export const outboundSchema = DeprecatedLinkedSupplier$outboundSchema; - /** @deprecated use `DeprecatedLinkedSupplier$Outbound` instead. */ - export type Outbound = DeprecatedLinkedSupplier$Outbound; -} - -export function deprecatedLinkedSupplierToJSON( - deprecatedLinkedSupplier: DeprecatedLinkedSupplier, -): string { - return JSON.stringify( - DeprecatedLinkedSupplier$outboundSchema.parse(deprecatedLinkedSupplier), - ); -} - export function deprecatedLinkedSupplierFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/deprecatedlinkedsupplierinput.ts b/src/models/components/deprecatedlinkedsupplierinput.ts index f630a9625..194812377 100644 --- a/src/models/components/deprecatedlinkedsupplierinput.ts +++ b/src/models/components/deprecatedlinkedsupplierinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, - Address$inboundSchema, Address$Outbound, Address$outboundSchema, } from "./address.js"; @@ -27,20 +23,6 @@ export type DeprecatedLinkedSupplierInput = { address?: Address | undefined; }; -/** @internal */ -export const DeprecatedLinkedSupplierInput$inboundSchema: z.ZodType< - DeprecatedLinkedSupplierInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_name: z.nullable(z.string()).optional(), - address: Address$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "display_name": "displayName", - }); -}); - /** @internal */ export type DeprecatedLinkedSupplierInput$Outbound = { display_name?: string | null | undefined; @@ -61,19 +43,6 @@ export const DeprecatedLinkedSupplierInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeprecatedLinkedSupplierInput$ { - /** @deprecated use `DeprecatedLinkedSupplierInput$inboundSchema` instead. */ - export const inboundSchema = DeprecatedLinkedSupplierInput$inboundSchema; - /** @deprecated use `DeprecatedLinkedSupplierInput$outboundSchema` instead. */ - export const outboundSchema = DeprecatedLinkedSupplierInput$outboundSchema; - /** @deprecated use `DeprecatedLinkedSupplierInput$Outbound` instead. */ - export type Outbound = DeprecatedLinkedSupplierInput$Outbound; -} - export function deprecatedLinkedSupplierInputToJSON( deprecatedLinkedSupplierInput: DeprecatedLinkedSupplierInput, ): string { @@ -83,13 +52,3 @@ export function deprecatedLinkedSupplierInputToJSON( ), ); } - -export function deprecatedLinkedSupplierInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeprecatedLinkedSupplierInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeprecatedLinkedSupplierInput' from JSON`, - ); -} diff --git a/src/models/components/deprecatedlinkedtrackingcategory.ts b/src/models/components/deprecatedlinkedtrackingcategory.ts index 46be6c5b4..0a9e48a5d 100644 --- a/src/models/components/deprecatedlinkedtrackingcategory.ts +++ b/src/models/components/deprecatedlinkedtrackingcategory.ts @@ -30,7 +30,6 @@ export const DeprecatedLinkedTrackingCategory$inboundSchema: z.ZodType< id: z.string().optional(), name: z.nullable(z.string()).optional(), }); - /** @internal */ export type DeprecatedLinkedTrackingCategory$Outbound = { id?: string | undefined; @@ -47,19 +46,6 @@ export const DeprecatedLinkedTrackingCategory$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeprecatedLinkedTrackingCategory$ { - /** @deprecated use `DeprecatedLinkedTrackingCategory$inboundSchema` instead. */ - export const inboundSchema = DeprecatedLinkedTrackingCategory$inboundSchema; - /** @deprecated use `DeprecatedLinkedTrackingCategory$outboundSchema` instead. */ - export const outboundSchema = DeprecatedLinkedTrackingCategory$outboundSchema; - /** @deprecated use `DeprecatedLinkedTrackingCategory$Outbound` instead. */ - export type Outbound = DeprecatedLinkedTrackingCategory$Outbound; -} - export function deprecatedLinkedTrackingCategoryToJSON( deprecatedLinkedTrackingCategory: DeprecatedLinkedTrackingCategory, ): string { @@ -69,7 +55,6 @@ export function deprecatedLinkedTrackingCategoryToJSON( ), ); } - export function deprecatedLinkedTrackingCategoryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/drive.ts b/src/models/components/drive.ts index d3db532fe..0837fefd2 100644 --- a/src/models/components/drive.ts +++ b/src/models/components/drive.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Drive = { @@ -80,62 +78,6 @@ export const Drive$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Drive$Outbound = { - id: string; - name: string; - description?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Drive$outboundSchema: z.ZodType< - Drive$Outbound, - z.ZodTypeDef, - Drive -> = z.object({ - id: z.string(), - name: z.string(), - description: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Drive$ { - /** @deprecated use `Drive$inboundSchema` instead. */ - export const inboundSchema = Drive$inboundSchema; - /** @deprecated use `Drive$outboundSchema` instead. */ - export const outboundSchema = Drive$outboundSchema; - /** @deprecated use `Drive$Outbound` instead. */ - export type Outbound = Drive$Outbound; -} - -export function driveToJSON(drive: Drive): string { - return JSON.stringify(Drive$outboundSchema.parse(drive)); -} - export function driveFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/drivegroup.ts b/src/models/components/drivegroup.ts index e87ccdc07..22a1b832e 100644 --- a/src/models/components/drivegroup.ts +++ b/src/models/components/drivegroup.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type DriveGroup = { @@ -89,65 +87,6 @@ export const DriveGroup$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type DriveGroup$Outbound = { - id: string; - name: string; - display_name?: string | null | undefined; - description?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const DriveGroup$outboundSchema: z.ZodType< - DriveGroup$Outbound, - z.ZodTypeDef, - DriveGroup -> = z.object({ - id: z.string(), - name: z.string(), - displayName: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayName: "display_name", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DriveGroup$ { - /** @deprecated use `DriveGroup$inboundSchema` instead. */ - export const inboundSchema = DriveGroup$inboundSchema; - /** @deprecated use `DriveGroup$outboundSchema` instead. */ - export const outboundSchema = DriveGroup$outboundSchema; - /** @deprecated use `DriveGroup$Outbound` instead. */ - export type Outbound = DriveGroup$Outbound; -} - -export function driveGroupToJSON(driveGroup: DriveGroup): string { - return JSON.stringify(DriveGroup$outboundSchema.parse(driveGroup)); -} - export function driveGroupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/drivegroupinput.ts b/src/models/components/drivegroupinput.ts index e4b28a031..b6a8dfdc5 100644 --- a/src/models/components/drivegroupinput.ts +++ b/src/models/components/drivegroupinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -33,23 +29,6 @@ export type DriveGroupInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const DriveGroupInput$inboundSchema: z.ZodType< - DriveGroupInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - display_name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_name": "displayName", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type DriveGroupInput$Outbound = { name: string; @@ -75,31 +54,8 @@ export const DriveGroupInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DriveGroupInput$ { - /** @deprecated use `DriveGroupInput$inboundSchema` instead. */ - export const inboundSchema = DriveGroupInput$inboundSchema; - /** @deprecated use `DriveGroupInput$outboundSchema` instead. */ - export const outboundSchema = DriveGroupInput$outboundSchema; - /** @deprecated use `DriveGroupInput$Outbound` instead. */ - export type Outbound = DriveGroupInput$Outbound; -} - export function driveGroupInputToJSON( driveGroupInput: DriveGroupInput, ): string { return JSON.stringify(DriveGroupInput$outboundSchema.parse(driveGroupInput)); } - -export function driveGroupInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DriveGroupInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DriveGroupInput' from JSON`, - ); -} diff --git a/src/models/components/drivegroupsfilter.ts b/src/models/components/drivegroupsfilter.ts index 06f69c538..5d158fd1d 100644 --- a/src/models/components/drivegroupsfilter.ts +++ b/src/models/components/drivegroupsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DriveGroupsFilter = { /** @@ -15,19 +12,6 @@ export type DriveGroupsFilter = { parentGroupId?: string | undefined; }; -/** @internal */ -export const DriveGroupsFilter$inboundSchema: z.ZodType< - DriveGroupsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - parent_group_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "parent_group_id": "parentGroupId", - }); -}); - /** @internal */ export type DriveGroupsFilter$Outbound = { parent_group_id?: string | undefined; @@ -46,19 +30,6 @@ export const DriveGroupsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DriveGroupsFilter$ { - /** @deprecated use `DriveGroupsFilter$inboundSchema` instead. */ - export const inboundSchema = DriveGroupsFilter$inboundSchema; - /** @deprecated use `DriveGroupsFilter$outboundSchema` instead. */ - export const outboundSchema = DriveGroupsFilter$outboundSchema; - /** @deprecated use `DriveGroupsFilter$Outbound` instead. */ - export type Outbound = DriveGroupsFilter$Outbound; -} - export function driveGroupsFilterToJSON( driveGroupsFilter: DriveGroupsFilter, ): string { @@ -66,13 +37,3 @@ export function driveGroupsFilterToJSON( DriveGroupsFilter$outboundSchema.parse(driveGroupsFilter), ); } - -export function driveGroupsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DriveGroupsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DriveGroupsFilter' from JSON`, - ); -} diff --git a/src/models/components/driveinput.ts b/src/models/components/driveinput.ts index f0f0ecd73..092d1c79b 100644 --- a/src/models/components/driveinput.ts +++ b/src/models/components/driveinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -29,21 +25,6 @@ export type DriveInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const DriveInput$inboundSchema: z.ZodType< - DriveInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - description: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type DriveInput$Outbound = { name: string; @@ -66,29 +47,6 @@ export const DriveInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DriveInput$ { - /** @deprecated use `DriveInput$inboundSchema` instead. */ - export const inboundSchema = DriveInput$inboundSchema; - /** @deprecated use `DriveInput$outboundSchema` instead. */ - export const outboundSchema = DriveInput$outboundSchema; - /** @deprecated use `DriveInput$Outbound` instead. */ - export type Outbound = DriveInput$Outbound; -} - export function driveInputToJSON(driveInput: DriveInput): string { return JSON.stringify(DriveInput$outboundSchema.parse(driveInput)); } - -export function driveInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DriveInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DriveInput' from JSON`, - ); -} diff --git a/src/models/components/drivesfilter.ts b/src/models/components/drivesfilter.ts index 17399d25f..02cce20b1 100644 --- a/src/models/components/drivesfilter.ts +++ b/src/models/components/drivesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DrivesFilter = { /** @@ -15,19 +12,6 @@ export type DrivesFilter = { groupId?: string | undefined; }; -/** @internal */ -export const DrivesFilter$inboundSchema: z.ZodType< - DrivesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - group_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "group_id": "groupId", - }); -}); - /** @internal */ export type DrivesFilter$Outbound = { group_id?: string | undefined; @@ -46,29 +30,6 @@ export const DrivesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DrivesFilter$ { - /** @deprecated use `DrivesFilter$inboundSchema` instead. */ - export const inboundSchema = DrivesFilter$inboundSchema; - /** @deprecated use `DrivesFilter$outboundSchema` instead. */ - export const outboundSchema = DrivesFilter$outboundSchema; - /** @deprecated use `DrivesFilter$Outbound` instead. */ - export type Outbound = DrivesFilter$Outbound; -} - export function drivesFilterToJSON(drivesFilter: DrivesFilter): string { return JSON.stringify(DrivesFilter$outboundSchema.parse(drivesFilter)); } - -export function drivesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DrivesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DrivesFilter' from JSON`, - ); -} diff --git a/src/models/components/ecommerceaddress.ts b/src/models/components/ecommerceaddress.ts index 352967ba2..652ce5398 100644 --- a/src/models/components/ecommerceaddress.ts +++ b/src/models/components/ecommerceaddress.ts @@ -62,58 +62,6 @@ export const EcommerceAddress$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceAddress$Outbound = { - line1?: string | null | undefined; - line2?: string | null | undefined; - company_name?: string | null | undefined; - city?: string | null | undefined; - state?: string | null | undefined; - postal_code?: string | null | undefined; - country?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceAddress$outboundSchema: z.ZodType< - EcommerceAddress$Outbound, - z.ZodTypeDef, - EcommerceAddress -> = z.object({ - line1: z.nullable(z.string()).optional(), - line2: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - city: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - postalCode: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - companyName: "company_name", - postalCode: "postal_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceAddress$ { - /** @deprecated use `EcommerceAddress$inboundSchema` instead. */ - export const inboundSchema = EcommerceAddress$inboundSchema; - /** @deprecated use `EcommerceAddress$outboundSchema` instead. */ - export const outboundSchema = EcommerceAddress$outboundSchema; - /** @deprecated use `EcommerceAddress$Outbound` instead. */ - export type Outbound = EcommerceAddress$Outbound; -} - -export function ecommerceAddressToJSON( - ecommerceAddress: EcommerceAddress, -): string { - return JSON.stringify( - EcommerceAddress$outboundSchema.parse(ecommerceAddress), - ); -} - export function ecommerceAddressFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommercecustomer.ts b/src/models/components/ecommercecustomer.ts index 8fbd8607d..8e70f65de 100644 --- a/src/models/components/ecommercecustomer.ts +++ b/src/models/components/ecommercecustomer.ts @@ -8,29 +8,13 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { Email, Email$inboundSchema } from "./email.js"; import { LinkedEcommerceOrder, LinkedEcommerceOrder$inboundSchema, - LinkedEcommerceOrder$Outbound, - LinkedEcommerceOrder$outboundSchema, } from "./linkedecommerceorder.js"; -import { - PhoneNumber, - PhoneNumber$inboundSchema, - PhoneNumber$Outbound, - PhoneNumber$outboundSchema, -} from "./phonenumber.js"; +import { PhoneNumber, PhoneNumber$inboundSchema } from "./phonenumber.js"; /** * The current status of the customer @@ -144,43 +128,11 @@ export const CustomerStatus$inboundSchema: z.ZodNativeEnum< typeof CustomerStatus > = z.nativeEnum(CustomerStatus); -/** @internal */ -export const CustomerStatus$outboundSchema: z.ZodNativeEnum< - typeof CustomerStatus -> = CustomerStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomerStatus$ { - /** @deprecated use `CustomerStatus$inboundSchema` instead. */ - export const inboundSchema = CustomerStatus$inboundSchema; - /** @deprecated use `CustomerStatus$outboundSchema` instead. */ - export const outboundSchema = CustomerStatus$outboundSchema; -} - /** @internal */ export const EcommerceCustomerType$inboundSchema: z.ZodNativeEnum< typeof EcommerceCustomerType > = z.nativeEnum(EcommerceCustomerType); -/** @internal */ -export const EcommerceCustomerType$outboundSchema: z.ZodNativeEnum< - typeof EcommerceCustomerType -> = EcommerceCustomerType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomerType$ { - /** @deprecated use `EcommerceCustomerType$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomerType$inboundSchema; - /** @deprecated use `EcommerceCustomerType$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomerType$outboundSchema; -} - /** @internal */ export const Addresses$inboundSchema: z.ZodType< Addresses, @@ -201,55 +153,6 @@ export const Addresses$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Addresses$Outbound = { - type?: string | undefined; - id?: string | null | undefined; - line1?: string | null | undefined; - line2?: string | null | undefined; - city?: string | null | undefined; - state?: string | null | undefined; - postal_code?: string | null | undefined; - country?: string | null | undefined; -}; - -/** @internal */ -export const Addresses$outboundSchema: z.ZodType< - Addresses$Outbound, - z.ZodTypeDef, - Addresses -> = z.object({ - type: EcommerceCustomerType$outboundSchema.optional(), - id: z.nullable(z.string()).optional(), - line1: z.nullable(z.string()).optional(), - line2: z.nullable(z.string()).optional(), - city: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - postalCode: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - postalCode: "postal_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Addresses$ { - /** @deprecated use `Addresses$inboundSchema` instead. */ - export const inboundSchema = Addresses$inboundSchema; - /** @deprecated use `Addresses$outboundSchema` instead. */ - export const outboundSchema = Addresses$outboundSchema; - /** @deprecated use `Addresses$Outbound` instead. */ - export type Outbound = Addresses$Outbound; -} - -export function addressesToJSON(addresses: Addresses): string { - return JSON.stringify(Addresses$outboundSchema.parse(addresses)); -} - export function addressesFromJSON( jsonString: string, ): SafeParseResult { @@ -296,77 +199,6 @@ export const EcommerceCustomer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceCustomer$Outbound = { - id: string; - name?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - company_name?: string | null | undefined; - status?: string | null | undefined; - currency?: string | null | undefined; - emails?: Array | null | undefined; - phone_numbers?: Array | null | undefined; - addresses?: Array | undefined; - orders?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceCustomer$outboundSchema: z.ZodType< - EcommerceCustomer$Outbound, - z.ZodTypeDef, - EcommerceCustomer -> = z.object({ - id: z.string(), - name: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - status: z.nullable(CustomerStatus$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - emails: z.nullable(z.array(Email$outboundSchema)).optional(), - phoneNumbers: z.nullable(z.array(PhoneNumber$outboundSchema)).optional(), - addresses: z.array(z.lazy(() => Addresses$outboundSchema)).optional(), - orders: z.array(LinkedEcommerceOrder$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - companyName: "company_name", - phoneNumbers: "phone_numbers", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomer$ { - /** @deprecated use `EcommerceCustomer$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomer$inboundSchema; - /** @deprecated use `EcommerceCustomer$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomer$outboundSchema; - /** @deprecated use `EcommerceCustomer$Outbound` instead. */ - export type Outbound = EcommerceCustomer$Outbound; -} - -export function ecommerceCustomerToJSON( - ecommerceCustomer: EcommerceCustomer, -): string { - return JSON.stringify( - EcommerceCustomer$outboundSchema.parse(ecommerceCustomer), - ); -} - export function ecommerceCustomerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommercecustomersfilter.ts b/src/models/components/ecommercecustomersfilter.ts index 3722b8e15..f6ac4afe3 100644 --- a/src/models/components/ecommercecustomersfilter.ts +++ b/src/models/components/ecommercecustomersfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type EcommerceCustomersFilter = { /** @@ -19,20 +16,6 @@ export type EcommerceCustomersFilter = { phoneNumber?: string | undefined; }; -/** @internal */ -export const EcommerceCustomersFilter$inboundSchema: z.ZodType< - EcommerceCustomersFilter, - z.ZodTypeDef, - unknown -> = z.object({ - email: z.string().optional(), - phone_number: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "phone_number": "phoneNumber", - }); -}); - /** @internal */ export type EcommerceCustomersFilter$Outbound = { email?: string | undefined; @@ -53,19 +36,6 @@ export const EcommerceCustomersFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersFilter$ { - /** @deprecated use `EcommerceCustomersFilter$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersFilter$inboundSchema; - /** @deprecated use `EcommerceCustomersFilter$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersFilter$outboundSchema; - /** @deprecated use `EcommerceCustomersFilter$Outbound` instead. */ - export type Outbound = EcommerceCustomersFilter$Outbound; -} - export function ecommerceCustomersFilterToJSON( ecommerceCustomersFilter: EcommerceCustomersFilter, ): string { @@ -73,13 +43,3 @@ export function ecommerceCustomersFilterToJSON( EcommerceCustomersFilter$outboundSchema.parse(ecommerceCustomersFilter), ); } - -export function ecommerceCustomersFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceCustomersFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceCustomersFilter' from JSON`, - ); -} diff --git a/src/models/components/ecommercediscount.ts b/src/models/components/ecommercediscount.ts index 2a88ca61a..0fd5e3cff 100644 --- a/src/models/components/ecommercediscount.ts +++ b/src/models/components/ecommercediscount.ts @@ -36,45 +36,6 @@ export const EcommerceDiscount$inboundSchema: z.ZodType< percentage: z.nullable(z.string()).optional(), }); -/** @internal */ -export type EcommerceDiscount$Outbound = { - code?: string | null | undefined; - amount?: string | null | undefined; - percentage?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceDiscount$outboundSchema: z.ZodType< - EcommerceDiscount$Outbound, - z.ZodTypeDef, - EcommerceDiscount -> = z.object({ - code: z.nullable(z.string()).optional(), - amount: z.nullable(z.string()).optional(), - percentage: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceDiscount$ { - /** @deprecated use `EcommerceDiscount$inboundSchema` instead. */ - export const inboundSchema = EcommerceDiscount$inboundSchema; - /** @deprecated use `EcommerceDiscount$outboundSchema` instead. */ - export const outboundSchema = EcommerceDiscount$outboundSchema; - /** @deprecated use `EcommerceDiscount$Outbound` instead. */ - export type Outbound = EcommerceDiscount$Outbound; -} - -export function ecommerceDiscountToJSON( - ecommerceDiscount: EcommerceDiscount, -): string { - return JSON.stringify( - EcommerceDiscount$outboundSchema.parse(ecommerceDiscount), - ); -} - export function ecommerceDiscountFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommerceorder.ts b/src/models/components/ecommerceorder.ts index 6dbf985ae..c2d15670e 100644 --- a/src/models/components/ecommerceorder.ts +++ b/src/models/components/ecommerceorder.ts @@ -8,52 +8,32 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; import { EcommerceAddress, EcommerceAddress$inboundSchema, - EcommerceAddress$Outbound, - EcommerceAddress$outboundSchema, } from "./ecommerceaddress.js"; import { EcommerceDiscount, EcommerceDiscount$inboundSchema, - EcommerceDiscount$Outbound, - EcommerceDiscount$outboundSchema, } from "./ecommercediscount.js"; import { EcommerceOrderLineItem, EcommerceOrderLineItem$inboundSchema, - EcommerceOrderLineItem$Outbound, - EcommerceOrderLineItem$outboundSchema, } from "./ecommerceorderlineitem.js"; import { EcommerceOrderRefund, EcommerceOrderRefund$inboundSchema, - EcommerceOrderRefund$Outbound, - EcommerceOrderRefund$outboundSchema, } from "./ecommerceorderrefund.js"; import { EcommerceOrderStatus, EcommerceOrderStatus$inboundSchema, - EcommerceOrderStatus$outboundSchema, } from "./ecommerceorderstatus.js"; import { LinkedEcommerceCustomer, LinkedEcommerceCustomer$inboundSchema, - LinkedEcommerceCustomer$Outbound, - LinkedEcommerceCustomer$outboundSchema, } from "./linkedecommercecustomer.js"; -import { - TrackingItem, - TrackingItem$inboundSchema, - TrackingItem$Outbound, - TrackingItem$outboundSchema, -} from "./trackingitem.js"; +import { TrackingItem, TrackingItem$inboundSchema } from "./trackingitem.js"; /** * Current payment status of the order. @@ -188,43 +168,11 @@ export const EcommerceOrderPaymentStatus$inboundSchema: z.ZodNativeEnum< typeof EcommerceOrderPaymentStatus > = z.nativeEnum(EcommerceOrderPaymentStatus); -/** @internal */ -export const EcommerceOrderPaymentStatus$outboundSchema: z.ZodNativeEnum< - typeof EcommerceOrderPaymentStatus -> = EcommerceOrderPaymentStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrderPaymentStatus$ { - /** @deprecated use `EcommerceOrderPaymentStatus$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrderPaymentStatus$inboundSchema; - /** @deprecated use `EcommerceOrderPaymentStatus$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrderPaymentStatus$outboundSchema; -} - /** @internal */ export const FulfillmentStatus$inboundSchema: z.ZodNativeEnum< typeof FulfillmentStatus > = z.nativeEnum(FulfillmentStatus); -/** @internal */ -export const FulfillmentStatus$outboundSchema: z.ZodNativeEnum< - typeof FulfillmentStatus -> = FulfillmentStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FulfillmentStatus$ { - /** @deprecated use `FulfillmentStatus$inboundSchema` instead. */ - export const inboundSchema = FulfillmentStatus$inboundSchema; - /** @deprecated use `FulfillmentStatus$outboundSchema` instead. */ - export const outboundSchema = FulfillmentStatus$outboundSchema; -} - /** @internal */ export const EcommerceOrder$inboundSchema: z.ZodType< EcommerceOrder, @@ -283,106 +231,6 @@ export const EcommerceOrder$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceOrder$Outbound = { - id: string; - order_number?: string | null | undefined; - currency?: string | null | undefined; - discounts?: Array | undefined; - sub_total?: string | null | undefined; - shipping_cost?: string | null | undefined; - coupon_discount?: string | null | undefined; - total_discount?: string | null | undefined; - total_tax?: string | null | undefined; - total_amount?: string | null | undefined; - refunded_amount?: string | null | undefined; - status?: string | null | undefined; - payment_status?: string | null | undefined; - fulfillment_status?: string | null | undefined; - payment_method?: string | null | undefined; - customer?: LinkedEcommerceCustomer$Outbound | undefined; - billing_address?: EcommerceAddress$Outbound | undefined; - shipping_address?: EcommerceAddress$Outbound | undefined; - tracking?: Array | undefined; - line_items?: Array | undefined; - note?: string | null | undefined; - refunds?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceOrder$outboundSchema: z.ZodType< - EcommerceOrder$Outbound, - z.ZodTypeDef, - EcommerceOrder -> = z.object({ - id: z.string(), - orderNumber: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - discounts: z.array(EcommerceDiscount$outboundSchema).optional(), - subTotal: z.nullable(z.string()).optional(), - shippingCost: z.nullable(z.string()).optional(), - couponDiscount: z.nullable(z.string()).optional(), - totalDiscount: z.nullable(z.string()).optional(), - totalTax: z.nullable(z.string()).optional(), - totalAmount: z.nullable(z.string()).optional(), - refundedAmount: z.nullable(z.string()).optional(), - status: z.nullable(EcommerceOrderStatus$outboundSchema).optional(), - paymentStatus: z.nullable(EcommerceOrderPaymentStatus$outboundSchema) - .optional(), - fulfillmentStatus: z.nullable(FulfillmentStatus$outboundSchema).optional(), - paymentMethod: z.nullable(z.string()).optional(), - customer: LinkedEcommerceCustomer$outboundSchema.optional(), - billingAddress: EcommerceAddress$outboundSchema.optional(), - shippingAddress: EcommerceAddress$outboundSchema.optional(), - tracking: z.array(TrackingItem$outboundSchema).optional(), - lineItems: z.array(EcommerceOrderLineItem$outboundSchema).optional(), - note: z.nullable(z.string()).optional(), - refunds: z.array(EcommerceOrderRefund$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - orderNumber: "order_number", - subTotal: "sub_total", - shippingCost: "shipping_cost", - couponDiscount: "coupon_discount", - totalDiscount: "total_discount", - totalTax: "total_tax", - totalAmount: "total_amount", - refundedAmount: "refunded_amount", - paymentStatus: "payment_status", - fulfillmentStatus: "fulfillment_status", - paymentMethod: "payment_method", - billingAddress: "billing_address", - shippingAddress: "shipping_address", - lineItems: "line_items", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrder$ { - /** @deprecated use `EcommerceOrder$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrder$inboundSchema; - /** @deprecated use `EcommerceOrder$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrder$outboundSchema; - /** @deprecated use `EcommerceOrder$Outbound` instead. */ - export type Outbound = EcommerceOrder$Outbound; -} - -export function ecommerceOrderToJSON(ecommerceOrder: EcommerceOrder): string { - return JSON.stringify(EcommerceOrder$outboundSchema.parse(ecommerceOrder)); -} - export function ecommerceOrderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommerceorderlineitem.ts b/src/models/components/ecommerceorderlineitem.ts index 103602acc..60273527c 100644 --- a/src/models/components/ecommerceorderlineitem.ts +++ b/src/models/components/ecommerceorderlineitem.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceDiscount, EcommerceDiscount$inboundSchema, - EcommerceDiscount$Outbound, - EcommerceDiscount$outboundSchema, } from "./ecommercediscount.js"; export type Options = { @@ -105,41 +103,6 @@ export const Options$inboundSchema: z.ZodType = value: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Options$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - value?: string | null | undefined; -}; - -/** @internal */ -export const Options$outboundSchema: z.ZodType< - Options$Outbound, - z.ZodTypeDef, - Options -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - value: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Options$ { - /** @deprecated use `Options$inboundSchema` instead. */ - export const inboundSchema = Options$inboundSchema; - /** @deprecated use `Options$outboundSchema` instead. */ - export const outboundSchema = Options$outboundSchema; - /** @deprecated use `Options$Outbound` instead. */ - export type Outbound = Options$Outbound; -} - -export function optionsToJSON(options: Options): string { - return JSON.stringify(Options$outboundSchema.parse(options)); -} - export function optionsFromJSON( jsonString: string, ): SafeParseResult { @@ -188,86 +151,6 @@ export const EcommerceOrderLineItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceOrderLineItem$Outbound = { - id?: string | null | undefined; - product_id?: string | null | undefined; - variant_id?: string | null | undefined; - sku?: string | null | undefined; - name: string | null; - description?: string | null | undefined; - options?: Array | undefined; - quantity: string | null; - unit_price?: string | null | undefined; - tax_rate?: string | null | undefined; - tax_amount?: string | null | undefined; - is_refunded?: boolean | null | undefined; - refunded_amount?: string | null | undefined; - refunded_quantity?: string | null | undefined; - sub_total?: string | null | undefined; - total_amount?: string | null | undefined; - discounts?: Array | undefined; -}; - -/** @internal */ -export const EcommerceOrderLineItem$outboundSchema: z.ZodType< - EcommerceOrderLineItem$Outbound, - z.ZodTypeDef, - EcommerceOrderLineItem -> = z.object({ - id: z.nullable(z.string()).optional(), - productId: z.nullable(z.string()).optional(), - variantId: z.nullable(z.string()).optional(), - sku: z.nullable(z.string()).optional(), - name: z.nullable(z.string()), - description: z.nullable(z.string()).optional(), - options: z.array(z.lazy(() => Options$outboundSchema)).optional(), - quantity: z.nullable(z.string()), - unitPrice: z.nullable(z.string()).optional(), - taxRate: z.nullable(z.string()).optional(), - taxAmount: z.nullable(z.string()).optional(), - isRefunded: z.nullable(z.boolean()).optional(), - refundedAmount: z.nullable(z.string()).optional(), - refundedQuantity: z.nullable(z.string()).optional(), - subTotal: z.nullable(z.string()).optional(), - totalAmount: z.nullable(z.string()).optional(), - discounts: z.array(EcommerceDiscount$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - productId: "product_id", - variantId: "variant_id", - unitPrice: "unit_price", - taxRate: "tax_rate", - taxAmount: "tax_amount", - isRefunded: "is_refunded", - refundedAmount: "refunded_amount", - refundedQuantity: "refunded_quantity", - subTotal: "sub_total", - totalAmount: "total_amount", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrderLineItem$ { - /** @deprecated use `EcommerceOrderLineItem$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrderLineItem$inboundSchema; - /** @deprecated use `EcommerceOrderLineItem$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrderLineItem$outboundSchema; - /** @deprecated use `EcommerceOrderLineItem$Outbound` instead. */ - export type Outbound = EcommerceOrderLineItem$Outbound; -} - -export function ecommerceOrderLineItemToJSON( - ecommerceOrderLineItem: EcommerceOrderLineItem, -): string { - return JSON.stringify( - EcommerceOrderLineItem$outboundSchema.parse(ecommerceOrderLineItem), - ); -} - export function ecommerceOrderLineItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommerceorderrefund.ts b/src/models/components/ecommerceorderrefund.ts index 151733029..ab1562312 100644 --- a/src/models/components/ecommerceorderrefund.ts +++ b/src/models/components/ecommerceorderrefund.ts @@ -7,11 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; /** * A refund for an ecommerce order. @@ -58,53 +54,6 @@ export const EcommerceOrderRefund$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceOrderRefund$Outbound = { - id?: string | null | undefined; - amount?: string | undefined; - currency?: string | null | undefined; - reason?: string | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceOrderRefund$outboundSchema: z.ZodType< - EcommerceOrderRefund$Outbound, - z.ZodTypeDef, - EcommerceOrderRefund -> = z.object({ - id: z.nullable(z.string()).optional(), - amount: z.string().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - reason: z.string().optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrderRefund$ { - /** @deprecated use `EcommerceOrderRefund$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrderRefund$inboundSchema; - /** @deprecated use `EcommerceOrderRefund$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrderRefund$outboundSchema; - /** @deprecated use `EcommerceOrderRefund$Outbound` instead. */ - export type Outbound = EcommerceOrderRefund$Outbound; -} - -export function ecommerceOrderRefundToJSON( - ecommerceOrderRefund: EcommerceOrderRefund, -): string { - return JSON.stringify( - EcommerceOrderRefund$outboundSchema.parse(ecommerceOrderRefund), - ); -} - export function ecommerceOrderRefundFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommerceordersfilter.ts b/src/models/components/ecommerceordersfilter.ts index 010e1bd75..2b05d8084 100644 --- a/src/models/components/ecommerceordersfilter.ts +++ b/src/models/components/ecommerceordersfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type EcommerceOrdersFilter = { /** @@ -27,24 +24,6 @@ export type EcommerceOrdersFilter = { createdSince?: string | undefined; }; -/** @internal */ -export const EcommerceOrdersFilter$inboundSchema: z.ZodType< - EcommerceOrdersFilter, - z.ZodTypeDef, - unknown -> = z.object({ - email: z.string().optional(), - customer_id: z.string().optional(), - updated_since: z.string().optional(), - created_since: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "customer_id": "customerId", - "updated_since": "updatedSince", - "created_since": "createdSince", - }); -}); - /** @internal */ export type EcommerceOrdersFilter$Outbound = { email?: string | undefined; @@ -71,19 +50,6 @@ export const EcommerceOrdersFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersFilter$ { - /** @deprecated use `EcommerceOrdersFilter$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersFilter$inboundSchema; - /** @deprecated use `EcommerceOrdersFilter$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersFilter$outboundSchema; - /** @deprecated use `EcommerceOrdersFilter$Outbound` instead. */ - export type Outbound = EcommerceOrdersFilter$Outbound; -} - export function ecommerceOrdersFilterToJSON( ecommerceOrdersFilter: EcommerceOrdersFilter, ): string { @@ -91,13 +57,3 @@ export function ecommerceOrdersFilterToJSON( EcommerceOrdersFilter$outboundSchema.parse(ecommerceOrdersFilter), ); } - -export function ecommerceOrdersFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceOrdersFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceOrdersFilter' from JSON`, - ); -} diff --git a/src/models/components/ecommerceorderstatus.ts b/src/models/components/ecommerceorderstatus.ts index fcc163578..86133afbd 100644 --- a/src/models/components/ecommerceorderstatus.ts +++ b/src/models/components/ecommerceorderstatus.ts @@ -25,19 +25,3 @@ export type EcommerceOrderStatus = ClosedEnum; export const EcommerceOrderStatus$inboundSchema: z.ZodNativeEnum< typeof EcommerceOrderStatus > = z.nativeEnum(EcommerceOrderStatus); - -/** @internal */ -export const EcommerceOrderStatus$outboundSchema: z.ZodNativeEnum< - typeof EcommerceOrderStatus -> = EcommerceOrderStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrderStatus$ { - /** @deprecated use `EcommerceOrderStatus$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrderStatus$inboundSchema; - /** @deprecated use `EcommerceOrderStatus$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrderStatus$outboundSchema; -} diff --git a/src/models/components/ecommerceproduct.ts b/src/models/components/ecommerceproduct.ts index f082e09de..9796e6fbb 100644 --- a/src/models/components/ecommerceproduct.ts +++ b/src/models/components/ecommerceproduct.ts @@ -187,22 +187,6 @@ export const ProductStatus$inboundSchema: z.ZodNativeEnum< typeof ProductStatus > = z.nativeEnum(ProductStatus); -/** @internal */ -export const ProductStatus$outboundSchema: z.ZodNativeEnum< - typeof ProductStatus -> = ProductStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProductStatus$ { - /** @deprecated use `ProductStatus$inboundSchema` instead. */ - export const inboundSchema = ProductStatus$inboundSchema; - /** @deprecated use `ProductStatus$outboundSchema` instead. */ - export const outboundSchema = ProductStatus$outboundSchema; -} - /** @internal */ export const Images$inboundSchema: z.ZodType = z .object({ @@ -210,39 +194,6 @@ export const Images$inboundSchema: z.ZodType = z url: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Images$Outbound = { - id?: string | null | undefined; - url?: string | null | undefined; -}; - -/** @internal */ -export const Images$outboundSchema: z.ZodType< - Images$Outbound, - z.ZodTypeDef, - Images -> = z.object({ - id: z.nullable(z.string()).optional(), - url: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Images$ { - /** @deprecated use `Images$inboundSchema` instead. */ - export const inboundSchema = Images$inboundSchema; - /** @deprecated use `Images$outboundSchema` instead. */ - export const outboundSchema = Images$outboundSchema; - /** @deprecated use `Images$Outbound` instead. */ - export type Outbound = Images$Outbound; -} - -export function imagesToJSON(images: Images): string { - return JSON.stringify(Images$outboundSchema.parse(images)); -} - export function imagesFromJSON( jsonString: string, ): SafeParseResult { @@ -264,45 +215,6 @@ export const EcommerceProductOptions$inboundSchema: z.ZodType< values: z.array(z.nullable(z.string())).optional(), }); -/** @internal */ -export type EcommerceProductOptions$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - values?: Array | undefined; -}; - -/** @internal */ -export const EcommerceProductOptions$outboundSchema: z.ZodType< - EcommerceProductOptions$Outbound, - z.ZodTypeDef, - EcommerceProductOptions -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - values: z.array(z.nullable(z.string())).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductOptions$ { - /** @deprecated use `EcommerceProductOptions$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductOptions$inboundSchema; - /** @deprecated use `EcommerceProductOptions$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductOptions$outboundSchema; - /** @deprecated use `EcommerceProductOptions$Outbound` instead. */ - export type Outbound = EcommerceProductOptions$Outbound; -} - -export function ecommerceProductOptionsToJSON( - ecommerceProductOptions: EcommerceProductOptions, -): string { - return JSON.stringify( - EcommerceProductOptions$outboundSchema.parse(ecommerceProductOptions), - ); -} - export function ecommerceProductOptionsFromJSON( jsonString: string, ): SafeParseResult { @@ -324,47 +236,6 @@ export const EcommerceProductVariantsOptions$inboundSchema: z.ZodType< value: z.nullable(z.string()).optional(), }); -/** @internal */ -export type EcommerceProductVariantsOptions$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - value?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceProductVariantsOptions$outboundSchema: z.ZodType< - EcommerceProductVariantsOptions$Outbound, - z.ZodTypeDef, - EcommerceProductVariantsOptions -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - value: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductVariantsOptions$ { - /** @deprecated use `EcommerceProductVariantsOptions$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductVariantsOptions$inboundSchema; - /** @deprecated use `EcommerceProductVariantsOptions$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductVariantsOptions$outboundSchema; - /** @deprecated use `EcommerceProductVariantsOptions$Outbound` instead. */ - export type Outbound = EcommerceProductVariantsOptions$Outbound; -} - -export function ecommerceProductVariantsOptionsToJSON( - ecommerceProductVariantsOptions: EcommerceProductVariantsOptions, -): string { - return JSON.stringify( - EcommerceProductVariantsOptions$outboundSchema.parse( - ecommerceProductVariantsOptions, - ), - ); -} - export function ecommerceProductVariantsOptionsFromJSON( jsonString: string, ): SafeParseResult { @@ -385,43 +256,6 @@ export const EcommerceProductImages$inboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** @internal */ -export type EcommerceProductImages$Outbound = { - id?: string | null | undefined; - url?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceProductImages$outboundSchema: z.ZodType< - EcommerceProductImages$Outbound, - z.ZodTypeDef, - EcommerceProductImages -> = z.object({ - id: z.nullable(z.string()).optional(), - url: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductImages$ { - /** @deprecated use `EcommerceProductImages$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductImages$inboundSchema; - /** @deprecated use `EcommerceProductImages$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductImages$outboundSchema; - /** @deprecated use `EcommerceProductImages$Outbound` instead. */ - export type Outbound = EcommerceProductImages$Outbound; -} - -export function ecommerceProductImagesToJSON( - ecommerceProductImages: EcommerceProductImages, -): string { - return JSON.stringify( - EcommerceProductImages$outboundSchema.parse(ecommerceProductImages), - ); -} - export function ecommerceProductImagesFromJSON( jsonString: string, ): SafeParseResult { @@ -456,60 +290,6 @@ export const Variants$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Variants$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - price?: string | null | undefined; - sku?: string | null | undefined; - inventory_quantity?: string | null | undefined; - weight?: string | null | undefined; - weight_unit?: string | null | undefined; - options?: Array | undefined; - images?: Array | undefined; -}; - -/** @internal */ -export const Variants$outboundSchema: z.ZodType< - Variants$Outbound, - z.ZodTypeDef, - Variants -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - price: z.nullable(z.string()).optional(), - sku: z.nullable(z.string()).optional(), - inventoryQuantity: z.nullable(z.string()).optional(), - weight: z.nullable(z.string()).optional(), - weightUnit: z.nullable(z.string()).optional(), - options: z.array(z.lazy(() => EcommerceProductVariantsOptions$outboundSchema)) - .optional(), - images: z.array(z.lazy(() => EcommerceProductImages$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - inventoryQuantity: "inventory_quantity", - weightUnit: "weight_unit", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Variants$ { - /** @deprecated use `Variants$inboundSchema` instead. */ - export const inboundSchema = Variants$inboundSchema; - /** @deprecated use `Variants$outboundSchema` instead. */ - export const outboundSchema = Variants$outboundSchema; - /** @deprecated use `Variants$Outbound` instead. */ - export type Outbound = Variants$Outbound; -} - -export function variantsToJSON(variants: Variants): string { - return JSON.stringify(Variants$outboundSchema.parse(variants)); -} - export function variantsFromJSON( jsonString: string, ): SafeParseResult { @@ -530,43 +310,6 @@ export const EcommerceProductCategories$inboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** @internal */ -export type EcommerceProductCategories$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceProductCategories$outboundSchema: z.ZodType< - EcommerceProductCategories$Outbound, - z.ZodTypeDef, - EcommerceProductCategories -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductCategories$ { - /** @deprecated use `EcommerceProductCategories$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductCategories$inboundSchema; - /** @deprecated use `EcommerceProductCategories$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductCategories$outboundSchema; - /** @deprecated use `EcommerceProductCategories$Outbound` instead. */ - export type Outbound = EcommerceProductCategories$Outbound; -} - -export function ecommerceProductCategoriesToJSON( - ecommerceProductCategories: EcommerceProductCategories, -): string { - return JSON.stringify( - EcommerceProductCategories$outboundSchema.parse(ecommerceProductCategories), - ); -} - export function ecommerceProductCategoriesFromJSON( jsonString: string, ): SafeParseResult { @@ -616,83 +359,6 @@ export const EcommerceProduct$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceProduct$Outbound = { - id: string; - name?: string | null | undefined; - description?: string | null | undefined; - status?: string | null | undefined; - price?: string | null | undefined; - sku?: string | null | undefined; - inventory_quantity?: string | null | undefined; - images?: Array | null | undefined; - weight?: string | null | undefined; - weight_unit?: string | null | undefined; - options?: Array | undefined; - variants?: Array | undefined; - tags?: Array | undefined; - categories?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceProduct$outboundSchema: z.ZodType< - EcommerceProduct$Outbound, - z.ZodTypeDef, - EcommerceProduct -> = z.object({ - id: z.string(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - status: z.nullable(ProductStatus$outboundSchema).optional(), - price: z.nullable(z.string()).optional(), - sku: z.nullable(z.string()).optional(), - inventoryQuantity: z.nullable(z.string()).optional(), - images: z.nullable(z.array(z.lazy(() => Images$outboundSchema))).optional(), - weight: z.nullable(z.string()).optional(), - weightUnit: z.nullable(z.string()).optional(), - options: z.array(z.lazy(() => EcommerceProductOptions$outboundSchema)) - .optional(), - variants: z.array(z.lazy(() => Variants$outboundSchema)).optional(), - tags: z.array(z.nullable(z.string())).optional(), - categories: z.array(z.lazy(() => EcommerceProductCategories$outboundSchema)) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - inventoryQuantity: "inventory_quantity", - weightUnit: "weight_unit", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProduct$ { - /** @deprecated use `EcommerceProduct$inboundSchema` instead. */ - export const inboundSchema = EcommerceProduct$inboundSchema; - /** @deprecated use `EcommerceProduct$outboundSchema` instead. */ - export const outboundSchema = EcommerceProduct$outboundSchema; - /** @deprecated use `EcommerceProduct$Outbound` instead. */ - export type Outbound = EcommerceProduct$Outbound; -} - -export function ecommerceProductToJSON( - ecommerceProduct: EcommerceProduct, -): string { - return JSON.stringify( - EcommerceProduct$outboundSchema.parse(ecommerceProduct), - ); -} - export function ecommerceProductFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ecommerceproductsfilter.ts b/src/models/components/ecommerceproductsfilter.ts index 808887604..c5d9b73ae 100644 --- a/src/models/components/ecommerceproductsfilter.ts +++ b/src/models/components/ecommerceproductsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type EcommerceProductsFilter = { /** @@ -23,22 +20,6 @@ export type EcommerceProductsFilter = { createdSince?: string | undefined; }; -/** @internal */ -export const EcommerceProductsFilter$inboundSchema: z.ZodType< - EcommerceProductsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - updated_since: z.string().optional(), - created_since: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - "created_since": "createdSince", - }); -}); - /** @internal */ export type EcommerceProductsFilter$Outbound = { name?: string | undefined; @@ -62,19 +43,6 @@ export const EcommerceProductsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsFilter$ { - /** @deprecated use `EcommerceProductsFilter$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsFilter$inboundSchema; - /** @deprecated use `EcommerceProductsFilter$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsFilter$outboundSchema; - /** @deprecated use `EcommerceProductsFilter$Outbound` instead. */ - export type Outbound = EcommerceProductsFilter$Outbound; -} - export function ecommerceProductsFilterToJSON( ecommerceProductsFilter: EcommerceProductsFilter, ): string { @@ -82,13 +50,3 @@ export function ecommerceProductsFilterToJSON( EcommerceProductsFilter$outboundSchema.parse(ecommerceProductsFilter), ); } - -export function ecommerceProductsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceProductsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceProductsFilter' from JSON`, - ); -} diff --git a/src/models/components/ecommercestore.ts b/src/models/components/ecommercestore.ts index e76498736..864416ace 100644 --- a/src/models/components/ecommercestore.ts +++ b/src/models/components/ecommercestore.ts @@ -66,57 +66,6 @@ export const EcommerceStore$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceStore$Outbound = { - id: string; - name?: string | null | undefined; - store_url?: string | null | undefined; - admin_url?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const EcommerceStore$outboundSchema: z.ZodType< - EcommerceStore$Outbound, - z.ZodTypeDef, - EcommerceStore -> = z.object({ - id: z.string(), - name: z.nullable(z.string()).optional(), - storeUrl: z.nullable(z.string()).optional(), - adminUrl: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - storeUrl: "store_url", - adminUrl: "admin_url", - customMappings: "custom_mappings", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceStore$ { - /** @deprecated use `EcommerceStore$inboundSchema` instead. */ - export const inboundSchema = EcommerceStore$inboundSchema; - /** @deprecated use `EcommerceStore$outboundSchema` instead. */ - export const outboundSchema = EcommerceStore$outboundSchema; - /** @deprecated use `EcommerceStore$Outbound` instead. */ - export type Outbound = EcommerceStore$Outbound; -} - -export function ecommerceStoreToJSON(ecommerceStore: EcommerceStore): string { - return JSON.stringify(EcommerceStore$outboundSchema.parse(ecommerceStore)); -} - export function ecommerceStoreFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/email.ts b/src/models/components/email.ts index 42f6ce681..5376c2fe6 100644 --- a/src/models/components/email.ts +++ b/src/models/components/email.ts @@ -42,22 +42,10 @@ export type Email = { /** @internal */ export const EmailType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EmailType); - /** @internal */ export const EmailType$outboundSchema: z.ZodNativeEnum = EmailType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmailType$ { - /** @deprecated use `EmailType$inboundSchema` instead. */ - export const inboundSchema = EmailType$inboundSchema; - /** @deprecated use `EmailType$outboundSchema` instead. */ - export const outboundSchema = EmailType$outboundSchema; -} - /** @internal */ export const Email$inboundSchema: z.ZodType = z .object({ @@ -65,7 +53,6 @@ export const Email$inboundSchema: z.ZodType = z email: z.nullable(z.string()), type: z.nullable(EmailType$inboundSchema).optional(), }); - /** @internal */ export type Email$Outbound = { id?: string | null | undefined; @@ -84,23 +71,9 @@ export const Email$outboundSchema: z.ZodType< type: z.nullable(EmailType$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Email$ { - /** @deprecated use `Email$inboundSchema` instead. */ - export const inboundSchema = Email$inboundSchema; - /** @deprecated use `Email$outboundSchema` instead. */ - export const outboundSchema = Email$outboundSchema; - /** @deprecated use `Email$Outbound` instead. */ - export type Outbound = Email$Outbound; -} - export function emailToJSON(email: Email): string { return JSON.stringify(Email$outboundSchema.parse(email)); } - export function emailFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/employee.ts b/src/models/components/employee.ts index 66d83e50b..8f490c675 100644 --- a/src/models/components/employee.ts +++ b/src/models/components/employee.ts @@ -36,20 +36,14 @@ import { import { EmployeeCompensation, EmployeeCompensation$inboundSchema, - EmployeeCompensation$Outbound, - EmployeeCompensation$outboundSchema, EmployeeCompensationInput, - EmployeeCompensationInput$inboundSchema, EmployeeCompensationInput$Outbound, EmployeeCompensationInput$outboundSchema, } from "./employeecompensation.js"; import { EmployeeJob, EmployeeJob$inboundSchema, - EmployeeJob$Outbound, - EmployeeJob$outboundSchema, EmployeeJobInput, - EmployeeJobInput$inboundSchema, EmployeeJobInput$Outbound, EmployeeJobInput$outboundSchema, } from "./employeejob.js"; @@ -69,15 +63,9 @@ import { PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; -import { - Person, - Person$inboundSchema, - Person$Outbound, - Person$outboundSchema, -} from "./person.js"; +import { Person, Person$inboundSchema } from "./person.js"; import { PersonInput, - PersonInput$inboundSchema, PersonInput$Outbound, PersonInput$outboundSchema, } from "./personinput.js"; @@ -612,65 +600,29 @@ export type EmployeeInput = { export const LeavingReason$inboundSchema: z.ZodNativeEnum< typeof LeavingReason > = z.nativeEnum(LeavingReason); - /** @internal */ export const LeavingReason$outboundSchema: z.ZodNativeEnum< typeof LeavingReason > = LeavingReason$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LeavingReason$ { - /** @deprecated use `LeavingReason$inboundSchema` instead. */ - export const inboundSchema = LeavingReason$inboundSchema; - /** @deprecated use `LeavingReason$outboundSchema` instead. */ - export const outboundSchema = LeavingReason$outboundSchema; -} - /** @internal */ export const EmploymentType$inboundSchema: z.ZodNativeEnum< typeof EmploymentType > = z.nativeEnum(EmploymentType); - /** @internal */ export const EmploymentType$outboundSchema: z.ZodNativeEnum< typeof EmploymentType > = EmploymentType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentType$ { - /** @deprecated use `EmploymentType$inboundSchema` instead. */ - export const inboundSchema = EmploymentType$inboundSchema; - /** @deprecated use `EmploymentType$outboundSchema` instead. */ - export const outboundSchema = EmploymentType$outboundSchema; -} - /** @internal */ export const EmploymentSubType$inboundSchema: z.ZodNativeEnum< typeof EmploymentSubType > = z.nativeEnum(EmploymentSubType); - /** @internal */ export const EmploymentSubType$outboundSchema: z.ZodNativeEnum< typeof EmploymentSubType > = EmploymentSubType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentSubType$ { - /** @deprecated use `EmploymentSubType$inboundSchema` instead. */ - export const inboundSchema = EmploymentSubType$inboundSchema; - /** @deprecated use `EmploymentSubType$outboundSchema` instead. */ - export const outboundSchema = EmploymentSubType$outboundSchema; -} - /** @internal */ export const EmploymentRole$inboundSchema: z.ZodType< EmploymentRole, @@ -684,7 +636,6 @@ export const EmploymentRole$inboundSchema: z.ZodType< "sub_type": "subType", }); }); - /** @internal */ export type EmploymentRole$Outbound = { type?: string | null | undefined; @@ -705,23 +656,9 @@ export const EmploymentRole$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentRole$ { - /** @deprecated use `EmploymentRole$inboundSchema` instead. */ - export const inboundSchema = EmploymentRole$inboundSchema; - /** @deprecated use `EmploymentRole$outboundSchema` instead. */ - export const outboundSchema = EmploymentRole$outboundSchema; - /** @deprecated use `EmploymentRole$Outbound` instead. */ - export type Outbound = EmploymentRole$Outbound; -} - export function employmentRoleToJSON(employmentRole: EmploymentRole): string { return JSON.stringify(EmploymentRole$outboundSchema.parse(employmentRole)); } - export function employmentRoleFromJSON( jsonString: string, ): SafeParseResult { @@ -748,7 +685,6 @@ export const Manager$inboundSchema: z.ZodType = "employment_status": "employmentStatus", }); }); - /** @internal */ export type Manager$Outbound = { id?: string | null | undefined; @@ -779,23 +715,9 @@ export const Manager$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Manager$ { - /** @deprecated use `Manager$inboundSchema` instead. */ - export const inboundSchema = Manager$inboundSchema; - /** @deprecated use `Manager$outboundSchema` instead. */ - export const outboundSchema = Manager$outboundSchema; - /** @deprecated use `Manager$Outbound` instead. */ - export type Outbound = Manager$Outbound; -} - export function managerToJSON(manager: Manager): string { return JSON.stringify(Manager$outboundSchema.parse(manager)); } - export function managerFromJSON( jsonString: string, ): SafeParseResult { @@ -820,7 +742,6 @@ export const ProbationPeriod$inboundSchema: z.ZodType< "end_date": "endDate", }); }); - /** @internal */ export type ProbationPeriod$Outbound = { start_date?: string | null | undefined; @@ -844,25 +765,11 @@ export const ProbationPeriod$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProbationPeriod$ { - /** @deprecated use `ProbationPeriod$inboundSchema` instead. */ - export const inboundSchema = ProbationPeriod$inboundSchema; - /** @deprecated use `ProbationPeriod$outboundSchema` instead. */ - export const outboundSchema = ProbationPeriod$outboundSchema; - /** @deprecated use `ProbationPeriod$Outbound` instead. */ - export type Outbound = ProbationPeriod$Outbound; -} - export function probationPeriodToJSON( probationPeriod: ProbationPeriod, ): string { return JSON.stringify(ProbationPeriod$outboundSchema.parse(probationPeriod)); } - export function probationPeriodFromJSON( jsonString: string, ): SafeParseResult { @@ -999,218 +906,6 @@ export const Employee$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Employee$Outbound = { - id?: string | null | undefined; - downstream_id?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - middle_name?: string | null | undefined; - display_name?: string | null | undefined; - preferred_name?: string | null | undefined; - initials?: string | null | undefined; - salutation?: string | null | undefined; - title?: string | null | undefined; - marital_status?: string | null | undefined; - partner?: Person$Outbound | undefined; - division?: string | null | undefined; - division_id?: string | null | undefined; - department?: string | null | undefined; - department_id?: string | null | undefined; - department_name?: string | null | undefined; - team?: Team$Outbound | null | undefined; - company_id?: string | null | undefined; - company_name?: string | null | undefined; - employment_start_date?: string | null | undefined; - employment_end_date?: string | null | undefined; - leaving_reason?: string | null | undefined; - employee_number?: string | null | undefined; - employment_status?: string | null | undefined; - employment_role?: EmploymentRole$Outbound | undefined; - ethnicity?: string | null | undefined; - manager?: Manager$Outbound | undefined; - direct_reports?: Array | null | undefined; - social_security_number?: string | null | undefined; - birthday?: string | null | undefined; - deceased_on?: string | null | undefined; - country_of_birth?: string | null | undefined; - description?: string | null | undefined; - gender?: string | null | undefined; - pronouns?: string | null | undefined; - preferred_language?: string | null | undefined; - languages?: Array | undefined; - nationalities?: Array | undefined; - photo_url?: string | null | undefined; - timezone?: string | null | undefined; - source?: string | null | undefined; - source_id?: string | null | undefined; - record_url?: string | null | undefined; - jobs?: Array | null | undefined; - compensations?: Array | null | undefined; - works_remote?: boolean | null | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - custom_fields?: Array | undefined; - social_links?: Array | undefined; - bank_accounts?: Array | undefined; - tax_code?: string | null | undefined; - tax_id?: string | null | undefined; - dietary_preference?: string | null | undefined; - food_allergies?: Array | null | undefined; - probation_period?: ProbationPeriod$Outbound | undefined; - tags?: Array | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - deleted?: boolean | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Employee$outboundSchema: z.ZodType< - Employee$Outbound, - z.ZodTypeDef, - Employee -> = z.object({ - id: z.nullable(z.string()).optional(), - downstreamId: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - preferredName: z.nullable(z.string()).optional(), - initials: z.nullable(z.string()).optional(), - salutation: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - maritalStatus: z.nullable(z.string()).optional(), - partner: Person$outboundSchema.optional(), - division: z.nullable(z.string()).optional(), - divisionId: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - departmentName: z.nullable(z.string()).optional(), - team: z.nullable(Team$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - employmentStartDate: z.nullable(z.string()).optional(), - employmentEndDate: z.nullable(z.string()).optional(), - leavingReason: z.nullable(LeavingReason$outboundSchema).optional(), - employeeNumber: z.nullable(z.string()).optional(), - employmentStatus: z.nullable(EmploymentStatus$outboundSchema).optional(), - employmentRole: z.lazy(() => EmploymentRole$outboundSchema).optional(), - ethnicity: z.nullable(z.string()).optional(), - manager: z.lazy(() => Manager$outboundSchema).optional(), - directReports: z.nullable(z.array(z.string())).optional(), - socialSecurityNumber: z.nullable(z.string()).optional(), - birthday: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - deceasedOn: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - countryOfBirth: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - gender: z.nullable(Gender$outboundSchema).optional(), - pronouns: z.nullable(z.string()).optional(), - preferredLanguage: z.nullable(z.string()).optional(), - languages: z.array(z.nullable(z.string())).optional(), - nationalities: z.array(z.nullable(z.string())).optional(), - photoUrl: z.nullable(z.string()).optional(), - timezone: z.nullable(z.string()).optional(), - source: z.nullable(z.string()).optional(), - sourceId: z.nullable(z.string()).optional(), - recordUrl: z.nullable(z.string()).optional(), - jobs: z.nullable(z.array(EmployeeJob$outboundSchema)).optional(), - compensations: z.nullable(z.array(EmployeeCompensation$outboundSchema)) - .optional(), - worksRemote: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - socialLinks: z.array(SocialLink$outboundSchema).optional(), - bankAccounts: z.array(BankAccount2$outboundSchema).optional(), - taxCode: z.nullable(z.string()).optional(), - taxId: z.nullable(z.string()).optional(), - dietaryPreference: z.nullable(z.string()).optional(), - foodAllergies: z.nullable(z.array(z.string())).optional(), - probationPeriod: z.lazy(() => ProbationPeriod$outboundSchema).optional(), - tags: z.nullable(z.array(z.string())).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - deleted: z.nullable(z.boolean()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - firstName: "first_name", - lastName: "last_name", - middleName: "middle_name", - displayName: "display_name", - preferredName: "preferred_name", - maritalStatus: "marital_status", - divisionId: "division_id", - departmentId: "department_id", - departmentName: "department_name", - companyId: "company_id", - companyName: "company_name", - employmentStartDate: "employment_start_date", - employmentEndDate: "employment_end_date", - leavingReason: "leaving_reason", - employeeNumber: "employee_number", - employmentStatus: "employment_status", - employmentRole: "employment_role", - directReports: "direct_reports", - socialSecurityNumber: "social_security_number", - deceasedOn: "deceased_on", - countryOfBirth: "country_of_birth", - preferredLanguage: "preferred_language", - photoUrl: "photo_url", - sourceId: "source_id", - recordUrl: "record_url", - worksRemote: "works_remote", - phoneNumbers: "phone_numbers", - customFields: "custom_fields", - socialLinks: "social_links", - bankAccounts: "bank_accounts", - taxCode: "tax_code", - taxId: "tax_id", - dietaryPreference: "dietary_preference", - foodAllergies: "food_allergies", - probationPeriod: "probation_period", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Employee$ { - /** @deprecated use `Employee$inboundSchema` instead. */ - export const inboundSchema = Employee$inboundSchema; - /** @deprecated use `Employee$outboundSchema` instead. */ - export const outboundSchema = Employee$outboundSchema; - /** @deprecated use `Employee$Outbound` instead. */ - export type Outbound = Employee$Outbound; -} - -export function employeeToJSON(employee: Employee): string { - return JSON.stringify(Employee$outboundSchema.parse(employee)); -} - export function employeeFromJSON( jsonString: string, ): SafeParseResult { @@ -1221,116 +916,6 @@ export function employeeFromJSON( ); } -/** @internal */ -export const EmployeeInput$inboundSchema: z.ZodType< - EmployeeInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - display_name: z.nullable(z.string()).optional(), - preferred_name: z.nullable(z.string()).optional(), - initials: z.nullable(z.string()).optional(), - salutation: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - marital_status: z.nullable(z.string()).optional(), - partner: PersonInput$inboundSchema.optional(), - division: z.nullable(z.string()).optional(), - division_id: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - department_name: z.nullable(z.string()).optional(), - team: z.nullable(Team$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - employment_start_date: z.nullable(z.string()).optional(), - employment_end_date: z.nullable(z.string()).optional(), - leaving_reason: z.nullable(LeavingReason$inboundSchema).optional(), - employee_number: z.nullable(z.string()).optional(), - employment_status: z.nullable(EmploymentStatus$inboundSchema).optional(), - employment_role: z.lazy(() => EmploymentRole$inboundSchema).optional(), - ethnicity: z.nullable(z.string()).optional(), - manager: z.lazy(() => Manager$inboundSchema).optional(), - direct_reports: z.nullable(z.array(z.string())).optional(), - social_security_number: z.nullable(z.string()).optional(), - birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - deceased_on: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - country_of_birth: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - gender: z.nullable(Gender$inboundSchema).optional(), - pronouns: z.nullable(z.string()).optional(), - preferred_language: z.nullable(z.string()).optional(), - languages: z.array(z.nullable(z.string())).optional(), - nationalities: z.array(z.nullable(z.string())).optional(), - photo_url: z.nullable(z.string()).optional(), - timezone: z.nullable(z.string()).optional(), - source: z.nullable(z.string()).optional(), - source_id: z.nullable(z.string()).optional(), - record_url: z.nullable(z.string()).optional(), - jobs: z.nullable(z.array(EmployeeJobInput$inboundSchema)).optional(), - compensations: z.nullable(z.array(EmployeeCompensationInput$inboundSchema)) - .optional(), - works_remote: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - social_links: z.array(SocialLink$inboundSchema).optional(), - bank_accounts: z.array(BankAccount2$inboundSchema).optional(), - tax_code: z.nullable(z.string()).optional(), - tax_id: z.nullable(z.string()).optional(), - dietary_preference: z.nullable(z.string()).optional(), - food_allergies: z.nullable(z.array(z.string())).optional(), - probation_period: z.lazy(() => ProbationPeriod$inboundSchema).optional(), - tags: z.nullable(z.array(z.string())).optional(), - row_version: z.nullable(z.string()).optional(), - deleted: z.nullable(z.boolean()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "middle_name": "middleName", - "display_name": "displayName", - "preferred_name": "preferredName", - "marital_status": "maritalStatus", - "division_id": "divisionId", - "department_id": "departmentId", - "department_name": "departmentName", - "company_id": "companyId", - "company_name": "companyName", - "employment_start_date": "employmentStartDate", - "employment_end_date": "employmentEndDate", - "leaving_reason": "leavingReason", - "employee_number": "employeeNumber", - "employment_status": "employmentStatus", - "employment_role": "employmentRole", - "direct_reports": "directReports", - "social_security_number": "socialSecurityNumber", - "deceased_on": "deceasedOn", - "country_of_birth": "countryOfBirth", - "preferred_language": "preferredLanguage", - "photo_url": "photoUrl", - "source_id": "sourceId", - "record_url": "recordUrl", - "works_remote": "worksRemote", - "phone_numbers": "phoneNumbers", - "custom_fields": "customFields", - "social_links": "socialLinks", - "bank_accounts": "bankAccounts", - "tax_code": "taxCode", - "tax_id": "taxId", - "dietary_preference": "dietaryPreference", - "food_allergies": "foodAllergies", - "probation_period": "probationPeriod", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type EmployeeInput$Outbound = { id?: string | null | undefined; @@ -1508,29 +1093,6 @@ export const EmployeeInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeInput$ { - /** @deprecated use `EmployeeInput$inboundSchema` instead. */ - export const inboundSchema = EmployeeInput$inboundSchema; - /** @deprecated use `EmployeeInput$outboundSchema` instead. */ - export const outboundSchema = EmployeeInput$outboundSchema; - /** @deprecated use `EmployeeInput$Outbound` instead. */ - export type Outbound = EmployeeInput$Outbound; -} - export function employeeInputToJSON(employeeInput: EmployeeInput): string { return JSON.stringify(EmployeeInput$outboundSchema.parse(employeeInput)); } - -export function employeeInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeeInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeeInput' from JSON`, - ); -} diff --git a/src/models/components/employeecompensation.ts b/src/models/components/employeecompensation.ts index efb16d941..b4688bf5b 100644 --- a/src/models/components/employeecompensation.ts +++ b/src/models/components/employeecompensation.ts @@ -104,22 +104,10 @@ export type EmployeeCompensationInput = { /** @internal */ export const FlsaStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(FlsaStatus); - /** @internal */ export const FlsaStatus$outboundSchema: z.ZodNativeEnum = FlsaStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FlsaStatus$ { - /** @deprecated use `FlsaStatus$inboundSchema` instead. */ - export const inboundSchema = FlsaStatus$inboundSchema; - /** @deprecated use `FlsaStatus$outboundSchema` instead. */ - export const outboundSchema = FlsaStatus$outboundSchema; -} - /** @internal */ export const EmployeeCompensation$inboundSchema: z.ZodType< EmployeeCompensation, @@ -144,63 +132,6 @@ export const EmployeeCompensation$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EmployeeCompensation$Outbound = { - id?: string | null | undefined; - job_id?: string | null | undefined; - rate?: number | null | undefined; - payment_unit?: string | null | undefined; - currency?: string | null | undefined; - flsa_status?: string | null | undefined; - effective_date?: string | null | undefined; - payment_frequency?: string | null | undefined; -}; - -/** @internal */ -export const EmployeeCompensation$outboundSchema: z.ZodType< - EmployeeCompensation$Outbound, - z.ZodTypeDef, - EmployeeCompensation -> = z.object({ - id: z.nullable(z.string()).optional(), - jobId: z.nullable(z.string()).optional(), - rate: z.nullable(z.number()).optional(), - paymentUnit: z.nullable(PaymentUnit$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - flsaStatus: z.nullable(FlsaStatus$outboundSchema).optional(), - effectiveDate: z.nullable(z.string()).optional(), - paymentFrequency: z.nullable(PaymentFrequency$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - jobId: "job_id", - paymentUnit: "payment_unit", - flsaStatus: "flsa_status", - effectiveDate: "effective_date", - paymentFrequency: "payment_frequency", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeCompensation$ { - /** @deprecated use `EmployeeCompensation$inboundSchema` instead. */ - export const inboundSchema = EmployeeCompensation$inboundSchema; - /** @deprecated use `EmployeeCompensation$outboundSchema` instead. */ - export const outboundSchema = EmployeeCompensation$outboundSchema; - /** @deprecated use `EmployeeCompensation$Outbound` instead. */ - export type Outbound = EmployeeCompensation$Outbound; -} - -export function employeeCompensationToJSON( - employeeCompensation: EmployeeCompensation, -): string { - return JSON.stringify( - EmployeeCompensation$outboundSchema.parse(employeeCompensation), - ); -} - export function employeeCompensationFromJSON( jsonString: string, ): SafeParseResult { @@ -211,27 +142,6 @@ export function employeeCompensationFromJSON( ); } -/** @internal */ -export const EmployeeCompensationInput$inboundSchema: z.ZodType< - EmployeeCompensationInput, - z.ZodTypeDef, - unknown -> = z.object({ - rate: z.nullable(z.number()).optional(), - payment_unit: z.nullable(PaymentUnit$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - flsa_status: z.nullable(FlsaStatus$inboundSchema).optional(), - effective_date: z.nullable(z.string()).optional(), - payment_frequency: z.nullable(PaymentFrequency$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "payment_unit": "paymentUnit", - "flsa_status": "flsaStatus", - "effective_date": "effectiveDate", - "payment_frequency": "paymentFrequency", - }); -}); - /** @internal */ export type EmployeeCompensationInput$Outbound = { rate?: number | null | undefined; @@ -263,19 +173,6 @@ export const EmployeeCompensationInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeCompensationInput$ { - /** @deprecated use `EmployeeCompensationInput$inboundSchema` instead. */ - export const inboundSchema = EmployeeCompensationInput$inboundSchema; - /** @deprecated use `EmployeeCompensationInput$outboundSchema` instead. */ - export const outboundSchema = EmployeeCompensationInput$outboundSchema; - /** @deprecated use `EmployeeCompensationInput$Outbound` instead. */ - export type Outbound = EmployeeCompensationInput$Outbound; -} - export function employeeCompensationInputToJSON( employeeCompensationInput: EmployeeCompensationInput, ): string { @@ -283,13 +180,3 @@ export function employeeCompensationInputToJSON( EmployeeCompensationInput$outboundSchema.parse(employeeCompensationInput), ); } - -export function employeeCompensationInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeeCompensationInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeeCompensationInput' from JSON`, - ); -} diff --git a/src/models/components/employeejob.ts b/src/models/components/employeejob.ts index 734f85682..35e041718 100644 --- a/src/models/components/employeejob.ts +++ b/src/models/components/employeejob.ts @@ -147,23 +147,11 @@ export type EmployeeJobInput = { export const EmployeeJobStatus$inboundSchema: z.ZodNativeEnum< typeof EmployeeJobStatus > = z.nativeEnum(EmployeeJobStatus); - /** @internal */ export const EmployeeJobStatus$outboundSchema: z.ZodNativeEnum< typeof EmployeeJobStatus > = EmployeeJobStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeJobStatus$ { - /** @deprecated use `EmployeeJobStatus$inboundSchema` instead. */ - export const inboundSchema = EmployeeJobStatus$inboundSchema; - /** @deprecated use `EmployeeJobStatus$outboundSchema` instead. */ - export const outboundSchema = EmployeeJobStatus$outboundSchema; -} - /** @internal */ export const EmployeeJob$inboundSchema: z.ZodType< EmployeeJob, @@ -197,77 +185,6 @@ export const EmployeeJob$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EmployeeJob$Outbound = { - id?: string | null | undefined; - employee_id?: string | null | undefined; - title?: string | null | undefined; - role?: string | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - compensation_rate?: number | null | undefined; - currency?: string | null | undefined; - payment_unit?: string | null | undefined; - hired_at?: string | null | undefined; - is_primary?: boolean | null | undefined; - is_manager?: boolean | null | undefined; - status?: string | null | undefined; - location?: Address$Outbound | undefined; -}; - -/** @internal */ -export const EmployeeJob$outboundSchema: z.ZodType< - EmployeeJob$Outbound, - z.ZodTypeDef, - EmployeeJob -> = z.object({ - id: z.nullable(z.string()).optional(), - employeeId: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - role: z.nullable(z.string()).optional(), - startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - compensationRate: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - paymentUnit: z.nullable(PaymentUnit$outboundSchema).optional(), - hiredAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - isPrimary: z.nullable(z.boolean()).optional(), - isManager: z.nullable(z.boolean()).optional(), - status: z.nullable(EmployeeJobStatus$outboundSchema).optional(), - location: Address$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - startDate: "start_date", - endDate: "end_date", - compensationRate: "compensation_rate", - paymentUnit: "payment_unit", - hiredAt: "hired_at", - isPrimary: "is_primary", - isManager: "is_manager", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeJob$ { - /** @deprecated use `EmployeeJob$inboundSchema` instead. */ - export const inboundSchema = EmployeeJob$inboundSchema; - /** @deprecated use `EmployeeJob$outboundSchema` instead. */ - export const outboundSchema = EmployeeJob$outboundSchema; - /** @deprecated use `EmployeeJob$Outbound` instead. */ - export type Outbound = EmployeeJob$Outbound; -} - -export function employeeJobToJSON(employeeJob: EmployeeJob): string { - return JSON.stringify(EmployeeJob$outboundSchema.parse(employeeJob)); -} - export function employeeJobFromJSON( jsonString: string, ): SafeParseResult { @@ -278,36 +195,6 @@ export function employeeJobFromJSON( ); } -/** @internal */ -export const EmployeeJobInput$inboundSchema: z.ZodType< - EmployeeJobInput, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.nullable(z.string()).optional(), - role: z.nullable(z.string()).optional(), - start_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - end_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - compensation_rate: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - payment_unit: z.nullable(PaymentUnit$inboundSchema).optional(), - hired_at: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - is_primary: z.nullable(z.boolean()).optional(), - is_manager: z.nullable(z.boolean()).optional(), - status: z.nullable(EmployeeJobStatus$inboundSchema).optional(), - location: Address$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "start_date": "startDate", - "end_date": "endDate", - "compensation_rate": "compensationRate", - "payment_unit": "paymentUnit", - "hired_at": "hiredAt", - "is_primary": "isPrimary", - "is_manager": "isManager", - }); -}); - /** @internal */ export type EmployeeJobInput$Outbound = { title?: string | null | undefined; @@ -357,19 +244,6 @@ export const EmployeeJobInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeJobInput$ { - /** @deprecated use `EmployeeJobInput$inboundSchema` instead. */ - export const inboundSchema = EmployeeJobInput$inboundSchema; - /** @deprecated use `EmployeeJobInput$outboundSchema` instead. */ - export const outboundSchema = EmployeeJobInput$outboundSchema; - /** @deprecated use `EmployeeJobInput$Outbound` instead. */ - export type Outbound = EmployeeJobInput$Outbound; -} - export function employeeJobInputToJSON( employeeJobInput: EmployeeJobInput, ): string { @@ -377,13 +251,3 @@ export function employeeJobInputToJSON( EmployeeJobInput$outboundSchema.parse(employeeJobInput), ); } - -export function employeeJobInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeeJobInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeeJobInput' from JSON`, - ); -} diff --git a/src/models/components/employeepayroll.ts b/src/models/components/employeepayroll.ts index 12fa61563..1042736e0 100644 --- a/src/models/components/employeepayroll.ts +++ b/src/models/components/employeepayroll.ts @@ -7,18 +7,8 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Compensation, - Compensation$inboundSchema, - Compensation$Outbound, - Compensation$outboundSchema, -} from "./compensation.js"; -import { - PayrollTotals, - PayrollTotals$inboundSchema, - PayrollTotals$Outbound, - PayrollTotals$outboundSchema, -} from "./payrolltotals.js"; +import { Compensation, Compensation$inboundSchema } from "./compensation.js"; +import { PayrollTotals, PayrollTotals$inboundSchema } from "./payrolltotals.js"; export type EmployeePayroll = { /** @@ -90,66 +80,6 @@ export const EmployeePayroll$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EmployeePayroll$Outbound = { - id: string | null; - employee_id?: string | null | undefined; - company_id?: string | null | undefined; - processed: boolean | null; - processed_date?: string | null | undefined; - check_date: string | null; - start_date: string | null; - end_date: string | null; - totals?: PayrollTotals$Outbound | undefined; - compensations?: Array | undefined; -}; - -/** @internal */ -export const EmployeePayroll$outboundSchema: z.ZodType< - EmployeePayroll$Outbound, - z.ZodTypeDef, - EmployeePayroll -> = z.object({ - id: z.nullable(z.string()), - employeeId: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - processed: z.nullable(z.boolean()), - processedDate: z.nullable(z.string()).optional(), - checkDate: z.nullable(z.string()), - startDate: z.nullable(z.string()), - endDate: z.nullable(z.string()), - totals: PayrollTotals$outboundSchema.optional(), - compensations: z.array(Compensation$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - companyId: "company_id", - processedDate: "processed_date", - checkDate: "check_date", - startDate: "start_date", - endDate: "end_date", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeePayroll$ { - /** @deprecated use `EmployeePayroll$inboundSchema` instead. */ - export const inboundSchema = EmployeePayroll$inboundSchema; - /** @deprecated use `EmployeePayroll$outboundSchema` instead. */ - export const outboundSchema = EmployeePayroll$outboundSchema; - /** @deprecated use `EmployeePayroll$Outbound` instead. */ - export type Outbound = EmployeePayroll$Outbound; -} - -export function employeePayrollToJSON( - employeePayroll: EmployeePayroll, -): string { - return JSON.stringify(EmployeePayroll$outboundSchema.parse(employeePayroll)); -} - export function employeePayrollFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/employeeschedules.ts b/src/models/components/employeeschedules.ts index 35540ca3b..a612107fe 100644 --- a/src/models/components/employeeschedules.ts +++ b/src/models/components/employeeschedules.ts @@ -6,18 +6,8 @@ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Employee, - Employee$inboundSchema, - Employee$Outbound, - Employee$outboundSchema, -} from "./employee.js"; -import { - Schedule, - Schedule$inboundSchema, - Schedule$Outbound, - Schedule$outboundSchema, -} from "./schedule.js"; +import { Employee, Employee$inboundSchema } from "./employee.js"; +import { Schedule, Schedule$inboundSchema } from "./schedule.js"; export type EmployeeSchedules = { employee?: Employee | undefined; @@ -34,43 +24,6 @@ export const EmployeeSchedules$inboundSchema: z.ZodType< schedules: z.nullable(z.array(Schedule$inboundSchema)).optional(), }); -/** @internal */ -export type EmployeeSchedules$Outbound = { - employee?: Employee$Outbound | undefined; - schedules?: Array | null | undefined; -}; - -/** @internal */ -export const EmployeeSchedules$outboundSchema: z.ZodType< - EmployeeSchedules$Outbound, - z.ZodTypeDef, - EmployeeSchedules -> = z.object({ - employee: Employee$outboundSchema.optional(), - schedules: z.nullable(z.array(Schedule$outboundSchema)).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeeSchedules$ { - /** @deprecated use `EmployeeSchedules$inboundSchema` instead. */ - export const inboundSchema = EmployeeSchedules$inboundSchema; - /** @deprecated use `EmployeeSchedules$outboundSchema` instead. */ - export const outboundSchema = EmployeeSchedules$outboundSchema; - /** @deprecated use `EmployeeSchedules$Outbound` instead. */ - export type Outbound = EmployeeSchedules$Outbound; -} - -export function employeeSchedulesToJSON( - employeeSchedules: EmployeeSchedules, -): string { - return JSON.stringify( - EmployeeSchedules$outboundSchema.parse(employeeSchedules), - ); -} - export function employeeSchedulesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/employeesfilter.ts b/src/models/components/employeesfilter.ts index c176edd3f..7a1955c50 100644 --- a/src/models/components/employeesfilter.ts +++ b/src/models/components/employeesfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Employment status to filter on @@ -72,55 +69,10 @@ export type EmployeesFilter = { country?: string | undefined; }; -/** @internal */ -export const EmployeesFilterEmploymentStatus$inboundSchema: z.ZodNativeEnum< - typeof EmployeesFilterEmploymentStatus -> = z.nativeEnum(EmployeesFilterEmploymentStatus); - /** @internal */ export const EmployeesFilterEmploymentStatus$outboundSchema: z.ZodNativeEnum< typeof EmployeesFilterEmploymentStatus -> = EmployeesFilterEmploymentStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeesFilterEmploymentStatus$ { - /** @deprecated use `EmployeesFilterEmploymentStatus$inboundSchema` instead. */ - export const inboundSchema = EmployeesFilterEmploymentStatus$inboundSchema; - /** @deprecated use `EmployeesFilterEmploymentStatus$outboundSchema` instead. */ - export const outboundSchema = EmployeesFilterEmploymentStatus$outboundSchema; -} - -/** @internal */ -export const EmployeesFilter$inboundSchema: z.ZodType< - EmployeesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - company_id: z.string().optional(), - email: z.string().optional(), - first_name: z.string().optional(), - title: z.string().optional(), - last_name: z.string().optional(), - manager_id: z.string().optional(), - employment_status: EmployeesFilterEmploymentStatus$inboundSchema.optional(), - employee_number: z.string().optional(), - department_id: z.string().optional(), - city: z.string().optional(), - country: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "company_id": "companyId", - "first_name": "firstName", - "last_name": "lastName", - "manager_id": "managerId", - "employment_status": "employmentStatus", - "employee_number": "employeeNumber", - "department_id": "departmentId", - }); -}); +> = z.nativeEnum(EmployeesFilterEmploymentStatus); /** @internal */ export type EmployeesFilter$Outbound = { @@ -166,31 +118,8 @@ export const EmployeesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeesFilter$ { - /** @deprecated use `EmployeesFilter$inboundSchema` instead. */ - export const inboundSchema = EmployeesFilter$inboundSchema; - /** @deprecated use `EmployeesFilter$outboundSchema` instead. */ - export const outboundSchema = EmployeesFilter$outboundSchema; - /** @deprecated use `EmployeesFilter$Outbound` instead. */ - export type Outbound = EmployeesFilter$Outbound; -} - export function employeesFilterToJSON( employeesFilter: EmployeesFilter, ): string { return JSON.stringify(EmployeesFilter$outboundSchema.parse(employeesFilter)); } - -export function employeesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeesFilter' from JSON`, - ); -} diff --git a/src/models/components/employeesonefilter.ts b/src/models/components/employeesonefilter.ts index 61952b98a..1160562d1 100644 --- a/src/models/components/employeesonefilter.ts +++ b/src/models/components/employeesonefilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type EmployeesOneFilter = { /** @@ -15,19 +12,6 @@ export type EmployeesOneFilter = { companyId?: string | undefined; }; -/** @internal */ -export const EmployeesOneFilter$inboundSchema: z.ZodType< - EmployeesOneFilter, - z.ZodTypeDef, - unknown -> = z.object({ - company_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "company_id": "companyId", - }); -}); - /** @internal */ export type EmployeesOneFilter$Outbound = { company_id?: string | undefined; @@ -46,19 +30,6 @@ export const EmployeesOneFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeesOneFilter$ { - /** @deprecated use `EmployeesOneFilter$inboundSchema` instead. */ - export const inboundSchema = EmployeesOneFilter$inboundSchema; - /** @deprecated use `EmployeesOneFilter$outboundSchema` instead. */ - export const outboundSchema = EmployeesOneFilter$outboundSchema; - /** @deprecated use `EmployeesOneFilter$Outbound` instead. */ - export type Outbound = EmployeesOneFilter$Outbound; -} - export function employeesOneFilterToJSON( employeesOneFilter: EmployeesOneFilter, ): string { @@ -66,13 +37,3 @@ export function employeesOneFilterToJSON( EmployeesOneFilter$outboundSchema.parse(employeesOneFilter), ); } - -export function employeesOneFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeesOneFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeesOneFilter' from JSON`, - ); -} diff --git a/src/models/components/employeessort.ts b/src/models/components/employeessort.ts index 441c0503b..b1b5c314e 100644 --- a/src/models/components/employeessort.ts +++ b/src/models/components/employeessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -38,36 +34,10 @@ export type EmployeesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const EmployeesSortBy$inboundSchema: z.ZodNativeEnum< - typeof EmployeesSortBy -> = z.nativeEnum(EmployeesSortBy); - /** @internal */ export const EmployeesSortBy$outboundSchema: z.ZodNativeEnum< typeof EmployeesSortBy -> = EmployeesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeesSortBy$ { - /** @deprecated use `EmployeesSortBy$inboundSchema` instead. */ - export const inboundSchema = EmployeesSortBy$inboundSchema; - /** @deprecated use `EmployeesSortBy$outboundSchema` instead. */ - export const outboundSchema = EmployeesSortBy$outboundSchema; -} - -/** @internal */ -export const EmployeesSort$inboundSchema: z.ZodType< - EmployeesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: EmployeesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(EmployeesSortBy); /** @internal */ export type EmployeesSort$Outbound = { @@ -85,29 +55,6 @@ export const EmployeesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmployeesSort$ { - /** @deprecated use `EmployeesSort$inboundSchema` instead. */ - export const inboundSchema = EmployeesSort$inboundSchema; - /** @deprecated use `EmployeesSort$outboundSchema` instead. */ - export const outboundSchema = EmployeesSort$outboundSchema; - /** @deprecated use `EmployeesSort$Outbound` instead. */ - export type Outbound = EmployeesSort$Outbound; -} - export function employeesSortToJSON(employeesSort: EmployeesSort): string { return JSON.stringify(EmployeesSort$outboundSchema.parse(employeesSort)); } - -export function employeesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EmployeesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EmployeesSort' from JSON`, - ); -} diff --git a/src/models/components/employmentstatus.ts b/src/models/components/employmentstatus.ts index 9c58e8829..34ceb3f1e 100644 --- a/src/models/components/employmentstatus.ts +++ b/src/models/components/employmentstatus.ts @@ -23,19 +23,7 @@ export type EmploymentStatus = ClosedEnum; export const EmploymentStatus$inboundSchema: z.ZodNativeEnum< typeof EmploymentStatus > = z.nativeEnum(EmploymentStatus); - /** @internal */ export const EmploymentStatus$outboundSchema: z.ZodNativeEnum< typeof EmploymentStatus > = EmploymentStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentStatus$ { - /** @deprecated use `EmploymentStatus$inboundSchema` instead. */ - export const inboundSchema = EmploymentStatus$inboundSchema; - /** @deprecated use `EmploymentStatus$outboundSchema` instead. */ - export const outboundSchema = EmploymentStatus$outboundSchema; -} diff --git a/src/models/components/expense.ts b/src/models/components/expense.ts index 5f4c04e30..622aa3ed2 100644 --- a/src/models/components/expense.ts +++ b/src/models/components/expense.ts @@ -22,12 +22,9 @@ import { import { ExpenseLineItem, ExpenseLineItem$inboundSchema, - ExpenseLineItem$Outbound, - ExpenseLineItem$outboundSchema, } from "./expenselineitem.js"; import { ExpenseLineItemInput, - ExpenseLineItemInput$inboundSchema, ExpenseLineItemInput$Outbound, ExpenseLineItemInput$outboundSchema, } from "./expenselineiteminput.js"; @@ -44,20 +41,17 @@ import { LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; + LinkedSupplier, + LinkedSupplier$inboundSchema, +} from "./linkedsupplier.js"; import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; + LinkedSupplierInput, + LinkedSupplierInput$Outbound, + LinkedSupplierInput$outboundSchema, +} from "./linkedsupplierinput.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -71,7 +65,7 @@ import { /** * The type of payment for the expense. */ -export const Expense3PaymentType = { +export const ExpensePaymentType = { Cash: "cash", Check: "check", CreditCard: "credit_card", @@ -80,33 +74,33 @@ export const Expense3PaymentType = { /** * The type of payment for the expense. */ -export type Expense3PaymentType = ClosedEnum; +export type ExpensePaymentType = ClosedEnum; /** * The type of expense. */ -export const Expense3ExpenseType = { +export const ExpenseType = { Expense: "expense", Refund: "refund", } as const; /** * The type of expense. */ -export type Expense3ExpenseType = ClosedEnum; +export type ExpenseType = ClosedEnum; /** * Expense status */ -export const Expense3Status = { +export const ExpenseStatus = { Draft: "draft", Posted: "posted", } as const; /** * Expense status */ -export type Expense3Status = ClosedEnum; +export type ExpenseStatus = ClosedEnum; -export type Three = { +export type Expense = { /** * A unique identifier for an object. */ @@ -126,15 +120,21 @@ export type Three = { */ accountId?: string | undefined; account?: LinkedLedgerAccount | null | undefined; - bankAccount: LinkedBankAccount | null; + bankAccount?: LinkedBankAccount | null | undefined; /** * The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. */ customerId?: string | undefined; /** - * The ID of the supplier this entity is linked to. + * The ID of the supplier this entity is linked to. Deprecated, use supplier instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ supplierId?: string | undefined; + /** + * The supplier this entity is linked to. + */ + supplier?: LinkedSupplier | null | undefined; /** * The company ID the transaction belongs to */ @@ -146,7 +146,7 @@ export type Three = { /** * The type of payment for the expense. */ - paymentType?: Expense3PaymentType | null | undefined; + paymentType?: ExpensePaymentType | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ @@ -158,159 +158,24 @@ export type Three = { /** * The type of expense. */ - type?: Expense3ExpenseType | null | undefined; + type?: ExpenseType | null | undefined; /** * The memo of the expense. */ memo?: string | null | undefined; taxRate?: LinkedTaxRate | undefined; /** - * The total amount of the expense line item. - */ - totalAmount?: number | null | undefined; - /** - * Expense line items linked to this expense. - */ - lineItems: Array; - /** - * Optional reference identifier for the transaction. - */ - reference?: string | null | undefined; - /** - * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - */ - sourceDocumentUrl?: string | null | undefined; - customFields?: Array | undefined; - /** - * When custom mappings are configured on the resource, the result is included here. - */ - customMappings?: { [k: string]: any } | null | undefined; - /** - * Expense status - */ - status?: Expense3Status | null | undefined; - /** - * The date and time when the object was last updated. - */ - updatedAt?: Date | null | undefined; - /** - * The date and time when the object was created. - */ - createdAt?: Date | null | undefined; - /** - * 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. - */ - rowVersion?: string | null | undefined; - /** - * The user who last updated the object. - */ - updatedBy?: string | null | undefined; - /** - * The user who created the object. - */ - createdBy?: string | null | undefined; - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - passThrough?: Array | undefined; -}; - -/** - * The type of payment for the expense. - */ -export const Expense2PaymentType = { - Cash: "cash", - Check: "check", - CreditCard: "credit_card", - Other: "other", -} as const; -/** - * The type of payment for the expense. - */ -export type Expense2PaymentType = ClosedEnum; - -/** - * The type of expense. - */ -export const ExpenseExpenseType = { - Expense: "expense", - Refund: "refund", -} as const; -/** - * The type of expense. - */ -export type ExpenseExpenseType = ClosedEnum; - -/** - * Expense status - */ -export const Expense2Status = { - Draft: "draft", - Posted: "posted", -} as const; -/** - * Expense status - */ -export type Expense2Status = ClosedEnum; - -export type Expense2 = { - /** - * A unique identifier for an object. - */ - id?: string | undefined; - /** - * Number. - */ - number?: string | null | undefined; - /** - * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - */ - transactionDate: Date | null; - /** - * The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - accountId?: string | undefined; - account: LinkedLedgerAccount | null; - bankAccount?: LinkedBankAccount | null | undefined; - /** - * The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - */ - customerId?: string | undefined; - /** - * The ID of the supplier this entity is linked to. - */ - supplierId?: string | undefined; - /** - * The company ID the transaction belongs to - */ - companyId?: string | null | undefined; - /** - * The ID of the department - */ - departmentId?: string | null | undefined; - /** - * The type of payment for the expense. - */ - paymentType?: Expense2PaymentType | null | undefined; - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - currency?: Currency | null | undefined; - /** - * Currency Exchange Rate at the time entity was recorded/generated. + * Amounts are including tax */ - currencyRate?: number | null | undefined; + taxInclusive?: boolean | null | undefined; /** - * The type of expense. + * Subtotal amount, normally before tax. */ - type?: ExpenseExpenseType | null | undefined; + subTotal?: number | null | undefined; /** - * The memo of the expense. + * Total tax amount applied to this transaction. */ - memo?: string | null | undefined; - taxRate?: LinkedTaxRate | undefined; + totalTax?: number | null | undefined; /** * The total amount of the expense line item. */ @@ -335,7 +200,7 @@ export type Expense2 = { /** * Expense status */ - status?: Expense2Status | null | undefined; + status?: ExpenseStatus | null | undefined; /** * The date and time when the object was last updated. */ @@ -362,49 +227,7 @@ export type Expense2 = { passThrough?: Array | undefined; }; -/** - * The type of payment for the expense. - */ -export const ExpensePaymentType = { - Cash: "cash", - Check: "check", - CreditCard: "credit_card", - Other: "other", -} as const; -/** - * The type of payment for the expense. - */ -export type ExpensePaymentType = ClosedEnum; - -/** - * The type of expense. - */ -export const ExpenseType = { - Expense: "expense", - Refund: "refund", -} as const; -/** - * The type of expense. - */ -export type ExpenseType = ClosedEnum; - -/** - * Expense status - */ -export const ExpenseStatus = { - Draft: "draft", - Posted: "posted", -} as const; -/** - * Expense status - */ -export type ExpenseStatus = ClosedEnum; - -export type Expense1 = { - /** - * A unique identifier for an object. - */ - id?: string | undefined; +export type ExpenseInput = { /** * Number. */ @@ -418,7 +241,7 @@ export type Expense1 = { * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ - accountId: string; + accountId?: string | undefined; account?: LinkedLedgerAccount | null | undefined; bankAccount?: LinkedBankAccount | null | undefined; /** @@ -426,9 +249,15 @@ export type Expense1 = { */ customerId?: string | undefined; /** - * The ID of the supplier this entity is linked to. + * The ID of the supplier this entity is linked to. Deprecated, use supplier instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ supplierId?: string | undefined; + /** + * The supplier this entity is linked to. + */ + supplier?: LinkedSupplierInput | null | undefined; /** * The company ID the transaction belongs to */ @@ -457,7 +286,19 @@ export type Expense1 = { * The memo of the expense. */ memo?: string | null | undefined; - taxRate?: LinkedTaxRate | undefined; + taxRate?: LinkedTaxRateInput | undefined; + /** + * Amounts are including tax + */ + taxInclusive?: boolean | null | undefined; + /** + * Subtotal amount, normally before tax. + */ + subTotal?: number | null | undefined; + /** + * Total tax amount applied to this transaction. + */ + totalTax?: number | null | undefined; /** * The total amount of the expense line item. */ @@ -465,7 +306,7 @@ export type Expense1 = { /** * Expense line items linked to this expense. */ - lineItems: Array; + lineItems: Array; /** * Optional reference identifier for the transaction. */ @@ -475,365 +316,48 @@ export type Expense1 = { */ sourceDocumentUrl?: string | null | undefined; customFields?: Array | undefined; - /** - * When custom mappings are configured on the resource, the result is included here. - */ - customMappings?: { [k: string]: any } | null | undefined; /** * Expense status */ status?: ExpenseStatus | null | undefined; - /** - * The date and time when the object was last updated. - */ - updatedAt?: Date | null | undefined; - /** - * The date and time when the object was created. - */ - createdAt?: Date | null | undefined; /** * 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. */ rowVersion?: string | null | undefined; - /** - * The user who last updated the object. - */ - updatedBy?: string | null | undefined; - /** - * The user who created the object. - */ - createdBy?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; -export type Expense = Expense1 | Expense2 | Three; - -export type Expense3 = { - /** - * Number. - */ - number?: string | null | undefined; - /** - * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - */ - transactionDate: Date | null; - /** - * The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - accountId?: string | undefined; - account?: LinkedLedgerAccountInput | null | undefined; - bankAccount: LinkedBankAccount | null; - /** - * The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - */ - customerId?: string | undefined; - /** - * The ID of the supplier this entity is linked to. - */ - supplierId?: string | undefined; - /** - * The company ID the transaction belongs to - */ - companyId?: string | null | undefined; - /** - * The ID of the department - */ - departmentId?: string | null | undefined; - /** - * The type of payment for the expense. - */ - paymentType?: Expense3PaymentType | null | undefined; - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - currency?: Currency | null | undefined; - /** - * Currency Exchange Rate at the time entity was recorded/generated. - */ - currencyRate?: number | null | undefined; - /** - * The type of expense. - */ - type?: Expense3ExpenseType | null | undefined; - /** - * The memo of the expense. - */ - memo?: string | null | undefined; - taxRate?: LinkedTaxRateInput | undefined; - /** - * The total amount of the expense line item. - */ - totalAmount?: number | null | undefined; - /** - * Expense line items linked to this expense. - */ - lineItems: Array; - /** - * Optional reference identifier for the transaction. - */ - reference?: string | null | undefined; - /** - * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - */ - sourceDocumentUrl?: string | null | undefined; - customFields?: Array | undefined; - /** - * Expense status - */ - status?: Expense3Status | null | undefined; - /** - * 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. - */ - rowVersion?: string | null | undefined; - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - passThrough?: Array | undefined; -}; - -export type Expense2Input = { - /** - * Number. - */ - number?: string | null | undefined; - /** - * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - */ - transactionDate: Date | null; - /** - * The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - accountId?: string | undefined; - account: LinkedLedgerAccountInput | null; - bankAccount?: LinkedBankAccount | null | undefined; - /** - * The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - */ - customerId?: string | undefined; - /** - * The ID of the supplier this entity is linked to. - */ - supplierId?: string | undefined; - /** - * The company ID the transaction belongs to - */ - companyId?: string | null | undefined; - /** - * The ID of the department - */ - departmentId?: string | null | undefined; - /** - * The type of payment for the expense. - */ - paymentType?: Expense2PaymentType | null | undefined; - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - currency?: Currency | null | undefined; - /** - * Currency Exchange Rate at the time entity was recorded/generated. - */ - currencyRate?: number | null | undefined; - /** - * The type of expense. - */ - type?: ExpenseExpenseType | null | undefined; - /** - * The memo of the expense. - */ - memo?: string | null | undefined; - taxRate?: LinkedTaxRateInput | undefined; - /** - * The total amount of the expense line item. - */ - totalAmount?: number | null | undefined; - /** - * Expense line items linked to this expense. - */ - lineItems: Array; - /** - * Optional reference identifier for the transaction. - */ - reference?: string | null | undefined; - /** - * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - */ - sourceDocumentUrl?: string | null | undefined; - customFields?: Array | undefined; - /** - * Expense status - */ - status?: Expense2Status | null | undefined; - /** - * 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. - */ - rowVersion?: string | null | undefined; - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - passThrough?: Array | undefined; -}; - -export type Expense1Input = { - /** - * Number. - */ - number?: string | null | undefined; - /** - * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD - */ - transactionDate: Date | null; - /** - * The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - accountId: string; - account?: LinkedLedgerAccountInput | null | undefined; - bankAccount?: LinkedBankAccount | null | undefined; - /** - * The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. - */ - customerId?: string | undefined; - /** - * The ID of the supplier this entity is linked to. - */ - supplierId?: string | undefined; - /** - * The company ID the transaction belongs to - */ - companyId?: string | null | undefined; - /** - * The ID of the department - */ - departmentId?: string | null | undefined; - /** - * The type of payment for the expense. - */ - paymentType?: ExpensePaymentType | null | undefined; - /** - * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). - */ - currency?: Currency | null | undefined; - /** - * Currency Exchange Rate at the time entity was recorded/generated. - */ - currencyRate?: number | null | undefined; - /** - * The type of expense. - */ - type?: ExpenseType | null | undefined; - /** - * The memo of the expense. - */ - memo?: string | null | undefined; - taxRate?: LinkedTaxRateInput | undefined; - /** - * The total amount of the expense line item. - */ - totalAmount?: number | null | undefined; - /** - * Expense line items linked to this expense. - */ - lineItems: Array; - /** - * Optional reference identifier for the transaction. - */ - reference?: string | null | undefined; - /** - * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. - */ - sourceDocumentUrl?: string | null | undefined; - customFields?: Array | undefined; - /** - * Expense status - */ - status?: ExpenseStatus | null | undefined; - /** - * 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. - */ - rowVersion?: string | null | undefined; - /** - * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. - */ - passThrough?: Array | undefined; -}; - -export type ExpenseInput = Expense1Input | Expense2Input | Expense3; - -/** @internal */ -export const Expense3PaymentType$inboundSchema: z.ZodNativeEnum< - typeof Expense3PaymentType -> = z.nativeEnum(Expense3PaymentType); - -/** @internal */ -export const Expense3PaymentType$outboundSchema: z.ZodNativeEnum< - typeof Expense3PaymentType -> = Expense3PaymentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense3PaymentType$ { - /** @deprecated use `Expense3PaymentType$inboundSchema` instead. */ - export const inboundSchema = Expense3PaymentType$inboundSchema; - /** @deprecated use `Expense3PaymentType$outboundSchema` instead. */ - export const outboundSchema = Expense3PaymentType$outboundSchema; -} +/** @internal */ +export const ExpensePaymentType$inboundSchema: z.ZodNativeEnum< + typeof ExpensePaymentType +> = z.nativeEnum(ExpensePaymentType); +/** @internal */ +export const ExpensePaymentType$outboundSchema: z.ZodNativeEnum< + typeof ExpensePaymentType +> = ExpensePaymentType$inboundSchema; /** @internal */ -export const Expense3ExpenseType$inboundSchema: z.ZodNativeEnum< - typeof Expense3ExpenseType -> = z.nativeEnum(Expense3ExpenseType); - +export const ExpenseType$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(ExpenseType); /** @internal */ -export const Expense3ExpenseType$outboundSchema: z.ZodNativeEnum< - typeof Expense3ExpenseType -> = Expense3ExpenseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense3ExpenseType$ { - /** @deprecated use `Expense3ExpenseType$inboundSchema` instead. */ - export const inboundSchema = Expense3ExpenseType$inboundSchema; - /** @deprecated use `Expense3ExpenseType$outboundSchema` instead. */ - export const outboundSchema = Expense3ExpenseType$outboundSchema; -} +export const ExpenseType$outboundSchema: z.ZodNativeEnum = + ExpenseType$inboundSchema; /** @internal */ -export const Expense3Status$inboundSchema: z.ZodNativeEnum< - typeof Expense3Status -> = z.nativeEnum(Expense3Status); - +export const ExpenseStatus$inboundSchema: z.ZodNativeEnum< + typeof ExpenseStatus +> = z.nativeEnum(ExpenseStatus); /** @internal */ -export const Expense3Status$outboundSchema: z.ZodNativeEnum< - typeof Expense3Status -> = Expense3Status$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense3Status$ { - /** @deprecated use `Expense3Status$inboundSchema` instead. */ - export const inboundSchema = Expense3Status$inboundSchema; - /** @deprecated use `Expense3Status$outboundSchema` instead. */ - export const outboundSchema = Expense3Status$outboundSchema; -} +export const ExpenseStatus$outboundSchema: z.ZodNativeEnum< + typeof ExpenseStatus +> = ExpenseStatus$inboundSchema; /** @internal */ -export const Three$inboundSchema: z.ZodType = z - .object({ +export const Expense$inboundSchema: z.ZodType = + z.object({ id: z.string().optional(), number: z.nullable(z.string()).optional(), transaction_date: z.nullable( @@ -841,24 +365,28 @@ export const Three$inboundSchema: z.ZodType = z ), account_id: z.string().optional(), account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(), - bank_account: z.nullable(LinkedBankAccount$inboundSchema), + bank_account: z.nullable(LinkedBankAccount$inboundSchema).optional(), customer_id: z.string().optional(), supplier_id: z.string().optional(), + supplier: z.nullable(LinkedSupplier$inboundSchema).optional(), company_id: z.nullable(z.string()).optional(), department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(Expense3PaymentType$inboundSchema).optional(), + payment_type: z.nullable(ExpensePaymentType$inboundSchema).optional(), currency: z.nullable(Currency$inboundSchema).optional(), currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(Expense3ExpenseType$inboundSchema).optional(), + type: z.nullable(ExpenseType$inboundSchema).optional(), memo: z.nullable(z.string()).optional(), tax_rate: LinkedTaxRate$inboundSchema.optional(), + tax_inclusive: z.nullable(z.boolean()).optional(), + sub_total: z.nullable(z.number()).optional(), + total_tax: z.nullable(z.number()).optional(), total_amount: z.nullable(z.number()).optional(), line_items: z.array(ExpenseLineItem$inboundSchema), reference: z.nullable(z.string()).optional(), source_document_url: z.nullable(z.string()).optional(), custom_fields: z.array(CustomField$inboundSchema).optional(), custom_mappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(Expense3Status$inboundSchema).optional(), + status: z.nullable(ExpenseStatus$inboundSchema).optional(), updated_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), @@ -881,6 +409,9 @@ export const Three$inboundSchema: z.ZodType = z "payment_type": "paymentType", "currency_rate": "currencyRate", "tax_rate": "taxRate", + "tax_inclusive": "taxInclusive", + "sub_total": "subTotal", + "total_tax": "totalTax", "total_amount": "totalAmount", "line_items": "lineItems", "source_document_url": "sourceDocumentUrl", @@ -895,16 +426,26 @@ export const Three$inboundSchema: z.ZodType = z }); }); +export function expenseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Expense$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Expense' from JSON`, + ); +} + /** @internal */ -export type Three$Outbound = { - id?: string | undefined; +export type ExpenseInput$Outbound = { number?: string | null | undefined; transaction_date: string | null; account_id?: string | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; - bank_account: LinkedBankAccount$Outbound | null; + bank_account?: LinkedBankAccount$Outbound | null | undefined; customer_id?: string | undefined; supplier_id?: string | undefined; + supplier?: LinkedSupplierInput$Outbound | null | undefined; company_id?: string | null | undefined; department_id?: string | null | undefined; payment_type?: string | null | undefined; @@ -912,1066 +453,34 @@ export type Three$Outbound = { currency_rate?: number | null | undefined; type?: string | null | undefined; memo?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; + tax_rate?: LinkedTaxRateInput$Outbound | undefined; + tax_inclusive?: boolean | null | undefined; + sub_total?: number | null | undefined; + total_tax?: number | null | undefined; total_amount?: number | null | undefined; - line_items: Array; + line_items: Array; reference?: string | null | undefined; source_document_url?: string | null | undefined; custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; status?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ -export const Three$outboundSchema: z.ZodType< - Three$Outbound, +export const ExpenseInput$outboundSchema: z.ZodType< + ExpenseInput$Outbound, z.ZodTypeDef, - Three -> = z.object({ - id: z.string().optional(), - number: z.nullable(z.string()).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - bankAccount: z.nullable(LinkedBankAccount$outboundSchema), - customerId: z.string().optional(), - supplierId: z.string().optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - paymentType: z.nullable(Expense3PaymentType$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - type: z.nullable(Expense3ExpenseType$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - totalAmount: z.nullable(z.number()).optional(), - lineItems: z.array(ExpenseLineItem$outboundSchema), - reference: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(Expense3Status$outboundSchema).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - transactionDate: "transaction_date", - accountId: "account_id", - bankAccount: "bank_account", - customerId: "customer_id", - supplierId: "supplier_id", - companyId: "company_id", - departmentId: "department_id", - paymentType: "payment_type", - currencyRate: "currency_rate", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineItems: "line_items", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Three$ { - /** @deprecated use `Three$inboundSchema` instead. */ - export const inboundSchema = Three$inboundSchema; - /** @deprecated use `Three$outboundSchema` instead. */ - export const outboundSchema = Three$outboundSchema; - /** @deprecated use `Three$Outbound` instead. */ - export type Outbound = Three$Outbound; -} - -export function threeToJSON(three: Three): string { - return JSON.stringify(Three$outboundSchema.parse(three)); -} - -export function threeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Three$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Three' from JSON`, - ); -} - -/** @internal */ -export const Expense2PaymentType$inboundSchema: z.ZodNativeEnum< - typeof Expense2PaymentType -> = z.nativeEnum(Expense2PaymentType); - -/** @internal */ -export const Expense2PaymentType$outboundSchema: z.ZodNativeEnum< - typeof Expense2PaymentType -> = Expense2PaymentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense2PaymentType$ { - /** @deprecated use `Expense2PaymentType$inboundSchema` instead. */ - export const inboundSchema = Expense2PaymentType$inboundSchema; - /** @deprecated use `Expense2PaymentType$outboundSchema` instead. */ - export const outboundSchema = Expense2PaymentType$outboundSchema; -} - -/** @internal */ -export const ExpenseExpenseType$inboundSchema: z.ZodNativeEnum< - typeof ExpenseExpenseType -> = z.nativeEnum(ExpenseExpenseType); - -/** @internal */ -export const ExpenseExpenseType$outboundSchema: z.ZodNativeEnum< - typeof ExpenseExpenseType -> = ExpenseExpenseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseExpenseType$ { - /** @deprecated use `ExpenseExpenseType$inboundSchema` instead. */ - export const inboundSchema = ExpenseExpenseType$inboundSchema; - /** @deprecated use `ExpenseExpenseType$outboundSchema` instead. */ - export const outboundSchema = ExpenseExpenseType$outboundSchema; -} - -/** @internal */ -export const Expense2Status$inboundSchema: z.ZodNativeEnum< - typeof Expense2Status -> = z.nativeEnum(Expense2Status); - -/** @internal */ -export const Expense2Status$outboundSchema: z.ZodNativeEnum< - typeof Expense2Status -> = Expense2Status$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense2Status$ { - /** @deprecated use `Expense2Status$inboundSchema` instead. */ - export const inboundSchema = Expense2Status$inboundSchema; - /** @deprecated use `Expense2Status$outboundSchema` instead. */ - export const outboundSchema = Expense2Status$outboundSchema; -} - -/** @internal */ -export const Expense2$inboundSchema: z.ZodType< - Expense2, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - number: z.nullable(z.string()).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - account_id: z.string().optional(), - account: z.nullable(LinkedLedgerAccount$inboundSchema), - bank_account: z.nullable(LinkedBankAccount$inboundSchema).optional(), - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(Expense2PaymentType$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseExpenseType$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRate$inboundSchema.optional(), - total_amount: z.nullable(z.number()).optional(), - line_items: z.array(ExpenseLineItem$inboundSchema), - reference: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - custom_mappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(Expense2Status$inboundSchema).optional(), - updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - row_version: z.nullable(z.string()).optional(), - updated_by: z.nullable(z.string()).optional(), - created_by: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_date": "transactionDate", - "account_id": "accountId", - "bank_account": "bankAccount", - "customer_id": "customerId", - "supplier_id": "supplierId", - "company_id": "companyId", - "department_id": "departmentId", - "payment_type": "paymentType", - "currency_rate": "currencyRate", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_items": "lineItems", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "custom_mappings": "customMappings", - "updated_at": "updatedAt", - "created_at": "createdAt", - "row_version": "rowVersion", - "updated_by": "updatedBy", - "created_by": "createdBy", - "pass_through": "passThrough", - }); -}); - -/** @internal */ -export type Expense2$Outbound = { - id?: string | undefined; - number?: string | null | undefined; - transaction_date: string | null; - account_id?: string | undefined; - account: LinkedLedgerAccount$Outbound | null; - bank_account?: LinkedBankAccount$Outbound | null | undefined; - customer_id?: string | undefined; - supplier_id?: string | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - payment_type?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - type?: string | null | undefined; - memo?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - total_amount?: number | null | undefined; - line_items: Array; - reference?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - status?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Expense2$outboundSchema: z.ZodType< - Expense2$Outbound, - z.ZodTypeDef, - Expense2 -> = z.object({ - id: z.string().optional(), - number: z.nullable(z.string()).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema), - bankAccount: z.nullable(LinkedBankAccount$outboundSchema).optional(), - customerId: z.string().optional(), - supplierId: z.string().optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - paymentType: z.nullable(Expense2PaymentType$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseExpenseType$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - totalAmount: z.nullable(z.number()).optional(), - lineItems: z.array(ExpenseLineItem$outboundSchema), - reference: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(Expense2Status$outboundSchema).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - transactionDate: "transaction_date", - accountId: "account_id", - bankAccount: "bank_account", - customerId: "customer_id", - supplierId: "supplier_id", - companyId: "company_id", - departmentId: "department_id", - paymentType: "payment_type", - currencyRate: "currency_rate", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineItems: "line_items", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense2$ { - /** @deprecated use `Expense2$inboundSchema` instead. */ - export const inboundSchema = Expense2$inboundSchema; - /** @deprecated use `Expense2$outboundSchema` instead. */ - export const outboundSchema = Expense2$outboundSchema; - /** @deprecated use `Expense2$Outbound` instead. */ - export type Outbound = Expense2$Outbound; -} - -export function expense2ToJSON(expense2: Expense2): string { - return JSON.stringify(Expense2$outboundSchema.parse(expense2)); -} - -export function expense2FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense2' from JSON`, - ); -} - -/** @internal */ -export const ExpensePaymentType$inboundSchema: z.ZodNativeEnum< - typeof ExpensePaymentType -> = z.nativeEnum(ExpensePaymentType); - -/** @internal */ -export const ExpensePaymentType$outboundSchema: z.ZodNativeEnum< - typeof ExpensePaymentType -> = ExpensePaymentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpensePaymentType$ { - /** @deprecated use `ExpensePaymentType$inboundSchema` instead. */ - export const inboundSchema = ExpensePaymentType$inboundSchema; - /** @deprecated use `ExpensePaymentType$outboundSchema` instead. */ - export const outboundSchema = ExpensePaymentType$outboundSchema; -} - -/** @internal */ -export const ExpenseType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ExpenseType); - -/** @internal */ -export const ExpenseType$outboundSchema: z.ZodNativeEnum = - ExpenseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseType$ { - /** @deprecated use `ExpenseType$inboundSchema` instead. */ - export const inboundSchema = ExpenseType$inboundSchema; - /** @deprecated use `ExpenseType$outboundSchema` instead. */ - export const outboundSchema = ExpenseType$outboundSchema; -} - -/** @internal */ -export const ExpenseStatus$inboundSchema: z.ZodNativeEnum< - typeof ExpenseStatus -> = z.nativeEnum(ExpenseStatus); - -/** @internal */ -export const ExpenseStatus$outboundSchema: z.ZodNativeEnum< - typeof ExpenseStatus -> = ExpenseStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseStatus$ { - /** @deprecated use `ExpenseStatus$inboundSchema` instead. */ - export const inboundSchema = ExpenseStatus$inboundSchema; - /** @deprecated use `ExpenseStatus$outboundSchema` instead. */ - export const outboundSchema = ExpenseStatus$outboundSchema; -} - -/** @internal */ -export const Expense1$inboundSchema: z.ZodType< - Expense1, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - number: z.nullable(z.string()).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - account_id: z.string(), - account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(), - bank_account: z.nullable(LinkedBankAccount$inboundSchema).optional(), - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(ExpensePaymentType$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseType$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRate$inboundSchema.optional(), - total_amount: z.nullable(z.number()).optional(), - line_items: z.array(ExpenseLineItem$inboundSchema), - reference: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - custom_mappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(ExpenseStatus$inboundSchema).optional(), - updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - row_version: z.nullable(z.string()).optional(), - updated_by: z.nullable(z.string()).optional(), - created_by: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_date": "transactionDate", - "account_id": "accountId", - "bank_account": "bankAccount", - "customer_id": "customerId", - "supplier_id": "supplierId", - "company_id": "companyId", - "department_id": "departmentId", - "payment_type": "paymentType", - "currency_rate": "currencyRate", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_items": "lineItems", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "custom_mappings": "customMappings", - "updated_at": "updatedAt", - "created_at": "createdAt", - "row_version": "rowVersion", - "updated_by": "updatedBy", - "created_by": "createdBy", - "pass_through": "passThrough", - }); -}); - -/** @internal */ -export type Expense1$Outbound = { - id?: string | undefined; - number?: string | null | undefined; - transaction_date: string | null; - account_id: string; - account?: LinkedLedgerAccount$Outbound | null | undefined; - bank_account?: LinkedBankAccount$Outbound | null | undefined; - customer_id?: string | undefined; - supplier_id?: string | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - payment_type?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - type?: string | null | undefined; - memo?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - total_amount?: number | null | undefined; - line_items: Array; - reference?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - status?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Expense1$outboundSchema: z.ZodType< - Expense1$Outbound, - z.ZodTypeDef, - Expense1 -> = z.object({ - id: z.string().optional(), - number: z.nullable(z.string()).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - accountId: z.string(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - bankAccount: z.nullable(LinkedBankAccount$outboundSchema).optional(), - customerId: z.string().optional(), - supplierId: z.string().optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - paymentType: z.nullable(ExpensePaymentType$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseType$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - totalAmount: z.nullable(z.number()).optional(), - lineItems: z.array(ExpenseLineItem$outboundSchema), - reference: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - status: z.nullable(ExpenseStatus$outboundSchema).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - transactionDate: "transaction_date", - accountId: "account_id", - bankAccount: "bank_account", - customerId: "customer_id", - supplierId: "supplier_id", - companyId: "company_id", - departmentId: "department_id", - paymentType: "payment_type", - currencyRate: "currency_rate", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineItems: "line_items", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense1$ { - /** @deprecated use `Expense1$inboundSchema` instead. */ - export const inboundSchema = Expense1$inboundSchema; - /** @deprecated use `Expense1$outboundSchema` instead. */ - export const outboundSchema = Expense1$outboundSchema; - /** @deprecated use `Expense1$Outbound` instead. */ - export type Outbound = Expense1$Outbound; -} - -export function expense1ToJSON(expense1: Expense1): string { - return JSON.stringify(Expense1$outboundSchema.parse(expense1)); -} - -export function expense1FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense1$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense1' from JSON`, - ); -} - -/** @internal */ -export const Expense$inboundSchema: z.ZodType = - z.union([ - z.lazy(() => Expense1$inboundSchema), - z.lazy(() => Expense2$inboundSchema), - z.lazy(() => Three$inboundSchema), - ]); - -/** @internal */ -export type Expense$Outbound = - | Expense1$Outbound - | Expense2$Outbound - | Three$Outbound; - -/** @internal */ -export const Expense$outboundSchema: z.ZodType< - Expense$Outbound, - z.ZodTypeDef, - Expense -> = z.union([ - z.lazy(() => Expense1$outboundSchema), - z.lazy(() => Expense2$outboundSchema), - z.lazy(() => Three$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense$ { - /** @deprecated use `Expense$inboundSchema` instead. */ - export const inboundSchema = Expense$inboundSchema; - /** @deprecated use `Expense$outboundSchema` instead. */ - export const outboundSchema = Expense$outboundSchema; - /** @deprecated use `Expense$Outbound` instead. */ - export type Outbound = Expense$Outbound; -} - -export function expenseToJSON(expense: Expense): string { - return JSON.stringify(Expense$outboundSchema.parse(expense)); -} - -export function expenseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense' from JSON`, - ); -} - -/** @internal */ -export const Expense3$inboundSchema: z.ZodType< - Expense3, - z.ZodTypeDef, - unknown -> = z.object({ - number: z.nullable(z.string()).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - account_id: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - bank_account: z.nullable(LinkedBankAccount$inboundSchema), - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(Expense3PaymentType$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(Expense3ExpenseType$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - total_amount: z.nullable(z.number()).optional(), - line_items: z.array(ExpenseLineItemInput$inboundSchema), - reference: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - status: z.nullable(Expense3Status$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_date": "transactionDate", - "account_id": "accountId", - "bank_account": "bankAccount", - "customer_id": "customerId", - "supplier_id": "supplierId", - "company_id": "companyId", - "department_id": "departmentId", - "payment_type": "paymentType", - "currency_rate": "currencyRate", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_items": "lineItems", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - -/** @internal */ -export type Expense3$Outbound = { - number?: string | null | undefined; - transaction_date: string | null; - account_id?: string | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; - bank_account: LinkedBankAccount$Outbound | null; - customer_id?: string | undefined; - supplier_id?: string | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - payment_type?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - type?: string | null | undefined; - memo?: string | null | undefined; - tax_rate?: LinkedTaxRateInput$Outbound | undefined; - total_amount?: number | null | undefined; - line_items: Array; - reference?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - status?: string | null | undefined; - row_version?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Expense3$outboundSchema: z.ZodType< - Expense3$Outbound, - z.ZodTypeDef, - Expense3 -> = z.object({ - number: z.nullable(z.string()).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), - bankAccount: z.nullable(LinkedBankAccount$outboundSchema), - customerId: z.string().optional(), - supplierId: z.string().optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - paymentType: z.nullable(Expense3PaymentType$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - type: z.nullable(Expense3ExpenseType$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRateInput$outboundSchema.optional(), - totalAmount: z.nullable(z.number()).optional(), - lineItems: z.array(ExpenseLineItemInput$outboundSchema), - reference: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - status: z.nullable(Expense3Status$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - transactionDate: "transaction_date", - accountId: "account_id", - bankAccount: "bank_account", - customerId: "customer_id", - supplierId: "supplier_id", - companyId: "company_id", - departmentId: "department_id", - paymentType: "payment_type", - currencyRate: "currency_rate", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineItems: "line_items", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - rowVersion: "row_version", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense3$ { - /** @deprecated use `Expense3$inboundSchema` instead. */ - export const inboundSchema = Expense3$inboundSchema; - /** @deprecated use `Expense3$outboundSchema` instead. */ - export const outboundSchema = Expense3$outboundSchema; - /** @deprecated use `Expense3$Outbound` instead. */ - export type Outbound = Expense3$Outbound; -} - -export function expense3ToJSON(expense3: Expense3): string { - return JSON.stringify(Expense3$outboundSchema.parse(expense3)); -} - -export function expense3FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense3$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense3' from JSON`, - ); -} - -/** @internal */ -export const Expense2Input$inboundSchema: z.ZodType< - Expense2Input, - z.ZodTypeDef, - unknown -> = z.object({ - number: z.nullable(z.string()).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - account_id: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema), - bank_account: z.nullable(LinkedBankAccount$inboundSchema).optional(), - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(Expense2PaymentType$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseExpenseType$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - total_amount: z.nullable(z.number()).optional(), - line_items: z.array(ExpenseLineItemInput$inboundSchema), - reference: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - status: z.nullable(Expense2Status$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_date": "transactionDate", - "account_id": "accountId", - "bank_account": "bankAccount", - "customer_id": "customerId", - "supplier_id": "supplierId", - "company_id": "companyId", - "department_id": "departmentId", - "payment_type": "paymentType", - "currency_rate": "currencyRate", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_items": "lineItems", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - -/** @internal */ -export type Expense2Input$Outbound = { - number?: string | null | undefined; - transaction_date: string | null; - account_id?: string | undefined; - account: LinkedLedgerAccountInput$Outbound | null; - bank_account?: LinkedBankAccount$Outbound | null | undefined; - customer_id?: string | undefined; - supplier_id?: string | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - payment_type?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - type?: string | null | undefined; - memo?: string | null | undefined; - tax_rate?: LinkedTaxRateInput$Outbound | undefined; - total_amount?: number | null | undefined; - line_items: Array; - reference?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - status?: string | null | undefined; - row_version?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Expense2Input$outboundSchema: z.ZodType< - Expense2Input$Outbound, - z.ZodTypeDef, - Expense2Input + ExpenseInput > = z.object({ number: z.nullable(z.string()).optional(), transactionDate: z.nullable(z.date().transform(v => v.toISOString())), accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema), - bankAccount: z.nullable(LinkedBankAccount$outboundSchema).optional(), - customerId: z.string().optional(), - supplierId: z.string().optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - paymentType: z.nullable(Expense2PaymentType$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseExpenseType$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRateInput$outboundSchema.optional(), - totalAmount: z.nullable(z.number()).optional(), - lineItems: z.array(ExpenseLineItemInput$outboundSchema), - reference: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - status: z.nullable(Expense2Status$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - transactionDate: "transaction_date", - accountId: "account_id", - bankAccount: "bank_account", - customerId: "customer_id", - supplierId: "supplier_id", - companyId: "company_id", - departmentId: "department_id", - paymentType: "payment_type", - currencyRate: "currency_rate", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineItems: "line_items", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - rowVersion: "row_version", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense2Input$ { - /** @deprecated use `Expense2Input$inboundSchema` instead. */ - export const inboundSchema = Expense2Input$inboundSchema; - /** @deprecated use `Expense2Input$outboundSchema` instead. */ - export const outboundSchema = Expense2Input$outboundSchema; - /** @deprecated use `Expense2Input$Outbound` instead. */ - export type Outbound = Expense2Input$Outbound; -} - -export function expense2InputToJSON(expense2Input: Expense2Input): string { - return JSON.stringify(Expense2Input$outboundSchema.parse(expense2Input)); -} - -export function expense2InputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense2Input$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense2Input' from JSON`, - ); -} - -/** @internal */ -export const Expense1Input$inboundSchema: z.ZodType< - Expense1Input, - z.ZodTypeDef, - unknown -> = z.object({ - number: z.nullable(z.string()).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - account_id: z.string(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - bank_account: z.nullable(LinkedBankAccount$inboundSchema).optional(), - customer_id: z.string().optional(), - supplier_id: z.string().optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - payment_type: z.nullable(ExpensePaymentType$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - type: z.nullable(ExpenseType$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - total_amount: z.nullable(z.number()).optional(), - line_items: z.array(ExpenseLineItemInput$inboundSchema), - reference: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - status: z.nullable(ExpenseStatus$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_date": "transactionDate", - "account_id": "accountId", - "bank_account": "bankAccount", - "customer_id": "customerId", - "supplier_id": "supplierId", - "company_id": "companyId", - "department_id": "departmentId", - "payment_type": "paymentType", - "currency_rate": "currencyRate", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_items": "lineItems", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - -/** @internal */ -export type Expense1Input$Outbound = { - number?: string | null | undefined; - transaction_date: string | null; - account_id: string; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; - bank_account?: LinkedBankAccount$Outbound | null | undefined; - customer_id?: string | undefined; - supplier_id?: string | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - payment_type?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - type?: string | null | undefined; - memo?: string | null | undefined; - tax_rate?: LinkedTaxRateInput$Outbound | undefined; - total_amount?: number | null | undefined; - line_items: Array; - reference?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - status?: string | null | undefined; - row_version?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Expense1Input$outboundSchema: z.ZodType< - Expense1Input$Outbound, - z.ZodTypeDef, - Expense1Input -> = z.object({ - number: z.nullable(z.string()).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - accountId: z.string(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), bankAccount: z.nullable(LinkedBankAccount$outboundSchema).optional(), customerId: z.string().optional(), supplierId: z.string().optional(), + supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(), companyId: z.nullable(z.string()).optional(), departmentId: z.nullable(z.string()).optional(), paymentType: z.nullable(ExpensePaymentType$outboundSchema).optional(), @@ -1980,6 +489,9 @@ export const Expense1Input$outboundSchema: z.ZodType< type: z.nullable(ExpenseType$outboundSchema).optional(), memo: z.nullable(z.string()).optional(), taxRate: LinkedTaxRateInput$outboundSchema.optional(), + taxInclusive: z.nullable(z.boolean()).optional(), + subTotal: z.nullable(z.number()).optional(), + totalTax: z.nullable(z.number()).optional(), totalAmount: z.nullable(z.number()).optional(), lineItems: z.array(ExpenseLineItemInput$outboundSchema), reference: z.nullable(z.string()).optional(), @@ -2000,6 +512,9 @@ export const Expense1Input$outboundSchema: z.ZodType< paymentType: "payment_type", currencyRate: "currency_rate", taxRate: "tax_rate", + taxInclusive: "tax_inclusive", + subTotal: "sub_total", + totalTax: "total_tax", totalAmount: "total_amount", lineItems: "line_items", sourceDocumentUrl: "source_document_url", @@ -2009,84 +524,6 @@ export const Expense1Input$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expense1Input$ { - /** @deprecated use `Expense1Input$inboundSchema` instead. */ - export const inboundSchema = Expense1Input$inboundSchema; - /** @deprecated use `Expense1Input$outboundSchema` instead. */ - export const outboundSchema = Expense1Input$outboundSchema; - /** @deprecated use `Expense1Input$Outbound` instead. */ - export type Outbound = Expense1Input$Outbound; -} - -export function expense1InputToJSON(expense1Input: Expense1Input): string { - return JSON.stringify(Expense1Input$outboundSchema.parse(expense1Input)); -} - -export function expense1InputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Expense1Input$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Expense1Input' from JSON`, - ); -} - -/** @internal */ -export const ExpenseInput$inboundSchema: z.ZodType< - ExpenseInput, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => Expense1Input$inboundSchema), - z.lazy(() => Expense2Input$inboundSchema), - z.lazy(() => Expense3$inboundSchema), -]); - -/** @internal */ -export type ExpenseInput$Outbound = - | Expense1Input$Outbound - | Expense2Input$Outbound - | Expense3$Outbound; - -/** @internal */ -export const ExpenseInput$outboundSchema: z.ZodType< - ExpenseInput$Outbound, - z.ZodTypeDef, - ExpenseInput -> = z.union([ - z.lazy(() => Expense1Input$outboundSchema), - z.lazy(() => Expense2Input$outboundSchema), - z.lazy(() => Expense3$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseInput$ { - /** @deprecated use `ExpenseInput$inboundSchema` instead. */ - export const inboundSchema = ExpenseInput$inboundSchema; - /** @deprecated use `ExpenseInput$outboundSchema` instead. */ - export const outboundSchema = ExpenseInput$outboundSchema; - /** @deprecated use `ExpenseInput$Outbound` instead. */ - export type Outbound = ExpenseInput$Outbound; -} - export function expenseInputToJSON(expenseInput: ExpenseInput): string { return JSON.stringify(ExpenseInput$outboundSchema.parse(expenseInput)); } - -export function expenseInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ExpenseInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ExpenseInput' from JSON`, - ); -} diff --git a/src/models/components/expenselineitem.ts b/src/models/components/expenselineitem.ts index 9dbb1c30d..2e586a948 100644 --- a/src/models/components/expenselineitem.ts +++ b/src/models/components/expenselineitem.ts @@ -7,30 +7,21 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { LineItemType, LineItemType$inboundSchema } from "./lineitemtype.js"; +import { + LinkedInvoiceItem, + LinkedInvoiceItem$inboundSchema, +} from "./linkedinvoiceitem.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$inboundSchema, - LinkedLedgerAccount$Outbound, - LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$inboundSchema, - LinkedTrackingCategory$Outbound, - LinkedTrackingCategory$outboundSchema, } from "./linkedtrackingcategory.js"; -import { - Rebilling, - Rebilling$inboundSchema, - Rebilling$Outbound, - Rebilling$outboundSchema, -} from "./rebilling.js"; +import { Rebilling, Rebilling$inboundSchema } from "./rebilling.js"; export type ExpenseLineItem = { /** @@ -69,12 +60,25 @@ export type ExpenseLineItem = { * The expense line item description */ description?: string | null | undefined; + /** + * Line Item type + */ + type?: LineItemType | null | undefined; /** * The total amount of the expense line item. */ totalAmount: number | null; + /** + * Tax amount + */ + taxAmount?: number | null | undefined; + quantity?: number | null | undefined; + unitPrice?: number | null | undefined; + item?: LinkedInvoiceItem | undefined; /** * Boolean that indicates if the line item is billable or not. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ billable?: boolean | undefined; /** @@ -105,7 +109,12 @@ export const ExpenseLineItem$inboundSchema: z.ZodType< subsidiary_id: z.nullable(z.string()).optional(), tax_rate: LinkedTaxRate$inboundSchema.optional(), description: z.nullable(z.string()).optional(), + type: z.nullable(LineItemType$inboundSchema).optional(), total_amount: z.nullable(z.number()), + tax_amount: z.nullable(z.number()).optional(), + quantity: z.nullable(z.number()).optional(), + unit_price: z.nullable(z.number()).optional(), + item: LinkedInvoiceItem$inboundSchema.optional(), billable: z.boolean().optional(), line_number: z.nullable(z.number().int()).optional(), rebilling: z.nullable(Rebilling$inboundSchema).optional(), @@ -119,86 +128,12 @@ export const ExpenseLineItem$inboundSchema: z.ZodType< "subsidiary_id": "subsidiaryId", "tax_rate": "taxRate", "total_amount": "totalAmount", + "tax_amount": "taxAmount", + "unit_price": "unitPrice", "line_number": "lineNumber", }); }); -/** @internal */ -export type ExpenseLineItem$Outbound = { - id?: string | undefined; - tracking_categories?: - | Array - | null - | undefined; - account_id?: string | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - customer_id?: string | undefined; - department_id?: string | null | undefined; - location_id?: string | null | undefined; - subsidiary_id?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - description?: string | null | undefined; - total_amount: number | null; - billable?: boolean | undefined; - line_number?: number | null | undefined; - rebilling?: Rebilling$Outbound | null | undefined; -}; - -/** @internal */ -export const ExpenseLineItem$outboundSchema: z.ZodType< - ExpenseLineItem$Outbound, - z.ZodTypeDef, - ExpenseLineItem -> = z.object({ - id: z.string().optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - customerId: z.string().optional(), - departmentId: z.nullable(z.string()).optional(), - locationId: z.nullable(z.string()).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - description: z.nullable(z.string()).optional(), - totalAmount: z.nullable(z.number()), - billable: z.boolean().optional(), - lineNumber: z.nullable(z.number().int()).optional(), - rebilling: z.nullable(Rebilling$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - trackingCategories: "tracking_categories", - accountId: "account_id", - customerId: "customer_id", - departmentId: "department_id", - locationId: "location_id", - subsidiaryId: "subsidiary_id", - taxRate: "tax_rate", - totalAmount: "total_amount", - lineNumber: "line_number", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseLineItem$ { - /** @deprecated use `ExpenseLineItem$inboundSchema` instead. */ - export const inboundSchema = ExpenseLineItem$inboundSchema; - /** @deprecated use `ExpenseLineItem$outboundSchema` instead. */ - export const outboundSchema = ExpenseLineItem$outboundSchema; - /** @deprecated use `ExpenseLineItem$Outbound` instead. */ - export type Outbound = ExpenseLineItem$Outbound; -} - -export function expenseLineItemToJSON( - expenseLineItem: ExpenseLineItem, -): string { - return JSON.stringify(ExpenseLineItem$outboundSchema.parse(expenseLineItem)); -} - export function expenseLineItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/expenselineiteminput.ts b/src/models/components/expenselineiteminput.ts index e1dccf6d9..d115edb2e 100644 --- a/src/models/components/expenselineiteminput.ts +++ b/src/models/components/expenselineiteminput.ts @@ -4,30 +4,29 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { LineItemType, LineItemType$outboundSchema } from "./lineitemtype.js"; import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; + LinkedInvoiceItem, + LinkedInvoiceItem$Outbound, + LinkedInvoiceItem$outboundSchema, +} from "./linkedinvoiceitem.js"; +import { + LinkedLedgerAccount, + LinkedLedgerAccount$Outbound, + LinkedLedgerAccount$outboundSchema, +} from "./linkedledgeraccount.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; import { LinkedTrackingCategory, - LinkedTrackingCategory$inboundSchema, LinkedTrackingCategory$Outbound, LinkedTrackingCategory$outboundSchema, } from "./linkedtrackingcategory.js"; import { Rebilling, - Rebilling$inboundSchema, Rebilling$Outbound, Rebilling$outboundSchema, } from "./rebilling.js"; @@ -43,7 +42,7 @@ export type ExpenseLineItemInput = { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ accountId?: string | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; /** * The ID of the customer this expense item is linked to. */ @@ -65,12 +64,25 @@ export type ExpenseLineItemInput = { * The expense line item description */ description?: string | null | undefined; + /** + * Line Item type + */ + type?: LineItemType | null | undefined; /** * The total amount of the expense line item. */ totalAmount: number | null; + /** + * Tax amount + */ + taxAmount?: number | null | undefined; + quantity?: number | null | undefined; + unitPrice?: number | null | undefined; + item?: LinkedInvoiceItem | undefined; /** * Boolean that indicates if the line item is billable or not. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ billable?: boolean | undefined; /** @@ -83,41 +95,6 @@ export type ExpenseLineItemInput = { rebilling?: Rebilling | null | undefined; }; -/** @internal */ -export const ExpenseLineItemInput$inboundSchema: z.ZodType< - ExpenseLineItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - account_id: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - customer_id: z.string().optional(), - department_id: z.nullable(z.string()).optional(), - location_id: z.nullable(z.string()).optional(), - subsidiary_id: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - description: z.nullable(z.string()).optional(), - total_amount: z.nullable(z.number()), - billable: z.boolean().optional(), - line_number: z.nullable(z.number().int()).optional(), - rebilling: z.nullable(Rebilling$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "tracking_categories": "trackingCategories", - "account_id": "accountId", - "customer_id": "customerId", - "department_id": "departmentId", - "location_id": "locationId", - "subsidiary_id": "subsidiaryId", - "tax_rate": "taxRate", - "total_amount": "totalAmount", - "line_number": "lineNumber", - }); -}); - /** @internal */ export type ExpenseLineItemInput$Outbound = { tracking_categories?: @@ -125,14 +102,19 @@ export type ExpenseLineItemInput$Outbound = { | null | undefined; account_id?: string | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; customer_id?: string | undefined; department_id?: string | null | undefined; location_id?: string | null | undefined; subsidiary_id?: string | null | undefined; tax_rate?: LinkedTaxRateInput$Outbound | undefined; description?: string | null | undefined; + type?: string | null | undefined; total_amount: number | null; + tax_amount?: number | null | undefined; + quantity?: number | null | undefined; + unit_price?: number | null | undefined; + item?: LinkedInvoiceItem$Outbound | undefined; billable?: boolean | undefined; line_number?: number | null | undefined; rebilling?: Rebilling$Outbound | null | undefined; @@ -148,14 +130,19 @@ export const ExpenseLineItemInput$outboundSchema: z.ZodType< z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), accountId: z.string().optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), customerId: z.string().optional(), departmentId: z.nullable(z.string()).optional(), locationId: z.nullable(z.string()).optional(), subsidiaryId: z.nullable(z.string()).optional(), taxRate: LinkedTaxRateInput$outboundSchema.optional(), description: z.nullable(z.string()).optional(), + type: z.nullable(LineItemType$outboundSchema).optional(), totalAmount: z.nullable(z.number()), + taxAmount: z.nullable(z.number()).optional(), + quantity: z.nullable(z.number()).optional(), + unitPrice: z.nullable(z.number()).optional(), + item: LinkedInvoiceItem$outboundSchema.optional(), billable: z.boolean().optional(), lineNumber: z.nullable(z.number().int()).optional(), rebilling: z.nullable(Rebilling$outboundSchema).optional(), @@ -169,23 +156,12 @@ export const ExpenseLineItemInput$outboundSchema: z.ZodType< subsidiaryId: "subsidiary_id", taxRate: "tax_rate", totalAmount: "total_amount", + taxAmount: "tax_amount", + unitPrice: "unit_price", lineNumber: "line_number", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpenseLineItemInput$ { - /** @deprecated use `ExpenseLineItemInput$inboundSchema` instead. */ - export const inboundSchema = ExpenseLineItemInput$inboundSchema; - /** @deprecated use `ExpenseLineItemInput$outboundSchema` instead. */ - export const outboundSchema = ExpenseLineItemInput$outboundSchema; - /** @deprecated use `ExpenseLineItemInput$Outbound` instead. */ - export type Outbound = ExpenseLineItemInput$Outbound; -} - export function expenseLineItemInputToJSON( expenseLineItemInput: ExpenseLineItemInput, ): string { @@ -193,13 +169,3 @@ export function expenseLineItemInputToJSON( ExpenseLineItemInput$outboundSchema.parse(expenseLineItemInput), ); } - -export function expenseLineItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ExpenseLineItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ExpenseLineItemInput' from JSON`, - ); -} diff --git a/src/models/components/expensesfilter.ts b/src/models/components/expensesfilter.ts index 2dc60cb76..86cf09005 100644 --- a/src/models/components/expensesfilter.ts +++ b/src/models/components/expensesfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ExpensesFilterStatus = { Draft: "draft", @@ -33,64 +30,15 @@ export type ExpensesFilter = { type?: ExpensesFilterType | undefined; }; -/** @internal */ -export const ExpensesFilterStatus$inboundSchema: z.ZodNativeEnum< - typeof ExpensesFilterStatus -> = z.nativeEnum(ExpensesFilterStatus); - /** @internal */ export const ExpensesFilterStatus$outboundSchema: z.ZodNativeEnum< typeof ExpensesFilterStatus -> = ExpensesFilterStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpensesFilterStatus$ { - /** @deprecated use `ExpensesFilterStatus$inboundSchema` instead. */ - export const inboundSchema = ExpensesFilterStatus$inboundSchema; - /** @deprecated use `ExpensesFilterStatus$outboundSchema` instead. */ - export const outboundSchema = ExpensesFilterStatus$outboundSchema; -} - -/** @internal */ -export const ExpensesFilterType$inboundSchema: z.ZodNativeEnum< - typeof ExpensesFilterType -> = z.nativeEnum(ExpensesFilterType); +> = z.nativeEnum(ExpensesFilterStatus); /** @internal */ export const ExpensesFilterType$outboundSchema: z.ZodNativeEnum< typeof ExpensesFilterType -> = ExpensesFilterType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpensesFilterType$ { - /** @deprecated use `ExpensesFilterType$inboundSchema` instead. */ - export const inboundSchema = ExpensesFilterType$inboundSchema; - /** @deprecated use `ExpensesFilterType$outboundSchema` instead. */ - export const outboundSchema = ExpensesFilterType$outboundSchema; -} - -/** @internal */ -export const ExpensesFilter$inboundSchema: z.ZodType< - ExpensesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - status: ExpensesFilterStatus$inboundSchema.optional(), - type: ExpensesFilterType$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - }); -}); +> = z.nativeEnum(ExpensesFilterType); /** @internal */ export type ExpensesFilter$Outbound = { @@ -114,29 +62,6 @@ export const ExpensesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExpensesFilter$ { - /** @deprecated use `ExpensesFilter$inboundSchema` instead. */ - export const inboundSchema = ExpensesFilter$inboundSchema; - /** @deprecated use `ExpensesFilter$outboundSchema` instead. */ - export const outboundSchema = ExpensesFilter$outboundSchema; - /** @deprecated use `ExpensesFilter$Outbound` instead. */ - export type Outbound = ExpensesFilter$Outbound; -} - export function expensesFilterToJSON(expensesFilter: ExpensesFilter): string { return JSON.stringify(ExpensesFilter$outboundSchema.parse(expensesFilter)); } - -export function expensesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ExpensesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ExpensesFilter' from JSON`, - ); -} diff --git a/src/models/components/filesfilter.ts b/src/models/components/filesfilter.ts index 09cb42f9f..97131ab28 100644 --- a/src/models/components/filesfilter.ts +++ b/src/models/components/filesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type FilesFilter = { /** @@ -23,22 +20,6 @@ export type FilesFilter = { shared?: boolean | undefined; }; -/** @internal */ -export const FilesFilter$inboundSchema: z.ZodType< - FilesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - drive_id: z.string().optional(), - folder_id: z.string().optional(), - shared: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - "drive_id": "driveId", - "folder_id": "folderId", - }); -}); - /** @internal */ export type FilesFilter$Outbound = { drive_id?: string | undefined; @@ -62,29 +43,6 @@ export const FilesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilesFilter$ { - /** @deprecated use `FilesFilter$inboundSchema` instead. */ - export const inboundSchema = FilesFilter$inboundSchema; - /** @deprecated use `FilesFilter$outboundSchema` instead. */ - export const outboundSchema = FilesFilter$outboundSchema; - /** @deprecated use `FilesFilter$Outbound` instead. */ - export type Outbound = FilesFilter$Outbound; -} - export function filesFilterToJSON(filesFilter: FilesFilter): string { return JSON.stringify(FilesFilter$outboundSchema.parse(filesFilter)); } - -export function filesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FilesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FilesFilter' from JSON`, - ); -} diff --git a/src/models/components/filessearch.ts b/src/models/components/filessearch.ts index 600b064f1..f36660c85 100644 --- a/src/models/components/filessearch.ts +++ b/src/models/components/filessearch.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -29,22 +25,6 @@ export type FilesSearch = { passThrough?: Array | undefined; }; -/** @internal */ -export const FilesSearch$inboundSchema: z.ZodType< - FilesSearch, - z.ZodTypeDef, - unknown -> = z.object({ - query: z.string(), - drive_id: z.string().optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "drive_id": "driveId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type FilesSearch$Outbound = { query: string; @@ -68,29 +48,6 @@ export const FilesSearch$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilesSearch$ { - /** @deprecated use `FilesSearch$inboundSchema` instead. */ - export const inboundSchema = FilesSearch$inboundSchema; - /** @deprecated use `FilesSearch$outboundSchema` instead. */ - export const outboundSchema = FilesSearch$outboundSchema; - /** @deprecated use `FilesSearch$Outbound` instead. */ - export type Outbound = FilesSearch$Outbound; -} - export function filesSearchToJSON(filesSearch: FilesSearch): string { return JSON.stringify(FilesSearch$outboundSchema.parse(filesSearch)); } - -export function filesSearchFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FilesSearch$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FilesSearch' from JSON`, - ); -} diff --git a/src/models/components/filessort.ts b/src/models/components/filessort.ts index 9c109ccdb..40b7786c0 100644 --- a/src/models/components/filessort.ts +++ b/src/models/components/filessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,34 +33,9 @@ export type FilesSort = { }; /** @internal */ -export const FilesSortBy$inboundSchema: z.ZodNativeEnum = z +export const FilesSortBy$outboundSchema: z.ZodNativeEnum = z .nativeEnum(FilesSortBy); -/** @internal */ -export const FilesSortBy$outboundSchema: z.ZodNativeEnum = - FilesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilesSortBy$ { - /** @deprecated use `FilesSortBy$inboundSchema` instead. */ - export const inboundSchema = FilesSortBy$inboundSchema; - /** @deprecated use `FilesSortBy$outboundSchema` instead. */ - export const outboundSchema = FilesSortBy$outboundSchema; -} - -/** @internal */ -export const FilesSort$inboundSchema: z.ZodType< - FilesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: FilesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); - /** @internal */ export type FilesSort$Outbound = { by?: string | undefined; @@ -81,29 +52,6 @@ export const FilesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilesSort$ { - /** @deprecated use `FilesSort$inboundSchema` instead. */ - export const inboundSchema = FilesSort$inboundSchema; - /** @deprecated use `FilesSort$outboundSchema` instead. */ - export const outboundSchema = FilesSort$outboundSchema; - /** @deprecated use `FilesSort$Outbound` instead. */ - export type Outbound = FilesSort$Outbound; -} - export function filesSortToJSON(filesSort: FilesSort): string { return JSON.stringify(FilesSort$outboundSchema.parse(filesSort)); } - -export function filesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FilesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FilesSort' from JSON`, - ); -} diff --git a/src/models/components/filetype.ts b/src/models/components/filetype.ts index 14cccb4d7..9bec78613 100644 --- a/src/models/components/filetype.ts +++ b/src/models/components/filetype.ts @@ -21,18 +21,3 @@ export type FileType = ClosedEnum; /** @internal */ export const FileType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(FileType); - -/** @internal */ -export const FileType$outboundSchema: z.ZodNativeEnum = - FileType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileType$ { - /** @deprecated use `FileType$inboundSchema` instead. */ - export const inboundSchema = FileType$inboundSchema; - /** @deprecated use `FileType$outboundSchema` instead. */ - export const outboundSchema = FileType$outboundSchema; -} diff --git a/src/models/components/folder.ts b/src/models/components/folder.ts index b9dd5ba63..0c800be5b 100644 --- a/src/models/components/folder.ts +++ b/src/models/components/folder.ts @@ -7,18 +7,8 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - LinkedFolder, - LinkedFolder$inboundSchema, - LinkedFolder$Outbound, - LinkedFolder$outboundSchema, -} from "./linkedfolder.js"; -import { - Owner, - Owner$inboundSchema, - Owner$Outbound, - Owner$outboundSchema, -} from "./owner.js"; +import { LinkedFolder, LinkedFolder$inboundSchema } from "./linkedfolder.js"; +import { Owner, Owner$inboundSchema } from "./owner.js"; export type Folder = { /** @@ -104,71 +94,6 @@ export const Folder$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Folder$Outbound = { - id?: string | undefined; - name: string; - description?: string | null | undefined; - path?: string | null | undefined; - size?: number | null | undefined; - owner?: Owner$Outbound | undefined; - parent_folders: Array; - parent_folders_complete?: boolean | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const Folder$outboundSchema: z.ZodType< - Folder$Outbound, - z.ZodTypeDef, - Folder -> = z.object({ - id: z.string().optional(), - name: z.string(), - description: z.nullable(z.string()).optional(), - path: z.nullable(z.string()).optional(), - size: z.nullable(z.number().int()).optional(), - owner: Owner$outboundSchema.optional(), - parentFolders: z.array(LinkedFolder$outboundSchema), - parentFoldersComplete: z.boolean().optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - parentFolders: "parent_folders", - parentFoldersComplete: "parent_folders_complete", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Folder$ { - /** @deprecated use `Folder$inboundSchema` instead. */ - export const inboundSchema = Folder$inboundSchema; - /** @deprecated use `Folder$outboundSchema` instead. */ - export const outboundSchema = Folder$outboundSchema; - /** @deprecated use `Folder$Outbound` instead. */ - export type Outbound = Folder$Outbound; -} - -export function folderToJSON(folder: Folder): string { - return JSON.stringify(Folder$outboundSchema.parse(folder)); -} - export function folderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/formfield.ts b/src/models/components/formfield.ts index d5605a26e..6c71d1a3a 100644 --- a/src/models/components/formfield.ts +++ b/src/models/components/formfield.ts @@ -11,8 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { FormFieldOption, FormFieldOption$inboundSchema, - FormFieldOption$Outbound, - FormFieldOption$outboundSchema, } from "./formfieldoption.js"; export const FormFieldType = { @@ -92,22 +90,6 @@ export const FormFieldType$inboundSchema: z.ZodNativeEnum< typeof FormFieldType > = z.nativeEnum(FormFieldType); -/** @internal */ -export const FormFieldType$outboundSchema: z.ZodNativeEnum< - typeof FormFieldType -> = FormFieldType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormFieldType$ { - /** @deprecated use `FormFieldType$inboundSchema` instead. */ - export const inboundSchema = FormFieldType$inboundSchema; - /** @deprecated use `FormFieldType$outboundSchema` instead. */ - export const outboundSchema = FormFieldType$outboundSchema; -} - /** @internal */ export const FormField$inboundSchema: z.ZodType< FormField, @@ -136,70 +118,6 @@ export const FormField$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FormField$Outbound = { - id?: string | undefined; - label?: string | undefined; - placeholder?: string | null | undefined; - description?: string | null | undefined; - type?: string | undefined; - required?: boolean | undefined; - custom_field?: boolean | undefined; - allow_custom_values: boolean; - disabled?: boolean | null | undefined; - hidden?: boolean | null | undefined; - deprecated?: boolean | null | undefined; - sensitive?: boolean | null | undefined; - prefix?: string | null | undefined; - suffix?: string | null | undefined; - options?: Array | undefined; -}; - -/** @internal */ -export const FormField$outboundSchema: z.ZodType< - FormField$Outbound, - z.ZodTypeDef, - FormField -> = z.object({ - id: z.string().optional(), - label: z.string().optional(), - placeholder: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - type: FormFieldType$outboundSchema.optional(), - required: z.boolean().optional(), - customField: z.boolean().optional(), - allowCustomValues: z.boolean().default(false), - disabled: z.nullable(z.boolean()).optional(), - hidden: z.nullable(z.boolean()).optional(), - deprecated: z.nullable(z.boolean()).optional(), - sensitive: z.nullable(z.boolean()).optional(), - prefix: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - options: z.array(FormFieldOption$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - customField: "custom_field", - allowCustomValues: "allow_custom_values", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormField$ { - /** @deprecated use `FormField$inboundSchema` instead. */ - export const inboundSchema = FormField$inboundSchema; - /** @deprecated use `FormField$outboundSchema` instead. */ - export const outboundSchema = FormField$outboundSchema; - /** @deprecated use `FormField$Outbound` instead. */ - export type Outbound = FormField$Outbound; -} - -export function formFieldToJSON(formField: FormField): string { - return JSON.stringify(FormField$outboundSchema.parse(formField)); -} - export function formFieldFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/formfieldoption.ts b/src/models/components/formfieldoption.ts index 715e80ffb..ea666bac8 100644 --- a/src/models/components/formfieldoption.ts +++ b/src/models/components/formfieldoption.ts @@ -40,7 +40,6 @@ export const FormFieldOption$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type FormFieldOption$Outbound = | (FormFieldOptionGroup$Outbound & { option_type: "group" }) @@ -64,25 +63,11 @@ export const FormFieldOption$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormFieldOption$ { - /** @deprecated use `FormFieldOption$inboundSchema` instead. */ - export const inboundSchema = FormFieldOption$inboundSchema; - /** @deprecated use `FormFieldOption$outboundSchema` instead. */ - export const outboundSchema = FormFieldOption$outboundSchema; - /** @deprecated use `FormFieldOption$Outbound` instead. */ - export type Outbound = FormFieldOption$Outbound; -} - export function formFieldOptionToJSON( formFieldOption: FormFieldOption, ): string { return JSON.stringify(FormFieldOption$outboundSchema.parse(formFieldOption)); } - export function formFieldOptionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/formfieldoptiongroup.ts b/src/models/components/formfieldoptiongroup.ts index 5e3e16466..288a2654a 100644 --- a/src/models/components/formfieldoptiongroup.ts +++ b/src/models/components/formfieldoptiongroup.ts @@ -33,23 +33,11 @@ export type FormFieldOptionGroup = { export const FormFieldOptionGroupOptionType$inboundSchema: z.ZodNativeEnum< typeof FormFieldOptionGroupOptionType > = z.nativeEnum(FormFieldOptionGroupOptionType); - /** @internal */ export const FormFieldOptionGroupOptionType$outboundSchema: z.ZodNativeEnum< typeof FormFieldOptionGroupOptionType > = FormFieldOptionGroupOptionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormFieldOptionGroupOptionType$ { - /** @deprecated use `FormFieldOptionGroupOptionType$inboundSchema` instead. */ - export const inboundSchema = FormFieldOptionGroupOptionType$inboundSchema; - /** @deprecated use `FormFieldOptionGroupOptionType$outboundSchema` instead. */ - export const outboundSchema = FormFieldOptionGroupOptionType$outboundSchema; -} - /** @internal */ export const FormFieldOptionGroup$inboundSchema: z.ZodType< FormFieldOptionGroup, @@ -65,7 +53,6 @@ export const FormFieldOptionGroup$inboundSchema: z.ZodType< "option_type": "optionType", }); }); - /** @internal */ export type FormFieldOptionGroup$Outbound = { id?: string | undefined; @@ -90,19 +77,6 @@ export const FormFieldOptionGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormFieldOptionGroup$ { - /** @deprecated use `FormFieldOptionGroup$inboundSchema` instead. */ - export const inboundSchema = FormFieldOptionGroup$inboundSchema; - /** @deprecated use `FormFieldOptionGroup$outboundSchema` instead. */ - export const outboundSchema = FormFieldOptionGroup$outboundSchema; - /** @deprecated use `FormFieldOptionGroup$Outbound` instead. */ - export type Outbound = FormFieldOptionGroup$Outbound; -} - export function formFieldOptionGroupToJSON( formFieldOptionGroup: FormFieldOptionGroup, ): string { @@ -110,7 +84,6 @@ export function formFieldOptionGroupToJSON( FormFieldOptionGroup$outboundSchema.parse(formFieldOptionGroup), ); } - export function formFieldOptionGroupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gender.ts b/src/models/components/gender.ts index fd07fa409..1e726dc72 100644 --- a/src/models/components/gender.ts +++ b/src/models/components/gender.ts @@ -23,18 +23,6 @@ export type Gender = ClosedEnum; /** @internal */ export const Gender$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Gender); - /** @internal */ export const Gender$outboundSchema: z.ZodNativeEnum = Gender$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Gender$ { - /** @deprecated use `Gender$inboundSchema` instead. */ - export const inboundSchema = Gender$inboundSchema; - /** @deprecated use `Gender$outboundSchema` instead. */ - export const outboundSchema = Gender$outboundSchema; -} diff --git a/src/models/components/getaccountingdepartmentresponse.ts b/src/models/components/getaccountingdepartmentresponse.ts index 87bbc6e2d..322d42794 100644 --- a/src/models/components/getaccountingdepartmentresponse.ts +++ b/src/models/components/getaccountingdepartmentresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingDepartment, AccountingDepartment$inboundSchema, - AccountingDepartment$Outbound, - AccountingDepartment$outboundSchema, } from "./accountingdepartment.js"; /** @@ -65,60 +63,6 @@ export const GetAccountingDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAccountingDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: AccountingDepartment$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAccountingDepartmentResponse$outboundSchema: z.ZodType< - GetAccountingDepartmentResponse$Outbound, - z.ZodTypeDef, - GetAccountingDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: AccountingDepartment$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccountingDepartmentResponse$ { - /** @deprecated use `GetAccountingDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = GetAccountingDepartmentResponse$inboundSchema; - /** @deprecated use `GetAccountingDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = GetAccountingDepartmentResponse$outboundSchema; - /** @deprecated use `GetAccountingDepartmentResponse$Outbound` instead. */ - export type Outbound = GetAccountingDepartmentResponse$Outbound; -} - -export function getAccountingDepartmentResponseToJSON( - getAccountingDepartmentResponse: GetAccountingDepartmentResponse, -): string { - return JSON.stringify( - GetAccountingDepartmentResponse$outboundSchema.parse( - getAccountingDepartmentResponse, - ), - ); -} - export function getAccountingDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getaccountingdepartmentsresponse.ts b/src/models/components/getaccountingdepartmentsresponse.ts index 55fd93535..a7e944967 100644 --- a/src/models/components/getaccountingdepartmentsresponse.ts +++ b/src/models/components/getaccountingdepartmentsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingDepartment, AccountingDepartment$inboundSchema, - AccountingDepartment$Outbound, - AccountingDepartment$outboundSchema, } from "./accountingdepartment.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Departments @@ -87,64 +75,6 @@ export const GetAccountingDepartmentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAccountingDepartmentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAccountingDepartmentsResponse$outboundSchema: z.ZodType< - GetAccountingDepartmentsResponse$Outbound, - z.ZodTypeDef, - GetAccountingDepartmentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(AccountingDepartment$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccountingDepartmentsResponse$ { - /** @deprecated use `GetAccountingDepartmentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAccountingDepartmentsResponse$inboundSchema; - /** @deprecated use `GetAccountingDepartmentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAccountingDepartmentsResponse$outboundSchema; - /** @deprecated use `GetAccountingDepartmentsResponse$Outbound` instead. */ - export type Outbound = GetAccountingDepartmentsResponse$Outbound; -} - -export function getAccountingDepartmentsResponseToJSON( - getAccountingDepartmentsResponse: GetAccountingDepartmentsResponse, -): string { - return JSON.stringify( - GetAccountingDepartmentsResponse$outboundSchema.parse( - getAccountingDepartmentsResponse, - ), - ); -} - export function getAccountingDepartmentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getaccountinglocationresponse.ts b/src/models/components/getaccountinglocationresponse.ts index deff8dcfb..81c123be1 100644 --- a/src/models/components/getaccountinglocationresponse.ts +++ b/src/models/components/getaccountinglocationresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingLocation, AccountingLocation$inboundSchema, - AccountingLocation$Outbound, - AccountingLocation$outboundSchema, } from "./accountinglocation.js"; /** @@ -65,60 +63,6 @@ export const GetAccountingLocationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAccountingLocationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: AccountingLocation$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAccountingLocationResponse$outboundSchema: z.ZodType< - GetAccountingLocationResponse$Outbound, - z.ZodTypeDef, - GetAccountingLocationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: AccountingLocation$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccountingLocationResponse$ { - /** @deprecated use `GetAccountingLocationResponse$inboundSchema` instead. */ - export const inboundSchema = GetAccountingLocationResponse$inboundSchema; - /** @deprecated use `GetAccountingLocationResponse$outboundSchema` instead. */ - export const outboundSchema = GetAccountingLocationResponse$outboundSchema; - /** @deprecated use `GetAccountingLocationResponse$Outbound` instead. */ - export type Outbound = GetAccountingLocationResponse$Outbound; -} - -export function getAccountingLocationResponseToJSON( - getAccountingLocationResponse: GetAccountingLocationResponse, -): string { - return JSON.stringify( - GetAccountingLocationResponse$outboundSchema.parse( - getAccountingLocationResponse, - ), - ); -} - export function getAccountingLocationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getaccountinglocationsresponse.ts b/src/models/components/getaccountinglocationsresponse.ts index 6770b6371..0da0bb896 100644 --- a/src/models/components/getaccountinglocationsresponse.ts +++ b/src/models/components/getaccountinglocationsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingLocation, AccountingLocation$inboundSchema, - AccountingLocation$Outbound, - AccountingLocation$outboundSchema, } from "./accountinglocation.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Locations @@ -87,64 +75,6 @@ export const GetAccountingLocationsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAccountingLocationsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAccountingLocationsResponse$outboundSchema: z.ZodType< - GetAccountingLocationsResponse$Outbound, - z.ZodTypeDef, - GetAccountingLocationsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(AccountingLocation$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccountingLocationsResponse$ { - /** @deprecated use `GetAccountingLocationsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAccountingLocationsResponse$inboundSchema; - /** @deprecated use `GetAccountingLocationsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAccountingLocationsResponse$outboundSchema; - /** @deprecated use `GetAccountingLocationsResponse$Outbound` instead. */ - export type Outbound = GetAccountingLocationsResponse$Outbound; -} - -export function getAccountingLocationsResponseToJSON( - getAccountingLocationsResponse: GetAccountingLocationsResponse, -): string { - return JSON.stringify( - GetAccountingLocationsResponse$outboundSchema.parse( - getAccountingLocationsResponse, - ), - ); -} - export function getAccountingLocationsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getactivitiesresponse.ts b/src/models/components/getactivitiesresponse.ts index df254da27..ff9260978 100644 --- a/src/models/components/getactivitiesresponse.ts +++ b/src/models/components/getactivitiesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Activity, - Activity$inboundSchema, - Activity$Outbound, - Activity$outboundSchema, -} from "./activity.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Activity, Activity$inboundSchema } from "./activity.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Activities @@ -87,62 +72,6 @@ export const GetActivitiesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetActivitiesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetActivitiesResponse$outboundSchema: z.ZodType< - GetActivitiesResponse$Outbound, - z.ZodTypeDef, - GetActivitiesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Activity$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetActivitiesResponse$ { - /** @deprecated use `GetActivitiesResponse$inboundSchema` instead. */ - export const inboundSchema = GetActivitiesResponse$inboundSchema; - /** @deprecated use `GetActivitiesResponse$outboundSchema` instead. */ - export const outboundSchema = GetActivitiesResponse$outboundSchema; - /** @deprecated use `GetActivitiesResponse$Outbound` instead. */ - export type Outbound = GetActivitiesResponse$Outbound; -} - -export function getActivitiesResponseToJSON( - getActivitiesResponse: GetActivitiesResponse, -): string { - return JSON.stringify( - GetActivitiesResponse$outboundSchema.parse(getActivitiesResponse), - ); -} - export function getActivitiesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getactivityresponse.ts b/src/models/components/getactivityresponse.ts index 256c63ff9..46fa26038 100644 --- a/src/models/components/getactivityresponse.ts +++ b/src/models/components/getactivityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Activity, - Activity$inboundSchema, - Activity$Outbound, - Activity$outboundSchema, -} from "./activity.js"; +import { Activity, Activity$inboundSchema } from "./activity.js"; /** * Activity @@ -65,58 +60,6 @@ export const GetActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetActivityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Activity$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetActivityResponse$outboundSchema: z.ZodType< - GetActivityResponse$Outbound, - z.ZodTypeDef, - GetActivityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Activity$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetActivityResponse$ { - /** @deprecated use `GetActivityResponse$inboundSchema` instead. */ - export const inboundSchema = GetActivityResponse$inboundSchema; - /** @deprecated use `GetActivityResponse$outboundSchema` instead. */ - export const outboundSchema = GetActivityResponse$outboundSchema; - /** @deprecated use `GetActivityResponse$Outbound` instead. */ - export type Outbound = GetActivityResponse$Outbound; -} - -export function getActivityResponseToJSON( - getActivityResponse: GetActivityResponse, -): string { - return JSON.stringify( - GetActivityResponse$outboundSchema.parse(getActivityResponse), - ); -} - export function getActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getagedcreditorsresponse.ts b/src/models/components/getagedcreditorsresponse.ts index 6bbca01aa..1a506d204 100644 --- a/src/models/components/getagedcreditorsresponse.ts +++ b/src/models/components/getagedcreditorsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AgedCreditors, - AgedCreditors$inboundSchema, - AgedCreditors$Outbound, - AgedCreditors$outboundSchema, -} from "./agedcreditors.js"; +import { AgedCreditors, AgedCreditors$inboundSchema } from "./agedcreditors.js"; /** * Aged Creditors @@ -65,58 +60,6 @@ export const GetAgedCreditorsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAgedCreditorsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: AgedCreditors$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAgedCreditorsResponse$outboundSchema: z.ZodType< - GetAgedCreditorsResponse$Outbound, - z.ZodTypeDef, - GetAgedCreditorsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: AgedCreditors$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAgedCreditorsResponse$ { - /** @deprecated use `GetAgedCreditorsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAgedCreditorsResponse$inboundSchema; - /** @deprecated use `GetAgedCreditorsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAgedCreditorsResponse$outboundSchema; - /** @deprecated use `GetAgedCreditorsResponse$Outbound` instead. */ - export type Outbound = GetAgedCreditorsResponse$Outbound; -} - -export function getAgedCreditorsResponseToJSON( - getAgedCreditorsResponse: GetAgedCreditorsResponse, -): string { - return JSON.stringify( - GetAgedCreditorsResponse$outboundSchema.parse(getAgedCreditorsResponse), - ); -} - export function getAgedCreditorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getageddebtorsresponse.ts b/src/models/components/getageddebtorsresponse.ts index 8da46e824..27bc0aec2 100644 --- a/src/models/components/getageddebtorsresponse.ts +++ b/src/models/components/getageddebtorsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AgedDebtors, - AgedDebtors$inboundSchema, - AgedDebtors$Outbound, - AgedDebtors$outboundSchema, -} from "./ageddebtors.js"; +import { AgedDebtors, AgedDebtors$inboundSchema } from "./ageddebtors.js"; /** * Aged Debtors @@ -65,58 +60,6 @@ export const GetAgedDebtorsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAgedDebtorsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: AgedDebtors$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAgedDebtorsResponse$outboundSchema: z.ZodType< - GetAgedDebtorsResponse$Outbound, - z.ZodTypeDef, - GetAgedDebtorsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: AgedDebtors$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAgedDebtorsResponse$ { - /** @deprecated use `GetAgedDebtorsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAgedDebtorsResponse$inboundSchema; - /** @deprecated use `GetAgedDebtorsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAgedDebtorsResponse$outboundSchema; - /** @deprecated use `GetAgedDebtorsResponse$Outbound` instead. */ - export type Outbound = GetAgedDebtorsResponse$Outbound; -} - -export function getAgedDebtorsResponseToJSON( - getAgedDebtorsResponse: GetAgedDebtorsResponse, -): string { - return JSON.stringify( - GetAgedDebtorsResponse$outboundSchema.parse(getAgedDebtorsResponse), - ); -} - export function getAgedDebtorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapiresourcecoverageresponse.ts b/src/models/components/getapiresourcecoverageresponse.ts index 22f2964de..4c1f6c996 100644 --- a/src/models/components/getapiresourcecoverageresponse.ts +++ b/src/models/components/getapiresourcecoverageresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ApiResourceCoverage, ApiResourceCoverage$inboundSchema, - ApiResourceCoverage$Outbound, - ApiResourceCoverage$outboundSchema, } from "./apiresourcecoverage.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * ApiResources @@ -72,58 +60,6 @@ export const GetApiResourceCoverageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApiResourceCoverageResponse$Outbound = { - status_code: number; - status: string; - data: ApiResourceCoverage$Outbound; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApiResourceCoverageResponse$outboundSchema: z.ZodType< - GetApiResourceCoverageResponse$Outbound, - z.ZodTypeDef, - GetApiResourceCoverageResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: ApiResourceCoverage$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiResourceCoverageResponse$ { - /** @deprecated use `GetApiResourceCoverageResponse$inboundSchema` instead. */ - export const inboundSchema = GetApiResourceCoverageResponse$inboundSchema; - /** @deprecated use `GetApiResourceCoverageResponse$outboundSchema` instead. */ - export const outboundSchema = GetApiResourceCoverageResponse$outboundSchema; - /** @deprecated use `GetApiResourceCoverageResponse$Outbound` instead. */ - export type Outbound = GetApiResourceCoverageResponse$Outbound; -} - -export function getApiResourceCoverageResponseToJSON( - getApiResourceCoverageResponse: GetApiResourceCoverageResponse, -): string { - return JSON.stringify( - GetApiResourceCoverageResponse$outboundSchema.parse( - getApiResourceCoverageResponse, - ), - ); -} - export function getApiResourceCoverageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapiresourceresponse.ts b/src/models/components/getapiresourceresponse.ts index d61f00b6d..ad3f90172 100644 --- a/src/models/components/getapiresourceresponse.ts +++ b/src/models/components/getapiresourceresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ApiResource, - ApiResource$inboundSchema, - ApiResource$Outbound, - ApiResource$outboundSchema, -} from "./apiresource.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { ApiResource, ApiResource$inboundSchema } from "./apiresource.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * ApiResources @@ -72,56 +57,6 @@ export const GetApiResourceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApiResourceResponse$Outbound = { - status_code: number; - status: string; - data: ApiResource$Outbound; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApiResourceResponse$outboundSchema: z.ZodType< - GetApiResourceResponse$Outbound, - z.ZodTypeDef, - GetApiResourceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: ApiResource$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiResourceResponse$ { - /** @deprecated use `GetApiResourceResponse$inboundSchema` instead. */ - export const inboundSchema = GetApiResourceResponse$inboundSchema; - /** @deprecated use `GetApiResourceResponse$outboundSchema` instead. */ - export const outboundSchema = GetApiResourceResponse$outboundSchema; - /** @deprecated use `GetApiResourceResponse$Outbound` instead. */ - export type Outbound = GetApiResourceResponse$Outbound; -} - -export function getApiResourceResponseToJSON( - getApiResourceResponse: GetApiResourceResponse, -): string { - return JSON.stringify( - GetApiResourceResponse$outboundSchema.parse(getApiResourceResponse), - ); -} - export function getApiResourceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapiresponse.ts b/src/models/components/getapiresponse.ts index f78ec81f3..ce7e29c1d 100644 --- a/src/models/components/getapiresponse.ts +++ b/src/models/components/getapiresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Api, - Api$inboundSchema, - Api$Outbound, - Api$outboundSchema, -} from "./api.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Api, Api$inboundSchema } from "./api.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Apis @@ -72,52 +57,6 @@ export const GetApiResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApiResponse$Outbound = { - status_code: number; - status: string; - data: Api$Outbound; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApiResponse$outboundSchema: z.ZodType< - GetApiResponse$Outbound, - z.ZodTypeDef, - GetApiResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Api$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiResponse$ { - /** @deprecated use `GetApiResponse$inboundSchema` instead. */ - export const inboundSchema = GetApiResponse$inboundSchema; - /** @deprecated use `GetApiResponse$outboundSchema` instead. */ - export const outboundSchema = GetApiResponse$outboundSchema; - /** @deprecated use `GetApiResponse$Outbound` instead. */ - export type Outbound = GetApiResponse$Outbound; -} - -export function getApiResponseToJSON(getApiResponse: GetApiResponse): string { - return JSON.stringify(GetApiResponse$outboundSchema.parse(getApiResponse)); -} - export function getApiResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapisresponse.ts b/src/models/components/getapisresponse.ts index 3178d21c9..03fc3a87f 100644 --- a/src/models/components/getapisresponse.ts +++ b/src/models/components/getapisresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Api, - Api$inboundSchema, - Api$Outbound, - Api$outboundSchema, -} from "./api.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Api, Api$inboundSchema } from "./api.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Apis @@ -72,54 +57,6 @@ export const GetApisResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApisResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApisResponse$outboundSchema: z.ZodType< - GetApisResponse$Outbound, - z.ZodTypeDef, - GetApisResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(Api$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApisResponse$ { - /** @deprecated use `GetApisResponse$inboundSchema` instead. */ - export const inboundSchema = GetApisResponse$inboundSchema; - /** @deprecated use `GetApisResponse$outboundSchema` instead. */ - export const outboundSchema = GetApisResponse$outboundSchema; - /** @deprecated use `GetApisResponse$Outbound` instead. */ - export type Outbound = GetApisResponse$Outbound; -} - -export function getApisResponseToJSON( - getApisResponse: GetApisResponse, -): string { - return JSON.stringify(GetApisResponse$outboundSchema.parse(getApisResponse)); -} - export function getApisResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapplicantresponse.ts b/src/models/components/getapplicantresponse.ts index a16939573..4cc53f17b 100644 --- a/src/models/components/getapplicantresponse.ts +++ b/src/models/components/getapplicantresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Applicant, - Applicant$inboundSchema, - Applicant$Outbound, - Applicant$outboundSchema, -} from "./applicant.js"; +import { Applicant, Applicant$inboundSchema } from "./applicant.js"; /** * Applicants @@ -65,58 +60,6 @@ export const GetApplicantResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApplicantResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Applicant$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetApplicantResponse$outboundSchema: z.ZodType< - GetApplicantResponse$Outbound, - z.ZodTypeDef, - GetApplicantResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Applicant$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApplicantResponse$ { - /** @deprecated use `GetApplicantResponse$inboundSchema` instead. */ - export const inboundSchema = GetApplicantResponse$inboundSchema; - /** @deprecated use `GetApplicantResponse$outboundSchema` instead. */ - export const outboundSchema = GetApplicantResponse$outboundSchema; - /** @deprecated use `GetApplicantResponse$Outbound` instead. */ - export type Outbound = GetApplicantResponse$Outbound; -} - -export function getApplicantResponseToJSON( - getApplicantResponse: GetApplicantResponse, -): string { - return JSON.stringify( - GetApplicantResponse$outboundSchema.parse(getApplicantResponse), - ); -} - export function getApplicantResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapplicantsresponse.ts b/src/models/components/getapplicantsresponse.ts index bdb0ea6dc..5b49a588d 100644 --- a/src/models/components/getapplicantsresponse.ts +++ b/src/models/components/getapplicantsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Applicant, - Applicant$inboundSchema, - Applicant$Outbound, - Applicant$outboundSchema, -} from "./applicant.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Applicant, Applicant$inboundSchema } from "./applicant.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Applicants @@ -87,62 +72,6 @@ export const GetApplicantsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApplicantsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApplicantsResponse$outboundSchema: z.ZodType< - GetApplicantsResponse$Outbound, - z.ZodTypeDef, - GetApplicantsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Applicant$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApplicantsResponse$ { - /** @deprecated use `GetApplicantsResponse$inboundSchema` instead. */ - export const inboundSchema = GetApplicantsResponse$inboundSchema; - /** @deprecated use `GetApplicantsResponse$outboundSchema` instead. */ - export const outboundSchema = GetApplicantsResponse$outboundSchema; - /** @deprecated use `GetApplicantsResponse$Outbound` instead. */ - export type Outbound = GetApplicantsResponse$Outbound; -} - -export function getApplicantsResponseToJSON( - getApplicantsResponse: GetApplicantsResponse, -): string { - return JSON.stringify( - GetApplicantsResponse$outboundSchema.parse(getApplicantsResponse), - ); -} - export function getApplicantsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapplicationresponse.ts b/src/models/components/getapplicationresponse.ts index 21a6fe8c7..a910df279 100644 --- a/src/models/components/getapplicationresponse.ts +++ b/src/models/components/getapplicationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Application, - Application$inboundSchema, - Application$Outbound, - Application$outboundSchema, -} from "./application.js"; +import { Application, Application$inboundSchema } from "./application.js"; /** * Applications @@ -65,58 +60,6 @@ export const GetApplicationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApplicationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Application$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetApplicationResponse$outboundSchema: z.ZodType< - GetApplicationResponse$Outbound, - z.ZodTypeDef, - GetApplicationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Application$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApplicationResponse$ { - /** @deprecated use `GetApplicationResponse$inboundSchema` instead. */ - export const inboundSchema = GetApplicationResponse$inboundSchema; - /** @deprecated use `GetApplicationResponse$outboundSchema` instead. */ - export const outboundSchema = GetApplicationResponse$outboundSchema; - /** @deprecated use `GetApplicationResponse$Outbound` instead. */ - export type Outbound = GetApplicationResponse$Outbound; -} - -export function getApplicationResponseToJSON( - getApplicationResponse: GetApplicationResponse, -): string { - return JSON.stringify( - GetApplicationResponse$outboundSchema.parse(getApplicationResponse), - ); -} - export function getApplicationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getapplicationsresponse.ts b/src/models/components/getapplicationsresponse.ts index 4a7004db6..7419dc724 100644 --- a/src/models/components/getapplicationsresponse.ts +++ b/src/models/components/getapplicationsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Application, - Application$inboundSchema, - Application$Outbound, - Application$outboundSchema, -} from "./application.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Application, Application$inboundSchema } from "./application.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Applications @@ -87,62 +72,6 @@ export const GetApplicationsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetApplicationsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetApplicationsResponse$outboundSchema: z.ZodType< - GetApplicationsResponse$Outbound, - z.ZodTypeDef, - GetApplicationsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Application$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApplicationsResponse$ { - /** @deprecated use `GetApplicationsResponse$inboundSchema` instead. */ - export const inboundSchema = GetApplicationsResponse$inboundSchema; - /** @deprecated use `GetApplicationsResponse$outboundSchema` instead. */ - export const outboundSchema = GetApplicationsResponse$outboundSchema; - /** @deprecated use `GetApplicationsResponse$Outbound` instead. */ - export type Outbound = GetApplicationsResponse$Outbound; -} - -export function getApplicationsResponseToJSON( - getApplicationsResponse: GetApplicationsResponse, -): string { - return JSON.stringify( - GetApplicationsResponse$outboundSchema.parse(getApplicationsResponse), - ); -} - export function getApplicationsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getattachmentresponse.ts b/src/models/components/getattachmentresponse.ts index 892cee489..68ba46c3b 100644 --- a/src/models/components/getattachmentresponse.ts +++ b/src/models/components/getattachmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Attachment, - Attachment$inboundSchema, - Attachment$Outbound, - Attachment$outboundSchema, -} from "./attachment.js"; +import { Attachment, Attachment$inboundSchema } from "./attachment.js"; /** * Attachments @@ -65,58 +60,6 @@ export const GetAttachmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAttachmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Attachment$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAttachmentResponse$outboundSchema: z.ZodType< - GetAttachmentResponse$Outbound, - z.ZodTypeDef, - GetAttachmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Attachment$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAttachmentResponse$ { - /** @deprecated use `GetAttachmentResponse$inboundSchema` instead. */ - export const inboundSchema = GetAttachmentResponse$inboundSchema; - /** @deprecated use `GetAttachmentResponse$outboundSchema` instead. */ - export const outboundSchema = GetAttachmentResponse$outboundSchema; - /** @deprecated use `GetAttachmentResponse$Outbound` instead. */ - export type Outbound = GetAttachmentResponse$Outbound; -} - -export function getAttachmentResponseToJSON( - getAttachmentResponse: GetAttachmentResponse, -): string { - return JSON.stringify( - GetAttachmentResponse$outboundSchema.parse(getAttachmentResponse), - ); -} - export function getAttachmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getattachmentsresponse.ts b/src/models/components/getattachmentsresponse.ts index 71dff21da..76fdcc7c5 100644 --- a/src/models/components/getattachmentsresponse.ts +++ b/src/models/components/getattachmentsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Attachment, - Attachment$inboundSchema, - Attachment$Outbound, - Attachment$outboundSchema, -} from "./attachment.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Attachment, Attachment$inboundSchema } from "./attachment.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Attachments @@ -87,62 +72,6 @@ export const GetAttachmentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAttachmentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetAttachmentsResponse$outboundSchema: z.ZodType< - GetAttachmentsResponse$Outbound, - z.ZodTypeDef, - GetAttachmentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Attachment$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAttachmentsResponse$ { - /** @deprecated use `GetAttachmentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAttachmentsResponse$inboundSchema; - /** @deprecated use `GetAttachmentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAttachmentsResponse$outboundSchema; - /** @deprecated use `GetAttachmentsResponse$Outbound` instead. */ - export type Outbound = GetAttachmentsResponse$Outbound; -} - -export function getAttachmentsResponseToJSON( - getAttachmentsResponse: GetAttachmentsResponse, -): string { - return JSON.stringify( - GetAttachmentsResponse$outboundSchema.parse(getAttachmentsResponse), - ); -} - export function getAttachmentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbalancesheetresponse.ts b/src/models/components/getbalancesheetresponse.ts index 8d4dfe0f5..cfbac8c20 100644 --- a/src/models/components/getbalancesheetresponse.ts +++ b/src/models/components/getbalancesheetresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BalanceSheet, - BalanceSheet$inboundSchema, - BalanceSheet$Outbound, - BalanceSheet$outboundSchema, -} from "./balancesheet.js"; +import { BalanceSheet, BalanceSheet$inboundSchema } from "./balancesheet.js"; /** * BalanceSheet @@ -65,58 +60,6 @@ export const GetBalanceSheetResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBalanceSheetResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: BalanceSheet$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBalanceSheetResponse$outboundSchema: z.ZodType< - GetBalanceSheetResponse$Outbound, - z.ZodTypeDef, - GetBalanceSheetResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: BalanceSheet$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBalanceSheetResponse$ { - /** @deprecated use `GetBalanceSheetResponse$inboundSchema` instead. */ - export const inboundSchema = GetBalanceSheetResponse$inboundSchema; - /** @deprecated use `GetBalanceSheetResponse$outboundSchema` instead. */ - export const outboundSchema = GetBalanceSheetResponse$outboundSchema; - /** @deprecated use `GetBalanceSheetResponse$Outbound` instead. */ - export type Outbound = GetBalanceSheetResponse$Outbound; -} - -export function getBalanceSheetResponseToJSON( - getBalanceSheetResponse: GetBalanceSheetResponse, -): string { - return JSON.stringify( - GetBalanceSheetResponse$outboundSchema.parse(getBalanceSheetResponse), - ); -} - export function getBalanceSheetResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankaccountresponse.ts b/src/models/components/getbankaccountresponse.ts index b240098c7..d4ea0d3b8 100644 --- a/src/models/components/getbankaccountresponse.ts +++ b/src/models/components/getbankaccountresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingBankAccount, AccountingBankAccount$inboundSchema, - AccountingBankAccount$Outbound, - AccountingBankAccount$outboundSchema, } from "./accountingbankaccount.js"; /** @@ -59,55 +57,6 @@ export const GetBankAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankAccountResponse$Outbound = { - status_code: number; - status: string; - service?: string | undefined; - resource?: string | undefined; - operation?: string | undefined; - data: AccountingBankAccount$Outbound; -}; - -/** @internal */ -export const GetBankAccountResponse$outboundSchema: z.ZodType< - GetBankAccountResponse$Outbound, - z.ZodTypeDef, - GetBankAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string().optional(), - resource: z.string().optional(), - operation: z.string().optional(), - data: AccountingBankAccount$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankAccountResponse$ { - /** @deprecated use `GetBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankAccountResponse$inboundSchema; - /** @deprecated use `GetBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankAccountResponse$outboundSchema; - /** @deprecated use `GetBankAccountResponse$Outbound` instead. */ - export type Outbound = GetBankAccountResponse$Outbound; -} - -export function getBankAccountResponseToJSON( - getBankAccountResponse: GetBankAccountResponse, -): string { - return JSON.stringify( - GetBankAccountResponse$outboundSchema.parse(getBankAccountResponse), - ); -} - export function getBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankaccountsresponse.ts b/src/models/components/getbankaccountsresponse.ts index 2008c13dd..f70d9c598 100644 --- a/src/models/components/getbankaccountsresponse.ts +++ b/src/models/components/getbankaccountsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AccountingBankAccount, AccountingBankAccount$inboundSchema, - AccountingBankAccount$Outbound, - AccountingBankAccount$outboundSchema, } from "./accountingbankaccount.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Bank Accounts @@ -81,59 +69,6 @@ export const GetBankAccountsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankAccountsResponse$Outbound = { - status_code: number; - status: string; - service?: string | undefined; - resource?: string | undefined; - operation?: string | undefined; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetBankAccountsResponse$outboundSchema: z.ZodType< - GetBankAccountsResponse$Outbound, - z.ZodTypeDef, - GetBankAccountsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string().optional(), - resource: z.string().optional(), - operation: z.string().optional(), - data: z.array(AccountingBankAccount$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankAccountsResponse$ { - /** @deprecated use `GetBankAccountsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankAccountsResponse$inboundSchema; - /** @deprecated use `GetBankAccountsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankAccountsResponse$outboundSchema; - /** @deprecated use `GetBankAccountsResponse$Outbound` instead. */ - export type Outbound = GetBankAccountsResponse$Outbound; -} - -export function getBankAccountsResponseToJSON( - getBankAccountsResponse: GetBankAccountsResponse, -): string { - return JSON.stringify( - GetBankAccountsResponse$outboundSchema.parse(getBankAccountsResponse), - ); -} - export function getBankAccountsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankfeedaccountresponse.ts b/src/models/components/getbankfeedaccountresponse.ts index 37dcaf508..f74c10416 100644 --- a/src/models/components/getbankfeedaccountresponse.ts +++ b/src/models/components/getbankfeedaccountresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BankFeedAccount, BankFeedAccount$inboundSchema, - BankFeedAccount$Outbound, - BankFeedAccount$outboundSchema, } from "./bankfeedaccount.js"; /** @@ -65,58 +63,6 @@ export const GetBankFeedAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankFeedAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: BankFeedAccount$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBankFeedAccountResponse$outboundSchema: z.ZodType< - GetBankFeedAccountResponse$Outbound, - z.ZodTypeDef, - GetBankFeedAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: BankFeedAccount$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankFeedAccountResponse$ { - /** @deprecated use `GetBankFeedAccountResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankFeedAccountResponse$inboundSchema; - /** @deprecated use `GetBankFeedAccountResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankFeedAccountResponse$outboundSchema; - /** @deprecated use `GetBankFeedAccountResponse$Outbound` instead. */ - export type Outbound = GetBankFeedAccountResponse$Outbound; -} - -export function getBankFeedAccountResponseToJSON( - getBankFeedAccountResponse: GetBankFeedAccountResponse, -): string { - return JSON.stringify( - GetBankFeedAccountResponse$outboundSchema.parse(getBankFeedAccountResponse), - ); -} - export function getBankFeedAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankfeedaccountsresponse.ts b/src/models/components/getbankfeedaccountsresponse.ts index cdd683f61..c38e216b3 100644 --- a/src/models/components/getbankfeedaccountsresponse.ts +++ b/src/models/components/getbankfeedaccountsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BankFeedAccount, BankFeedAccount$inboundSchema, - BankFeedAccount$Outbound, - BankFeedAccount$outboundSchema, } from "./bankfeedaccount.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Bank Feed Accounts @@ -87,64 +75,6 @@ export const GetBankFeedAccountsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankFeedAccountsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBankFeedAccountsResponse$outboundSchema: z.ZodType< - GetBankFeedAccountsResponse$Outbound, - z.ZodTypeDef, - GetBankFeedAccountsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(BankFeedAccount$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankFeedAccountsResponse$ { - /** @deprecated use `GetBankFeedAccountsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankFeedAccountsResponse$inboundSchema; - /** @deprecated use `GetBankFeedAccountsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankFeedAccountsResponse$outboundSchema; - /** @deprecated use `GetBankFeedAccountsResponse$Outbound` instead. */ - export type Outbound = GetBankFeedAccountsResponse$Outbound; -} - -export function getBankFeedAccountsResponseToJSON( - getBankFeedAccountsResponse: GetBankFeedAccountsResponse, -): string { - return JSON.stringify( - GetBankFeedAccountsResponse$outboundSchema.parse( - getBankFeedAccountsResponse, - ), - ); -} - export function getBankFeedAccountsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankfeedstatementresponse.ts b/src/models/components/getbankfeedstatementresponse.ts index 1ca82b819..12506cd0d 100644 --- a/src/models/components/getbankfeedstatementresponse.ts +++ b/src/models/components/getbankfeedstatementresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BankFeedStatement, BankFeedStatement$inboundSchema, - BankFeedStatement$Outbound, - BankFeedStatement$outboundSchema, } from "./bankfeedstatement.js"; /** @@ -65,60 +63,6 @@ export const GetBankFeedStatementResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankFeedStatementResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: BankFeedStatement$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBankFeedStatementResponse$outboundSchema: z.ZodType< - GetBankFeedStatementResponse$Outbound, - z.ZodTypeDef, - GetBankFeedStatementResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: BankFeedStatement$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankFeedStatementResponse$ { - /** @deprecated use `GetBankFeedStatementResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankFeedStatementResponse$inboundSchema; - /** @deprecated use `GetBankFeedStatementResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankFeedStatementResponse$outboundSchema; - /** @deprecated use `GetBankFeedStatementResponse$Outbound` instead. */ - export type Outbound = GetBankFeedStatementResponse$Outbound; -} - -export function getBankFeedStatementResponseToJSON( - getBankFeedStatementResponse: GetBankFeedStatementResponse, -): string { - return JSON.stringify( - GetBankFeedStatementResponse$outboundSchema.parse( - getBankFeedStatementResponse, - ), - ); -} - export function getBankFeedStatementResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbankfeedstatementsresponse.ts b/src/models/components/getbankfeedstatementsresponse.ts index cc7c6dc2a..07b3474d3 100644 --- a/src/models/components/getbankfeedstatementsresponse.ts +++ b/src/models/components/getbankfeedstatementsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BankFeedStatement, BankFeedStatement$inboundSchema, - BankFeedStatement$Outbound, - BankFeedStatement$outboundSchema, } from "./bankfeedstatement.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Bank Feed Statements @@ -87,64 +75,6 @@ export const GetBankFeedStatementsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBankFeedStatementsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBankFeedStatementsResponse$outboundSchema: z.ZodType< - GetBankFeedStatementsResponse$Outbound, - z.ZodTypeDef, - GetBankFeedStatementsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(BankFeedStatement$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBankFeedStatementsResponse$ { - /** @deprecated use `GetBankFeedStatementsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBankFeedStatementsResponse$inboundSchema; - /** @deprecated use `GetBankFeedStatementsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBankFeedStatementsResponse$outboundSchema; - /** @deprecated use `GetBankFeedStatementsResponse$Outbound` instead. */ - export type Outbound = GetBankFeedStatementsResponse$Outbound; -} - -export function getBankFeedStatementsResponseToJSON( - getBankFeedStatementsResponse: GetBankFeedStatementsResponse, -): string { - return JSON.stringify( - GetBankFeedStatementsResponse$outboundSchema.parse( - getBankFeedStatementsResponse, - ), - ); -} - export function getBankFeedStatementsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbillpaymentresponse.ts b/src/models/components/getbillpaymentresponse.ts index 871d8a93e..8abb3c086 100644 --- a/src/models/components/getbillpaymentresponse.ts +++ b/src/models/components/getbillpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BillPayment, - BillPayment$inboundSchema, - BillPayment$Outbound, - BillPayment$outboundSchema, -} from "./billpayment.js"; +import { BillPayment, BillPayment$inboundSchema } from "./billpayment.js"; /** * Bill Payment @@ -65,58 +60,6 @@ export const GetBillPaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBillPaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: BillPayment$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBillPaymentResponse$outboundSchema: z.ZodType< - GetBillPaymentResponse$Outbound, - z.ZodTypeDef, - GetBillPaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: BillPayment$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBillPaymentResponse$ { - /** @deprecated use `GetBillPaymentResponse$inboundSchema` instead. */ - export const inboundSchema = GetBillPaymentResponse$inboundSchema; - /** @deprecated use `GetBillPaymentResponse$outboundSchema` instead. */ - export const outboundSchema = GetBillPaymentResponse$outboundSchema; - /** @deprecated use `GetBillPaymentResponse$Outbound` instead. */ - export type Outbound = GetBillPaymentResponse$Outbound; -} - -export function getBillPaymentResponseToJSON( - getBillPaymentResponse: GetBillPaymentResponse, -): string { - return JSON.stringify( - GetBillPaymentResponse$outboundSchema.parse(getBillPaymentResponse), - ); -} - export function getBillPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbillpaymentsresponse.ts b/src/models/components/getbillpaymentsresponse.ts index 6ed62f53a..f43043085 100644 --- a/src/models/components/getbillpaymentsresponse.ts +++ b/src/models/components/getbillpaymentsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BillPayment, - BillPayment$inboundSchema, - BillPayment$Outbound, - BillPayment$outboundSchema, -} from "./billpayment.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { BillPayment, BillPayment$inboundSchema } from "./billpayment.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Bill Payments @@ -87,62 +72,6 @@ export const GetBillPaymentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBillPaymentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBillPaymentsResponse$outboundSchema: z.ZodType< - GetBillPaymentsResponse$Outbound, - z.ZodTypeDef, - GetBillPaymentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(BillPayment$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBillPaymentsResponse$ { - /** @deprecated use `GetBillPaymentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBillPaymentsResponse$inboundSchema; - /** @deprecated use `GetBillPaymentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBillPaymentsResponse$outboundSchema; - /** @deprecated use `GetBillPaymentsResponse$Outbound` instead. */ - export type Outbound = GetBillPaymentsResponse$Outbound; -} - -export function getBillPaymentsResponseToJSON( - getBillPaymentsResponse: GetBillPaymentsResponse, -): string { - return JSON.stringify( - GetBillPaymentsResponse$outboundSchema.parse(getBillPaymentsResponse), - ); -} - export function getBillPaymentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbillresponse.ts b/src/models/components/getbillresponse.ts index dac8d5584..2559e1f70 100644 --- a/src/models/components/getbillresponse.ts +++ b/src/models/components/getbillresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Bill, - Bill$inboundSchema, - Bill$Outbound, - Bill$outboundSchema, -} from "./bill.js"; +import { Bill, Bill$inboundSchema } from "./bill.js"; /** * Bill @@ -65,56 +60,6 @@ export const GetBillResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBillResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Bill$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBillResponse$outboundSchema: z.ZodType< - GetBillResponse$Outbound, - z.ZodTypeDef, - GetBillResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Bill$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBillResponse$ { - /** @deprecated use `GetBillResponse$inboundSchema` instead. */ - export const inboundSchema = GetBillResponse$inboundSchema; - /** @deprecated use `GetBillResponse$outboundSchema` instead. */ - export const outboundSchema = GetBillResponse$outboundSchema; - /** @deprecated use `GetBillResponse$Outbound` instead. */ - export type Outbound = GetBillResponse$Outbound; -} - -export function getBillResponseToJSON( - getBillResponse: GetBillResponse, -): string { - return JSON.stringify(GetBillResponse$outboundSchema.parse(getBillResponse)); -} - export function getBillResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getbillsresponse.ts b/src/models/components/getbillsresponse.ts index e1ee0220d..545be1e9f 100644 --- a/src/models/components/getbillsresponse.ts +++ b/src/models/components/getbillsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Bill, - Bill$inboundSchema, - Bill$Outbound, - Bill$outboundSchema, -} from "./bill.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Bill, Bill$inboundSchema } from "./bill.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Bills @@ -87,62 +72,6 @@ export const GetBillsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetBillsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetBillsResponse$outboundSchema: z.ZodType< - GetBillsResponse$Outbound, - z.ZodTypeDef, - GetBillsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Bill$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBillsResponse$ { - /** @deprecated use `GetBillsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBillsResponse$inboundSchema; - /** @deprecated use `GetBillsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBillsResponse$outboundSchema; - /** @deprecated use `GetBillsResponse$Outbound` instead. */ - export type Outbound = GetBillsResponse$Outbound; -} - -export function getBillsResponseToJSON( - getBillsResponse: GetBillsResponse, -): string { - return JSON.stringify( - GetBillsResponse$outboundSchema.parse(getBillsResponse), - ); -} - export function getBillsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcategoriesresponse.ts b/src/models/components/getcategoriesresponse.ts index 08f8f8771..eea923821 100644 --- a/src/models/components/getcategoriesresponse.ts +++ b/src/models/components/getcategoriesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Category, - Category$inboundSchema, - Category$Outbound, - Category$outboundSchema, -} from "./category.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Category, Category$inboundSchema } from "./category.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Categories @@ -87,62 +72,6 @@ export const GetCategoriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCategoriesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCategoriesResponse$outboundSchema: z.ZodType< - GetCategoriesResponse$Outbound, - z.ZodTypeDef, - GetCategoriesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Category$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCategoriesResponse$ { - /** @deprecated use `GetCategoriesResponse$inboundSchema` instead. */ - export const inboundSchema = GetCategoriesResponse$inboundSchema; - /** @deprecated use `GetCategoriesResponse$outboundSchema` instead. */ - export const outboundSchema = GetCategoriesResponse$outboundSchema; - /** @deprecated use `GetCategoriesResponse$Outbound` instead. */ - export type Outbound = GetCategoriesResponse$Outbound; -} - -export function getCategoriesResponseToJSON( - getCategoriesResponse: GetCategoriesResponse, -): string { - return JSON.stringify( - GetCategoriesResponse$outboundSchema.parse(getCategoriesResponse), - ); -} - export function getCategoriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcategoryresponse.ts b/src/models/components/getcategoryresponse.ts index 89b8b9940..fedd7b5c4 100644 --- a/src/models/components/getcategoryresponse.ts +++ b/src/models/components/getcategoryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Category, - Category$inboundSchema, - Category$Outbound, - Category$outboundSchema, -} from "./category.js"; +import { Category, Category$inboundSchema } from "./category.js"; /** * Category @@ -65,58 +60,6 @@ export const GetCategoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCategoryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Category$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCategoryResponse$outboundSchema: z.ZodType< - GetCategoryResponse$Outbound, - z.ZodTypeDef, - GetCategoryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Category$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCategoryResponse$ { - /** @deprecated use `GetCategoryResponse$inboundSchema` instead. */ - export const inboundSchema = GetCategoryResponse$inboundSchema; - /** @deprecated use `GetCategoryResponse$outboundSchema` instead. */ - export const outboundSchema = GetCategoryResponse$outboundSchema; - /** @deprecated use `GetCategoryResponse$Outbound` instead. */ - export type Outbound = GetCategoryResponse$Outbound; -} - -export function getCategoryResponseToJSON( - getCategoryResponse: GetCategoryResponse, -): string { - return JSON.stringify( - GetCategoryResponse$outboundSchema.parse(getCategoryResponse), - ); -} - export function getCategoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcollectionresponse.ts b/src/models/components/getcollectionresponse.ts index 38dc35a84..269f1a939 100644 --- a/src/models/components/getcollectionresponse.ts +++ b/src/models/components/getcollectionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Collection, - Collection$inboundSchema, - Collection$Outbound, - Collection$outboundSchema, -} from "./collection.js"; +import { Collection, Collection$inboundSchema } from "./collection.js"; /** * Get a Collection @@ -65,58 +60,6 @@ export const GetCollectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Collection$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCollectionResponse$outboundSchema: z.ZodType< - GetCollectionResponse$Outbound, - z.ZodTypeDef, - GetCollectionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Collection$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionResponse$ { - /** @deprecated use `GetCollectionResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionResponse$inboundSchema; - /** @deprecated use `GetCollectionResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionResponse$outboundSchema; - /** @deprecated use `GetCollectionResponse$Outbound` instead. */ - export type Outbound = GetCollectionResponse$Outbound; -} - -export function getCollectionResponseToJSON( - getCollectionResponse: GetCollectionResponse, -): string { - return JSON.stringify( - GetCollectionResponse$outboundSchema.parse(getCollectionResponse), - ); -} - export function getCollectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcollectionsresponse.ts b/src/models/components/getcollectionsresponse.ts index 108fd83a0..97f5ada0f 100644 --- a/src/models/components/getcollectionsresponse.ts +++ b/src/models/components/getcollectionsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Collection, - Collection$inboundSchema, - Collection$Outbound, - Collection$outboundSchema, -} from "./collection.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Collection, Collection$inboundSchema } from "./collection.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * List Collections @@ -87,62 +72,6 @@ export const GetCollectionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCollectionsResponse$outboundSchema: z.ZodType< - GetCollectionsResponse$Outbound, - z.ZodTypeDef, - GetCollectionsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Collection$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionsResponse$ { - /** @deprecated use `GetCollectionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionsResponse$inboundSchema; - /** @deprecated use `GetCollectionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionsResponse$outboundSchema; - /** @deprecated use `GetCollectionsResponse$Outbound` instead. */ - export type Outbound = GetCollectionsResponse$Outbound; -} - -export function getCollectionsResponseToJSON( - getCollectionsResponse: GetCollectionsResponse, -): string { - return JSON.stringify( - GetCollectionsResponse$outboundSchema.parse(getCollectionsResponse), - ); -} - export function getCollectionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcollectiontagsresponse.ts b/src/models/components/getcollectiontagsresponse.ts index a0aefb78b..f6b00619e 100644 --- a/src/models/components/getcollectiontagsresponse.ts +++ b/src/models/components/getcollectiontagsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CollectionTag, - CollectionTag$inboundSchema, - CollectionTag$Outbound, - CollectionTag$outboundSchema, -} from "./collectiontag.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { CollectionTag, CollectionTag$inboundSchema } from "./collectiontag.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * List Tags @@ -87,62 +72,6 @@ export const GetCollectionTagsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionTagsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCollectionTagsResponse$outboundSchema: z.ZodType< - GetCollectionTagsResponse$Outbound, - z.ZodTypeDef, - GetCollectionTagsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CollectionTag$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionTagsResponse$ { - /** @deprecated use `GetCollectionTagsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionTagsResponse$inboundSchema; - /** @deprecated use `GetCollectionTagsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionTagsResponse$outboundSchema; - /** @deprecated use `GetCollectionTagsResponse$Outbound` instead. */ - export type Outbound = GetCollectionTagsResponse$Outbound; -} - -export function getCollectionTagsResponseToJSON( - getCollectionTagsResponse: GetCollectionTagsResponse, -): string { - return JSON.stringify( - GetCollectionTagsResponse$outboundSchema.parse(getCollectionTagsResponse), - ); -} - export function getCollectionTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcollectionuserresponse.ts b/src/models/components/getcollectionuserresponse.ts index 27edb916b..76bad1ce7 100644 --- a/src/models/components/getcollectionuserresponse.ts +++ b/src/models/components/getcollectionuserresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CollectionUser, CollectionUser$inboundSchema, - CollectionUser$Outbound, - CollectionUser$outboundSchema, } from "./collectionuser.js"; /** @@ -65,58 +63,6 @@ export const GetCollectionUserResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionUserResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CollectionUser$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCollectionUserResponse$outboundSchema: z.ZodType< - GetCollectionUserResponse$Outbound, - z.ZodTypeDef, - GetCollectionUserResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CollectionUser$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionUserResponse$ { - /** @deprecated use `GetCollectionUserResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionUserResponse$inboundSchema; - /** @deprecated use `GetCollectionUserResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionUserResponse$outboundSchema; - /** @deprecated use `GetCollectionUserResponse$Outbound` instead. */ - export type Outbound = GetCollectionUserResponse$Outbound; -} - -export function getCollectionUserResponseToJSON( - getCollectionUserResponse: GetCollectionUserResponse, -): string { - return JSON.stringify( - GetCollectionUserResponse$outboundSchema.parse(getCollectionUserResponse), - ); -} - export function getCollectionUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcollectionusersresponse.ts b/src/models/components/getcollectionusersresponse.ts index 8a41250aa..539366e39 100644 --- a/src/models/components/getcollectionusersresponse.ts +++ b/src/models/components/getcollectionusersresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CollectionUser, CollectionUser$inboundSchema, - CollectionUser$Outbound, - CollectionUser$outboundSchema, } from "./collectionuser.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Users @@ -87,62 +75,6 @@ export const GetCollectionUsersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCollectionUsersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCollectionUsersResponse$outboundSchema: z.ZodType< - GetCollectionUsersResponse$Outbound, - z.ZodTypeDef, - GetCollectionUsersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CollectionUser$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCollectionUsersResponse$ { - /** @deprecated use `GetCollectionUsersResponse$inboundSchema` instead. */ - export const inboundSchema = GetCollectionUsersResponse$inboundSchema; - /** @deprecated use `GetCollectionUsersResponse$outboundSchema` instead. */ - export const outboundSchema = GetCollectionUsersResponse$outboundSchema; - /** @deprecated use `GetCollectionUsersResponse$Outbound` instead. */ - export type Outbound = GetCollectionUsersResponse$Outbound; -} - -export function getCollectionUsersResponseToJSON( - getCollectionUsersResponse: GetCollectionUsersResponse, -): string { - return JSON.stringify( - GetCollectionUsersResponse$outboundSchema.parse(getCollectionUsersResponse), - ); -} - export function getCollectionUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcommentresponse.ts b/src/models/components/getcommentresponse.ts index 1220d7141..0b6b1d3db 100644 --- a/src/models/components/getcommentresponse.ts +++ b/src/models/components/getcommentresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CollectionTicketComment, CollectionTicketComment$inboundSchema, - CollectionTicketComment$Outbound, - CollectionTicketComment$outboundSchema, } from "./collectionticketcomment.js"; /** @@ -65,58 +63,6 @@ export const GetCommentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCommentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CollectionTicketComment$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCommentResponse$outboundSchema: z.ZodType< - GetCommentResponse$Outbound, - z.ZodTypeDef, - GetCommentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CollectionTicketComment$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCommentResponse$ { - /** @deprecated use `GetCommentResponse$inboundSchema` instead. */ - export const inboundSchema = GetCommentResponse$inboundSchema; - /** @deprecated use `GetCommentResponse$outboundSchema` instead. */ - export const outboundSchema = GetCommentResponse$outboundSchema; - /** @deprecated use `GetCommentResponse$Outbound` instead. */ - export type Outbound = GetCommentResponse$Outbound; -} - -export function getCommentResponseToJSON( - getCommentResponse: GetCommentResponse, -): string { - return JSON.stringify( - GetCommentResponse$outboundSchema.parse(getCommentResponse), - ); -} - export function getCommentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcommentsresponse.ts b/src/models/components/getcommentsresponse.ts index 6f5136ee8..1ac69b418 100644 --- a/src/models/components/getcommentsresponse.ts +++ b/src/models/components/getcommentsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CollectionTicketComment, CollectionTicketComment$inboundSchema, - CollectionTicketComment$Outbound, - CollectionTicketComment$outboundSchema, } from "./collectionticketcomment.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * List Comments @@ -87,62 +75,6 @@ export const GetCommentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCommentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCommentsResponse$outboundSchema: z.ZodType< - GetCommentsResponse$Outbound, - z.ZodTypeDef, - GetCommentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CollectionTicketComment$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCommentsResponse$ { - /** @deprecated use `GetCommentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCommentsResponse$inboundSchema; - /** @deprecated use `GetCommentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCommentsResponse$outboundSchema; - /** @deprecated use `GetCommentsResponse$Outbound` instead. */ - export type Outbound = GetCommentsResponse$Outbound; -} - -export function getCommentsResponseToJSON( - getCommentsResponse: GetCommentsResponse, -): string { - return JSON.stringify( - GetCommentsResponse$outboundSchema.parse(getCommentsResponse), - ); -} - export function getCommentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcompaniesresponse.ts b/src/models/components/getcompaniesresponse.ts index d00016097..e86fc50df 100644 --- a/src/models/components/getcompaniesresponse.ts +++ b/src/models/components/getcompaniesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Company1, - Company1$inboundSchema, - Company1$Outbound, - Company1$outboundSchema, -} from "./company1.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Company1, Company1$inboundSchema } from "./company1.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Companies @@ -87,62 +72,6 @@ export const GetCompaniesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCompaniesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCompaniesResponse$outboundSchema: z.ZodType< - GetCompaniesResponse$Outbound, - z.ZodTypeDef, - GetCompaniesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Company1$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCompaniesResponse$ { - /** @deprecated use `GetCompaniesResponse$inboundSchema` instead. */ - export const inboundSchema = GetCompaniesResponse$inboundSchema; - /** @deprecated use `GetCompaniesResponse$outboundSchema` instead. */ - export const outboundSchema = GetCompaniesResponse$outboundSchema; - /** @deprecated use `GetCompaniesResponse$Outbound` instead. */ - export type Outbound = GetCompaniesResponse$Outbound; -} - -export function getCompaniesResponseToJSON( - getCompaniesResponse: GetCompaniesResponse, -): string { - return JSON.stringify( - GetCompaniesResponse$outboundSchema.parse(getCompaniesResponse), - ); -} - export function getCompaniesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcompanyinforesponse.ts b/src/models/components/getcompanyinforesponse.ts index e8325a276..404db4cd9 100644 --- a/src/models/components/getcompanyinforesponse.ts +++ b/src/models/components/getcompanyinforesponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CompanyInfo, - CompanyInfo$inboundSchema, - CompanyInfo$Outbound, - CompanyInfo$outboundSchema, -} from "./companyinfo.js"; +import { CompanyInfo, CompanyInfo$inboundSchema } from "./companyinfo.js"; /** * CompanyInfo @@ -65,58 +60,6 @@ export const GetCompanyInfoResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCompanyInfoResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CompanyInfo$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCompanyInfoResponse$outboundSchema: z.ZodType< - GetCompanyInfoResponse$Outbound, - z.ZodTypeDef, - GetCompanyInfoResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CompanyInfo$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCompanyInfoResponse$ { - /** @deprecated use `GetCompanyInfoResponse$inboundSchema` instead. */ - export const inboundSchema = GetCompanyInfoResponse$inboundSchema; - /** @deprecated use `GetCompanyInfoResponse$outboundSchema` instead. */ - export const outboundSchema = GetCompanyInfoResponse$outboundSchema; - /** @deprecated use `GetCompanyInfoResponse$Outbound` instead. */ - export type Outbound = GetCompanyInfoResponse$Outbound; -} - -export function getCompanyInfoResponseToJSON( - getCompanyInfoResponse: GetCompanyInfoResponse, -): string { - return JSON.stringify( - GetCompanyInfoResponse$outboundSchema.parse(getCompanyInfoResponse), - ); -} - export function getCompanyInfoResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcompanyresponse.ts b/src/models/components/getcompanyresponse.ts index f8e5a091c..867ef3e87 100644 --- a/src/models/components/getcompanyresponse.ts +++ b/src/models/components/getcompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Company1, - Company1$inboundSchema, - Company1$Outbound, - Company1$outboundSchema, -} from "./company1.js"; +import { Company1, Company1$inboundSchema } from "./company1.js"; /** * Company @@ -65,58 +60,6 @@ export const GetCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Company1$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCompanyResponse$outboundSchema: z.ZodType< - GetCompanyResponse$Outbound, - z.ZodTypeDef, - GetCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Company1$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCompanyResponse$ { - /** @deprecated use `GetCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = GetCompanyResponse$inboundSchema; - /** @deprecated use `GetCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = GetCompanyResponse$outboundSchema; - /** @deprecated use `GetCompanyResponse$Outbound` instead. */ - export type Outbound = GetCompanyResponse$Outbound; -} - -export function getCompanyResponseToJSON( - getCompanyResponse: GetCompanyResponse, -): string { - return JSON.stringify( - GetCompanyResponse$outboundSchema.parse(getCompanyResponse), - ); -} - export function getCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconnectionresponse.ts b/src/models/components/getconnectionresponse.ts index 4093eaa8f..33203b6ba 100644 --- a/src/models/components/getconnectionresponse.ts +++ b/src/models/components/getconnectionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connection, - Connection$inboundSchema, - Connection$Outbound, - Connection$outboundSchema, -} from "./connection.js"; +import { Connection, Connection$inboundSchema } from "./connection.js"; /** * Connection @@ -50,52 +45,6 @@ export const GetConnectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConnectionResponse$Outbound = { - status_code: number; - status: string; - data: Connection$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetConnectionResponse$outboundSchema: z.ZodType< - GetConnectionResponse$Outbound, - z.ZodTypeDef, - GetConnectionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Connection$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectionResponse$ { - /** @deprecated use `GetConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = GetConnectionResponse$inboundSchema; - /** @deprecated use `GetConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = GetConnectionResponse$outboundSchema; - /** @deprecated use `GetConnectionResponse$Outbound` instead. */ - export type Outbound = GetConnectionResponse$Outbound; -} - -export function getConnectionResponseToJSON( - getConnectionResponse: GetConnectionResponse, -): string { - return JSON.stringify( - GetConnectionResponse$outboundSchema.parse(getConnectionResponse), - ); -} - export function getConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconnectionsresponse.ts b/src/models/components/getconnectionsresponse.ts index 96190514d..464fe3426 100644 --- a/src/models/components/getconnectionsresponse.ts +++ b/src/models/components/getconnectionsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connection, - Connection$inboundSchema, - Connection$Outbound, - Connection$outboundSchema, -} from "./connection.js"; +import { Connection, Connection$inboundSchema } from "./connection.js"; /** * Connections @@ -50,52 +45,6 @@ export const GetConnectionsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConnectionsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetConnectionsResponse$outboundSchema: z.ZodType< - GetConnectionsResponse$Outbound, - z.ZodTypeDef, - GetConnectionsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(Connection$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectionsResponse$ { - /** @deprecated use `GetConnectionsResponse$inboundSchema` instead. */ - export const inboundSchema = GetConnectionsResponse$inboundSchema; - /** @deprecated use `GetConnectionsResponse$outboundSchema` instead. */ - export const outboundSchema = GetConnectionsResponse$outboundSchema; - /** @deprecated use `GetConnectionsResponse$Outbound` instead. */ - export type Outbound = GetConnectionsResponse$Outbound; -} - -export function getConnectionsResponseToJSON( - getConnectionsResponse: GetConnectionsResponse, -): string { - return JSON.stringify( - GetConnectionsResponse$outboundSchema.parse(getConnectionsResponse), - ); -} - export function getConnectionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconnectorresourceresponse.ts b/src/models/components/getconnectorresourceresponse.ts index 8661fa032..6fed0889f 100644 --- a/src/models/components/getconnectorresourceresponse.ts +++ b/src/models/components/getconnectorresourceresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConnectorResource, ConnectorResource$inboundSchema, - ConnectorResource$Outbound, - ConnectorResource$outboundSchema, } from "./connectorresource.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * ConnectorResources @@ -72,58 +60,6 @@ export const GetConnectorResourceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConnectorResourceResponse$Outbound = { - status_code: number; - status: string; - data: ConnectorResource$Outbound; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetConnectorResourceResponse$outboundSchema: z.ZodType< - GetConnectorResourceResponse$Outbound, - z.ZodTypeDef, - GetConnectorResourceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: ConnectorResource$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectorResourceResponse$ { - /** @deprecated use `GetConnectorResourceResponse$inboundSchema` instead. */ - export const inboundSchema = GetConnectorResourceResponse$inboundSchema; - /** @deprecated use `GetConnectorResourceResponse$outboundSchema` instead. */ - export const outboundSchema = GetConnectorResourceResponse$outboundSchema; - /** @deprecated use `GetConnectorResourceResponse$Outbound` instead. */ - export type Outbound = GetConnectorResourceResponse$Outbound; -} - -export function getConnectorResourceResponseToJSON( - getConnectorResourceResponse: GetConnectorResourceResponse, -): string { - return JSON.stringify( - GetConnectorResourceResponse$outboundSchema.parse( - getConnectorResourceResponse, - ), - ); -} - export function getConnectorResourceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconnectorresponse.ts b/src/models/components/getconnectorresponse.ts index db691a899..bea548a12 100644 --- a/src/models/components/getconnectorresponse.ts +++ b/src/models/components/getconnectorresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connector, - Connector$inboundSchema, - Connector$Outbound, - Connector$outboundSchema, -} from "./connector.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Connector, Connector$inboundSchema } from "./connector.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Connectors @@ -72,56 +57,6 @@ export const GetConnectorResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConnectorResponse$Outbound = { - status_code: number; - status: string; - data: Connector$Outbound; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetConnectorResponse$outboundSchema: z.ZodType< - GetConnectorResponse$Outbound, - z.ZodTypeDef, - GetConnectorResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Connector$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectorResponse$ { - /** @deprecated use `GetConnectorResponse$inboundSchema` instead. */ - export const inboundSchema = GetConnectorResponse$inboundSchema; - /** @deprecated use `GetConnectorResponse$outboundSchema` instead. */ - export const outboundSchema = GetConnectorResponse$outboundSchema; - /** @deprecated use `GetConnectorResponse$Outbound` instead. */ - export type Outbound = GetConnectorResponse$Outbound; -} - -export function getConnectorResponseToJSON( - getConnectorResponse: GetConnectorResponse, -): string { - return JSON.stringify( - GetConnectorResponse$outboundSchema.parse(getConnectorResponse), - ); -} - export function getConnectorResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconnectorsresponse.ts b/src/models/components/getconnectorsresponse.ts index add406611..ed8d93f7c 100644 --- a/src/models/components/getconnectorsresponse.ts +++ b/src/models/components/getconnectorsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connector, - Connector$inboundSchema, - Connector$Outbound, - Connector$outboundSchema, -} from "./connector.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Connector, Connector$inboundSchema } from "./connector.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Connectors @@ -72,56 +57,6 @@ export const GetConnectorsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConnectorsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetConnectorsResponse$outboundSchema: z.ZodType< - GetConnectorsResponse$Outbound, - z.ZodTypeDef, - GetConnectorsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(Connector$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectorsResponse$ { - /** @deprecated use `GetConnectorsResponse$inboundSchema` instead. */ - export const inboundSchema = GetConnectorsResponse$inboundSchema; - /** @deprecated use `GetConnectorsResponse$outboundSchema` instead. */ - export const outboundSchema = GetConnectorsResponse$outboundSchema; - /** @deprecated use `GetConnectorsResponse$Outbound` instead. */ - export type Outbound = GetConnectorsResponse$Outbound; -} - -export function getConnectorsResponseToJSON( - getConnectorsResponse: GetConnectorsResponse, -): string { - return JSON.stringify( - GetConnectorsResponse$outboundSchema.parse(getConnectorsResponse), - ); -} - export function getConnectorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconsentrecordsresponse.ts b/src/models/components/getconsentrecordsresponse.ts index b0269820b..085567b79 100644 --- a/src/models/components/getconsentrecordsresponse.ts +++ b/src/models/components/getconsentrecordsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ConsentRecord, - ConsentRecord$inboundSchema, - ConsentRecord$Outbound, - ConsentRecord$outboundSchema, -} from "./consentrecord.js"; +import { ConsentRecord, ConsentRecord$inboundSchema } from "./consentrecord.js"; /** * Consent records @@ -50,52 +45,6 @@ export const GetConsentRecordsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConsentRecordsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetConsentRecordsResponse$outboundSchema: z.ZodType< - GetConsentRecordsResponse$Outbound, - z.ZodTypeDef, - GetConsentRecordsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(ConsentRecord$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConsentRecordsResponse$ { - /** @deprecated use `GetConsentRecordsResponse$inboundSchema` instead. */ - export const inboundSchema = GetConsentRecordsResponse$inboundSchema; - /** @deprecated use `GetConsentRecordsResponse$outboundSchema` instead. */ - export const outboundSchema = GetConsentRecordsResponse$outboundSchema; - /** @deprecated use `GetConsentRecordsResponse$Outbound` instead. */ - export type Outbound = GetConsentRecordsResponse$Outbound; -} - -export function getConsentRecordsResponseToJSON( - getConsentRecordsResponse: GetConsentRecordsResponse, -): string { - return JSON.stringify( - GetConsentRecordsResponse$outboundSchema.parse(getConsentRecordsResponse), - ); -} - export function getConsentRecordsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconsumerresponse.ts b/src/models/components/getconsumerresponse.ts index 75fd24c65..ad07e6e33 100644 --- a/src/models/components/getconsumerresponse.ts +++ b/src/models/components/getconsumerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Consumer, - Consumer$inboundSchema, - Consumer$Outbound, - Consumer$outboundSchema, -} from "./consumer.js"; +import { Consumer, Consumer$inboundSchema } from "./consumer.js"; /** * Consumer @@ -50,52 +45,6 @@ export const GetConsumerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConsumerResponse$Outbound = { - status_code: number; - status: string; - data: Consumer$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetConsumerResponse$outboundSchema: z.ZodType< - GetConsumerResponse$Outbound, - z.ZodTypeDef, - GetConsumerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Consumer$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConsumerResponse$ { - /** @deprecated use `GetConsumerResponse$inboundSchema` instead. */ - export const inboundSchema = GetConsumerResponse$inboundSchema; - /** @deprecated use `GetConsumerResponse$outboundSchema` instead. */ - export const outboundSchema = GetConsumerResponse$outboundSchema; - /** @deprecated use `GetConsumerResponse$Outbound` instead. */ - export type Outbound = GetConsumerResponse$Outbound; -} - -export function getConsumerResponseToJSON( - getConsumerResponse: GetConsumerResponse, -): string { - return JSON.stringify( - GetConsumerResponse$outboundSchema.parse(getConsumerResponse), - ); -} - export function getConsumerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getconsumersresponse.ts b/src/models/components/getconsumersresponse.ts index 6e42bd1ab..a4b5e1250 100644 --- a/src/models/components/getconsumersresponse.ts +++ b/src/models/components/getconsumersresponse.ts @@ -10,26 +10,12 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerMetadata, ConsumerMetadata$inboundSchema, - ConsumerMetadata$Outbound, - ConsumerMetadata$outboundSchema, } from "./consumermetadata.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; import { RequestCountAllocation, RequestCountAllocation$inboundSchema, - RequestCountAllocation$Outbound, - RequestCountAllocation$outboundSchema, } from "./requestcountallocation.js"; export type Data = { @@ -96,58 +82,6 @@ export const Data$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Data$Outbound = { - consumer_id?: string | undefined; - application_id?: string | undefined; - metadata?: ConsumerMetadata$Outbound | undefined; - aggregated_request_count?: number | undefined; - request_counts?: RequestCountAllocation$Outbound | undefined; - created?: string | undefined; - modified?: string | undefined; - request_count_updated?: string | undefined; - services?: Array | undefined; -}; - -/** @internal */ -export const Data$outboundSchema: z.ZodType = - z.object({ - consumerId: z.string().optional(), - applicationId: z.string().optional(), - metadata: ConsumerMetadata$outboundSchema.optional(), - aggregatedRequestCount: z.number().optional(), - requestCounts: RequestCountAllocation$outboundSchema.optional(), - created: z.string().optional(), - modified: z.string().optional(), - requestCountUpdated: z.string().optional(), - services: z.array(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - consumerId: "consumer_id", - applicationId: "application_id", - aggregatedRequestCount: "aggregated_request_count", - requestCounts: "request_counts", - requestCountUpdated: "request_count_updated", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Data$ { - /** @deprecated use `Data$inboundSchema` instead. */ - export const inboundSchema = Data$inboundSchema; - /** @deprecated use `Data$outboundSchema` instead. */ - export const outboundSchema = Data$outboundSchema; - /** @deprecated use `Data$Outbound` instead. */ - export type Outbound = Data$Outbound; -} - -export function dataToJSON(data: Data): string { - return JSON.stringify(Data$outboundSchema.parse(data)); -} - export function dataFromJSON( jsonString: string, ): SafeParseResult { @@ -177,56 +111,6 @@ export const GetConsumersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetConsumersResponse$Outbound = { - status_code: number; - status: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetConsumersResponse$outboundSchema: z.ZodType< - GetConsumersResponse$Outbound, - z.ZodTypeDef, - GetConsumersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(z.lazy(() => Data$outboundSchema)), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConsumersResponse$ { - /** @deprecated use `GetConsumersResponse$inboundSchema` instead. */ - export const inboundSchema = GetConsumersResponse$inboundSchema; - /** @deprecated use `GetConsumersResponse$outboundSchema` instead. */ - export const outboundSchema = GetConsumersResponse$outboundSchema; - /** @deprecated use `GetConsumersResponse$Outbound` instead. */ - export type Outbound = GetConsumersResponse$Outbound; -} - -export function getConsumersResponseToJSON( - getConsumersResponse: GetConsumersResponse, -): string { - return JSON.stringify( - GetConsumersResponse$outboundSchema.parse(getConsumersResponse), - ); -} - export function getConsumersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcontactresponse.ts b/src/models/components/getcontactresponse.ts index 7af50feec..a1760882a 100644 --- a/src/models/components/getcontactresponse.ts +++ b/src/models/components/getcontactresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Contact, - Contact$inboundSchema, - Contact$Outbound, - Contact$outboundSchema, -} from "./contact.js"; +import { Contact, Contact$inboundSchema } from "./contact.js"; /** * Contact @@ -65,58 +60,6 @@ export const GetContactResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetContactResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Contact$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetContactResponse$outboundSchema: z.ZodType< - GetContactResponse$Outbound, - z.ZodTypeDef, - GetContactResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Contact$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContactResponse$ { - /** @deprecated use `GetContactResponse$inboundSchema` instead. */ - export const inboundSchema = GetContactResponse$inboundSchema; - /** @deprecated use `GetContactResponse$outboundSchema` instead. */ - export const outboundSchema = GetContactResponse$outboundSchema; - /** @deprecated use `GetContactResponse$Outbound` instead. */ - export type Outbound = GetContactResponse$Outbound; -} - -export function getContactResponseToJSON( - getContactResponse: GetContactResponse, -): string { - return JSON.stringify( - GetContactResponse$outboundSchema.parse(getContactResponse), - ); -} - export function getContactResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcontactsresponse.ts b/src/models/components/getcontactsresponse.ts index d8201de73..3ac871e53 100644 --- a/src/models/components/getcontactsresponse.ts +++ b/src/models/components/getcontactsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Contact, - Contact$inboundSchema, - Contact$Outbound, - Contact$outboundSchema, -} from "./contact.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Contact, Contact$inboundSchema } from "./contact.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Contacts @@ -87,62 +72,6 @@ export const GetContactsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetContactsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetContactsResponse$outboundSchema: z.ZodType< - GetContactsResponse$Outbound, - z.ZodTypeDef, - GetContactsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Contact$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContactsResponse$ { - /** @deprecated use `GetContactsResponse$inboundSchema` instead. */ - export const inboundSchema = GetContactsResponse$inboundSchema; - /** @deprecated use `GetContactsResponse$outboundSchema` instead. */ - export const outboundSchema = GetContactsResponse$outboundSchema; - /** @deprecated use `GetContactsResponse$Outbound` instead. */ - export type Outbound = GetContactsResponse$Outbound; -} - -export function getContactsResponseToJSON( - getContactsResponse: GetContactsResponse, -): string { - return JSON.stringify( - GetContactsResponse$outboundSchema.parse(getContactsResponse), - ); -} - export function getContactsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcreditnoteresponse.ts b/src/models/components/getcreditnoteresponse.ts index 2e5943a67..0ce4e4749 100644 --- a/src/models/components/getcreditnoteresponse.ts +++ b/src/models/components/getcreditnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CreditNote, - CreditNote$inboundSchema, - CreditNote$Outbound, - CreditNote$outboundSchema, -} from "./creditnote.js"; +import { CreditNote, CreditNote$inboundSchema } from "./creditnote.js"; /** * Credit Note @@ -65,58 +60,6 @@ export const GetCreditNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCreditNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CreditNote$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCreditNoteResponse$outboundSchema: z.ZodType< - GetCreditNoteResponse$Outbound, - z.ZodTypeDef, - GetCreditNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CreditNote$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCreditNoteResponse$ { - /** @deprecated use `GetCreditNoteResponse$inboundSchema` instead. */ - export const inboundSchema = GetCreditNoteResponse$inboundSchema; - /** @deprecated use `GetCreditNoteResponse$outboundSchema` instead. */ - export const outboundSchema = GetCreditNoteResponse$outboundSchema; - /** @deprecated use `GetCreditNoteResponse$Outbound` instead. */ - export type Outbound = GetCreditNoteResponse$Outbound; -} - -export function getCreditNoteResponseToJSON( - getCreditNoteResponse: GetCreditNoteResponse, -): string { - return JSON.stringify( - GetCreditNoteResponse$outboundSchema.parse(getCreditNoteResponse), - ); -} - export function getCreditNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcreditnotesresponse.ts b/src/models/components/getcreditnotesresponse.ts index c2e292aae..88bbb5222 100644 --- a/src/models/components/getcreditnotesresponse.ts +++ b/src/models/components/getcreditnotesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CreditNote, - CreditNote$inboundSchema, - CreditNote$Outbound, - CreditNote$outboundSchema, -} from "./creditnote.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { CreditNote, CreditNote$inboundSchema } from "./creditnote.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Credit Notes @@ -87,62 +72,6 @@ export const GetCreditNotesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCreditNotesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCreditNotesResponse$outboundSchema: z.ZodType< - GetCreditNotesResponse$Outbound, - z.ZodTypeDef, - GetCreditNotesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CreditNote$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCreditNotesResponse$ { - /** @deprecated use `GetCreditNotesResponse$inboundSchema` instead. */ - export const inboundSchema = GetCreditNotesResponse$inboundSchema; - /** @deprecated use `GetCreditNotesResponse$outboundSchema` instead. */ - export const outboundSchema = GetCreditNotesResponse$outboundSchema; - /** @deprecated use `GetCreditNotesResponse$Outbound` instead. */ - export type Outbound = GetCreditNotesResponse$Outbound; -} - -export function getCreditNotesResponseToJSON( - getCreditNotesResponse: GetCreditNotesResponse, -): string { - return JSON.stringify( - GetCreditNotesResponse$outboundSchema.parse(getCreditNotesResponse), - ); -} - export function getCreditNotesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomerresponse.ts b/src/models/components/getcustomerresponse.ts index 368a2ec98..e01e9f072 100644 --- a/src/models/components/getcustomerresponse.ts +++ b/src/models/components/getcustomerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Customer, - Customer$inboundSchema, - Customer$Outbound, - Customer$outboundSchema, -} from "./customer.js"; +import { Customer, Customer$inboundSchema } from "./customer.js"; /** * Customer @@ -65,58 +60,6 @@ export const GetCustomerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomerResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Customer$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomerResponse$outboundSchema: z.ZodType< - GetCustomerResponse$Outbound, - z.ZodTypeDef, - GetCustomerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Customer$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomerResponse$ { - /** @deprecated use `GetCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomerResponse$inboundSchema; - /** @deprecated use `GetCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomerResponse$outboundSchema; - /** @deprecated use `GetCustomerResponse$Outbound` instead. */ - export type Outbound = GetCustomerResponse$Outbound; -} - -export function getCustomerResponseToJSON( - getCustomerResponse: GetCustomerResponse, -): string { - return JSON.stringify( - GetCustomerResponse$outboundSchema.parse(getCustomerResponse), - ); -} - export function getCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomersresponse.ts b/src/models/components/getcustomersresponse.ts index f5b9d6efb..fb9945983 100644 --- a/src/models/components/getcustomersresponse.ts +++ b/src/models/components/getcustomersresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Customer, - Customer$inboundSchema, - Customer$Outbound, - Customer$outboundSchema, -} from "./customer.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Customer, Customer$inboundSchema } from "./customer.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Customers @@ -87,62 +72,6 @@ export const GetCustomersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomersResponse$outboundSchema: z.ZodType< - GetCustomersResponse$Outbound, - z.ZodTypeDef, - GetCustomersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Customer$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomersResponse$ { - /** @deprecated use `GetCustomersResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomersResponse$inboundSchema; - /** @deprecated use `GetCustomersResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomersResponse$outboundSchema; - /** @deprecated use `GetCustomersResponse$Outbound` instead. */ - export type Outbound = GetCustomersResponse$Outbound; -} - -export function getCustomersResponseToJSON( - getCustomersResponse: GetCustomersResponse, -): string { - return JSON.stringify( - GetCustomersResponse$outboundSchema.parse(getCustomersResponse), - ); -} - export function getCustomersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomfieldsresponse.ts b/src/models/components/getcustomfieldsresponse.ts index 16c39116f..1a9760aad 100644 --- a/src/models/components/getcustomfieldsresponse.ts +++ b/src/models/components/getcustomfieldsresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomFieldFinder, CustomFieldFinder$inboundSchema, - CustomFieldFinder$Outbound, - CustomFieldFinder$outboundSchema, } from "./customfieldfinder.js"; /** @@ -50,52 +48,6 @@ export const GetCustomFieldsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomFieldsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomFieldsResponse$outboundSchema: z.ZodType< - GetCustomFieldsResponse$Outbound, - z.ZodTypeDef, - GetCustomFieldsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(CustomFieldFinder$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomFieldsResponse$ { - /** @deprecated use `GetCustomFieldsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomFieldsResponse$inboundSchema; - /** @deprecated use `GetCustomFieldsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomFieldsResponse$outboundSchema; - /** @deprecated use `GetCustomFieldsResponse$Outbound` instead. */ - export type Outbound = GetCustomFieldsResponse$Outbound; -} - -export function getCustomFieldsResponseToJSON( - getCustomFieldsResponse: GetCustomFieldsResponse, -): string { - return JSON.stringify( - GetCustomFieldsResponse$outboundSchema.parse(getCustomFieldsResponse), - ); -} - export function getCustomFieldsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustommappingsresponse.ts b/src/models/components/getcustommappingsresponse.ts index 679b876c5..9d967bd42 100644 --- a/src/models/components/getcustommappingsresponse.ts +++ b/src/models/components/getcustommappingsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CustomMapping, - CustomMapping$inboundSchema, - CustomMapping$Outbound, - CustomMapping$outboundSchema, -} from "./custommapping.js"; +import { CustomMapping, CustomMapping$inboundSchema } from "./custommapping.js"; /** * Custom mapping @@ -50,52 +45,6 @@ export const GetCustomMappingsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomMappingsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomMappingsResponse$outboundSchema: z.ZodType< - GetCustomMappingsResponse$Outbound, - z.ZodTypeDef, - GetCustomMappingsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(CustomMapping$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomMappingsResponse$ { - /** @deprecated use `GetCustomMappingsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomMappingsResponse$inboundSchema; - /** @deprecated use `GetCustomMappingsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomMappingsResponse$outboundSchema; - /** @deprecated use `GetCustomMappingsResponse$Outbound` instead. */ - export type Outbound = GetCustomMappingsResponse$Outbound; -} - -export function getCustomMappingsResponseToJSON( - getCustomMappingsResponse: GetCustomMappingsResponse, -): string { - return JSON.stringify( - GetCustomMappingsResponse$outboundSchema.parse(getCustomMappingsResponse), - ); -} - export function getCustomMappingsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomobjectresponse.ts b/src/models/components/getcustomobjectresponse.ts index b2782bb19..ba28297f7 100644 --- a/src/models/components/getcustomobjectresponse.ts +++ b/src/models/components/getcustomobjectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CustomObject, - CustomObject$inboundSchema, - CustomObject$Outbound, - CustomObject$outboundSchema, -} from "./customobject.js"; +import { CustomObject, CustomObject$inboundSchema } from "./customobject.js"; /** * Custom object @@ -65,58 +60,6 @@ export const GetCustomObjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomObjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CustomObject$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomObjectResponse$outboundSchema: z.ZodType< - GetCustomObjectResponse$Outbound, - z.ZodTypeDef, - GetCustomObjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CustomObject$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomObjectResponse$ { - /** @deprecated use `GetCustomObjectResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomObjectResponse$inboundSchema; - /** @deprecated use `GetCustomObjectResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomObjectResponse$outboundSchema; - /** @deprecated use `GetCustomObjectResponse$Outbound` instead. */ - export type Outbound = GetCustomObjectResponse$Outbound; -} - -export function getCustomObjectResponseToJSON( - getCustomObjectResponse: GetCustomObjectResponse, -): string { - return JSON.stringify( - GetCustomObjectResponse$outboundSchema.parse(getCustomObjectResponse), - ); -} - export function getCustomObjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomobjectschemaresponse.ts b/src/models/components/getcustomobjectschemaresponse.ts index d97867fa7..3565e595b 100644 --- a/src/models/components/getcustomobjectschemaresponse.ts +++ b/src/models/components/getcustomobjectschemaresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomObjectSchema, CustomObjectSchema$inboundSchema, - CustomObjectSchema$Outbound, - CustomObjectSchema$outboundSchema, } from "./customobjectschema.js"; /** @@ -65,60 +63,6 @@ export const GetCustomObjectSchemaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomObjectSchemaResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: CustomObjectSchema$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetCustomObjectSchemaResponse$outboundSchema: z.ZodType< - GetCustomObjectSchemaResponse$Outbound, - z.ZodTypeDef, - GetCustomObjectSchemaResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: CustomObjectSchema$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomObjectSchemaResponse$ { - /** @deprecated use `GetCustomObjectSchemaResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomObjectSchemaResponse$inboundSchema; - /** @deprecated use `GetCustomObjectSchemaResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomObjectSchemaResponse$outboundSchema; - /** @deprecated use `GetCustomObjectSchemaResponse$Outbound` instead. */ - export type Outbound = GetCustomObjectSchemaResponse$Outbound; -} - -export function getCustomObjectSchemaResponseToJSON( - getCustomObjectSchemaResponse: GetCustomObjectSchemaResponse, -): string { - return JSON.stringify( - GetCustomObjectSchemaResponse$outboundSchema.parse( - getCustomObjectSchemaResponse, - ), - ); -} - export function getCustomObjectSchemaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomobjectschemasresponse.ts b/src/models/components/getcustomobjectschemasresponse.ts index 729620e20..1f4bab85d 100644 --- a/src/models/components/getcustomobjectschemasresponse.ts +++ b/src/models/components/getcustomobjectschemasresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomObjectSchema, CustomObjectSchema$inboundSchema, - CustomObjectSchema$Outbound, - CustomObjectSchema$outboundSchema, } from "./customobjectschema.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Custom object schemas @@ -87,64 +75,6 @@ export const GetCustomObjectSchemasResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomObjectSchemasResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetCustomObjectSchemasResponse$outboundSchema: z.ZodType< - GetCustomObjectSchemasResponse$Outbound, - z.ZodTypeDef, - GetCustomObjectSchemasResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CustomObjectSchema$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomObjectSchemasResponse$ { - /** @deprecated use `GetCustomObjectSchemasResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomObjectSchemasResponse$inboundSchema; - /** @deprecated use `GetCustomObjectSchemasResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomObjectSchemasResponse$outboundSchema; - /** @deprecated use `GetCustomObjectSchemasResponse$Outbound` instead. */ - export type Outbound = GetCustomObjectSchemasResponse$Outbound; -} - -export function getCustomObjectSchemasResponseToJSON( - getCustomObjectSchemasResponse: GetCustomObjectSchemasResponse, -): string { - return JSON.stringify( - GetCustomObjectSchemasResponse$outboundSchema.parse( - getCustomObjectSchemasResponse, - ), - ); -} - export function getCustomObjectSchemasResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getcustomobjectsresponse.ts b/src/models/components/getcustomobjectsresponse.ts index 030dd610e..bafbf9542 100644 --- a/src/models/components/getcustomobjectsresponse.ts +++ b/src/models/components/getcustomobjectsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CustomObject, - CustomObject$inboundSchema, - CustomObject$Outbound, - CustomObject$outboundSchema, -} from "./customobject.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { CustomObject, CustomObject$inboundSchema } from "./customobject.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Custom objects @@ -87,62 +72,6 @@ export const GetCustomObjectsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetCustomObjectsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetCustomObjectsResponse$outboundSchema: z.ZodType< - GetCustomObjectsResponse$Outbound, - z.ZodTypeDef, - GetCustomObjectsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(CustomObject$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCustomObjectsResponse$ { - /** @deprecated use `GetCustomObjectsResponse$inboundSchema` instead. */ - export const inboundSchema = GetCustomObjectsResponse$inboundSchema; - /** @deprecated use `GetCustomObjectsResponse$outboundSchema` instead. */ - export const outboundSchema = GetCustomObjectsResponse$outboundSchema; - /** @deprecated use `GetCustomObjectsResponse$Outbound` instead. */ - export type Outbound = GetCustomObjectsResponse$Outbound; -} - -export function getCustomObjectsResponseToJSON( - getCustomObjectsResponse: GetCustomObjectsResponse, -): string { - return JSON.stringify( - GetCustomObjectsResponse$outboundSchema.parse(getCustomObjectsResponse), - ); -} - export function getCustomObjectsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdepartmentresponse.ts b/src/models/components/getdepartmentresponse.ts index da8a007c3..bbab49389 100644 --- a/src/models/components/getdepartmentresponse.ts +++ b/src/models/components/getdepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Department, - Department$inboundSchema, - Department$Outbound, - Department$outboundSchema, -} from "./department.js"; +import { Department, Department$inboundSchema } from "./department.js"; /** * Departments @@ -65,58 +60,6 @@ export const GetDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Department$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetDepartmentResponse$outboundSchema: z.ZodType< - GetDepartmentResponse$Outbound, - z.ZodTypeDef, - GetDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Department$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDepartmentResponse$ { - /** @deprecated use `GetDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = GetDepartmentResponse$inboundSchema; - /** @deprecated use `GetDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = GetDepartmentResponse$outboundSchema; - /** @deprecated use `GetDepartmentResponse$Outbound` instead. */ - export type Outbound = GetDepartmentResponse$Outbound; -} - -export function getDepartmentResponseToJSON( - getDepartmentResponse: GetDepartmentResponse, -): string { - return JSON.stringify( - GetDepartmentResponse$outboundSchema.parse(getDepartmentResponse), - ); -} - export function getDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdepartmentsresponse.ts b/src/models/components/getdepartmentsresponse.ts index e281b4f12..767cda854 100644 --- a/src/models/components/getdepartmentsresponse.ts +++ b/src/models/components/getdepartmentsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Department, - Department$inboundSchema, - Department$Outbound, - Department$outboundSchema, -} from "./department.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Department, Department$inboundSchema } from "./department.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Departments @@ -87,62 +72,6 @@ export const GetDepartmentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDepartmentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetDepartmentsResponse$outboundSchema: z.ZodType< - GetDepartmentsResponse$Outbound, - z.ZodTypeDef, - GetDepartmentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Department$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDepartmentsResponse$ { - /** @deprecated use `GetDepartmentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetDepartmentsResponse$inboundSchema; - /** @deprecated use `GetDepartmentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetDepartmentsResponse$outboundSchema; - /** @deprecated use `GetDepartmentsResponse$Outbound` instead. */ - export type Outbound = GetDepartmentsResponse$Outbound; -} - -export function getDepartmentsResponseToJSON( - getDepartmentsResponse: GetDepartmentsResponse, -): string { - return JSON.stringify( - GetDepartmentsResponse$outboundSchema.parse(getDepartmentsResponse), - ); -} - export function getDepartmentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdrivegroupresponse.ts b/src/models/components/getdrivegroupresponse.ts index b95298a2a..966e75a33 100644 --- a/src/models/components/getdrivegroupresponse.ts +++ b/src/models/components/getdrivegroupresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - DriveGroup, - DriveGroup$inboundSchema, - DriveGroup$Outbound, - DriveGroup$outboundSchema, -} from "./drivegroup.js"; +import { DriveGroup, DriveGroup$inboundSchema } from "./drivegroup.js"; /** * DriveGroups @@ -65,58 +60,6 @@ export const GetDriveGroupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDriveGroupResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: DriveGroup$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetDriveGroupResponse$outboundSchema: z.ZodType< - GetDriveGroupResponse$Outbound, - z.ZodTypeDef, - GetDriveGroupResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: DriveGroup$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDriveGroupResponse$ { - /** @deprecated use `GetDriveGroupResponse$inboundSchema` instead. */ - export const inboundSchema = GetDriveGroupResponse$inboundSchema; - /** @deprecated use `GetDriveGroupResponse$outboundSchema` instead. */ - export const outboundSchema = GetDriveGroupResponse$outboundSchema; - /** @deprecated use `GetDriveGroupResponse$Outbound` instead. */ - export type Outbound = GetDriveGroupResponse$Outbound; -} - -export function getDriveGroupResponseToJSON( - getDriveGroupResponse: GetDriveGroupResponse, -): string { - return JSON.stringify( - GetDriveGroupResponse$outboundSchema.parse(getDriveGroupResponse), - ); -} - export function getDriveGroupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdrivegroupsresponse.ts b/src/models/components/getdrivegroupsresponse.ts index 9e17d4f27..840147e74 100644 --- a/src/models/components/getdrivegroupsresponse.ts +++ b/src/models/components/getdrivegroupsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - DriveGroup, - DriveGroup$inboundSchema, - DriveGroup$Outbound, - DriveGroup$outboundSchema, -} from "./drivegroup.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { DriveGroup, DriveGroup$inboundSchema } from "./drivegroup.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * DriveGroups @@ -87,62 +72,6 @@ export const GetDriveGroupsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDriveGroupsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetDriveGroupsResponse$outboundSchema: z.ZodType< - GetDriveGroupsResponse$Outbound, - z.ZodTypeDef, - GetDriveGroupsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(DriveGroup$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDriveGroupsResponse$ { - /** @deprecated use `GetDriveGroupsResponse$inboundSchema` instead. */ - export const inboundSchema = GetDriveGroupsResponse$inboundSchema; - /** @deprecated use `GetDriveGroupsResponse$outboundSchema` instead. */ - export const outboundSchema = GetDriveGroupsResponse$outboundSchema; - /** @deprecated use `GetDriveGroupsResponse$Outbound` instead. */ - export type Outbound = GetDriveGroupsResponse$Outbound; -} - -export function getDriveGroupsResponseToJSON( - getDriveGroupsResponse: GetDriveGroupsResponse, -): string { - return JSON.stringify( - GetDriveGroupsResponse$outboundSchema.parse(getDriveGroupsResponse), - ); -} - export function getDriveGroupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdriveresponse.ts b/src/models/components/getdriveresponse.ts index e83d63282..c1611f63b 100644 --- a/src/models/components/getdriveresponse.ts +++ b/src/models/components/getdriveresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Drive, - Drive$inboundSchema, - Drive$Outbound, - Drive$outboundSchema, -} from "./drive.js"; +import { Drive, Drive$inboundSchema } from "./drive.js"; /** * Drives @@ -65,58 +60,6 @@ export const GetDriveResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDriveResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Drive$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetDriveResponse$outboundSchema: z.ZodType< - GetDriveResponse$Outbound, - z.ZodTypeDef, - GetDriveResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Drive$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDriveResponse$ { - /** @deprecated use `GetDriveResponse$inboundSchema` instead. */ - export const inboundSchema = GetDriveResponse$inboundSchema; - /** @deprecated use `GetDriveResponse$outboundSchema` instead. */ - export const outboundSchema = GetDriveResponse$outboundSchema; - /** @deprecated use `GetDriveResponse$Outbound` instead. */ - export type Outbound = GetDriveResponse$Outbound; -} - -export function getDriveResponseToJSON( - getDriveResponse: GetDriveResponse, -): string { - return JSON.stringify( - GetDriveResponse$outboundSchema.parse(getDriveResponse), - ); -} - export function getDriveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getdrivesresponse.ts b/src/models/components/getdrivesresponse.ts index 5f11c6b26..3bf135682 100644 --- a/src/models/components/getdrivesresponse.ts +++ b/src/models/components/getdrivesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Drive, - Drive$inboundSchema, - Drive$Outbound, - Drive$outboundSchema, -} from "./drive.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Drive, Drive$inboundSchema } from "./drive.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Drives @@ -87,62 +72,6 @@ export const GetDrivesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetDrivesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetDrivesResponse$outboundSchema: z.ZodType< - GetDrivesResponse$Outbound, - z.ZodTypeDef, - GetDrivesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Drive$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDrivesResponse$ { - /** @deprecated use `GetDrivesResponse$inboundSchema` instead. */ - export const inboundSchema = GetDrivesResponse$inboundSchema; - /** @deprecated use `GetDrivesResponse$outboundSchema` instead. */ - export const outboundSchema = GetDrivesResponse$outboundSchema; - /** @deprecated use `GetDrivesResponse$Outbound` instead. */ - export type Outbound = GetDrivesResponse$Outbound; -} - -export function getDrivesResponseToJSON( - getDrivesResponse: GetDrivesResponse, -): string { - return JSON.stringify( - GetDrivesResponse$outboundSchema.parse(getDrivesResponse), - ); -} - export function getDrivesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getecommercecustomerresponse.ts b/src/models/components/getecommercecustomerresponse.ts index 55688eafc..29ec3dfaa 100644 --- a/src/models/components/getecommercecustomerresponse.ts +++ b/src/models/components/getecommercecustomerresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceCustomer, EcommerceCustomer$inboundSchema, - EcommerceCustomer$Outbound, - EcommerceCustomer$outboundSchema, } from "./ecommercecustomer.js"; /** @@ -65,60 +63,6 @@ export const GetEcommerceCustomerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEcommerceCustomerResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EcommerceCustomer$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEcommerceCustomerResponse$outboundSchema: z.ZodType< - GetEcommerceCustomerResponse$Outbound, - z.ZodTypeDef, - GetEcommerceCustomerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EcommerceCustomer$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEcommerceCustomerResponse$ { - /** @deprecated use `GetEcommerceCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = GetEcommerceCustomerResponse$inboundSchema; - /** @deprecated use `GetEcommerceCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = GetEcommerceCustomerResponse$outboundSchema; - /** @deprecated use `GetEcommerceCustomerResponse$Outbound` instead. */ - export type Outbound = GetEcommerceCustomerResponse$Outbound; -} - -export function getEcommerceCustomerResponseToJSON( - getEcommerceCustomerResponse: GetEcommerceCustomerResponse, -): string { - return JSON.stringify( - GetEcommerceCustomerResponse$outboundSchema.parse( - getEcommerceCustomerResponse, - ), - ); -} - export function getEcommerceCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getecommercecustomersresponse.ts b/src/models/components/getecommercecustomersresponse.ts index 8487a582a..c1aae726a 100644 --- a/src/models/components/getecommercecustomersresponse.ts +++ b/src/models/components/getecommercecustomersresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceCustomer, EcommerceCustomer$inboundSchema, - EcommerceCustomer$Outbound, - EcommerceCustomer$outboundSchema, } from "./ecommercecustomer.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Customers @@ -87,64 +75,6 @@ export const GetEcommerceCustomersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEcommerceCustomersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetEcommerceCustomersResponse$outboundSchema: z.ZodType< - GetEcommerceCustomersResponse$Outbound, - z.ZodTypeDef, - GetEcommerceCustomersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(EcommerceCustomer$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEcommerceCustomersResponse$ { - /** @deprecated use `GetEcommerceCustomersResponse$inboundSchema` instead. */ - export const inboundSchema = GetEcommerceCustomersResponse$inboundSchema; - /** @deprecated use `GetEcommerceCustomersResponse$outboundSchema` instead. */ - export const outboundSchema = GetEcommerceCustomersResponse$outboundSchema; - /** @deprecated use `GetEcommerceCustomersResponse$Outbound` instead. */ - export type Outbound = GetEcommerceCustomersResponse$Outbound; -} - -export function getEcommerceCustomersResponseToJSON( - getEcommerceCustomersResponse: GetEcommerceCustomersResponse, -): string { - return JSON.stringify( - GetEcommerceCustomersResponse$outboundSchema.parse( - getEcommerceCustomersResponse, - ), - ); -} - export function getEcommerceCustomersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getecommerceorderresponse.ts b/src/models/components/getecommerceorderresponse.ts index 5df8f92d2..1e9f9fafa 100644 --- a/src/models/components/getecommerceorderresponse.ts +++ b/src/models/components/getecommerceorderresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceOrder, EcommerceOrder$inboundSchema, - EcommerceOrder$Outbound, - EcommerceOrder$outboundSchema, } from "./ecommerceorder.js"; /** @@ -65,58 +63,6 @@ export const GetEcommerceOrderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEcommerceOrderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EcommerceOrder$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEcommerceOrderResponse$outboundSchema: z.ZodType< - GetEcommerceOrderResponse$Outbound, - z.ZodTypeDef, - GetEcommerceOrderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EcommerceOrder$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEcommerceOrderResponse$ { - /** @deprecated use `GetEcommerceOrderResponse$inboundSchema` instead. */ - export const inboundSchema = GetEcommerceOrderResponse$inboundSchema; - /** @deprecated use `GetEcommerceOrderResponse$outboundSchema` instead. */ - export const outboundSchema = GetEcommerceOrderResponse$outboundSchema; - /** @deprecated use `GetEcommerceOrderResponse$Outbound` instead. */ - export type Outbound = GetEcommerceOrderResponse$Outbound; -} - -export function getEcommerceOrderResponseToJSON( - getEcommerceOrderResponse: GetEcommerceOrderResponse, -): string { - return JSON.stringify( - GetEcommerceOrderResponse$outboundSchema.parse(getEcommerceOrderResponse), - ); -} - export function getEcommerceOrderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getecommerceordersresponse.ts b/src/models/components/getecommerceordersresponse.ts index 63c82ce2f..5b7b05df8 100644 --- a/src/models/components/getecommerceordersresponse.ts +++ b/src/models/components/getecommerceordersresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceOrder, EcommerceOrder$inboundSchema, - EcommerceOrder$Outbound, - EcommerceOrder$outboundSchema, } from "./ecommerceorder.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Orders @@ -87,62 +75,6 @@ export const GetEcommerceOrdersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEcommerceOrdersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetEcommerceOrdersResponse$outboundSchema: z.ZodType< - GetEcommerceOrdersResponse$Outbound, - z.ZodTypeDef, - GetEcommerceOrdersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(EcommerceOrder$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEcommerceOrdersResponse$ { - /** @deprecated use `GetEcommerceOrdersResponse$inboundSchema` instead. */ - export const inboundSchema = GetEcommerceOrdersResponse$inboundSchema; - /** @deprecated use `GetEcommerceOrdersResponse$outboundSchema` instead. */ - export const outboundSchema = GetEcommerceOrdersResponse$outboundSchema; - /** @deprecated use `GetEcommerceOrdersResponse$Outbound` instead. */ - export type Outbound = GetEcommerceOrdersResponse$Outbound; -} - -export function getEcommerceOrdersResponseToJSON( - getEcommerceOrdersResponse: GetEcommerceOrdersResponse, -): string { - return JSON.stringify( - GetEcommerceOrdersResponse$outboundSchema.parse(getEcommerceOrdersResponse), - ); -} - export function getEcommerceOrdersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getemployeepayrollresponse.ts b/src/models/components/getemployeepayrollresponse.ts index b5e99433f..a5ceb8220 100644 --- a/src/models/components/getemployeepayrollresponse.ts +++ b/src/models/components/getemployeepayrollresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EmployeePayroll, EmployeePayroll$inboundSchema, - EmployeePayroll$Outbound, - EmployeePayroll$outboundSchema, } from "./employeepayroll.js"; /** @@ -65,58 +63,6 @@ export const GetEmployeePayrollResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEmployeePayrollResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EmployeePayroll$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEmployeePayrollResponse$outboundSchema: z.ZodType< - GetEmployeePayrollResponse$Outbound, - z.ZodTypeDef, - GetEmployeePayrollResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EmployeePayroll$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEmployeePayrollResponse$ { - /** @deprecated use `GetEmployeePayrollResponse$inboundSchema` instead. */ - export const inboundSchema = GetEmployeePayrollResponse$inboundSchema; - /** @deprecated use `GetEmployeePayrollResponse$outboundSchema` instead. */ - export const outboundSchema = GetEmployeePayrollResponse$outboundSchema; - /** @deprecated use `GetEmployeePayrollResponse$Outbound` instead. */ - export type Outbound = GetEmployeePayrollResponse$Outbound; -} - -export function getEmployeePayrollResponseToJSON( - getEmployeePayrollResponse: GetEmployeePayrollResponse, -): string { - return JSON.stringify( - GetEmployeePayrollResponse$outboundSchema.parse(getEmployeePayrollResponse), - ); -} - export function getEmployeePayrollResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getemployeepayrollsresponse.ts b/src/models/components/getemployeepayrollsresponse.ts index 2e6e22a95..34d5c7b3b 100644 --- a/src/models/components/getemployeepayrollsresponse.ts +++ b/src/models/components/getemployeepayrollsresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EmployeePayroll, EmployeePayroll$inboundSchema, - EmployeePayroll$Outbound, - EmployeePayroll$outboundSchema, } from "./employeepayroll.js"; /** @@ -65,60 +63,6 @@ export const GetEmployeePayrollsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEmployeePayrollsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEmployeePayrollsResponse$outboundSchema: z.ZodType< - GetEmployeePayrollsResponse$Outbound, - z.ZodTypeDef, - GetEmployeePayrollsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(EmployeePayroll$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEmployeePayrollsResponse$ { - /** @deprecated use `GetEmployeePayrollsResponse$inboundSchema` instead. */ - export const inboundSchema = GetEmployeePayrollsResponse$inboundSchema; - /** @deprecated use `GetEmployeePayrollsResponse$outboundSchema` instead. */ - export const outboundSchema = GetEmployeePayrollsResponse$outboundSchema; - /** @deprecated use `GetEmployeePayrollsResponse$Outbound` instead. */ - export type Outbound = GetEmployeePayrollsResponse$Outbound; -} - -export function getEmployeePayrollsResponseToJSON( - getEmployeePayrollsResponse: GetEmployeePayrollsResponse, -): string { - return JSON.stringify( - GetEmployeePayrollsResponse$outboundSchema.parse( - getEmployeePayrollsResponse, - ), - ); -} - export function getEmployeePayrollsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getemployeeresponse.ts b/src/models/components/getemployeeresponse.ts index 7c7ee631e..83adc6dbf 100644 --- a/src/models/components/getemployeeresponse.ts +++ b/src/models/components/getemployeeresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Employee, - Employee$inboundSchema, - Employee$Outbound, - Employee$outboundSchema, -} from "./employee.js"; +import { Employee, Employee$inboundSchema } from "./employee.js"; /** * Employees @@ -65,58 +60,6 @@ export const GetEmployeeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEmployeeResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Employee$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEmployeeResponse$outboundSchema: z.ZodType< - GetEmployeeResponse$Outbound, - z.ZodTypeDef, - GetEmployeeResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Employee$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEmployeeResponse$ { - /** @deprecated use `GetEmployeeResponse$inboundSchema` instead. */ - export const inboundSchema = GetEmployeeResponse$inboundSchema; - /** @deprecated use `GetEmployeeResponse$outboundSchema` instead. */ - export const outboundSchema = GetEmployeeResponse$outboundSchema; - /** @deprecated use `GetEmployeeResponse$Outbound` instead. */ - export type Outbound = GetEmployeeResponse$Outbound; -} - -export function getEmployeeResponseToJSON( - getEmployeeResponse: GetEmployeeResponse, -): string { - return JSON.stringify( - GetEmployeeResponse$outboundSchema.parse(getEmployeeResponse), - ); -} - export function getEmployeeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getemployeeschedulesresponse.ts b/src/models/components/getemployeeschedulesresponse.ts index 3c86db218..c4ffa306a 100644 --- a/src/models/components/getemployeeschedulesresponse.ts +++ b/src/models/components/getemployeeschedulesresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EmployeeSchedules, EmployeeSchedules$inboundSchema, - EmployeeSchedules$Outbound, - EmployeeSchedules$outboundSchema, } from "./employeeschedules.js"; /** @@ -65,60 +63,6 @@ export const GetEmployeeSchedulesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEmployeeSchedulesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EmployeeSchedules$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetEmployeeSchedulesResponse$outboundSchema: z.ZodType< - GetEmployeeSchedulesResponse$Outbound, - z.ZodTypeDef, - GetEmployeeSchedulesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EmployeeSchedules$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEmployeeSchedulesResponse$ { - /** @deprecated use `GetEmployeeSchedulesResponse$inboundSchema` instead. */ - export const inboundSchema = GetEmployeeSchedulesResponse$inboundSchema; - /** @deprecated use `GetEmployeeSchedulesResponse$outboundSchema` instead. */ - export const outboundSchema = GetEmployeeSchedulesResponse$outboundSchema; - /** @deprecated use `GetEmployeeSchedulesResponse$Outbound` instead. */ - export type Outbound = GetEmployeeSchedulesResponse$Outbound; -} - -export function getEmployeeSchedulesResponseToJSON( - getEmployeeSchedulesResponse: GetEmployeeSchedulesResponse, -): string { - return JSON.stringify( - GetEmployeeSchedulesResponse$outboundSchema.parse( - getEmployeeSchedulesResponse, - ), - ); -} - export function getEmployeeSchedulesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getemployeesresponse.ts b/src/models/components/getemployeesresponse.ts index 132821331..7a90ec50a 100644 --- a/src/models/components/getemployeesresponse.ts +++ b/src/models/components/getemployeesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Employee, - Employee$inboundSchema, - Employee$Outbound, - Employee$outboundSchema, -} from "./employee.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Employee, Employee$inboundSchema } from "./employee.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Employees @@ -87,62 +72,6 @@ export const GetEmployeesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetEmployeesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetEmployeesResponse$outboundSchema: z.ZodType< - GetEmployeesResponse$Outbound, - z.ZodTypeDef, - GetEmployeesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Employee$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEmployeesResponse$ { - /** @deprecated use `GetEmployeesResponse$inboundSchema` instead. */ - export const inboundSchema = GetEmployeesResponse$inboundSchema; - /** @deprecated use `GetEmployeesResponse$outboundSchema` instead. */ - export const outboundSchema = GetEmployeesResponse$outboundSchema; - /** @deprecated use `GetEmployeesResponse$Outbound` instead. */ - export type Outbound = GetEmployeesResponse$Outbound; -} - -export function getEmployeesResponseToJSON( - getEmployeesResponse: GetEmployeesResponse, -): string { - return JSON.stringify( - GetEmployeesResponse$outboundSchema.parse(getEmployeesResponse), - ); -} - export function getEmployeesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getexpenseresponse.ts b/src/models/components/getexpenseresponse.ts index dfa8b9cff..60a7f7704 100644 --- a/src/models/components/getexpenseresponse.ts +++ b/src/models/components/getexpenseresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Expense, - Expense$inboundSchema, - Expense$Outbound, - Expense$outboundSchema, -} from "./expense.js"; +import { Expense, Expense$inboundSchema } from "./expense.js"; /** * Expenses @@ -65,58 +60,6 @@ export const GetExpenseResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetExpenseResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Expense$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetExpenseResponse$outboundSchema: z.ZodType< - GetExpenseResponse$Outbound, - z.ZodTypeDef, - GetExpenseResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Expense$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExpenseResponse$ { - /** @deprecated use `GetExpenseResponse$inboundSchema` instead. */ - export const inboundSchema = GetExpenseResponse$inboundSchema; - /** @deprecated use `GetExpenseResponse$outboundSchema` instead. */ - export const outboundSchema = GetExpenseResponse$outboundSchema; - /** @deprecated use `GetExpenseResponse$Outbound` instead. */ - export type Outbound = GetExpenseResponse$Outbound; -} - -export function getExpenseResponseToJSON( - getExpenseResponse: GetExpenseResponse, -): string { - return JSON.stringify( - GetExpenseResponse$outboundSchema.parse(getExpenseResponse), - ); -} - export function getExpenseResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getexpensesresponse.ts b/src/models/components/getexpensesresponse.ts index ce89e074e..ff5a22399 100644 --- a/src/models/components/getexpensesresponse.ts +++ b/src/models/components/getexpensesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Expense, - Expense$inboundSchema, - Expense$Outbound, - Expense$outboundSchema, -} from "./expense.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Expense, Expense$inboundSchema } from "./expense.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Expenses @@ -87,62 +72,6 @@ export const GetExpensesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetExpensesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetExpensesResponse$outboundSchema: z.ZodType< - GetExpensesResponse$Outbound, - z.ZodTypeDef, - GetExpensesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Expense$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetExpensesResponse$ { - /** @deprecated use `GetExpensesResponse$inboundSchema` instead. */ - export const inboundSchema = GetExpensesResponse$inboundSchema; - /** @deprecated use `GetExpensesResponse$outboundSchema` instead. */ - export const outboundSchema = GetExpensesResponse$outboundSchema; - /** @deprecated use `GetExpensesResponse$Outbound` instead. */ - export type Outbound = GetExpensesResponse$Outbound; -} - -export function getExpensesResponseToJSON( - getExpensesResponse: GetExpensesResponse, -): string { - return JSON.stringify( - GetExpensesResponse$outboundSchema.parse(getExpensesResponse), - ); -} - export function getExpensesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getfileresponse.ts b/src/models/components/getfileresponse.ts index c71c97840..8cbcb67b4 100644 --- a/src/models/components/getfileresponse.ts +++ b/src/models/components/getfileresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedFile, - UnifiedFile$inboundSchema, - UnifiedFile$Outbound, - UnifiedFile$outboundSchema, -} from "./unifiedfile.js"; +import { UnifiedFile, UnifiedFile$inboundSchema } from "./unifiedfile.js"; /** * File @@ -65,56 +60,6 @@ export const GetFileResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFileResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedFile$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetFileResponse$outboundSchema: z.ZodType< - GetFileResponse$Outbound, - z.ZodTypeDef, - GetFileResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedFile$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFileResponse$ { - /** @deprecated use `GetFileResponse$inboundSchema` instead. */ - export const inboundSchema = GetFileResponse$inboundSchema; - /** @deprecated use `GetFileResponse$outboundSchema` instead. */ - export const outboundSchema = GetFileResponse$outboundSchema; - /** @deprecated use `GetFileResponse$Outbound` instead. */ - export type Outbound = GetFileResponse$Outbound; -} - -export function getFileResponseToJSON( - getFileResponse: GetFileResponse, -): string { - return JSON.stringify(GetFileResponse$outboundSchema.parse(getFileResponse)); -} - export function getFileResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getfilesresponse.ts b/src/models/components/getfilesresponse.ts index 973c54a77..7f9885d65 100644 --- a/src/models/components/getfilesresponse.ts +++ b/src/models/components/getfilesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - UnifiedFile, - UnifiedFile$inboundSchema, - UnifiedFile$Outbound, - UnifiedFile$outboundSchema, -} from "./unifiedfile.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { UnifiedFile, UnifiedFile$inboundSchema } from "./unifiedfile.js"; /** * Files @@ -87,62 +72,6 @@ export const GetFilesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFilesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetFilesResponse$outboundSchema: z.ZodType< - GetFilesResponse$Outbound, - z.ZodTypeDef, - GetFilesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(UnifiedFile$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFilesResponse$ { - /** @deprecated use `GetFilesResponse$inboundSchema` instead. */ - export const inboundSchema = GetFilesResponse$inboundSchema; - /** @deprecated use `GetFilesResponse$outboundSchema` instead. */ - export const outboundSchema = GetFilesResponse$outboundSchema; - /** @deprecated use `GetFilesResponse$Outbound` instead. */ - export type Outbound = GetFilesResponse$Outbound; -} - -export function getFilesResponseToJSON( - getFilesResponse: GetFilesResponse, -): string { - return JSON.stringify( - GetFilesResponse$outboundSchema.parse(getFilesResponse), - ); -} - export function getFilesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getfolderresponse.ts b/src/models/components/getfolderresponse.ts index d0fd9f2ce..4a05ed3b5 100644 --- a/src/models/components/getfolderresponse.ts +++ b/src/models/components/getfolderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Folder, - Folder$inboundSchema, - Folder$Outbound, - Folder$outboundSchema, -} from "./folder.js"; +import { Folder, Folder$inboundSchema } from "./folder.js"; /** * Folders @@ -65,58 +60,6 @@ export const GetFolderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetFolderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Folder$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetFolderResponse$outboundSchema: z.ZodType< - GetFolderResponse$Outbound, - z.ZodTypeDef, - GetFolderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Folder$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFolderResponse$ { - /** @deprecated use `GetFolderResponse$inboundSchema` instead. */ - export const inboundSchema = GetFolderResponse$inboundSchema; - /** @deprecated use `GetFolderResponse$outboundSchema` instead. */ - export const outboundSchema = GetFolderResponse$outboundSchema; - /** @deprecated use `GetFolderResponse$Outbound` instead. */ - export type Outbound = GetFolderResponse$Outbound; -} - -export function getFolderResponseToJSON( - getFolderResponse: GetFolderResponse, -): string { - return JSON.stringify( - GetFolderResponse$outboundSchema.parse(getFolderResponse), - ); -} - export function getFolderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gethriscompaniesresponse.ts b/src/models/components/gethriscompaniesresponse.ts index 89f4924d1..b474b2e95 100644 --- a/src/models/components/gethriscompaniesresponse.ts +++ b/src/models/components/gethriscompaniesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HrisCompany, - HrisCompany$inboundSchema, - HrisCompany$Outbound, - HrisCompany$outboundSchema, -} from "./hriscompany.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { HrisCompany, HrisCompany$inboundSchema } from "./hriscompany.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Companies @@ -87,62 +72,6 @@ export const GetHrisCompaniesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisCompaniesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetHrisCompaniesResponse$outboundSchema: z.ZodType< - GetHrisCompaniesResponse$Outbound, - z.ZodTypeDef, - GetHrisCompaniesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(HrisCompany$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisCompaniesResponse$ { - /** @deprecated use `GetHrisCompaniesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisCompaniesResponse$inboundSchema; - /** @deprecated use `GetHrisCompaniesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisCompaniesResponse$outboundSchema; - /** @deprecated use `GetHrisCompaniesResponse$Outbound` instead. */ - export type Outbound = GetHrisCompaniesResponse$Outbound; -} - -export function getHrisCompaniesResponseToJSON( - getHrisCompaniesResponse: GetHrisCompaniesResponse, -): string { - return JSON.stringify( - GetHrisCompaniesResponse$outboundSchema.parse(getHrisCompaniesResponse), - ); -} - export function getHrisCompaniesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gethriscompanyresponse.ts b/src/models/components/gethriscompanyresponse.ts index fabdcab62..af8a76046 100644 --- a/src/models/components/gethriscompanyresponse.ts +++ b/src/models/components/gethriscompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HrisCompany, - HrisCompany$inboundSchema, - HrisCompany$Outbound, - HrisCompany$outboundSchema, -} from "./hriscompany.js"; +import { HrisCompany, HrisCompany$inboundSchema } from "./hriscompany.js"; /** * Company @@ -65,58 +60,6 @@ export const GetHrisCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: HrisCompany$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetHrisCompanyResponse$outboundSchema: z.ZodType< - GetHrisCompanyResponse$Outbound, - z.ZodTypeDef, - GetHrisCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: HrisCompany$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisCompanyResponse$ { - /** @deprecated use `GetHrisCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisCompanyResponse$inboundSchema; - /** @deprecated use `GetHrisCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisCompanyResponse$outboundSchema; - /** @deprecated use `GetHrisCompanyResponse$Outbound` instead. */ - export type Outbound = GetHrisCompanyResponse$Outbound; -} - -export function getHrisCompanyResponseToJSON( - getHrisCompanyResponse: GetHrisCompanyResponse, -): string { - return JSON.stringify( - GetHrisCompanyResponse$outboundSchema.parse(getHrisCompanyResponse), - ); -} - export function getHrisCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getinvoiceitemresponse.ts b/src/models/components/getinvoiceitemresponse.ts index 8853428a6..907f2f818 100644 --- a/src/models/components/getinvoiceitemresponse.ts +++ b/src/models/components/getinvoiceitemresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - InvoiceItem, - InvoiceItem$inboundSchema, - InvoiceItem$Outbound, - InvoiceItem$outboundSchema, -} from "./invoiceitem.js"; +import { InvoiceItem, InvoiceItem$inboundSchema } from "./invoiceitem.js"; /** * InvoiceItems @@ -65,58 +60,6 @@ export const GetInvoiceItemResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetInvoiceItemResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: InvoiceItem$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetInvoiceItemResponse$outboundSchema: z.ZodType< - GetInvoiceItemResponse$Outbound, - z.ZodTypeDef, - GetInvoiceItemResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: InvoiceItem$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceItemResponse$ { - /** @deprecated use `GetInvoiceItemResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceItemResponse$inboundSchema; - /** @deprecated use `GetInvoiceItemResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceItemResponse$outboundSchema; - /** @deprecated use `GetInvoiceItemResponse$Outbound` instead. */ - export type Outbound = GetInvoiceItemResponse$Outbound; -} - -export function getInvoiceItemResponseToJSON( - getInvoiceItemResponse: GetInvoiceItemResponse, -): string { - return JSON.stringify( - GetInvoiceItemResponse$outboundSchema.parse(getInvoiceItemResponse), - ); -} - export function getInvoiceItemResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getinvoiceitemsresponse.ts b/src/models/components/getinvoiceitemsresponse.ts index 1a59b074a..f804a4221 100644 --- a/src/models/components/getinvoiceitemsresponse.ts +++ b/src/models/components/getinvoiceitemsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - InvoiceItem, - InvoiceItem$inboundSchema, - InvoiceItem$Outbound, - InvoiceItem$outboundSchema, -} from "./invoiceitem.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { InvoiceItem, InvoiceItem$inboundSchema } from "./invoiceitem.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * InvoiceItems @@ -87,62 +72,6 @@ export const GetInvoiceItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetInvoiceItemsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetInvoiceItemsResponse$outboundSchema: z.ZodType< - GetInvoiceItemsResponse$Outbound, - z.ZodTypeDef, - GetInvoiceItemsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(InvoiceItem$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceItemsResponse$ { - /** @deprecated use `GetInvoiceItemsResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceItemsResponse$inboundSchema; - /** @deprecated use `GetInvoiceItemsResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceItemsResponse$outboundSchema; - /** @deprecated use `GetInvoiceItemsResponse$Outbound` instead. */ - export type Outbound = GetInvoiceItemsResponse$Outbound; -} - -export function getInvoiceItemsResponseToJSON( - getInvoiceItemsResponse: GetInvoiceItemsResponse, -): string { - return JSON.stringify( - GetInvoiceItemsResponse$outboundSchema.parse(getInvoiceItemsResponse), - ); -} - export function getInvoiceItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getinvoiceresponse.ts b/src/models/components/getinvoiceresponse.ts index f273264eb..f90870b76 100644 --- a/src/models/components/getinvoiceresponse.ts +++ b/src/models/components/getinvoiceresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Invoice, - Invoice$inboundSchema, - Invoice$Outbound, - Invoice$outboundSchema, -} from "./invoice.js"; +import { Invoice, Invoice$inboundSchema } from "./invoice.js"; /** * Invoice @@ -65,58 +60,6 @@ export const GetInvoiceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetInvoiceResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Invoice$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetInvoiceResponse$outboundSchema: z.ZodType< - GetInvoiceResponse$Outbound, - z.ZodTypeDef, - GetInvoiceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Invoice$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoiceResponse$ { - /** @deprecated use `GetInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoiceResponse$inboundSchema; - /** @deprecated use `GetInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoiceResponse$outboundSchema; - /** @deprecated use `GetInvoiceResponse$Outbound` instead. */ - export type Outbound = GetInvoiceResponse$Outbound; -} - -export function getInvoiceResponseToJSON( - getInvoiceResponse: GetInvoiceResponse, -): string { - return JSON.stringify( - GetInvoiceResponse$outboundSchema.parse(getInvoiceResponse), - ); -} - export function getInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getinvoicesresponse.ts b/src/models/components/getinvoicesresponse.ts index 496688963..3a9cf28b0 100644 --- a/src/models/components/getinvoicesresponse.ts +++ b/src/models/components/getinvoicesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Invoice, - Invoice$inboundSchema, - Invoice$Outbound, - Invoice$outboundSchema, -} from "./invoice.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Invoice, Invoice$inboundSchema } from "./invoice.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Invoices @@ -87,62 +72,6 @@ export const GetInvoicesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetInvoicesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetInvoicesResponse$outboundSchema: z.ZodType< - GetInvoicesResponse$Outbound, - z.ZodTypeDef, - GetInvoicesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Invoice$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetInvoicesResponse$ { - /** @deprecated use `GetInvoicesResponse$inboundSchema` instead. */ - export const inboundSchema = GetInvoicesResponse$inboundSchema; - /** @deprecated use `GetInvoicesResponse$outboundSchema` instead. */ - export const outboundSchema = GetInvoicesResponse$outboundSchema; - /** @deprecated use `GetInvoicesResponse$Outbound` instead. */ - export type Outbound = GetInvoicesResponse$Outbound; -} - -export function getInvoicesResponseToJSON( - getInvoicesResponse: GetInvoicesResponse, -): string { - return JSON.stringify( - GetInvoicesResponse$outboundSchema.parse(getInvoicesResponse), - ); -} - export function getInvoicesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getjobresponse.ts b/src/models/components/getjobresponse.ts index 96f90fb75..7571b783e 100644 --- a/src/models/components/getjobresponse.ts +++ b/src/models/components/getjobresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Job, - Job$inboundSchema, - Job$Outbound, - Job$outboundSchema, -} from "./job.js"; +import { Job, Job$inboundSchema } from "./job.js"; /** * Jobs @@ -65,54 +60,6 @@ export const GetJobResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetJobResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Job$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetJobResponse$outboundSchema: z.ZodType< - GetJobResponse$Outbound, - z.ZodTypeDef, - GetJobResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Job$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetJobResponse$ { - /** @deprecated use `GetJobResponse$inboundSchema` instead. */ - export const inboundSchema = GetJobResponse$inboundSchema; - /** @deprecated use `GetJobResponse$outboundSchema` instead. */ - export const outboundSchema = GetJobResponse$outboundSchema; - /** @deprecated use `GetJobResponse$Outbound` instead. */ - export type Outbound = GetJobResponse$Outbound; -} - -export function getJobResponseToJSON(getJobResponse: GetJobResponse): string { - return JSON.stringify(GetJobResponse$outboundSchema.parse(getJobResponse)); -} - export function getJobResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getjobsresponse.ts b/src/models/components/getjobsresponse.ts index 619f5319d..b91f1117c 100644 --- a/src/models/components/getjobsresponse.ts +++ b/src/models/components/getjobsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Job, - Job$inboundSchema, - Job$Outbound, - Job$outboundSchema, -} from "./job.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Job, Job$inboundSchema } from "./job.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Jobs @@ -87,60 +72,6 @@ export const GetJobsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetJobsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetJobsResponse$outboundSchema: z.ZodType< - GetJobsResponse$Outbound, - z.ZodTypeDef, - GetJobsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Job$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetJobsResponse$ { - /** @deprecated use `GetJobsResponse$inboundSchema` instead. */ - export const inboundSchema = GetJobsResponse$inboundSchema; - /** @deprecated use `GetJobsResponse$outboundSchema` instead. */ - export const outboundSchema = GetJobsResponse$outboundSchema; - /** @deprecated use `GetJobsResponse$Outbound` instead. */ - export type Outbound = GetJobsResponse$Outbound; -} - -export function getJobsResponseToJSON( - getJobsResponse: GetJobsResponse, -): string { - return JSON.stringify(GetJobsResponse$outboundSchema.parse(getJobsResponse)); -} - export function getJobsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getjournalentriesresponse.ts b/src/models/components/getjournalentriesresponse.ts index 09521a828..95decd38b 100644 --- a/src/models/components/getjournalentriesresponse.ts +++ b/src/models/components/getjournalentriesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - JournalEntry, - JournalEntry$inboundSchema, - JournalEntry$Outbound, - JournalEntry$outboundSchema, -} from "./journalentry.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { JournalEntry, JournalEntry$inboundSchema } from "./journalentry.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * JournalEntry @@ -87,62 +72,6 @@ export const GetJournalEntriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetJournalEntriesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetJournalEntriesResponse$outboundSchema: z.ZodType< - GetJournalEntriesResponse$Outbound, - z.ZodTypeDef, - GetJournalEntriesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(JournalEntry$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetJournalEntriesResponse$ { - /** @deprecated use `GetJournalEntriesResponse$inboundSchema` instead. */ - export const inboundSchema = GetJournalEntriesResponse$inboundSchema; - /** @deprecated use `GetJournalEntriesResponse$outboundSchema` instead. */ - export const outboundSchema = GetJournalEntriesResponse$outboundSchema; - /** @deprecated use `GetJournalEntriesResponse$Outbound` instead. */ - export type Outbound = GetJournalEntriesResponse$Outbound; -} - -export function getJournalEntriesResponseToJSON( - getJournalEntriesResponse: GetJournalEntriesResponse, -): string { - return JSON.stringify( - GetJournalEntriesResponse$outboundSchema.parse(getJournalEntriesResponse), - ); -} - export function getJournalEntriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getjournalentryresponse.ts b/src/models/components/getjournalentryresponse.ts index eb4da448c..b47a8ba2e 100644 --- a/src/models/components/getjournalentryresponse.ts +++ b/src/models/components/getjournalentryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - JournalEntry, - JournalEntry$inboundSchema, - JournalEntry$Outbound, - JournalEntry$outboundSchema, -} from "./journalentry.js"; +import { JournalEntry, JournalEntry$inboundSchema } from "./journalentry.js"; /** * JournalEntries @@ -65,58 +60,6 @@ export const GetJournalEntryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetJournalEntryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: JournalEntry$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetJournalEntryResponse$outboundSchema: z.ZodType< - GetJournalEntryResponse$Outbound, - z.ZodTypeDef, - GetJournalEntryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: JournalEntry$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetJournalEntryResponse$ { - /** @deprecated use `GetJournalEntryResponse$inboundSchema` instead. */ - export const inboundSchema = GetJournalEntryResponse$inboundSchema; - /** @deprecated use `GetJournalEntryResponse$outboundSchema` instead. */ - export const outboundSchema = GetJournalEntryResponse$outboundSchema; - /** @deprecated use `GetJournalEntryResponse$Outbound` instead. */ - export type Outbound = GetJournalEntryResponse$Outbound; -} - -export function getJournalEntryResponseToJSON( - getJournalEntryResponse: GetJournalEntryResponse, -): string { - return JSON.stringify( - GetJournalEntryResponse$outboundSchema.parse(getJournalEntryResponse), - ); -} - export function getJournalEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getleadresponse.ts b/src/models/components/getleadresponse.ts index 982f9dd41..10ba888d7 100644 --- a/src/models/components/getleadresponse.ts +++ b/src/models/components/getleadresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Lead, - Lead$inboundSchema, - Lead$Outbound, - Lead$outboundSchema, -} from "./lead.js"; +import { Lead, Lead$inboundSchema } from "./lead.js"; /** * Lead @@ -65,56 +60,6 @@ export const GetLeadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLeadResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Lead$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetLeadResponse$outboundSchema: z.ZodType< - GetLeadResponse$Outbound, - z.ZodTypeDef, - GetLeadResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Lead$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLeadResponse$ { - /** @deprecated use `GetLeadResponse$inboundSchema` instead. */ - export const inboundSchema = GetLeadResponse$inboundSchema; - /** @deprecated use `GetLeadResponse$outboundSchema` instead. */ - export const outboundSchema = GetLeadResponse$outboundSchema; - /** @deprecated use `GetLeadResponse$Outbound` instead. */ - export type Outbound = GetLeadResponse$Outbound; -} - -export function getLeadResponseToJSON( - getLeadResponse: GetLeadResponse, -): string { - return JSON.stringify(GetLeadResponse$outboundSchema.parse(getLeadResponse)); -} - export function getLeadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getleadsresponse.ts b/src/models/components/getleadsresponse.ts index 37c0ec713..6b78bd15d 100644 --- a/src/models/components/getleadsresponse.ts +++ b/src/models/components/getleadsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Lead, - Lead$inboundSchema, - Lead$Outbound, - Lead$outboundSchema, -} from "./lead.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Lead, Lead$inboundSchema } from "./lead.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Leads @@ -87,62 +72,6 @@ export const GetLeadsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLeadsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetLeadsResponse$outboundSchema: z.ZodType< - GetLeadsResponse$Outbound, - z.ZodTypeDef, - GetLeadsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Lead$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLeadsResponse$ { - /** @deprecated use `GetLeadsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLeadsResponse$inboundSchema; - /** @deprecated use `GetLeadsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLeadsResponse$outboundSchema; - /** @deprecated use `GetLeadsResponse$Outbound` instead. */ - export type Outbound = GetLeadsResponse$Outbound; -} - -export function getLeadsResponseToJSON( - getLeadsResponse: GetLeadsResponse, -): string { - return JSON.stringify( - GetLeadsResponse$outboundSchema.parse(getLeadsResponse), - ); -} - export function getLeadsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getledgeraccountresponse.ts b/src/models/components/getledgeraccountresponse.ts index b120b625a..7a85dd916 100644 --- a/src/models/components/getledgeraccountresponse.ts +++ b/src/models/components/getledgeraccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - LedgerAccount, - LedgerAccount$inboundSchema, - LedgerAccount$Outbound, - LedgerAccount$outboundSchema, -} from "./ledgeraccount.js"; +import { LedgerAccount, LedgerAccount$inboundSchema } from "./ledgeraccount.js"; /** * LedgerAccount @@ -65,58 +60,6 @@ export const GetLedgerAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLedgerAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: LedgerAccount$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetLedgerAccountResponse$outboundSchema: z.ZodType< - GetLedgerAccountResponse$Outbound, - z.ZodTypeDef, - GetLedgerAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: LedgerAccount$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLedgerAccountResponse$ { - /** @deprecated use `GetLedgerAccountResponse$inboundSchema` instead. */ - export const inboundSchema = GetLedgerAccountResponse$inboundSchema; - /** @deprecated use `GetLedgerAccountResponse$outboundSchema` instead. */ - export const outboundSchema = GetLedgerAccountResponse$outboundSchema; - /** @deprecated use `GetLedgerAccountResponse$Outbound` instead. */ - export type Outbound = GetLedgerAccountResponse$Outbound; -} - -export function getLedgerAccountResponseToJSON( - getLedgerAccountResponse: GetLedgerAccountResponse, -): string { - return JSON.stringify( - GetLedgerAccountResponse$outboundSchema.parse(getLedgerAccountResponse), - ); -} - export function getLedgerAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getledgeraccountsresponse.ts b/src/models/components/getledgeraccountsresponse.ts index 2c597bd2d..e71ff69ca 100644 --- a/src/models/components/getledgeraccountsresponse.ts +++ b/src/models/components/getledgeraccountsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - LedgerAccount, - LedgerAccount$inboundSchema, - LedgerAccount$Outbound, - LedgerAccount$outboundSchema, -} from "./ledgeraccount.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { LedgerAccount, LedgerAccount$inboundSchema } from "./ledgeraccount.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * LedgerAccounts @@ -87,62 +72,6 @@ export const GetLedgerAccountsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLedgerAccountsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetLedgerAccountsResponse$outboundSchema: z.ZodType< - GetLedgerAccountsResponse$Outbound, - z.ZodTypeDef, - GetLedgerAccountsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(LedgerAccount$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLedgerAccountsResponse$ { - /** @deprecated use `GetLedgerAccountsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLedgerAccountsResponse$inboundSchema; - /** @deprecated use `GetLedgerAccountsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLedgerAccountsResponse$outboundSchema; - /** @deprecated use `GetLedgerAccountsResponse$Outbound` instead. */ - export type Outbound = GetLedgerAccountsResponse$Outbound; -} - -export function getLedgerAccountsResponseToJSON( - getLedgerAccountsResponse: GetLedgerAccountsResponse, -): string { - return JSON.stringify( - GetLedgerAccountsResponse$outboundSchema.parse(getLedgerAccountsResponse), - ); -} - export function getLedgerAccountsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getlogsresponse.ts b/src/models/components/getlogsresponse.ts index bf5713fd6..6f2285c89 100644 --- a/src/models/components/getlogsresponse.ts +++ b/src/models/components/getlogsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Log, - Log$inboundSchema, - Log$Outbound, - Log$outboundSchema, -} from "./log.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Log, Log$inboundSchema } from "./log.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Logs @@ -72,54 +57,6 @@ export const GetLogsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetLogsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetLogsResponse$outboundSchema: z.ZodType< - GetLogsResponse$Outbound, - z.ZodTypeDef, - GetLogsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(Log$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLogsResponse$ { - /** @deprecated use `GetLogsResponse$inboundSchema` instead. */ - export const inboundSchema = GetLogsResponse$inboundSchema; - /** @deprecated use `GetLogsResponse$outboundSchema` instead. */ - export const outboundSchema = GetLogsResponse$outboundSchema; - /** @deprecated use `GetLogsResponse$Outbound` instead. */ - export type Outbound = GetLogsResponse$Outbound; -} - -export function getLogsResponseToJSON( - getLogsResponse: GetLogsResponse, -): string { - return JSON.stringify(GetLogsResponse$outboundSchema.parse(getLogsResponse)); -} - export function getLogsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getmessageresponse.ts b/src/models/components/getmessageresponse.ts index 997e355f7..c410bd55c 100644 --- a/src/models/components/getmessageresponse.ts +++ b/src/models/components/getmessageresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Message, - Message$inboundSchema, - Message$Outbound, - Message$outboundSchema, -} from "./message.js"; +import { Message, Message$inboundSchema } from "./message.js"; /** * Messages @@ -65,58 +60,6 @@ export const GetMessageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetMessageResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Message$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetMessageResponse$outboundSchema: z.ZodType< - GetMessageResponse$Outbound, - z.ZodTypeDef, - GetMessageResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Message$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMessageResponse$ { - /** @deprecated use `GetMessageResponse$inboundSchema` instead. */ - export const inboundSchema = GetMessageResponse$inboundSchema; - /** @deprecated use `GetMessageResponse$outboundSchema` instead. */ - export const outboundSchema = GetMessageResponse$outboundSchema; - /** @deprecated use `GetMessageResponse$Outbound` instead. */ - export type Outbound = GetMessageResponse$Outbound; -} - -export function getMessageResponseToJSON( - getMessageResponse: GetMessageResponse, -): string { - return JSON.stringify( - GetMessageResponse$outboundSchema.parse(getMessageResponse), - ); -} - export function getMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getmessagesresponse.ts b/src/models/components/getmessagesresponse.ts index f330b0df9..8039cb122 100644 --- a/src/models/components/getmessagesresponse.ts +++ b/src/models/components/getmessagesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Message, - Message$inboundSchema, - Message$Outbound, - Message$outboundSchema, -} from "./message.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Message, Message$inboundSchema } from "./message.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Messages @@ -87,62 +72,6 @@ export const GetMessagesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetMessagesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetMessagesResponse$outboundSchema: z.ZodType< - GetMessagesResponse$Outbound, - z.ZodTypeDef, - GetMessagesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Message$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMessagesResponse$ { - /** @deprecated use `GetMessagesResponse$inboundSchema` instead. */ - export const inboundSchema = GetMessagesResponse$inboundSchema; - /** @deprecated use `GetMessagesResponse$outboundSchema` instead. */ - export const outboundSchema = GetMessagesResponse$outboundSchema; - /** @deprecated use `GetMessagesResponse$Outbound` instead. */ - export type Outbound = GetMessagesResponse$Outbound; -} - -export function getMessagesResponseToJSON( - getMessagesResponse: GetMessagesResponse, -): string { - return JSON.stringify( - GetMessagesResponse$outboundSchema.parse(getMessagesResponse), - ); -} - export function getMessagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getnoteresponse.ts b/src/models/components/getnoteresponse.ts index f6a34167d..e17743504 100644 --- a/src/models/components/getnoteresponse.ts +++ b/src/models/components/getnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Note, - Note$inboundSchema, - Note$Outbound, - Note$outboundSchema, -} from "./note.js"; +import { Note, Note$inboundSchema } from "./note.js"; /** * Note @@ -65,56 +60,6 @@ export const GetNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Note$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetNoteResponse$outboundSchema: z.ZodType< - GetNoteResponse$Outbound, - z.ZodTypeDef, - GetNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Note$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNoteResponse$ { - /** @deprecated use `GetNoteResponse$inboundSchema` instead. */ - export const inboundSchema = GetNoteResponse$inboundSchema; - /** @deprecated use `GetNoteResponse$outboundSchema` instead. */ - export const outboundSchema = GetNoteResponse$outboundSchema; - /** @deprecated use `GetNoteResponse$Outbound` instead. */ - export type Outbound = GetNoteResponse$Outbound; -} - -export function getNoteResponseToJSON( - getNoteResponse: GetNoteResponse, -): string { - return JSON.stringify(GetNoteResponse$outboundSchema.parse(getNoteResponse)); -} - export function getNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getnotesresponse.ts b/src/models/components/getnotesresponse.ts index 515fc5782..aca9406d7 100644 --- a/src/models/components/getnotesresponse.ts +++ b/src/models/components/getnotesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Note, - Note$inboundSchema, - Note$Outbound, - Note$outboundSchema, -} from "./note.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Note, Note$inboundSchema } from "./note.js"; /** * Notes @@ -87,62 +72,6 @@ export const GetNotesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetNotesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetNotesResponse$outboundSchema: z.ZodType< - GetNotesResponse$Outbound, - z.ZodTypeDef, - GetNotesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Note$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNotesResponse$ { - /** @deprecated use `GetNotesResponse$inboundSchema` instead. */ - export const inboundSchema = GetNotesResponse$inboundSchema; - /** @deprecated use `GetNotesResponse$outboundSchema` instead. */ - export const outboundSchema = GetNotesResponse$outboundSchema; - /** @deprecated use `GetNotesResponse$Outbound` instead. */ - export type Outbound = GetNotesResponse$Outbound; -} - -export function getNotesResponseToJSON( - getNotesResponse: GetNotesResponse, -): string { - return JSON.stringify( - GetNotesResponse$outboundSchema.parse(getNotesResponse), - ); -} - export function getNotesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getopportunitiesresponse.ts b/src/models/components/getopportunitiesresponse.ts index cdb126361..c1439820b 100644 --- a/src/models/components/getopportunitiesresponse.ts +++ b/src/models/components/getopportunitiesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Opportunity, - Opportunity$inboundSchema, - Opportunity$Outbound, - Opportunity$outboundSchema, -} from "./opportunity.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Opportunity, Opportunity$inboundSchema } from "./opportunity.js"; /** * Opportunities @@ -87,62 +72,6 @@ export const GetOpportunitiesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetOpportunitiesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetOpportunitiesResponse$outboundSchema: z.ZodType< - GetOpportunitiesResponse$Outbound, - z.ZodTypeDef, - GetOpportunitiesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Opportunity$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOpportunitiesResponse$ { - /** @deprecated use `GetOpportunitiesResponse$inboundSchema` instead. */ - export const inboundSchema = GetOpportunitiesResponse$inboundSchema; - /** @deprecated use `GetOpportunitiesResponse$outboundSchema` instead. */ - export const outboundSchema = GetOpportunitiesResponse$outboundSchema; - /** @deprecated use `GetOpportunitiesResponse$Outbound` instead. */ - export type Outbound = GetOpportunitiesResponse$Outbound; -} - -export function getOpportunitiesResponseToJSON( - getOpportunitiesResponse: GetOpportunitiesResponse, -): string { - return JSON.stringify( - GetOpportunitiesResponse$outboundSchema.parse(getOpportunitiesResponse), - ); -} - export function getOpportunitiesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getopportunityresponse.ts b/src/models/components/getopportunityresponse.ts index 43d1e2668..533391f69 100644 --- a/src/models/components/getopportunityresponse.ts +++ b/src/models/components/getopportunityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Opportunity, - Opportunity$inboundSchema, - Opportunity$Outbound, - Opportunity$outboundSchema, -} from "./opportunity.js"; +import { Opportunity, Opportunity$inboundSchema } from "./opportunity.js"; /** * Opportunity @@ -65,58 +60,6 @@ export const GetOpportunityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetOpportunityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Opportunity$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetOpportunityResponse$outboundSchema: z.ZodType< - GetOpportunityResponse$Outbound, - z.ZodTypeDef, - GetOpportunityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Opportunity$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOpportunityResponse$ { - /** @deprecated use `GetOpportunityResponse$inboundSchema` instead. */ - export const inboundSchema = GetOpportunityResponse$inboundSchema; - /** @deprecated use `GetOpportunityResponse$outboundSchema` instead. */ - export const outboundSchema = GetOpportunityResponse$outboundSchema; - /** @deprecated use `GetOpportunityResponse$Outbound` instead. */ - export type Outbound = GetOpportunityResponse$Outbound; -} - -export function getOpportunityResponseToJSON( - getOpportunityResponse: GetOpportunityResponse, -): string { - return JSON.stringify( - GetOpportunityResponse$outboundSchema.parse(getOpportunityResponse), - ); -} - export function getOpportunityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpaymentresponse.ts b/src/models/components/getpaymentresponse.ts index e25e4ae06..79b12e38f 100644 --- a/src/models/components/getpaymentresponse.ts +++ b/src/models/components/getpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Payment, - Payment$inboundSchema, - Payment$Outbound, - Payment$outboundSchema, -} from "./payment.js"; +import { Payment, Payment$inboundSchema } from "./payment.js"; /** * Payment @@ -65,58 +60,6 @@ export const GetPaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Payment$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPaymentResponse$outboundSchema: z.ZodType< - GetPaymentResponse$Outbound, - z.ZodTypeDef, - GetPaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Payment$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPaymentResponse$ { - /** @deprecated use `GetPaymentResponse$inboundSchema` instead. */ - export const inboundSchema = GetPaymentResponse$inboundSchema; - /** @deprecated use `GetPaymentResponse$outboundSchema` instead. */ - export const outboundSchema = GetPaymentResponse$outboundSchema; - /** @deprecated use `GetPaymentResponse$Outbound` instead. */ - export type Outbound = GetPaymentResponse$Outbound; -} - -export function getPaymentResponseToJSON( - getPaymentResponse: GetPaymentResponse, -): string { - return JSON.stringify( - GetPaymentResponse$outboundSchema.parse(getPaymentResponse), - ); -} - export function getPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpaymentsresponse.ts b/src/models/components/getpaymentsresponse.ts index f0579cf82..5f7741bfc 100644 --- a/src/models/components/getpaymentsresponse.ts +++ b/src/models/components/getpaymentsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Payment, - Payment$inboundSchema, - Payment$Outbound, - Payment$outboundSchema, -} from "./payment.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Payment, Payment$inboundSchema } from "./payment.js"; /** * Payments @@ -87,62 +72,6 @@ export const GetPaymentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPaymentsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPaymentsResponse$outboundSchema: z.ZodType< - GetPaymentsResponse$Outbound, - z.ZodTypeDef, - GetPaymentsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Payment$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPaymentsResponse$ { - /** @deprecated use `GetPaymentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPaymentsResponse$inboundSchema; - /** @deprecated use `GetPaymentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPaymentsResponse$outboundSchema; - /** @deprecated use `GetPaymentsResponse$Outbound` instead. */ - export type Outbound = GetPaymentsResponse$Outbound; -} - -export function getPaymentsResponseToJSON( - getPaymentsResponse: GetPaymentsResponse, -): string { - return JSON.stringify( - GetPaymentsResponse$outboundSchema.parse(getPaymentsResponse), - ); -} - export function getPaymentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpayrollresponse.ts b/src/models/components/getpayrollresponse.ts index f0f9300be..65d917994 100644 --- a/src/models/components/getpayrollresponse.ts +++ b/src/models/components/getpayrollresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Payroll, - Payroll$inboundSchema, - Payroll$Outbound, - Payroll$outboundSchema, -} from "./payroll.js"; +import { Payroll, Payroll$inboundSchema } from "./payroll.js"; /** * Payrolls @@ -65,58 +60,6 @@ export const GetPayrollResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPayrollResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Payroll$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPayrollResponse$outboundSchema: z.ZodType< - GetPayrollResponse$Outbound, - z.ZodTypeDef, - GetPayrollResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Payroll$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPayrollResponse$ { - /** @deprecated use `GetPayrollResponse$inboundSchema` instead. */ - export const inboundSchema = GetPayrollResponse$inboundSchema; - /** @deprecated use `GetPayrollResponse$outboundSchema` instead. */ - export const outboundSchema = GetPayrollResponse$outboundSchema; - /** @deprecated use `GetPayrollResponse$Outbound` instead. */ - export type Outbound = GetPayrollResponse$Outbound; -} - -export function getPayrollResponseToJSON( - getPayrollResponse: GetPayrollResponse, -): string { - return JSON.stringify( - GetPayrollResponse$outboundSchema.parse(getPayrollResponse), - ); -} - export function getPayrollResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpayrollsresponse.ts b/src/models/components/getpayrollsresponse.ts index 56ca1ec48..b88d068ff 100644 --- a/src/models/components/getpayrollsresponse.ts +++ b/src/models/components/getpayrollsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Payroll, - Payroll$inboundSchema, - Payroll$Outbound, - Payroll$outboundSchema, -} from "./payroll.js"; +import { Payroll, Payroll$inboundSchema } from "./payroll.js"; /** * Payrolls @@ -65,58 +60,6 @@ export const GetPayrollsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPayrollsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPayrollsResponse$outboundSchema: z.ZodType< - GetPayrollsResponse$Outbound, - z.ZodTypeDef, - GetPayrollsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Payroll$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPayrollsResponse$ { - /** @deprecated use `GetPayrollsResponse$inboundSchema` instead. */ - export const inboundSchema = GetPayrollsResponse$inboundSchema; - /** @deprecated use `GetPayrollsResponse$outboundSchema` instead. */ - export const outboundSchema = GetPayrollsResponse$outboundSchema; - /** @deprecated use `GetPayrollsResponse$Outbound` instead. */ - export type Outbound = GetPayrollsResponse$Outbound; -} - -export function getPayrollsResponseToJSON( - getPayrollsResponse: GetPayrollsResponse, -): string { - return JSON.stringify( - GetPayrollsResponse$outboundSchema.parse(getPayrollsResponse), - ); -} - export function getPayrollsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpipelineresponse.ts b/src/models/components/getpipelineresponse.ts index c7911e597..0d863117e 100644 --- a/src/models/components/getpipelineresponse.ts +++ b/src/models/components/getpipelineresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Pipeline, - Pipeline$inboundSchema, - Pipeline$Outbound, - Pipeline$outboundSchema, -} from "./pipeline.js"; +import { Pipeline, Pipeline$inboundSchema } from "./pipeline.js"; /** * Pipeline @@ -65,58 +60,6 @@ export const GetPipelineResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPipelineResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Pipeline$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPipelineResponse$outboundSchema: z.ZodType< - GetPipelineResponse$Outbound, - z.ZodTypeDef, - GetPipelineResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Pipeline$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPipelineResponse$ { - /** @deprecated use `GetPipelineResponse$inboundSchema` instead. */ - export const inboundSchema = GetPipelineResponse$inboundSchema; - /** @deprecated use `GetPipelineResponse$outboundSchema` instead. */ - export const outboundSchema = GetPipelineResponse$outboundSchema; - /** @deprecated use `GetPipelineResponse$Outbound` instead. */ - export type Outbound = GetPipelineResponse$Outbound; -} - -export function getPipelineResponseToJSON( - getPipelineResponse: GetPipelineResponse, -): string { - return JSON.stringify( - GetPipelineResponse$outboundSchema.parse(getPipelineResponse), - ); -} - export function getPipelineResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpipelinesresponse.ts b/src/models/components/getpipelinesresponse.ts index 0d9975a9d..a1d42b96c 100644 --- a/src/models/components/getpipelinesresponse.ts +++ b/src/models/components/getpipelinesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Pipeline, - Pipeline$inboundSchema, - Pipeline$Outbound, - Pipeline$outboundSchema, -} from "./pipeline.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Pipeline, Pipeline$inboundSchema } from "./pipeline.js"; /** * Pipelines @@ -87,62 +72,6 @@ export const GetPipelinesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPipelinesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetPipelinesResponse$outboundSchema: z.ZodType< - GetPipelinesResponse$Outbound, - z.ZodTypeDef, - GetPipelinesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Pipeline$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPipelinesResponse$ { - /** @deprecated use `GetPipelinesResponse$inboundSchema` instead. */ - export const inboundSchema = GetPipelinesResponse$inboundSchema; - /** @deprecated use `GetPipelinesResponse$outboundSchema` instead. */ - export const outboundSchema = GetPipelinesResponse$outboundSchema; - /** @deprecated use `GetPipelinesResponse$Outbound` instead. */ - export type Outbound = GetPipelinesResponse$Outbound; -} - -export function getPipelinesResponseToJSON( - getPipelinesResponse: GetPipelinesResponse, -): string { - return JSON.stringify( - GetPipelinesResponse$outboundSchema.parse(getPipelinesResponse), - ); -} - export function getPipelinesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getproductresponse.ts b/src/models/components/getproductresponse.ts index 4a249eac2..fe2c07926 100644 --- a/src/models/components/getproductresponse.ts +++ b/src/models/components/getproductresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceProduct, EcommerceProduct$inboundSchema, - EcommerceProduct$Outbound, - EcommerceProduct$outboundSchema, } from "./ecommerceproduct.js"; /** @@ -65,58 +63,6 @@ export const GetProductResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetProductResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EcommerceProduct$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetProductResponse$outboundSchema: z.ZodType< - GetProductResponse$Outbound, - z.ZodTypeDef, - GetProductResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EcommerceProduct$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProductResponse$ { - /** @deprecated use `GetProductResponse$inboundSchema` instead. */ - export const inboundSchema = GetProductResponse$inboundSchema; - /** @deprecated use `GetProductResponse$outboundSchema` instead. */ - export const outboundSchema = GetProductResponse$outboundSchema; - /** @deprecated use `GetProductResponse$Outbound` instead. */ - export type Outbound = GetProductResponse$Outbound; -} - -export function getProductResponseToJSON( - getProductResponse: GetProductResponse, -): string { - return JSON.stringify( - GetProductResponse$outboundSchema.parse(getProductResponse), - ); -} - export function getProductResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getproductsresponse.ts b/src/models/components/getproductsresponse.ts index 402a05ccf..bb6f101d2 100644 --- a/src/models/components/getproductsresponse.ts +++ b/src/models/components/getproductsresponse.ts @@ -10,21 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceProduct, EcommerceProduct$inboundSchema, - EcommerceProduct$Outbound, - EcommerceProduct$outboundSchema, } from "./ecommerceproduct.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; /** * Products @@ -87,62 +75,6 @@ export const GetProductsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetProductsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetProductsResponse$outboundSchema: z.ZodType< - GetProductsResponse$Outbound, - z.ZodTypeDef, - GetProductsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(EcommerceProduct$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProductsResponse$ { - /** @deprecated use `GetProductsResponse$inboundSchema` instead. */ - export const inboundSchema = GetProductsResponse$inboundSchema; - /** @deprecated use `GetProductsResponse$outboundSchema` instead. */ - export const outboundSchema = GetProductsResponse$outboundSchema; - /** @deprecated use `GetProductsResponse$Outbound` instead. */ - export type Outbound = GetProductsResponse$Outbound; -} - -export function getProductsResponseToJSON( - getProductsResponse: GetProductsResponse, -): string { - return JSON.stringify( - GetProductsResponse$outboundSchema.parse(getProductsResponse), - ); -} - export function getProductsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getprofitandlossresponse.ts b/src/models/components/getprofitandlossresponse.ts index 5c4292d5f..3e6cd47d1 100644 --- a/src/models/components/getprofitandlossresponse.ts +++ b/src/models/components/getprofitandlossresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ProfitAndLoss, - ProfitAndLoss$inboundSchema, - ProfitAndLoss$Outbound, - ProfitAndLoss$outboundSchema, -} from "./profitandloss.js"; +import { ProfitAndLoss, ProfitAndLoss$inboundSchema } from "./profitandloss.js"; /** * Profit & Loss Report @@ -65,58 +60,6 @@ export const GetProfitAndLossResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetProfitAndLossResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: ProfitAndLoss$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetProfitAndLossResponse$outboundSchema: z.ZodType< - GetProfitAndLossResponse$Outbound, - z.ZodTypeDef, - GetProfitAndLossResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: ProfitAndLoss$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProfitAndLossResponse$ { - /** @deprecated use `GetProfitAndLossResponse$inboundSchema` instead. */ - export const inboundSchema = GetProfitAndLossResponse$inboundSchema; - /** @deprecated use `GetProfitAndLossResponse$outboundSchema` instead. */ - export const outboundSchema = GetProfitAndLossResponse$outboundSchema; - /** @deprecated use `GetProfitAndLossResponse$Outbound` instead. */ - export type Outbound = GetProfitAndLossResponse$Outbound; -} - -export function getProfitAndLossResponseToJSON( - getProfitAndLossResponse: GetProfitAndLossResponse, -): string { - return JSON.stringify( - GetProfitAndLossResponse$outboundSchema.parse(getProfitAndLossResponse), - ); -} - export function getProfitAndLossResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getprojectresponse.ts b/src/models/components/getprojectresponse.ts index 49abf7a02..9aab40eb0 100644 --- a/src/models/components/getprojectresponse.ts +++ b/src/models/components/getprojectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Project, - Project$inboundSchema, - Project$Outbound, - Project$outboundSchema, -} from "./project.js"; +import { Project, Project$inboundSchema } from "./project.js"; /** * Projects @@ -59,55 +54,6 @@ export const GetProjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetProjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Project$Outbound; -}; - -/** @internal */ -export const GetProjectResponse$outboundSchema: z.ZodType< - GetProjectResponse$Outbound, - z.ZodTypeDef, - GetProjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Project$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProjectResponse$ { - /** @deprecated use `GetProjectResponse$inboundSchema` instead. */ - export const inboundSchema = GetProjectResponse$inboundSchema; - /** @deprecated use `GetProjectResponse$outboundSchema` instead. */ - export const outboundSchema = GetProjectResponse$outboundSchema; - /** @deprecated use `GetProjectResponse$Outbound` instead. */ - export type Outbound = GetProjectResponse$Outbound; -} - -export function getProjectResponseToJSON( - getProjectResponse: GetProjectResponse, -): string { - return JSON.stringify( - GetProjectResponse$outboundSchema.parse(getProjectResponse), - ); -} - export function getProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getprojectsresponse.ts b/src/models/components/getprojectsresponse.ts index 301fa84a3..7ed9e8fc7 100644 --- a/src/models/components/getprojectsresponse.ts +++ b/src/models/components/getprojectsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Project, - Project$inboundSchema, - Project$Outbound, - Project$outboundSchema, -} from "./project.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Project, Project$inboundSchema } from "./project.js"; /** * Projects @@ -81,59 +66,6 @@ export const GetProjectsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetProjectsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetProjectsResponse$outboundSchema: z.ZodType< - GetProjectsResponse$Outbound, - z.ZodTypeDef, - GetProjectsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Project$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProjectsResponse$ { - /** @deprecated use `GetProjectsResponse$inboundSchema` instead. */ - export const inboundSchema = GetProjectsResponse$inboundSchema; - /** @deprecated use `GetProjectsResponse$outboundSchema` instead. */ - export const outboundSchema = GetProjectsResponse$outboundSchema; - /** @deprecated use `GetProjectsResponse$Outbound` instead. */ - export type Outbound = GetProjectsResponse$Outbound; -} - -export function getProjectsResponseToJSON( - getProjectsResponse: GetProjectsResponse, -): string { - return JSON.stringify( - GetProjectsResponse$outboundSchema.parse(getProjectsResponse), - ); -} - export function getProjectsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpurchaseorderresponse.ts b/src/models/components/getpurchaseorderresponse.ts index 0479005ee..3166570d8 100644 --- a/src/models/components/getpurchaseorderresponse.ts +++ b/src/models/components/getpurchaseorderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PurchaseOrder, - PurchaseOrder$inboundSchema, - PurchaseOrder$Outbound, - PurchaseOrder$outboundSchema, -} from "./purchaseorder.js"; +import { PurchaseOrder, PurchaseOrder$inboundSchema } from "./purchaseorder.js"; /** * PurchaseOrders @@ -65,58 +60,6 @@ export const GetPurchaseOrderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPurchaseOrderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: PurchaseOrder$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPurchaseOrderResponse$outboundSchema: z.ZodType< - GetPurchaseOrderResponse$Outbound, - z.ZodTypeDef, - GetPurchaseOrderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: PurchaseOrder$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPurchaseOrderResponse$ { - /** @deprecated use `GetPurchaseOrderResponse$inboundSchema` instead. */ - export const inboundSchema = GetPurchaseOrderResponse$inboundSchema; - /** @deprecated use `GetPurchaseOrderResponse$outboundSchema` instead. */ - export const outboundSchema = GetPurchaseOrderResponse$outboundSchema; - /** @deprecated use `GetPurchaseOrderResponse$Outbound` instead. */ - export type Outbound = GetPurchaseOrderResponse$Outbound; -} - -export function getPurchaseOrderResponseToJSON( - getPurchaseOrderResponse: GetPurchaseOrderResponse, -): string { - return JSON.stringify( - GetPurchaseOrderResponse$outboundSchema.parse(getPurchaseOrderResponse), - ); -} - export function getPurchaseOrderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getpurchaseordersresponse.ts b/src/models/components/getpurchaseordersresponse.ts index 0821fc237..61b9f14a4 100644 --- a/src/models/components/getpurchaseordersresponse.ts +++ b/src/models/components/getpurchaseordersresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - PurchaseOrder, - PurchaseOrder$inboundSchema, - PurchaseOrder$Outbound, - PurchaseOrder$outboundSchema, -} from "./purchaseorder.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { PurchaseOrder, PurchaseOrder$inboundSchema } from "./purchaseorder.js"; /** * PurchaseOrders @@ -87,62 +72,6 @@ export const GetPurchaseOrdersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetPurchaseOrdersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetPurchaseOrdersResponse$outboundSchema: z.ZodType< - GetPurchaseOrdersResponse$Outbound, - z.ZodTypeDef, - GetPurchaseOrdersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(PurchaseOrder$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPurchaseOrdersResponse$ { - /** @deprecated use `GetPurchaseOrdersResponse$inboundSchema` instead. */ - export const inboundSchema = GetPurchaseOrdersResponse$inboundSchema; - /** @deprecated use `GetPurchaseOrdersResponse$outboundSchema` instead. */ - export const outboundSchema = GetPurchaseOrdersResponse$outboundSchema; - /** @deprecated use `GetPurchaseOrdersResponse$Outbound` instead. */ - export type Outbound = GetPurchaseOrdersResponse$Outbound; -} - -export function getPurchaseOrdersResponseToJSON( - getPurchaseOrdersResponse: GetPurchaseOrdersResponse, -): string { - return JSON.stringify( - GetPurchaseOrdersResponse$outboundSchema.parse(getPurchaseOrdersResponse), - ); -} - export function getPurchaseOrdersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getquoteresponse.ts b/src/models/components/getquoteresponse.ts index 8f58d1156..100e506d9 100644 --- a/src/models/components/getquoteresponse.ts +++ b/src/models/components/getquoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Quote, - Quote$inboundSchema, - Quote$Outbound, - Quote$outboundSchema, -} from "./quote.js"; +import { Quote, Quote$inboundSchema } from "./quote.js"; /** * Quotes @@ -59,55 +54,6 @@ export const GetQuoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetQuoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Quote$Outbound; -}; - -/** @internal */ -export const GetQuoteResponse$outboundSchema: z.ZodType< - GetQuoteResponse$Outbound, - z.ZodTypeDef, - GetQuoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Quote$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetQuoteResponse$ { - /** @deprecated use `GetQuoteResponse$inboundSchema` instead. */ - export const inboundSchema = GetQuoteResponse$inboundSchema; - /** @deprecated use `GetQuoteResponse$outboundSchema` instead. */ - export const outboundSchema = GetQuoteResponse$outboundSchema; - /** @deprecated use `GetQuoteResponse$Outbound` instead. */ - export type Outbound = GetQuoteResponse$Outbound; -} - -export function getQuoteResponseToJSON( - getQuoteResponse: GetQuoteResponse, -): string { - return JSON.stringify( - GetQuoteResponse$outboundSchema.parse(getQuoteResponse), - ); -} - export function getQuoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getquotesresponse.ts b/src/models/components/getquotesresponse.ts index 63b86b127..223cdcaa8 100644 --- a/src/models/components/getquotesresponse.ts +++ b/src/models/components/getquotesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Quote, - Quote$inboundSchema, - Quote$Outbound, - Quote$outboundSchema, -} from "./quote.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Quote, Quote$inboundSchema } from "./quote.js"; /** * Quotes @@ -81,59 +66,6 @@ export const GetQuotesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetQuotesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetQuotesResponse$outboundSchema: z.ZodType< - GetQuotesResponse$Outbound, - z.ZodTypeDef, - GetQuotesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Quote$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetQuotesResponse$ { - /** @deprecated use `GetQuotesResponse$inboundSchema` instead. */ - export const inboundSchema = GetQuotesResponse$inboundSchema; - /** @deprecated use `GetQuotesResponse$outboundSchema` instead. */ - export const outboundSchema = GetQuotesResponse$outboundSchema; - /** @deprecated use `GetQuotesResponse$Outbound` instead. */ - export type Outbound = GetQuotesResponse$Outbound; -} - -export function getQuotesResponseToJSON( - getQuotesResponse: GetQuotesResponse, -): string { - return JSON.stringify( - GetQuotesResponse$outboundSchema.parse(getQuotesResponse), - ); -} - export function getQuotesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsharedlinkresponse.ts b/src/models/components/getsharedlinkresponse.ts index 58516a604..50d7c6db3 100644 --- a/src/models/components/getsharedlinkresponse.ts +++ b/src/models/components/getsharedlinkresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - SharedLink, - SharedLink$inboundSchema, - SharedLink$Outbound, - SharedLink$outboundSchema, -} from "./sharedlink.js"; +import { SharedLink, SharedLink$inboundSchema } from "./sharedlink.js"; /** * Shared Link @@ -65,58 +60,6 @@ export const GetSharedLinkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSharedLinkResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: SharedLink$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetSharedLinkResponse$outboundSchema: z.ZodType< - GetSharedLinkResponse$Outbound, - z.ZodTypeDef, - GetSharedLinkResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: SharedLink$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSharedLinkResponse$ { - /** @deprecated use `GetSharedLinkResponse$inboundSchema` instead. */ - export const inboundSchema = GetSharedLinkResponse$inboundSchema; - /** @deprecated use `GetSharedLinkResponse$outboundSchema` instead. */ - export const outboundSchema = GetSharedLinkResponse$outboundSchema; - /** @deprecated use `GetSharedLinkResponse$Outbound` instead. */ - export type Outbound = GetSharedLinkResponse$Outbound; -} - -export function getSharedLinkResponseToJSON( - getSharedLinkResponse: GetSharedLinkResponse, -): string { - return JSON.stringify( - GetSharedLinkResponse$outboundSchema.parse(getSharedLinkResponse), - ); -} - export function getSharedLinkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsharedlinksresponse.ts b/src/models/components/getsharedlinksresponse.ts index 8a8e0ffb6..56c02891e 100644 --- a/src/models/components/getsharedlinksresponse.ts +++ b/src/models/components/getsharedlinksresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - SharedLink, - SharedLink$inboundSchema, - SharedLink$Outbound, - SharedLink$outboundSchema, -} from "./sharedlink.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { SharedLink, SharedLink$inboundSchema } from "./sharedlink.js"; /** * Shared Links @@ -87,62 +72,6 @@ export const GetSharedLinksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSharedLinksResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetSharedLinksResponse$outboundSchema: z.ZodType< - GetSharedLinksResponse$Outbound, - z.ZodTypeDef, - GetSharedLinksResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(SharedLink$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSharedLinksResponse$ { - /** @deprecated use `GetSharedLinksResponse$inboundSchema` instead. */ - export const inboundSchema = GetSharedLinksResponse$inboundSchema; - /** @deprecated use `GetSharedLinksResponse$outboundSchema` instead. */ - export const outboundSchema = GetSharedLinksResponse$outboundSchema; - /** @deprecated use `GetSharedLinksResponse$Outbound` instead. */ - export type Outbound = GetSharedLinksResponse$Outbound; -} - -export function getSharedLinksResponseToJSON( - getSharedLinksResponse: GetSharedLinksResponse, -): string { - return JSON.stringify( - GetSharedLinksResponse$outboundSchema.parse(getSharedLinksResponse), - ); -} - export function getSharedLinksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getstoreresponse.ts b/src/models/components/getstoreresponse.ts index 66f49be4b..1b8af1591 100644 --- a/src/models/components/getstoreresponse.ts +++ b/src/models/components/getstoreresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceStore, EcommerceStore$inboundSchema, - EcommerceStore$Outbound, - EcommerceStore$outboundSchema, } from "./ecommercestore.js"; /** @@ -65,58 +63,6 @@ export const GetStoreResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetStoreResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: EcommerceStore$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetStoreResponse$outboundSchema: z.ZodType< - GetStoreResponse$Outbound, - z.ZodTypeDef, - GetStoreResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: EcommerceStore$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStoreResponse$ { - /** @deprecated use `GetStoreResponse$inboundSchema` instead. */ - export const inboundSchema = GetStoreResponse$inboundSchema; - /** @deprecated use `GetStoreResponse$outboundSchema` instead. */ - export const outboundSchema = GetStoreResponse$outboundSchema; - /** @deprecated use `GetStoreResponse$Outbound` instead. */ - export type Outbound = GetStoreResponse$Outbound; -} - -export function getStoreResponseToJSON( - getStoreResponse: GetStoreResponse, -): string { - return JSON.stringify( - GetStoreResponse$outboundSchema.parse(getStoreResponse), - ); -} - export function getStoreResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsubsidiariesresponse.ts b/src/models/components/getsubsidiariesresponse.ts index 154c32dc6..cae7e45ec 100644 --- a/src/models/components/getsubsidiariesresponse.ts +++ b/src/models/components/getsubsidiariesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Subsidiary, - Subsidiary$inboundSchema, - Subsidiary$Outbound, - Subsidiary$outboundSchema, -} from "./subsidiary.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Subsidiary, Subsidiary$inboundSchema } from "./subsidiary.js"; /** * Subsidiaries @@ -87,62 +72,6 @@ export const GetSubsidiariesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSubsidiariesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetSubsidiariesResponse$outboundSchema: z.ZodType< - GetSubsidiariesResponse$Outbound, - z.ZodTypeDef, - GetSubsidiariesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Subsidiary$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubsidiariesResponse$ { - /** @deprecated use `GetSubsidiariesResponse$inboundSchema` instead. */ - export const inboundSchema = GetSubsidiariesResponse$inboundSchema; - /** @deprecated use `GetSubsidiariesResponse$outboundSchema` instead. */ - export const outboundSchema = GetSubsidiariesResponse$outboundSchema; - /** @deprecated use `GetSubsidiariesResponse$Outbound` instead. */ - export type Outbound = GetSubsidiariesResponse$Outbound; -} - -export function getSubsidiariesResponseToJSON( - getSubsidiariesResponse: GetSubsidiariesResponse, -): string { - return JSON.stringify( - GetSubsidiariesResponse$outboundSchema.parse(getSubsidiariesResponse), - ); -} - export function getSubsidiariesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsubsidiaryresponse.ts b/src/models/components/getsubsidiaryresponse.ts index 0d0e8bd36..1ef80ffd9 100644 --- a/src/models/components/getsubsidiaryresponse.ts +++ b/src/models/components/getsubsidiaryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Subsidiary, - Subsidiary$inboundSchema, - Subsidiary$Outbound, - Subsidiary$outboundSchema, -} from "./subsidiary.js"; +import { Subsidiary, Subsidiary$inboundSchema } from "./subsidiary.js"; /** * Subsidiary @@ -65,58 +60,6 @@ export const GetSubsidiaryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSubsidiaryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Subsidiary$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetSubsidiaryResponse$outboundSchema: z.ZodType< - GetSubsidiaryResponse$Outbound, - z.ZodTypeDef, - GetSubsidiaryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Subsidiary$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubsidiaryResponse$ { - /** @deprecated use `GetSubsidiaryResponse$inboundSchema` instead. */ - export const inboundSchema = GetSubsidiaryResponse$inboundSchema; - /** @deprecated use `GetSubsidiaryResponse$outboundSchema` instead. */ - export const outboundSchema = GetSubsidiaryResponse$outboundSchema; - /** @deprecated use `GetSubsidiaryResponse$Outbound` instead. */ - export type Outbound = GetSubsidiaryResponse$Outbound; -} - -export function getSubsidiaryResponseToJSON( - getSubsidiaryResponse: GetSubsidiaryResponse, -): string { - return JSON.stringify( - GetSubsidiaryResponse$outboundSchema.parse(getSubsidiaryResponse), - ); -} - export function getSubsidiaryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsupplierresponse.ts b/src/models/components/getsupplierresponse.ts index 4c591944c..9f319ea5a 100644 --- a/src/models/components/getsupplierresponse.ts +++ b/src/models/components/getsupplierresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Supplier, - Supplier$inboundSchema, - Supplier$Outbound, - Supplier$outboundSchema, -} from "./supplier.js"; +import { Supplier, Supplier$inboundSchema } from "./supplier.js"; /** * Supplier @@ -65,58 +60,6 @@ export const GetSupplierResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSupplierResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Supplier$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetSupplierResponse$outboundSchema: z.ZodType< - GetSupplierResponse$Outbound, - z.ZodTypeDef, - GetSupplierResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Supplier$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSupplierResponse$ { - /** @deprecated use `GetSupplierResponse$inboundSchema` instead. */ - export const inboundSchema = GetSupplierResponse$inboundSchema; - /** @deprecated use `GetSupplierResponse$outboundSchema` instead. */ - export const outboundSchema = GetSupplierResponse$outboundSchema; - /** @deprecated use `GetSupplierResponse$Outbound` instead. */ - export type Outbound = GetSupplierResponse$Outbound; -} - -export function getSupplierResponseToJSON( - getSupplierResponse: GetSupplierResponse, -): string { - return JSON.stringify( - GetSupplierResponse$outboundSchema.parse(getSupplierResponse), - ); -} - export function getSupplierResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getsuppliersresponse.ts b/src/models/components/getsuppliersresponse.ts index 938fe4042..5808ca4ad 100644 --- a/src/models/components/getsuppliersresponse.ts +++ b/src/models/components/getsuppliersresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Supplier, - Supplier$inboundSchema, - Supplier$Outbound, - Supplier$outboundSchema, -} from "./supplier.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Supplier, Supplier$inboundSchema } from "./supplier.js"; /** * Suppliers @@ -87,62 +72,6 @@ export const GetSuppliersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetSuppliersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetSuppliersResponse$outboundSchema: z.ZodType< - GetSuppliersResponse$Outbound, - z.ZodTypeDef, - GetSuppliersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Supplier$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSuppliersResponse$ { - /** @deprecated use `GetSuppliersResponse$inboundSchema` instead. */ - export const inboundSchema = GetSuppliersResponse$inboundSchema; - /** @deprecated use `GetSuppliersResponse$outboundSchema` instead. */ - export const outboundSchema = GetSuppliersResponse$outboundSchema; - /** @deprecated use `GetSuppliersResponse$Outbound` instead. */ - export type Outbound = GetSuppliersResponse$Outbound; -} - -export function getSuppliersResponseToJSON( - getSuppliersResponse: GetSuppliersResponse, -): string { - return JSON.stringify( - GetSuppliersResponse$outboundSchema.parse(getSuppliersResponse), - ); -} - export function getSuppliersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettaxrateresponse.ts b/src/models/components/gettaxrateresponse.ts index 08d202718..b64aafa2c 100644 --- a/src/models/components/gettaxrateresponse.ts +++ b/src/models/components/gettaxrateresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TaxRate, - TaxRate$inboundSchema, - TaxRate$Outbound, - TaxRate$outboundSchema, -} from "./taxrate.js"; +import { TaxRate, TaxRate$inboundSchema } from "./taxrate.js"; /** * TaxRate @@ -65,58 +60,6 @@ export const GetTaxRateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTaxRateResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: TaxRate$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTaxRateResponse$outboundSchema: z.ZodType< - GetTaxRateResponse$Outbound, - z.ZodTypeDef, - GetTaxRateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: TaxRate$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTaxRateResponse$ { - /** @deprecated use `GetTaxRateResponse$inboundSchema` instead. */ - export const inboundSchema = GetTaxRateResponse$inboundSchema; - /** @deprecated use `GetTaxRateResponse$outboundSchema` instead. */ - export const outboundSchema = GetTaxRateResponse$outboundSchema; - /** @deprecated use `GetTaxRateResponse$Outbound` instead. */ - export type Outbound = GetTaxRateResponse$Outbound; -} - -export function getTaxRateResponseToJSON( - getTaxRateResponse: GetTaxRateResponse, -): string { - return JSON.stringify( - GetTaxRateResponse$outboundSchema.parse(getTaxRateResponse), - ); -} - export function getTaxRateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettaxratesresponse.ts b/src/models/components/gettaxratesresponse.ts index 53d4055b9..87d41a6c4 100644 --- a/src/models/components/gettaxratesresponse.ts +++ b/src/models/components/gettaxratesresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - TaxRate, - TaxRate$inboundSchema, - TaxRate$Outbound, - TaxRate$outboundSchema, -} from "./taxrate.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { TaxRate, TaxRate$inboundSchema } from "./taxrate.js"; /** * TaxRates @@ -87,62 +72,6 @@ export const GetTaxRatesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTaxRatesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTaxRatesResponse$outboundSchema: z.ZodType< - GetTaxRatesResponse$Outbound, - z.ZodTypeDef, - GetTaxRatesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(TaxRate$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTaxRatesResponse$ { - /** @deprecated use `GetTaxRatesResponse$inboundSchema` instead. */ - export const inboundSchema = GetTaxRatesResponse$inboundSchema; - /** @deprecated use `GetTaxRatesResponse$outboundSchema` instead. */ - export const outboundSchema = GetTaxRatesResponse$outboundSchema; - /** @deprecated use `GetTaxRatesResponse$Outbound` instead. */ - export type Outbound = GetTaxRatesResponse$Outbound; -} - -export function getTaxRatesResponseToJSON( - getTaxRatesResponse: GetTaxRatesResponse, -): string { - return JSON.stringify( - GetTaxRatesResponse$outboundSchema.parse(getTaxRatesResponse), - ); -} - export function getTaxRatesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getticketresponse.ts b/src/models/components/getticketresponse.ts index 398ece066..153c534af 100644 --- a/src/models/components/getticketresponse.ts +++ b/src/models/components/getticketresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Ticket, - Ticket$inboundSchema, - Ticket$Outbound, - Ticket$outboundSchema, -} from "./ticket.js"; +import { Ticket, Ticket$inboundSchema } from "./ticket.js"; /** * Get a Ticket @@ -65,58 +60,6 @@ export const GetTicketResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTicketResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Ticket$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTicketResponse$outboundSchema: z.ZodType< - GetTicketResponse$Outbound, - z.ZodTypeDef, - GetTicketResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: Ticket$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTicketResponse$ { - /** @deprecated use `GetTicketResponse$inboundSchema` instead. */ - export const inboundSchema = GetTicketResponse$inboundSchema; - /** @deprecated use `GetTicketResponse$outboundSchema` instead. */ - export const outboundSchema = GetTicketResponse$outboundSchema; - /** @deprecated use `GetTicketResponse$Outbound` instead. */ - export type Outbound = GetTicketResponse$Outbound; -} - -export function getTicketResponseToJSON( - getTicketResponse: GetTicketResponse, -): string { - return JSON.stringify( - GetTicketResponse$outboundSchema.parse(getTicketResponse), - ); -} - export function getTicketResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getticketsresponse.ts b/src/models/components/getticketsresponse.ts index d7cef68ee..58c30e506 100644 --- a/src/models/components/getticketsresponse.ts +++ b/src/models/components/getticketsresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Ticket, - Ticket$inboundSchema, - Ticket$Outbound, - Ticket$outboundSchema, -} from "./ticket.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Ticket, Ticket$inboundSchema } from "./ticket.js"; /** * List Tickets @@ -87,62 +72,6 @@ export const GetTicketsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTicketsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTicketsResponse$outboundSchema: z.ZodType< - GetTicketsResponse$Outbound, - z.ZodTypeDef, - GetTicketsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(Ticket$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTicketsResponse$ { - /** @deprecated use `GetTicketsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTicketsResponse$inboundSchema; - /** @deprecated use `GetTicketsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTicketsResponse$outboundSchema; - /** @deprecated use `GetTicketsResponse$Outbound` instead. */ - export type Outbound = GetTicketsResponse$Outbound; -} - -export function getTicketsResponseToJSON( - getTicketsResponse: GetTicketsResponse, -): string { - return JSON.stringify( - GetTicketsResponse$outboundSchema.parse(getTicketsResponse), - ); -} - export function getTicketsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettimeoffrequestresponse.ts b/src/models/components/gettimeoffrequestresponse.ts index 35c101870..dc3d5ce83 100644 --- a/src/models/components/gettimeoffrequestresponse.ts +++ b/src/models/components/gettimeoffrequestresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { TimeOffRequest, TimeOffRequest$inboundSchema, - TimeOffRequest$Outbound, - TimeOffRequest$outboundSchema, } from "./timeoffrequest.js"; /** @@ -65,58 +63,6 @@ export const GetTimeOffRequestResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTimeOffRequestResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: TimeOffRequest$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTimeOffRequestResponse$outboundSchema: z.ZodType< - GetTimeOffRequestResponse$Outbound, - z.ZodTypeDef, - GetTimeOffRequestResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: TimeOffRequest$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimeOffRequestResponse$ { - /** @deprecated use `GetTimeOffRequestResponse$inboundSchema` instead. */ - export const inboundSchema = GetTimeOffRequestResponse$inboundSchema; - /** @deprecated use `GetTimeOffRequestResponse$outboundSchema` instead. */ - export const outboundSchema = GetTimeOffRequestResponse$outboundSchema; - /** @deprecated use `GetTimeOffRequestResponse$Outbound` instead. */ - export type Outbound = GetTimeOffRequestResponse$Outbound; -} - -export function getTimeOffRequestResponseToJSON( - getTimeOffRequestResponse: GetTimeOffRequestResponse, -): string { - return JSON.stringify( - GetTimeOffRequestResponse$outboundSchema.parse(getTimeOffRequestResponse), - ); -} - export function getTimeOffRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettimeoffrequestsresponse.ts b/src/models/components/gettimeoffrequestsresponse.ts index d23a2cb6a..84fb136ea 100644 --- a/src/models/components/gettimeoffrequestsresponse.ts +++ b/src/models/components/gettimeoffrequestsresponse.ts @@ -7,23 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; import { TimeOffRequest, TimeOffRequest$inboundSchema, - TimeOffRequest$Outbound, - TimeOffRequest$outboundSchema, } from "./timeoffrequest.js"; /** @@ -87,62 +75,6 @@ export const GetTimeOffRequestsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTimeOffRequestsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetTimeOffRequestsResponse$outboundSchema: z.ZodType< - GetTimeOffRequestsResponse$Outbound, - z.ZodTypeDef, - GetTimeOffRequestsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(TimeOffRequest$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTimeOffRequestsResponse$ { - /** @deprecated use `GetTimeOffRequestsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTimeOffRequestsResponse$inboundSchema; - /** @deprecated use `GetTimeOffRequestsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTimeOffRequestsResponse$outboundSchema; - /** @deprecated use `GetTimeOffRequestsResponse$Outbound` instead. */ - export type Outbound = GetTimeOffRequestsResponse$Outbound; -} - -export function getTimeOffRequestsResponseToJSON( - getTimeOffRequestsResponse: GetTimeOffRequestsResponse, -): string { - return JSON.stringify( - GetTimeOffRequestsResponse$outboundSchema.parse(getTimeOffRequestsResponse), - ); -} - export function getTimeOffRequestsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettrackingcategoriesresponse.ts b/src/models/components/gettrackingcategoriesresponse.ts index ab4ee3ea1..a10eb9c85 100644 --- a/src/models/components/gettrackingcategoriesresponse.ts +++ b/src/models/components/gettrackingcategoriesresponse.ts @@ -7,23 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; import { TrackingCategory, TrackingCategory$inboundSchema, - TrackingCategory$Outbound, - TrackingCategory$outboundSchema, } from "./trackingcategory.js"; /** @@ -87,64 +75,6 @@ export const GetTrackingCategoriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTrackingCategoriesResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTrackingCategoriesResponse$outboundSchema: z.ZodType< - GetTrackingCategoriesResponse$Outbound, - z.ZodTypeDef, - GetTrackingCategoriesResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(TrackingCategory$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTrackingCategoriesResponse$ { - /** @deprecated use `GetTrackingCategoriesResponse$inboundSchema` instead. */ - export const inboundSchema = GetTrackingCategoriesResponse$inboundSchema; - /** @deprecated use `GetTrackingCategoriesResponse$outboundSchema` instead. */ - export const outboundSchema = GetTrackingCategoriesResponse$outboundSchema; - /** @deprecated use `GetTrackingCategoriesResponse$Outbound` instead. */ - export type Outbound = GetTrackingCategoriesResponse$Outbound; -} - -export function getTrackingCategoriesResponseToJSON( - getTrackingCategoriesResponse: GetTrackingCategoriesResponse, -): string { - return JSON.stringify( - GetTrackingCategoriesResponse$outboundSchema.parse( - getTrackingCategoriesResponse, - ), - ); -} - export function getTrackingCategoriesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/gettrackingcategoryresponse.ts b/src/models/components/gettrackingcategoryresponse.ts index d8b914775..2216f347e 100644 --- a/src/models/components/gettrackingcategoryresponse.ts +++ b/src/models/components/gettrackingcategoryresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { TrackingCategory, TrackingCategory$inboundSchema, - TrackingCategory$Outbound, - TrackingCategory$outboundSchema, } from "./trackingcategory.js"; /** @@ -65,60 +63,6 @@ export const GetTrackingCategoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetTrackingCategoryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: TrackingCategory$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetTrackingCategoryResponse$outboundSchema: z.ZodType< - GetTrackingCategoryResponse$Outbound, - z.ZodTypeDef, - GetTrackingCategoryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: TrackingCategory$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTrackingCategoryResponse$ { - /** @deprecated use `GetTrackingCategoryResponse$inboundSchema` instead. */ - export const inboundSchema = GetTrackingCategoryResponse$inboundSchema; - /** @deprecated use `GetTrackingCategoryResponse$outboundSchema` instead. */ - export const outboundSchema = GetTrackingCategoryResponse$outboundSchema; - /** @deprecated use `GetTrackingCategoryResponse$Outbound` instead. */ - export type Outbound = GetTrackingCategoryResponse$Outbound; -} - -export function getTrackingCategoryResponseToJSON( - getTrackingCategoryResponse: GetTrackingCategoryResponse, -): string { - return JSON.stringify( - GetTrackingCategoryResponse$outboundSchema.parse( - getTrackingCategoryResponse, - ), - ); -} - export function getTrackingCategoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getuploadsessionresponse.ts b/src/models/components/getuploadsessionresponse.ts index 092d4b0ca..027ab4f00 100644 --- a/src/models/components/getuploadsessionresponse.ts +++ b/src/models/components/getuploadsessionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UploadSession, - UploadSession$inboundSchema, - UploadSession$Outbound, - UploadSession$outboundSchema, -} from "./uploadsession.js"; +import { UploadSession, UploadSession$inboundSchema } from "./uploadsession.js"; /** * UploadSessions @@ -65,58 +60,6 @@ export const GetUploadSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUploadSessionResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UploadSession$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetUploadSessionResponse$outboundSchema: z.ZodType< - GetUploadSessionResponse$Outbound, - z.ZodTypeDef, - GetUploadSessionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UploadSession$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUploadSessionResponse$ { - /** @deprecated use `GetUploadSessionResponse$inboundSchema` instead. */ - export const inboundSchema = GetUploadSessionResponse$inboundSchema; - /** @deprecated use `GetUploadSessionResponse$outboundSchema` instead. */ - export const outboundSchema = GetUploadSessionResponse$outboundSchema; - /** @deprecated use `GetUploadSessionResponse$Outbound` instead. */ - export type Outbound = GetUploadSessionResponse$Outbound; -} - -export function getUploadSessionResponseToJSON( - getUploadSessionResponse: GetUploadSessionResponse, -): string { - return JSON.stringify( - GetUploadSessionResponse$outboundSchema.parse(getUploadSessionResponse), - ); -} - export function getUploadSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getuserresponse.ts b/src/models/components/getuserresponse.ts index 6cfe3dd00..170cbad83 100644 --- a/src/models/components/getuserresponse.ts +++ b/src/models/components/getuserresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - User, - User$inboundSchema, - User$Outbound, - User$outboundSchema, -} from "./user.js"; +import { User, User$inboundSchema } from "./user.js"; /** * User @@ -65,56 +60,6 @@ export const GetUserResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUserResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: User$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetUserResponse$outboundSchema: z.ZodType< - GetUserResponse$Outbound, - z.ZodTypeDef, - GetUserResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: User$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUserResponse$ { - /** @deprecated use `GetUserResponse$inboundSchema` instead. */ - export const inboundSchema = GetUserResponse$inboundSchema; - /** @deprecated use `GetUserResponse$outboundSchema` instead. */ - export const outboundSchema = GetUserResponse$outboundSchema; - /** @deprecated use `GetUserResponse$Outbound` instead. */ - export type Outbound = GetUserResponse$Outbound; -} - -export function getUserResponseToJSON( - getUserResponse: GetUserResponse, -): string { - return JSON.stringify(GetUserResponse$outboundSchema.parse(getUserResponse)); -} - export function getUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getusersresponse.ts b/src/models/components/getusersresponse.ts index eee3e39a1..22b28c420 100644 --- a/src/models/components/getusersresponse.ts +++ b/src/models/components/getusersresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - User, - User$inboundSchema, - User$Outbound, - User$outboundSchema, -} from "./user.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { User, User$inboundSchema } from "./user.js"; /** * Users @@ -87,62 +72,6 @@ export const GetUsersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetUsersResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: Array; - _raw?: { [k: string]: any } | null | undefined; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; -}; - -/** @internal */ -export const GetUsersResponse$outboundSchema: z.ZodType< - GetUsersResponse$Outbound, - z.ZodTypeDef, - GetUsersResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: z.array(User$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUsersResponse$ { - /** @deprecated use `GetUsersResponse$inboundSchema` instead. */ - export const inboundSchema = GetUsersResponse$inboundSchema; - /** @deprecated use `GetUsersResponse$outboundSchema` instead. */ - export const outboundSchema = GetUsersResponse$outboundSchema; - /** @deprecated use `GetUsersResponse$Outbound` instead. */ - export type Outbound = GetUsersResponse$Outbound; -} - -export function getUsersResponseToJSON( - getUsersResponse: GetUsersResponse, -): string { - return JSON.stringify( - GetUsersResponse$outboundSchema.parse(getUsersResponse), - ); -} - export function getUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getwebhookeventlogsresponse.ts b/src/models/components/getwebhookeventlogsresponse.ts index 8a72df402..7892f19f3 100644 --- a/src/models/components/getwebhookeventlogsresponse.ts +++ b/src/models/components/getwebhookeventlogsresponse.ts @@ -7,23 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; import { WebhookEventLog, WebhookEventLog$inboundSchema, - WebhookEventLog$Outbound, - WebhookEventLog$outboundSchema, } from "./webhookeventlog.js"; /** @@ -72,58 +60,6 @@ export const GetWebhookEventLogsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetWebhookEventLogsResponse$Outbound = { - status_code: number; - status: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetWebhookEventLogsResponse$outboundSchema: z.ZodType< - GetWebhookEventLogsResponse$Outbound, - z.ZodTypeDef, - GetWebhookEventLogsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(WebhookEventLog$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWebhookEventLogsResponse$ { - /** @deprecated use `GetWebhookEventLogsResponse$inboundSchema` instead. */ - export const inboundSchema = GetWebhookEventLogsResponse$inboundSchema; - /** @deprecated use `GetWebhookEventLogsResponse$outboundSchema` instead. */ - export const outboundSchema = GetWebhookEventLogsResponse$outboundSchema; - /** @deprecated use `GetWebhookEventLogsResponse$Outbound` instead. */ - export type Outbound = GetWebhookEventLogsResponse$Outbound; -} - -export function getWebhookEventLogsResponseToJSON( - getWebhookEventLogsResponse: GetWebhookEventLogsResponse, -): string { - return JSON.stringify( - GetWebhookEventLogsResponse$outboundSchema.parse( - getWebhookEventLogsResponse, - ), - ); -} - export function getWebhookEventLogsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getwebhookresponse.ts b/src/models/components/getwebhookresponse.ts index 1477fa69f..ebe702b72 100644 --- a/src/models/components/getwebhookresponse.ts +++ b/src/models/components/getwebhookresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Webhook, - Webhook$inboundSchema, - Webhook$Outbound, - Webhook$outboundSchema, -} from "./webhook.js"; +import { Webhook, Webhook$inboundSchema } from "./webhook.js"; /** * Webhooks @@ -50,52 +45,6 @@ export const GetWebhookResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetWebhookResponse$Outbound = { - status_code: number; - status: string; - data: Webhook$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetWebhookResponse$outboundSchema: z.ZodType< - GetWebhookResponse$Outbound, - z.ZodTypeDef, - GetWebhookResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Webhook$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWebhookResponse$ { - /** @deprecated use `GetWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = GetWebhookResponse$inboundSchema; - /** @deprecated use `GetWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = GetWebhookResponse$outboundSchema; - /** @deprecated use `GetWebhookResponse$Outbound` instead. */ - export type Outbound = GetWebhookResponse$Outbound; -} - -export function getWebhookResponseToJSON( - getWebhookResponse: GetWebhookResponse, -): string { - return JSON.stringify( - GetWebhookResponse$outboundSchema.parse(getWebhookResponse), - ); -} - export function getWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/getwebhooksresponse.ts b/src/models/components/getwebhooksresponse.ts index 52f115d46..5cbd05d0b 100644 --- a/src/models/components/getwebhooksresponse.ts +++ b/src/models/components/getwebhooksresponse.ts @@ -7,24 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Links, - Links$inboundSchema, - Links$Outbound, - Links$outboundSchema, -} from "./links.js"; -import { - Meta, - Meta$inboundSchema, - Meta$Outbound, - Meta$outboundSchema, -} from "./meta.js"; -import { - Webhook, - Webhook$inboundSchema, - Webhook$Outbound, - Webhook$outboundSchema, -} from "./webhook.js"; +import { Links, Links$inboundSchema } from "./links.js"; +import { Meta, Meta$inboundSchema } from "./meta.js"; +import { Webhook, Webhook$inboundSchema } from "./webhook.js"; /** * Webhooks @@ -72,56 +57,6 @@ export const GetWebhooksResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetWebhooksResponse$Outbound = { - status_code: number; - status: string; - data: Array; - meta?: Meta$Outbound | undefined; - links?: Links$Outbound | undefined; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const GetWebhooksResponse$outboundSchema: z.ZodType< - GetWebhooksResponse$Outbound, - z.ZodTypeDef, - GetWebhooksResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.array(Webhook$outboundSchema), - meta: Meta$outboundSchema.optional(), - links: Links$outboundSchema.optional(), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWebhooksResponse$ { - /** @deprecated use `GetWebhooksResponse$inboundSchema` instead. */ - export const inboundSchema = GetWebhooksResponse$inboundSchema; - /** @deprecated use `GetWebhooksResponse$outboundSchema` instead. */ - export const outboundSchema = GetWebhooksResponse$outboundSchema; - /** @deprecated use `GetWebhooksResponse$Outbound` instead. */ - export type Outbound = GetWebhooksResponse$Outbound; -} - -export function getWebhooksResponseToJSON( - getWebhooksResponse: GetWebhooksResponse, -): string { - return JSON.stringify( - GetWebhooksResponse$outboundSchema.parse(getWebhooksResponse), - ); -} - export function getWebhooksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/hriscompany.ts b/src/models/components/hriscompany.ts index a2296c678..5b8cc4cc5 100644 --- a/src/models/components/hriscompany.ts +++ b/src/models/components/hriscompany.ts @@ -129,23 +129,11 @@ export type HrisCompanyInput = { export const HrisCompanyStatus$inboundSchema: z.ZodNativeEnum< typeof HrisCompanyStatus > = z.nativeEnum(HrisCompanyStatus); - /** @internal */ export const HrisCompanyStatus$outboundSchema: z.ZodNativeEnum< typeof HrisCompanyStatus > = HrisCompanyStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompanyStatus$ { - /** @deprecated use `HrisCompanyStatus$inboundSchema` instead. */ - export const inboundSchema = HrisCompanyStatus$inboundSchema; - /** @deprecated use `HrisCompanyStatus$outboundSchema` instead. */ - export const outboundSchema = HrisCompanyStatus$outboundSchema; -} - /** @internal */ export const HrisCompany$inboundSchema: z.ZodType< HrisCompany, @@ -191,87 +179,6 @@ export const HrisCompany$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompany$Outbound = { - id?: string | undefined; - legal_name: string | null; - display_name?: string | null | undefined; - subdomain?: string | null | undefined; - status?: string | undefined; - company_number?: string | null | undefined; - currency?: string | null | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - websites?: Array | undefined; - debtor_id?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - deleted?: boolean | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const HrisCompany$outboundSchema: z.ZodType< - HrisCompany$Outbound, - z.ZodTypeDef, - HrisCompany -> = z.object({ - id: z.string().optional(), - legalName: z.nullable(z.string()), - displayName: z.nullable(z.string()).optional(), - subdomain: z.nullable(z.string()).optional(), - status: HrisCompanyStatus$outboundSchema.optional(), - companyNumber: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - websites: z.array(Website$outboundSchema).optional(), - debtorId: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - deleted: z.boolean().optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - legalName: "legal_name", - displayName: "display_name", - companyNumber: "company_number", - phoneNumbers: "phone_numbers", - debtorId: "debtor_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompany$ { - /** @deprecated use `HrisCompany$inboundSchema` instead. */ - export const inboundSchema = HrisCompany$inboundSchema; - /** @deprecated use `HrisCompany$outboundSchema` instead. */ - export const outboundSchema = HrisCompany$outboundSchema; - /** @deprecated use `HrisCompany$Outbound` instead. */ - export type Outbound = HrisCompany$Outbound; -} - -export function hrisCompanyToJSON(hrisCompany: HrisCompany): string { - return JSON.stringify(HrisCompany$outboundSchema.parse(hrisCompany)); -} - export function hrisCompanyFromJSON( jsonString: string, ): SafeParseResult { @@ -282,35 +189,6 @@ export function hrisCompanyFromJSON( ); } -/** @internal */ -export const HrisCompanyInput$inboundSchema: z.ZodType< - HrisCompanyInput, - z.ZodTypeDef, - unknown -> = z.object({ - legal_name: z.nullable(z.string()), - display_name: z.nullable(z.string()).optional(), - subdomain: z.nullable(z.string()).optional(), - status: HrisCompanyStatus$inboundSchema.optional(), - company_number: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - websites: z.array(Website$inboundSchema).optional(), - debtor_id: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "legal_name": "legalName", - "display_name": "displayName", - "company_number": "companyNumber", - "phone_numbers": "phoneNumbers", - "debtor_id": "debtorId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisCompanyInput$Outbound = { legal_name: string | null; @@ -356,19 +234,6 @@ export const HrisCompanyInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompanyInput$ { - /** @deprecated use `HrisCompanyInput$inboundSchema` instead. */ - export const inboundSchema = HrisCompanyInput$inboundSchema; - /** @deprecated use `HrisCompanyInput$outboundSchema` instead. */ - export const outboundSchema = HrisCompanyInput$outboundSchema; - /** @deprecated use `HrisCompanyInput$Outbound` instead. */ - export type Outbound = HrisCompanyInput$Outbound; -} - export function hrisCompanyInputToJSON( hrisCompanyInput: HrisCompanyInput, ): string { @@ -376,13 +241,3 @@ export function hrisCompanyInputToJSON( HrisCompanyInput$outboundSchema.parse(hrisCompanyInput), ); } - -export function hrisCompanyInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompanyInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompanyInput' from JSON`, - ); -} diff --git a/src/models/components/httpmetadata.ts b/src/models/components/httpmetadata.ts index 40aed50d1..3e67d85a4 100644 --- a/src/models/components/httpmetadata.ts +++ b/src/models/components/httpmetadata.ts @@ -34,48 +34,6 @@ export const HTTPMetadata$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HTTPMetadata$Outbound = { - Response: never; - Request: never; -}; - -/** @internal */ -export const HTTPMetadata$outboundSchema: z.ZodType< - HTTPMetadata$Outbound, - z.ZodTypeDef, - HTTPMetadata -> = z.object({ - response: z.instanceof(Response).transform(() => { - throw new Error("Response cannot be serialized"); - }), - request: z.instanceof(Request).transform(() => { - throw new Error("Response cannot be serialized"); - }), -}).transform((v) => { - return remap$(v, { - response: "Response", - request: "Request", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HTTPMetadata$ { - /** @deprecated use `HTTPMetadata$inboundSchema` instead. */ - export const inboundSchema = HTTPMetadata$inboundSchema; - /** @deprecated use `HTTPMetadata$outboundSchema` instead. */ - export const outboundSchema = HTTPMetadata$outboundSchema; - /** @deprecated use `HTTPMetadata$Outbound` instead. */ - export type Outbound = HTTPMetadata$Outbound; -} - -export function httpMetadataToJSON(httpMetadata: HTTPMetadata): string { - return JSON.stringify(HTTPMetadata$outboundSchema.parse(httpMetadata)); -} - export function httpMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 3424d845f..576c1e8d9 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -44,6 +44,7 @@ export * from "./bankfeedstatement.js"; export * from "./benefit.js"; export * from "./bill.js"; export * from "./billlineitem.js"; +export * from "./billlineiteminput.js"; export * from "./billpayment.js"; export * from "./billsfilter.js"; export * from "./billssort.js"; @@ -417,6 +418,7 @@ export * from "./leadssort.js"; export * from "./ledgeraccount.js"; export * from "./ledgeraccountsfilter.js"; export * from "./ledgeraccountssort.js"; +export * from "./lineitemtype.js"; export * from "./linkedattachment.js"; export * from "./linkedbankaccount.js"; export * from "./linkedconnectorresource.js"; @@ -427,7 +429,6 @@ export * from "./linkedecommerceorder.js"; export * from "./linkedfolder.js"; export * from "./linkedinvoiceitem.js"; export * from "./linkedledgeraccount.js"; -export * from "./linkedledgeraccountinput.js"; export * from "./linkedparentcustomer.js"; export * from "./linkedpurchaseorder.js"; export * from "./linkedsupplier.js"; diff --git a/src/models/components/integrationstate.ts b/src/models/components/integrationstate.ts index 228d2ab84..ad78f464b 100644 --- a/src/models/components/integrationstate.ts +++ b/src/models/components/integrationstate.ts @@ -22,19 +22,3 @@ export type IntegrationState = ClosedEnum; export const IntegrationState$inboundSchema: z.ZodNativeEnum< typeof IntegrationState > = z.nativeEnum(IntegrationState); - -/** @internal */ -export const IntegrationState$outboundSchema: z.ZodNativeEnum< - typeof IntegrationState -> = IntegrationState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationState$ { - /** @deprecated use `IntegrationState$inboundSchema` instead. */ - export const inboundSchema = IntegrationState$inboundSchema; - /** @deprecated use `IntegrationState$outboundSchema` instead. */ - export const outboundSchema = IntegrationState$outboundSchema; -} diff --git a/src/models/components/invoice.ts b/src/models/components/invoice.ts index ce4908175..0fb77ff86 100644 --- a/src/models/components/invoice.ts +++ b/src/models/components/invoice.ts @@ -41,22 +41,16 @@ import { import { InvoiceLineItem, InvoiceLineItem$inboundSchema, - InvoiceLineItem$Outbound, - InvoiceLineItem$outboundSchema, InvoiceLineItemInput, - InvoiceLineItemInput$inboundSchema, InvoiceLineItemInput$Outbound, InvoiceLineItemInput$outboundSchema, } from "./invoicelineitem.js"; import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; @@ -66,12 +60,6 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$inboundSchema, @@ -457,7 +445,7 @@ export type InvoiceInput = { */ accountingByRow?: boolean | null | undefined; bankAccount?: BankAccount | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; customFields?: Array | undefined; /** * 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. @@ -472,43 +460,19 @@ export type InvoiceInput = { /** @internal */ export const InvoiceType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(InvoiceType); - /** @internal */ export const InvoiceType$outboundSchema: z.ZodNativeEnum = InvoiceType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceType$ { - /** @deprecated use `InvoiceType$inboundSchema` instead. */ - export const inboundSchema = InvoiceType$inboundSchema; - /** @deprecated use `InvoiceType$outboundSchema` instead. */ - export const outboundSchema = InvoiceType$outboundSchema; -} - /** @internal */ export const InvoiceStatus$inboundSchema: z.ZodNativeEnum< typeof InvoiceStatus > = z.nativeEnum(InvoiceStatus); - /** @internal */ export const InvoiceStatus$outboundSchema: z.ZodNativeEnum< typeof InvoiceStatus > = InvoiceStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceStatus$ { - /** @deprecated use `InvoiceStatus$inboundSchema` instead. */ - export const inboundSchema = InvoiceStatus$inboundSchema; - /** @deprecated use `InvoiceStatus$outboundSchema` instead. */ - export const outboundSchema = InvoiceStatus$outboundSchema; -} - /** @internal */ export const PaymentAllocations$inboundSchema: z.ZodType< PaymentAllocations, @@ -525,7 +489,6 @@ export const PaymentAllocations$inboundSchema: z.ZodType< "allocated_amount": "allocatedAmount", }); }); - /** @internal */ export type PaymentAllocations$Outbound = { id?: string | undefined; @@ -548,19 +511,6 @@ export const PaymentAllocations$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentAllocations$ { - /** @deprecated use `PaymentAllocations$inboundSchema` instead. */ - export const inboundSchema = PaymentAllocations$inboundSchema; - /** @deprecated use `PaymentAllocations$outboundSchema` instead. */ - export const outboundSchema = PaymentAllocations$outboundSchema; - /** @deprecated use `PaymentAllocations$Outbound` instead. */ - export type Outbound = PaymentAllocations$Outbound; -} - export function paymentAllocationsToJSON( paymentAllocations: PaymentAllocations, ): string { @@ -568,7 +518,6 @@ export function paymentAllocationsToJSON( PaymentAllocations$outboundSchema.parse(paymentAllocations), ); } - export function paymentAllocationsFromJSON( jsonString: string, ): SafeParseResult { @@ -683,185 +632,6 @@ export const Invoice$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Invoice$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - type?: string | null | undefined; - number?: string | null | undefined; - customer?: LinkedCustomer$Outbound | null | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - invoice_date?: string | null | undefined; - due_date?: string | null | undefined; - terms?: string | null | undefined; - po_number?: string | null | undefined; - reference?: string | null | undefined; - status?: string | null | undefined; - invoice_sent?: boolean | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - tax_inclusive?: boolean | null | undefined; - sub_total?: number | null | undefined; - total_tax?: number | null | undefined; - tax_code?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - total?: number | null | undefined; - balance?: number | null | undefined; - deposit?: number | null | undefined; - customer_memo?: string | null | undefined; - tracking_category?: - | DeprecatedLinkedTrackingCategory$Outbound - | null - | undefined; - tracking_categories?: - | Array - | null - | undefined; - line_items?: Array | undefined; - billing_address?: Address$Outbound | undefined; - shipping_address?: Address$Outbound | undefined; - template_id?: string | null | undefined; - source_document_url?: string | null | undefined; - payment_allocations?: Array | null | undefined; - payment_method?: string | null | undefined; - channel?: string | null | undefined; - language?: string | null | undefined; - accounting_by_row?: boolean | null | undefined; - bank_account?: BankAccount$Outbound | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Invoice$outboundSchema: z.ZodType< - Invoice$Outbound, - z.ZodTypeDef, - Invoice -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - type: z.nullable(InvoiceType$outboundSchema).optional(), - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - invoiceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - terms: z.nullable(z.string()).optional(), - poNumber: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - status: z.nullable(InvoiceStatus$outboundSchema).optional(), - invoiceSent: z.boolean().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalTax: z.nullable(z.number()).optional(), - taxCode: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - balance: z.nullable(z.number()).optional(), - deposit: z.nullable(z.number()).optional(), - customerMemo: z.nullable(z.string()).optional(), - trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema) - .optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - lineItems: z.array(InvoiceLineItem$outboundSchema).optional(), - billingAddress: Address$outboundSchema.optional(), - shippingAddress: Address$outboundSchema.optional(), - templateId: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - paymentAllocations: z.nullable( - z.array(z.lazy(() => PaymentAllocations$outboundSchema)), - ).optional(), - paymentMethod: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - accountingByRow: z.nullable(z.boolean()).optional(), - bankAccount: BankAccount$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - companyId: "company_id", - departmentId: "department_id", - invoiceDate: "invoice_date", - dueDate: "due_date", - poNumber: "po_number", - invoiceSent: "invoice_sent", - currencyRate: "currency_rate", - taxInclusive: "tax_inclusive", - subTotal: "sub_total", - totalTax: "total_tax", - taxCode: "tax_code", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - customerMemo: "customer_memo", - trackingCategory: "tracking_category", - trackingCategories: "tracking_categories", - lineItems: "line_items", - billingAddress: "billing_address", - shippingAddress: "shipping_address", - templateId: "template_id", - sourceDocumentUrl: "source_document_url", - paymentAllocations: "payment_allocations", - paymentMethod: "payment_method", - accountingByRow: "accounting_by_row", - bankAccount: "bank_account", - ledgerAccount: "ledger_account", - customMappings: "custom_mappings", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Invoice$ { - /** @deprecated use `Invoice$inboundSchema` instead. */ - export const inboundSchema = Invoice$inboundSchema; - /** @deprecated use `Invoice$outboundSchema` instead. */ - export const outboundSchema = Invoice$outboundSchema; - /** @deprecated use `Invoice$Outbound` instead. */ - export type Outbound = Invoice$Outbound; -} - -export function invoiceToJSON(invoice: Invoice): string { - return JSON.stringify(Invoice$outboundSchema.parse(invoice)); -} - export function invoiceFromJSON( jsonString: string, ): SafeParseResult { @@ -872,95 +642,6 @@ export function invoiceFromJSON( ); } -/** @internal */ -export const InvoiceInput$inboundSchema: z.ZodType< - InvoiceInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - type: z.nullable(InvoiceType$inboundSchema).optional(), - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - invoice_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - terms: z.nullable(z.string()).optional(), - po_number: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - status: z.nullable(InvoiceStatus$inboundSchema).optional(), - invoice_sent: z.boolean().optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_tax: z.nullable(z.number()).optional(), - tax_code: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - discount_amount: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - balance: z.nullable(z.number()).optional(), - deposit: z.nullable(z.number()).optional(), - customer_memo: z.nullable(z.string()).optional(), - tracking_category: z.nullable(DeprecatedLinkedTrackingCategory$inboundSchema) - .optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(), - billing_address: Address$inboundSchema.optional(), - shipping_address: Address$inboundSchema.optional(), - template_id: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - payment_allocations: z.nullable( - z.array(z.lazy(() => PaymentAllocations$inboundSchema)), - ).optional(), - payment_method: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - accounting_by_row: z.nullable(z.boolean()).optional(), - bank_account: BankAccount$inboundSchema.optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "company_id": "companyId", - "department_id": "departmentId", - "invoice_date": "invoiceDate", - "due_date": "dueDate", - "po_number": "poNumber", - "invoice_sent": "invoiceSent", - "currency_rate": "currencyRate", - "tax_inclusive": "taxInclusive", - "sub_total": "subTotal", - "total_tax": "totalTax", - "tax_code": "taxCode", - "discount_percentage": "discountPercentage", - "discount_amount": "discountAmount", - "customer_memo": "customerMemo", - "tracking_category": "trackingCategory", - "tracking_categories": "trackingCategories", - "line_items": "lineItems", - "billing_address": "billingAddress", - "shipping_address": "shippingAddress", - "template_id": "templateId", - "source_document_url": "sourceDocumentUrl", - "payment_allocations": "paymentAllocations", - "payment_method": "paymentMethod", - "accounting_by_row": "accountingByRow", - "bank_account": "bankAccount", - "ledger_account": "ledgerAccount", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type InvoiceInput$Outbound = { display_id?: string | null | undefined; @@ -1007,7 +688,7 @@ export type InvoiceInput$Outbound = { language?: string | null | undefined; accounting_by_row?: boolean | null | undefined; bank_account?: BankAccount$Outbound | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; @@ -1064,7 +745,7 @@ export const InvoiceInput$outboundSchema: z.ZodType< language: z.nullable(z.string()).optional(), accountingByRow: z.nullable(z.boolean()).optional(), bankAccount: BankAccount$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), customFields: z.array(CustomField$outboundSchema).optional(), rowVersion: z.nullable(z.string()).optional(), passThrough: z.array(PassThroughBody$outboundSchema).optional(), @@ -1103,29 +784,6 @@ export const InvoiceInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceInput$ { - /** @deprecated use `InvoiceInput$inboundSchema` instead. */ - export const inboundSchema = InvoiceInput$inboundSchema; - /** @deprecated use `InvoiceInput$outboundSchema` instead. */ - export const outboundSchema = InvoiceInput$outboundSchema; - /** @deprecated use `InvoiceInput$Outbound` instead. */ - export type Outbound = InvoiceInput$Outbound; -} - export function invoiceInputToJSON(invoiceInput: InvoiceInput): string { return JSON.stringify(InvoiceInput$outboundSchema.parse(invoiceInput)); } - -export function invoiceInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceInput' from JSON`, - ); -} diff --git a/src/models/components/invoiceitem.ts b/src/models/components/invoiceitem.ts index 3364b2d93..afbb5a18a 100644 --- a/src/models/components/invoiceitem.ts +++ b/src/models/components/invoiceitem.ts @@ -26,21 +26,9 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -284,9 +272,9 @@ export type InvoiceItemInput = { * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; - assetAccount?: LinkedLedgerAccountInput | null | undefined; - incomeAccount?: LinkedLedgerAccountInput | null | undefined; - expenseAccount?: LinkedLedgerAccountInput | null | undefined; + assetAccount?: LinkedLedgerAccount | null | undefined; + incomeAccount?: LinkedLedgerAccount | null | undefined; + expenseAccount?: LinkedLedgerAccount | null | undefined; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -326,23 +314,11 @@ export type InvoiceItemInput = { export const InvoiceItemTypeType$inboundSchema: z.ZodNativeEnum< typeof InvoiceItemTypeType > = z.nativeEnum(InvoiceItemTypeType); - /** @internal */ export const InvoiceItemTypeType$outboundSchema: z.ZodNativeEnum< typeof InvoiceItemTypeType > = InvoiceItemTypeType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemTypeType$ { - /** @deprecated use `InvoiceItemTypeType$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemTypeType$inboundSchema; - /** @deprecated use `InvoiceItemTypeType$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemTypeType$outboundSchema; -} - /** @internal */ export const SalesDetails$inboundSchema: z.ZodType< SalesDetails, @@ -362,50 +338,6 @@ export const SalesDetails$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SalesDetails$Outbound = { - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - tax_inclusive?: boolean | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; -}; - -/** @internal */ -export const SalesDetails$outboundSchema: z.ZodType< - SalesDetails$Outbound, - z.ZodTypeDef, - SalesDetails -> = z.object({ - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - taxInclusive: "tax_inclusive", - taxRate: "tax_rate", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SalesDetails$ { - /** @deprecated use `SalesDetails$inboundSchema` instead. */ - export const inboundSchema = SalesDetails$inboundSchema; - /** @deprecated use `SalesDetails$outboundSchema` instead. */ - export const outboundSchema = SalesDetails$outboundSchema; - /** @deprecated use `SalesDetails$Outbound` instead. */ - export type Outbound = SalesDetails$Outbound; -} - -export function salesDetailsToJSON(salesDetails: SalesDetails): string { - return JSON.stringify(SalesDetails$outboundSchema.parse(salesDetails)); -} - export function salesDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -435,52 +367,6 @@ export const PurchaseDetails$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PurchaseDetails$Outbound = { - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - tax_inclusive?: boolean | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; -}; - -/** @internal */ -export const PurchaseDetails$outboundSchema: z.ZodType< - PurchaseDetails$Outbound, - z.ZodTypeDef, - PurchaseDetails -> = z.object({ - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - taxInclusive: "tax_inclusive", - taxRate: "tax_rate", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseDetails$ { - /** @deprecated use `PurchaseDetails$inboundSchema` instead. */ - export const inboundSchema = PurchaseDetails$inboundSchema; - /** @deprecated use `PurchaseDetails$outboundSchema` instead. */ - export const outboundSchema = PurchaseDetails$outboundSchema; - /** @deprecated use `PurchaseDetails$Outbound` instead. */ - export type Outbound = PurchaseDetails$Outbound; -} - -export function purchaseDetailsToJSON( - purchaseDetails: PurchaseDetails, -): string { - return JSON.stringify(PurchaseDetails$outboundSchema.parse(purchaseDetails)); -} - export function purchaseDetailsFromJSON( jsonString: string, ): SafeParseResult { @@ -564,135 +450,6 @@ export const InvoiceItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type InvoiceItem$Outbound = { - id?: string | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - display_id?: string | null | undefined; - code?: string | null | undefined; - sold?: boolean | null | undefined; - purchased?: boolean | null | undefined; - tracked?: boolean | null | undefined; - taxable?: boolean | null | undefined; - inventory_date?: string | null | undefined; - type?: string | null | undefined; - sales_details?: SalesDetails$Outbound | undefined; - purchase_details?: PurchaseDetails$Outbound | undefined; - quantity?: number | null | undefined; - unit_price?: number | null | undefined; - currency?: string | null | undefined; - asset_account?: LinkedLedgerAccount$Outbound | null | undefined; - income_account?: LinkedLedgerAccount$Outbound | null | undefined; - expense_account?: LinkedLedgerAccount$Outbound | null | undefined; - tracking_category?: - | DeprecatedLinkedTrackingCategory$Outbound - | null - | undefined; - tracking_categories?: - | Array - | null - | undefined; - active?: boolean | null | undefined; - department_id?: string | null | undefined; - location_id?: string | null | undefined; - subsidiary_id?: string | null | undefined; - tax_schedule_id?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const InvoiceItem$outboundSchema: z.ZodType< - InvoiceItem$Outbound, - z.ZodTypeDef, - InvoiceItem -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - sold: z.nullable(z.boolean()).optional(), - purchased: z.nullable(z.boolean()).optional(), - tracked: z.nullable(z.boolean()).optional(), - taxable: z.nullable(z.boolean()).optional(), - inventoryDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - type: z.nullable(InvoiceItemTypeType$outboundSchema).optional(), - salesDetails: z.lazy(() => SalesDetails$outboundSchema).optional(), - purchaseDetails: z.lazy(() => PurchaseDetails$outboundSchema).optional(), - quantity: z.nullable(z.number()).optional(), - unitPrice: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - assetAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - incomeAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - expenseAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema) - .optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - active: z.nullable(z.boolean()).optional(), - departmentId: z.nullable(z.string()).optional(), - locationId: z.nullable(z.string()).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - taxScheduleId: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - inventoryDate: "inventory_date", - salesDetails: "sales_details", - purchaseDetails: "purchase_details", - unitPrice: "unit_price", - assetAccount: "asset_account", - incomeAccount: "income_account", - expenseAccount: "expense_account", - trackingCategory: "tracking_category", - trackingCategories: "tracking_categories", - departmentId: "department_id", - locationId: "location_id", - subsidiaryId: "subsidiary_id", - taxScheduleId: "tax_schedule_id", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItem$ { - /** @deprecated use `InvoiceItem$inboundSchema` instead. */ - export const inboundSchema = InvoiceItem$inboundSchema; - /** @deprecated use `InvoiceItem$outboundSchema` instead. */ - export const outboundSchema = InvoiceItem$outboundSchema; - /** @deprecated use `InvoiceItem$Outbound` instead. */ - export type Outbound = InvoiceItem$Outbound; -} - -export function invoiceItemToJSON(invoiceItem: InvoiceItem): string { - return JSON.stringify(InvoiceItem$outboundSchema.parse(invoiceItem)); -} - export function invoiceItemFromJSON( jsonString: string, ): SafeParseResult { @@ -703,25 +460,6 @@ export function invoiceItemFromJSON( ); } -/** @internal */ -export const InvoiceItemSalesDetails$inboundSchema: z.ZodType< - InvoiceItemSalesDetails, - z.ZodTypeDef, - unknown -> = z.object({ - unit_price: z.nullable(z.number()).optional(), - unit_of_measure: z.nullable(z.string()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "unit_price": "unitPrice", - "unit_of_measure": "unitOfMeasure", - "tax_inclusive": "taxInclusive", - "tax_rate": "taxRate", - }); -}); - /** @internal */ export type InvoiceItemSalesDetails$Outbound = { unit_price?: number | null | undefined; @@ -749,19 +487,6 @@ export const InvoiceItemSalesDetails$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemSalesDetails$ { - /** @deprecated use `InvoiceItemSalesDetails$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemSalesDetails$inboundSchema; - /** @deprecated use `InvoiceItemSalesDetails$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemSalesDetails$outboundSchema; - /** @deprecated use `InvoiceItemSalesDetails$Outbound` instead. */ - export type Outbound = InvoiceItemSalesDetails$Outbound; -} - export function invoiceItemSalesDetailsToJSON( invoiceItemSalesDetails: InvoiceItemSalesDetails, ): string { @@ -770,35 +495,6 @@ export function invoiceItemSalesDetailsToJSON( ); } -export function invoiceItemSalesDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemSalesDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemSalesDetails' from JSON`, - ); -} - -/** @internal */ -export const InvoiceItemPurchaseDetails$inboundSchema: z.ZodType< - InvoiceItemPurchaseDetails, - z.ZodTypeDef, - unknown -> = z.object({ - unit_price: z.nullable(z.number()).optional(), - unit_of_measure: z.nullable(z.string()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "unit_price": "unitPrice", - "unit_of_measure": "unitOfMeasure", - "tax_inclusive": "taxInclusive", - "tax_rate": "taxRate", - }); -}); - /** @internal */ export type InvoiceItemPurchaseDetails$Outbound = { unit_price?: number | null | undefined; @@ -826,19 +522,6 @@ export const InvoiceItemPurchaseDetails$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemPurchaseDetails$ { - /** @deprecated use `InvoiceItemPurchaseDetails$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemPurchaseDetails$inboundSchema; - /** @deprecated use `InvoiceItemPurchaseDetails$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemPurchaseDetails$outboundSchema; - /** @deprecated use `InvoiceItemPurchaseDetails$Outbound` instead. */ - export type Outbound = InvoiceItemPurchaseDetails$Outbound; -} - export function invoiceItemPurchaseDetailsToJSON( invoiceItemPurchaseDetails: InvoiceItemPurchaseDetails, ): string { @@ -847,76 +530,6 @@ export function invoiceItemPurchaseDetailsToJSON( ); } -export function invoiceItemPurchaseDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemPurchaseDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemPurchaseDetails' from JSON`, - ); -} - -/** @internal */ -export const InvoiceItemInput$inboundSchema: z.ZodType< - InvoiceItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - sold: z.nullable(z.boolean()).optional(), - purchased: z.nullable(z.boolean()).optional(), - tracked: z.nullable(z.boolean()).optional(), - taxable: z.nullable(z.boolean()).optional(), - inventory_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - type: z.nullable(InvoiceItemTypeType$inboundSchema).optional(), - sales_details: z.lazy(() => InvoiceItemSalesDetails$inboundSchema).optional(), - purchase_details: z.lazy(() => InvoiceItemPurchaseDetails$inboundSchema) - .optional(), - quantity: z.nullable(z.number()).optional(), - unit_price: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - asset_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - income_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - expense_account: z.nullable(LinkedLedgerAccountInput$inboundSchema) - .optional(), - tracking_category: z.nullable(DeprecatedLinkedTrackingCategory$inboundSchema) - .optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - active: z.nullable(z.boolean()).optional(), - department_id: z.nullable(z.string()).optional(), - location_id: z.nullable(z.string()).optional(), - subsidiary_id: z.nullable(z.string()).optional(), - tax_schedule_id: z.nullable(z.string()).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "inventory_date": "inventoryDate", - "sales_details": "salesDetails", - "purchase_details": "purchaseDetails", - "unit_price": "unitPrice", - "asset_account": "assetAccount", - "income_account": "incomeAccount", - "expense_account": "expenseAccount", - "tracking_category": "trackingCategory", - "tracking_categories": "trackingCategories", - "department_id": "departmentId", - "location_id": "locationId", - "subsidiary_id": "subsidiaryId", - "tax_schedule_id": "taxScheduleId", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type InvoiceItemInput$Outbound = { name?: string | null | undefined; @@ -934,9 +547,9 @@ export type InvoiceItemInput$Outbound = { quantity?: number | null | undefined; unit_price?: number | null | undefined; currency?: string | null | undefined; - asset_account?: LinkedLedgerAccountInput$Outbound | null | undefined; - income_account?: LinkedLedgerAccountInput$Outbound | null | undefined; - expense_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + asset_account?: LinkedLedgerAccount$Outbound | null | undefined; + income_account?: LinkedLedgerAccount$Outbound | null | undefined; + expense_account?: LinkedLedgerAccount$Outbound | null | undefined; tracking_category?: | DeprecatedLinkedTrackingCategory$Outbound | null @@ -977,10 +590,9 @@ export const InvoiceItemInput$outboundSchema: z.ZodType< quantity: z.nullable(z.number()).optional(), unitPrice: z.nullable(z.number()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), - assetAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), - incomeAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), - expenseAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema) - .optional(), + assetAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), + incomeAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), + expenseAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema) .optional(), trackingCategories: z.nullable( @@ -1014,19 +626,6 @@ export const InvoiceItemInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemInput$ { - /** @deprecated use `InvoiceItemInput$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemInput$inboundSchema; - /** @deprecated use `InvoiceItemInput$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemInput$outboundSchema; - /** @deprecated use `InvoiceItemInput$Outbound` instead. */ - export type Outbound = InvoiceItemInput$Outbound; -} - export function invoiceItemInputToJSON( invoiceItemInput: InvoiceItemInput, ): string { @@ -1034,13 +633,3 @@ export function invoiceItemInputToJSON( InvoiceItemInput$outboundSchema.parse(invoiceItemInput), ); } - -export function invoiceItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemInput' from JSON`, - ); -} diff --git a/src/models/components/invoiceitemfilter.ts b/src/models/components/invoiceitemfilter.ts index ebbff8957..ed1b9f6c7 100644 --- a/src/models/components/invoiceitemfilter.ts +++ b/src/models/components/invoiceitemfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of invoice item, indicating whether it is an inventory item, a service, or another type. @@ -49,62 +46,15 @@ export type InvoiceItemFilter = { transactionType?: InvoiceItemFilterTransactionType | null | undefined; }; -/** @internal */ -export const InvoiceItemFilterInvoiceItemType$inboundSchema: z.ZodNativeEnum< - typeof InvoiceItemFilterInvoiceItemType -> = z.nativeEnum(InvoiceItemFilterInvoiceItemType); - /** @internal */ export const InvoiceItemFilterInvoiceItemType$outboundSchema: z.ZodNativeEnum< typeof InvoiceItemFilterInvoiceItemType -> = InvoiceItemFilterInvoiceItemType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemFilterInvoiceItemType$ { - /** @deprecated use `InvoiceItemFilterInvoiceItemType$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemFilterInvoiceItemType$inboundSchema; - /** @deprecated use `InvoiceItemFilterInvoiceItemType$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemFilterInvoiceItemType$outboundSchema; -} - -/** @internal */ -export const InvoiceItemFilterTransactionType$inboundSchema: z.ZodNativeEnum< - typeof InvoiceItemFilterTransactionType -> = z.nativeEnum(InvoiceItemFilterTransactionType); +> = z.nativeEnum(InvoiceItemFilterInvoiceItemType); /** @internal */ export const InvoiceItemFilterTransactionType$outboundSchema: z.ZodNativeEnum< typeof InvoiceItemFilterTransactionType -> = InvoiceItemFilterTransactionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemFilterTransactionType$ { - /** @deprecated use `InvoiceItemFilterTransactionType$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemFilterTransactionType$inboundSchema; - /** @deprecated use `InvoiceItemFilterTransactionType$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemFilterTransactionType$outboundSchema; -} - -/** @internal */ -export const InvoiceItemFilter$inboundSchema: z.ZodType< - InvoiceItemFilter, - z.ZodTypeDef, - unknown -> = z.object({ - type: z.nullable(InvoiceItemFilterInvoiceItemType$inboundSchema).optional(), - transaction_type: z.nullable(InvoiceItemFilterTransactionType$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "transaction_type": "transactionType", - }); -}); +> = z.nativeEnum(InvoiceItemFilterTransactionType); /** @internal */ export type InvoiceItemFilter$Outbound = { @@ -127,19 +77,6 @@ export const InvoiceItemFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemFilter$ { - /** @deprecated use `InvoiceItemFilter$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemFilter$inboundSchema; - /** @deprecated use `InvoiceItemFilter$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemFilter$outboundSchema; - /** @deprecated use `InvoiceItemFilter$Outbound` instead. */ - export type Outbound = InvoiceItemFilter$Outbound; -} - export function invoiceItemFilterToJSON( invoiceItemFilter: InvoiceItemFilter, ): string { @@ -147,13 +84,3 @@ export function invoiceItemFilterToJSON( InvoiceItemFilter$outboundSchema.parse(invoiceItemFilter), ); } - -export function invoiceItemFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemFilter' from JSON`, - ); -} diff --git a/src/models/components/invoiceitemsfilter.ts b/src/models/components/invoiceitemsfilter.ts index ce5051301..456248518 100644 --- a/src/models/components/invoiceitemsfilter.ts +++ b/src/models/components/invoiceitemsfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of invoice item, indicating whether it is an inventory item, a service, or another type. @@ -49,62 +46,15 @@ export type InvoiceItemsFilter = { transactionType?: TransactionType | null | undefined; }; -/** @internal */ -export const InvoiceItemType$inboundSchema: z.ZodNativeEnum< - typeof InvoiceItemType -> = z.nativeEnum(InvoiceItemType); - /** @internal */ export const InvoiceItemType$outboundSchema: z.ZodNativeEnum< typeof InvoiceItemType -> = InvoiceItemType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemType$ { - /** @deprecated use `InvoiceItemType$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemType$inboundSchema; - /** @deprecated use `InvoiceItemType$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemType$outboundSchema; -} - -/** @internal */ -export const TransactionType$inboundSchema: z.ZodNativeEnum< - typeof TransactionType -> = z.nativeEnum(TransactionType); +> = z.nativeEnum(InvoiceItemType); /** @internal */ export const TransactionType$outboundSchema: z.ZodNativeEnum< typeof TransactionType -> = TransactionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionType$ { - /** @deprecated use `TransactionType$inboundSchema` instead. */ - export const inboundSchema = TransactionType$inboundSchema; - /** @deprecated use `TransactionType$outboundSchema` instead. */ - export const outboundSchema = TransactionType$outboundSchema; -} - -/** @internal */ -export const InvoiceItemsFilter$inboundSchema: z.ZodType< - InvoiceItemsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - type: z.nullable(InvoiceItemType$inboundSchema).optional(), - transaction_type: z.nullable(TransactionType$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "transaction_type": "transactionType", - }); -}); +> = z.nativeEnum(TransactionType); /** @internal */ export type InvoiceItemsFilter$Outbound = { @@ -128,19 +78,6 @@ export const InvoiceItemsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemsFilter$ { - /** @deprecated use `InvoiceItemsFilter$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemsFilter$inboundSchema; - /** @deprecated use `InvoiceItemsFilter$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemsFilter$outboundSchema; - /** @deprecated use `InvoiceItemsFilter$Outbound` instead. */ - export type Outbound = InvoiceItemsFilter$Outbound; -} - export function invoiceItemsFilterToJSON( invoiceItemsFilter: InvoiceItemsFilter, ): string { @@ -148,13 +85,3 @@ export function invoiceItemsFilterToJSON( InvoiceItemsFilter$outboundSchema.parse(invoiceItemsFilter), ); } - -export function invoiceItemsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemsFilter' from JSON`, - ); -} diff --git a/src/models/components/invoiceitemssort.ts b/src/models/components/invoiceitemssort.ts index f569477a8..6ebe12d8f 100644 --- a/src/models/components/invoiceitemssort.ts +++ b/src/models/components/invoiceitemssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type InvoiceItemsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const InvoiceItemsSortBy$inboundSchema: z.ZodNativeEnum< - typeof InvoiceItemsSortBy -> = z.nativeEnum(InvoiceItemsSortBy); - /** @internal */ export const InvoiceItemsSortBy$outboundSchema: z.ZodNativeEnum< typeof InvoiceItemsSortBy -> = InvoiceItemsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemsSortBy$ { - /** @deprecated use `InvoiceItemsSortBy$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemsSortBy$inboundSchema; - /** @deprecated use `InvoiceItemsSortBy$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemsSortBy$outboundSchema; -} - -/** @internal */ -export const InvoiceItemsSort$inboundSchema: z.ZodType< - InvoiceItemsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: InvoiceItemsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(InvoiceItemsSortBy); /** @internal */ export type InvoiceItemsSort$Outbound = { @@ -83,19 +53,6 @@ export const InvoiceItemsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceItemsSort$ { - /** @deprecated use `InvoiceItemsSort$inboundSchema` instead. */ - export const inboundSchema = InvoiceItemsSort$inboundSchema; - /** @deprecated use `InvoiceItemsSort$outboundSchema` instead. */ - export const outboundSchema = InvoiceItemsSort$outboundSchema; - /** @deprecated use `InvoiceItemsSort$Outbound` instead. */ - export type Outbound = InvoiceItemsSort$Outbound; -} - export function invoiceItemsSortToJSON( invoiceItemsSort: InvoiceItemsSort, ): string { @@ -103,13 +60,3 @@ export function invoiceItemsSortToJSON( InvoiceItemsSort$outboundSchema.parse(invoiceItemsSort), ); } - -export function invoiceItemsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceItemsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceItemsSort' from JSON`, - ); -} diff --git a/src/models/components/invoicelineitem.ts b/src/models/components/invoicelineitem.ts index b4c05a647..f0ba5eb30 100644 --- a/src/models/components/invoicelineitem.ts +++ b/src/models/components/invoicelineitem.ts @@ -27,21 +27,9 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -300,7 +288,7 @@ export type InvoiceLineItemInput = { * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; customFields?: Array | undefined; /** * 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. @@ -312,23 +300,11 @@ export type InvoiceLineItemInput = { export const InvoiceLineItemType$inboundSchema: z.ZodNativeEnum< typeof InvoiceLineItemType > = z.nativeEnum(InvoiceLineItemType); - /** @internal */ export const InvoiceLineItemType$outboundSchema: z.ZodNativeEnum< typeof InvoiceLineItemType > = InvoiceLineItemType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceLineItemType$ { - /** @deprecated use `InvoiceLineItemType$inboundSchema` instead. */ - export const inboundSchema = InvoiceLineItemType$inboundSchema; - /** @deprecated use `InvoiceLineItemType$outboundSchema` instead. */ - export const outboundSchema = InvoiceLineItemType$outboundSchema; -} - /** @internal */ export const InvoiceLineItem$inboundSchema: z.ZodType< InvoiceLineItem, @@ -408,142 +384,6 @@ export const InvoiceLineItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type InvoiceLineItem$Outbound = { - id?: string | null | undefined; - row_id?: string | undefined; - code?: string | null | undefined; - line_number?: number | null | undefined; - description?: string | null | undefined; - type?: string | null | undefined; - tax_amount?: number | null | undefined; - total_amount?: number | null | undefined; - quantity?: number | null | undefined; - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - service_date?: string | null | undefined; - category_id?: string | null | undefined; - location_id?: string | null | undefined; - department_id?: string | null | undefined; - subsidiary_id?: string | null | undefined; - shipping_id?: string | null | undefined; - memo?: string | null | undefined; - prepaid?: boolean | null | undefined; - item?: LinkedInvoiceItem$Outbound | undefined; - tax_applicable_on?: string | null | undefined; - tax_recoverability?: string | null | undefined; - tax_method?: string | null | undefined; - worktags?: Array | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tracking_categories?: - | Array - | null - | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const InvoiceLineItem$outboundSchema: z.ZodType< - InvoiceLineItem$Outbound, - z.ZodTypeDef, - InvoiceLineItem -> = z.object({ - id: z.nullable(z.string()).optional(), - rowId: z.string().optional(), - code: z.nullable(z.string()).optional(), - lineNumber: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(InvoiceLineItemType$outboundSchema).optional(), - taxAmount: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - categoryId: z.nullable(z.string()).optional(), - locationId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - shippingId: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - prepaid: z.nullable(z.boolean()).optional(), - item: LinkedInvoiceItem$outboundSchema.optional(), - taxApplicableOn: z.nullable(z.string()).optional(), - taxRecoverability: z.nullable(z.string()).optional(), - taxMethod: z.nullable(z.string()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - rowId: "row_id", - lineNumber: "line_number", - taxAmount: "tax_amount", - totalAmount: "total_amount", - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - serviceDate: "service_date", - categoryId: "category_id", - locationId: "location_id", - departmentId: "department_id", - subsidiaryId: "subsidiary_id", - shippingId: "shipping_id", - taxApplicableOn: "tax_applicable_on", - taxRecoverability: "tax_recoverability", - taxMethod: "tax_method", - taxRate: "tax_rate", - trackingCategories: "tracking_categories", - ledgerAccount: "ledger_account", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceLineItem$ { - /** @deprecated use `InvoiceLineItem$inboundSchema` instead. */ - export const inboundSchema = InvoiceLineItem$inboundSchema; - /** @deprecated use `InvoiceLineItem$outboundSchema` instead. */ - export const outboundSchema = InvoiceLineItem$outboundSchema; - /** @deprecated use `InvoiceLineItem$Outbound` instead. */ - export type Outbound = InvoiceLineItem$Outbound; -} - -export function invoiceLineItemToJSON( - invoiceLineItem: InvoiceLineItem, -): string { - return JSON.stringify(InvoiceLineItem$outboundSchema.parse(invoiceLineItem)); -} - export function invoiceLineItemFromJSON( jsonString: string, ): SafeParseResult { @@ -554,73 +394,6 @@ export function invoiceLineItemFromJSON( ); } -/** @internal */ -export const InvoiceLineItemInput$inboundSchema: z.ZodType< - InvoiceLineItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - row_id: z.string().optional(), - code: z.nullable(z.string()).optional(), - line_number: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(InvoiceLineItemType$inboundSchema).optional(), - tax_amount: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unit_price: z.nullable(z.number()).optional(), - unit_of_measure: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - discount_amount: z.nullable(z.number()).optional(), - service_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - category_id: z.nullable(z.string()).optional(), - location_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - subsidiary_id: z.nullable(z.string()).optional(), - shipping_id: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - prepaid: z.nullable(z.boolean()).optional(), - item: LinkedInvoiceItem$inboundSchema.optional(), - tax_applicable_on: z.nullable(z.string()).optional(), - tax_recoverability: z.nullable(z.string()).optional(), - tax_method: z.nullable(z.string()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$inboundSchema)).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "row_id": "rowId", - "line_number": "lineNumber", - "tax_amount": "taxAmount", - "total_amount": "totalAmount", - "unit_price": "unitPrice", - "unit_of_measure": "unitOfMeasure", - "discount_percentage": "discountPercentage", - "discount_amount": "discountAmount", - "service_date": "serviceDate", - "category_id": "categoryId", - "location_id": "locationId", - "department_id": "departmentId", - "subsidiary_id": "subsidiaryId", - "shipping_id": "shippingId", - "tax_applicable_on": "taxApplicableOn", - "tax_recoverability": "taxRecoverability", - "tax_method": "taxMethod", - "tax_rate": "taxRate", - "tracking_categories": "trackingCategories", - "ledger_account": "ledgerAccount", - "custom_fields": "customFields", - "row_version": "rowVersion", - }); -}); - /** @internal */ export type InvoiceLineItemInput$Outbound = { id?: string | null | undefined; @@ -654,7 +427,7 @@ export type InvoiceLineItemInput$Outbound = { | Array | null | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; }; @@ -696,7 +469,7 @@ export const InvoiceLineItemInput$outboundSchema: z.ZodType< trackingCategories: z.nullable( z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), customFields: z.array(CustomField$outboundSchema).optional(), rowVersion: z.nullable(z.string()).optional(), }).transform((v) => { @@ -726,19 +499,6 @@ export const InvoiceLineItemInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceLineItemInput$ { - /** @deprecated use `InvoiceLineItemInput$inboundSchema` instead. */ - export const inboundSchema = InvoiceLineItemInput$inboundSchema; - /** @deprecated use `InvoiceLineItemInput$outboundSchema` instead. */ - export const outboundSchema = InvoiceLineItemInput$outboundSchema; - /** @deprecated use `InvoiceLineItemInput$Outbound` instead. */ - export type Outbound = InvoiceLineItemInput$Outbound; -} - export function invoiceLineItemInputToJSON( invoiceLineItemInput: InvoiceLineItemInput, ): string { @@ -746,13 +506,3 @@ export function invoiceLineItemInputToJSON( InvoiceLineItemInput$outboundSchema.parse(invoiceLineItemInput), ); } - -export function invoiceLineItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoiceLineItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoiceLineItemInput' from JSON`, - ); -} diff --git a/src/models/components/invoiceresponse.ts b/src/models/components/invoiceresponse.ts index 9aa50b3a3..3d2c3ec98 100644 --- a/src/models/components/invoiceresponse.ts +++ b/src/models/components/invoiceresponse.ts @@ -33,45 +33,6 @@ export const InvoiceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type InvoiceResponse$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; -}; - -/** @internal */ -export const InvoiceResponse$outboundSchema: z.ZodType< - InvoiceResponse$Outbound, - z.ZodTypeDef, - InvoiceResponse -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceResponse$ { - /** @deprecated use `InvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = InvoiceResponse$inboundSchema; - /** @deprecated use `InvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = InvoiceResponse$outboundSchema; - /** @deprecated use `InvoiceResponse$Outbound` instead. */ - export type Outbound = InvoiceResponse$Outbound; -} - -export function invoiceResponseToJSON( - invoiceResponse: InvoiceResponse, -): string { - return JSON.stringify(InvoiceResponse$outboundSchema.parse(invoiceResponse)); -} - export function invoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/invoicesfilter.ts b/src/models/components/invoicesfilter.ts index 9708016f9..86b4ca1b7 100644 --- a/src/models/components/invoicesfilter.ts +++ b/src/models/components/invoicesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type InvoicesFilter = { updatedSince?: Date | undefined; @@ -21,28 +18,6 @@ export type InvoicesFilter = { supplierId?: string | undefined; }; -/** @internal */ -export const InvoicesFilter$inboundSchema: z.ZodType< - InvoicesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - created_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - number: z.string().optional(), - supplier_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - "created_since": "createdSince", - "supplier_id": "supplierId", - }); -}); - /** @internal */ export type InvoicesFilter$Outbound = { updated_since?: string | undefined; @@ -69,29 +44,6 @@ export const InvoicesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoicesFilter$ { - /** @deprecated use `InvoicesFilter$inboundSchema` instead. */ - export const inboundSchema = InvoicesFilter$inboundSchema; - /** @deprecated use `InvoicesFilter$outboundSchema` instead. */ - export const outboundSchema = InvoicesFilter$outboundSchema; - /** @deprecated use `InvoicesFilter$Outbound` instead. */ - export type Outbound = InvoicesFilter$Outbound; -} - export function invoicesFilterToJSON(invoicesFilter: InvoicesFilter): string { return JSON.stringify(InvoicesFilter$outboundSchema.parse(invoicesFilter)); } - -export function invoicesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoicesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoicesFilter' from JSON`, - ); -} diff --git a/src/models/components/invoicessort.ts b/src/models/components/invoicessort.ts index 01fa3d519..00a8d2c19 100644 --- a/src/models/components/invoicessort.ts +++ b/src/models/components/invoicessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type InvoicesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const InvoicesSortBy$inboundSchema: z.ZodNativeEnum< - typeof InvoicesSortBy -> = z.nativeEnum(InvoicesSortBy); - /** @internal */ export const InvoicesSortBy$outboundSchema: z.ZodNativeEnum< typeof InvoicesSortBy -> = InvoicesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoicesSortBy$ { - /** @deprecated use `InvoicesSortBy$inboundSchema` instead. */ - export const inboundSchema = InvoicesSortBy$inboundSchema; - /** @deprecated use `InvoicesSortBy$outboundSchema` instead. */ - export const outboundSchema = InvoicesSortBy$outboundSchema; -} - -/** @internal */ -export const InvoicesSort$inboundSchema: z.ZodType< - InvoicesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: InvoicesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(InvoicesSortBy); /** @internal */ export type InvoicesSort$Outbound = { @@ -83,29 +53,6 @@ export const InvoicesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoicesSort$ { - /** @deprecated use `InvoicesSort$inboundSchema` instead. */ - export const inboundSchema = InvoicesSort$inboundSchema; - /** @deprecated use `InvoicesSort$outboundSchema` instead. */ - export const outboundSchema = InvoicesSort$outboundSchema; - /** @deprecated use `InvoicesSort$Outbound` instead. */ - export type Outbound = InvoicesSort$Outbound; -} - export function invoicesSortToJSON(invoicesSort: InvoicesSort): string { return JSON.stringify(InvoicesSort$outboundSchema.parse(invoicesSort)); } - -export function invoicesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InvoicesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InvoicesSort' from JSON`, - ); -} diff --git a/src/models/components/issuesfilter.ts b/src/models/components/issuesfilter.ts index 568dd5191..8fe0b5983 100644 --- a/src/models/components/issuesfilter.ts +++ b/src/models/components/issuesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type IssuesFilter = { /** @@ -23,22 +20,6 @@ export type IssuesFilter = { assigneeId?: string | undefined; }; -/** @internal */ -export const IssuesFilter$inboundSchema: z.ZodType< - IssuesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - status: z.array(z.string()).optional(), - since: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - assignee_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "assignee_id": "assigneeId", - }); -}); - /** @internal */ export type IssuesFilter$Outbound = { status?: Array | undefined; @@ -61,29 +42,6 @@ export const IssuesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssuesFilter$ { - /** @deprecated use `IssuesFilter$inboundSchema` instead. */ - export const inboundSchema = IssuesFilter$inboundSchema; - /** @deprecated use `IssuesFilter$outboundSchema` instead. */ - export const outboundSchema = IssuesFilter$outboundSchema; - /** @deprecated use `IssuesFilter$Outbound` instead. */ - export type Outbound = IssuesFilter$Outbound; -} - export function issuesFilterToJSON(issuesFilter: IssuesFilter): string { return JSON.stringify(IssuesFilter$outboundSchema.parse(issuesFilter)); } - -export function issuesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IssuesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssuesFilter' from JSON`, - ); -} diff --git a/src/models/components/job.ts b/src/models/components/job.ts index 81283ba26..dde2dcd01 100644 --- a/src/models/components/job.ts +++ b/src/models/components/job.ts @@ -9,34 +9,11 @@ import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - CustomField, - CustomField$inboundSchema, - CustomField$Outbound, - CustomField$outboundSchema, -} from "./customfield.js"; -import { - Department, - Department$inboundSchema, - Department$Outbound, - Department$outboundSchema, -} from "./department.js"; -import { - JobStatus, - JobStatus$inboundSchema, - JobStatus$outboundSchema, -} from "./jobstatus.js"; +import { Address, Address$inboundSchema } from "./address.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { CustomField, CustomField$inboundSchema } from "./customfield.js"; +import { Department, Department$inboundSchema } from "./department.js"; +import { JobStatus, JobStatus$inboundSchema } from "./jobstatus.js"; /** * The visibility of the job @@ -242,42 +219,11 @@ export type Job = { export const Visibility$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Visibility); -/** @internal */ -export const Visibility$outboundSchema: z.ZodNativeEnum = - Visibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Visibility$ { - /** @deprecated use `Visibility$inboundSchema` instead. */ - export const inboundSchema = Visibility$inboundSchema; - /** @deprecated use `Visibility$outboundSchema` instead. */ - export const outboundSchema = Visibility$outboundSchema; -} - /** @internal */ export const EmploymentTerms$inboundSchema: z.ZodNativeEnum< typeof EmploymentTerms > = z.nativeEnum(EmploymentTerms); -/** @internal */ -export const EmploymentTerms$outboundSchema: z.ZodNativeEnum< - typeof EmploymentTerms -> = EmploymentTerms$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentTerms$ { - /** @deprecated use `EmploymentTerms$inboundSchema` instead. */ - export const inboundSchema = EmploymentTerms$inboundSchema; - /** @deprecated use `EmploymentTerms$outboundSchema` instead. */ - export const outboundSchema = EmploymentTerms$outboundSchema; -} - /** @internal */ export const Branch$inboundSchema: z.ZodType = z .object({ @@ -285,39 +231,6 @@ export const Branch$inboundSchema: z.ZodType = z name: z.string().optional(), }); -/** @internal */ -export type Branch$Outbound = { - id?: string | undefined; - name?: string | undefined; -}; - -/** @internal */ -export const Branch$outboundSchema: z.ZodType< - Branch$Outbound, - z.ZodTypeDef, - Branch -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Branch$ { - /** @deprecated use `Branch$inboundSchema` instead. */ - export const inboundSchema = Branch$inboundSchema; - /** @deprecated use `Branch$outboundSchema` instead. */ - export const outboundSchema = Branch$outboundSchema; - /** @deprecated use `Branch$Outbound` instead. */ - export type Outbound = Branch$Outbound; -} - -export function branchToJSON(branch: Branch): string { - return JSON.stringify(Branch$outboundSchema.parse(branch)); -} - export function branchFromJSON( jsonString: string, ): SafeParseResult { @@ -335,39 +248,6 @@ export const Blocks$inboundSchema: z.ZodType = z content: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Blocks$Outbound = { - title?: string | undefined; - content?: string | null | undefined; -}; - -/** @internal */ -export const Blocks$outboundSchema: z.ZodType< - Blocks$Outbound, - z.ZodTypeDef, - Blocks -> = z.object({ - title: z.string().optional(), - content: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Blocks$ { - /** @deprecated use `Blocks$inboundSchema` instead. */ - export const inboundSchema = Blocks$inboundSchema; - /** @deprecated use `Blocks$outboundSchema` instead. */ - export const outboundSchema = Blocks$outboundSchema; - /** @deprecated use `Blocks$Outbound` instead. */ - export type Outbound = Blocks$Outbound; -} - -export function blocksToJSON(blocks: Blocks): string { - return JSON.stringify(Blocks$outboundSchema.parse(blocks)); -} - export function blocksFromJSON( jsonString: string, ): SafeParseResult { @@ -387,43 +267,6 @@ export const Salary$inboundSchema: z.ZodType = z interval: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Salary$Outbound = { - min?: number | undefined; - max?: number | undefined; - currency?: string | null | undefined; - interval?: string | null | undefined; -}; - -/** @internal */ -export const Salary$outboundSchema: z.ZodType< - Salary$Outbound, - z.ZodTypeDef, - Salary -> = z.object({ - min: z.number().int().optional(), - max: z.number().int().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - interval: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Salary$ { - /** @deprecated use `Salary$inboundSchema` instead. */ - export const inboundSchema = Salary$inboundSchema; - /** @deprecated use `Salary$outboundSchema` instead. */ - export const outboundSchema = Salary$outboundSchema; - /** @deprecated use `Salary$Outbound` instead. */ - export type Outbound = Salary$Outbound; -} - -export function salaryToJSON(salary: Salary): string { - return JSON.stringify(Salary$outboundSchema.parse(salary)); -} - export function salaryFromJSON( jsonString: string, ): SafeParseResult { @@ -438,21 +281,6 @@ export function salaryFromJSON( export const JobType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(JobType); -/** @internal */ -export const JobType$outboundSchema: z.ZodNativeEnum = - JobType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobType$ { - /** @deprecated use `JobType$inboundSchema` instead. */ - export const inboundSchema = JobType$inboundSchema; - /** @deprecated use `JobType$outboundSchema` instead. */ - export const outboundSchema = JobType$outboundSchema; -} - /** @internal */ export const JobLinks$inboundSchema: z.ZodType< JobLinks, @@ -463,39 +291,6 @@ export const JobLinks$inboundSchema: z.ZodType< url: z.string().optional(), }); -/** @internal */ -export type JobLinks$Outbound = { - type?: string | undefined; - url?: string | undefined; -}; - -/** @internal */ -export const JobLinks$outboundSchema: z.ZodType< - JobLinks$Outbound, - z.ZodTypeDef, - JobLinks -> = z.object({ - type: JobType$outboundSchema.optional(), - url: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobLinks$ { - /** @deprecated use `JobLinks$inboundSchema` instead. */ - export const inboundSchema = JobLinks$inboundSchema; - /** @deprecated use `JobLinks$outboundSchema` instead. */ - export const outboundSchema = JobLinks$outboundSchema; - /** @deprecated use `JobLinks$Outbound` instead. */ - export type Outbound = JobLinks$Outbound; -} - -export function jobLinksToJSON(jobLinks: JobLinks): string { - return JSON.stringify(JobLinks$outboundSchema.parse(jobLinks)); -} - export function jobLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -580,138 +375,6 @@ export const Job$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Job$Outbound = { - id?: string | undefined; - slug?: string | null | undefined; - title?: string | null | undefined; - sequence?: number | undefined; - visibility?: string | undefined; - status?: string | undefined; - code?: string | undefined; - language?: string | null | undefined; - employment_terms?: string | null | undefined; - experience?: string | undefined; - location?: string | null | undefined; - remote?: boolean | null | undefined; - requisition_id?: string | undefined; - department?: Department$Outbound | undefined; - branch?: Branch$Outbound | undefined; - recruiters?: Array | null | undefined; - hiring_managers?: Array | undefined; - followers?: Array | null | undefined; - description?: string | null | undefined; - description_html?: string | null | undefined; - blocks?: Array | undefined; - closing?: string | null | undefined; - closing_html?: string | null | undefined; - closing_date?: string | null | undefined; - salary?: Salary$Outbound | undefined; - url?: string | null | undefined; - job_portal_url?: string | null | undefined; - record_url?: string | null | undefined; - links?: Array | undefined; - confidential?: boolean | undefined; - available_to_employees?: boolean | undefined; - tags?: Array | null | undefined; - addresses?: Array | undefined; - custom_fields?: Array | undefined; - deleted?: boolean | null | undefined; - owner_id?: string | null | undefined; - published_at?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const Job$outboundSchema: z.ZodType = z - .object({ - id: z.string().optional(), - slug: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - sequence: z.number().int().optional(), - visibility: Visibility$outboundSchema.optional(), - status: JobStatus$outboundSchema.optional(), - code: z.string().optional(), - language: z.nullable(z.string()).optional(), - employmentTerms: z.nullable(EmploymentTerms$outboundSchema).optional(), - experience: z.string().optional(), - location: z.nullable(z.string()).optional(), - remote: z.nullable(z.boolean()).optional(), - requisitionId: z.string().optional(), - department: Department$outboundSchema.optional(), - branch: z.lazy(() => Branch$outboundSchema).optional(), - recruiters: z.nullable(z.array(z.string())).optional(), - hiringManagers: z.array(z.string()).optional(), - followers: z.nullable(z.array(z.string())).optional(), - description: z.nullable(z.string()).optional(), - descriptionHtml: z.nullable(z.string()).optional(), - blocks: z.array(z.lazy(() => Blocks$outboundSchema)).optional(), - closing: z.nullable(z.string()).optional(), - closingHtml: z.nullable(z.string()).optional(), - closingDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - salary: z.lazy(() => Salary$outboundSchema).optional(), - url: z.nullable(z.string()).optional(), - jobPortalUrl: z.nullable(z.string()).optional(), - recordUrl: z.nullable(z.string()).optional(), - links: z.array(z.lazy(() => JobLinks$outboundSchema)).optional(), - confidential: z.boolean().optional(), - availableToEmployees: z.boolean().optional(), - tags: z.nullable(z.array(z.string())).optional(), - addresses: z.array(Address$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - deleted: z.nullable(z.boolean()).optional(), - ownerId: z.nullable(z.string()).optional(), - publishedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - }).transform((v) => { - return remap$(v, { - employmentTerms: "employment_terms", - requisitionId: "requisition_id", - hiringManagers: "hiring_managers", - descriptionHtml: "description_html", - closingHtml: "closing_html", - closingDate: "closing_date", - jobPortalUrl: "job_portal_url", - recordUrl: "record_url", - availableToEmployees: "available_to_employees", - customFields: "custom_fields", - ownerId: "owner_id", - publishedAt: "published_at", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Job$ { - /** @deprecated use `Job$inboundSchema` instead. */ - export const inboundSchema = Job$inboundSchema; - /** @deprecated use `Job$outboundSchema` instead. */ - export const outboundSchema = Job$outboundSchema; - /** @deprecated use `Job$Outbound` instead. */ - export type Outbound = Job$Outbound; -} - -export function jobToJSON(job: Job): string { - return JSON.stringify(Job$outboundSchema.parse(job)); -} - export function jobFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/jobstatus.ts b/src/models/components/jobstatus.ts index 1cc8fda95..d43957b4a 100644 --- a/src/models/components/jobstatus.ts +++ b/src/models/components/jobstatus.ts @@ -29,18 +29,3 @@ export type JobStatus = ClosedEnum; /** @internal */ export const JobStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(JobStatus); - -/** @internal */ -export const JobStatus$outboundSchema: z.ZodNativeEnum = - JobStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobStatus$ { - /** @deprecated use `JobStatus$inboundSchema` instead. */ - export const inboundSchema = JobStatus$inboundSchema; - /** @deprecated use `JobStatus$outboundSchema` instead. */ - export const outboundSchema = JobStatus$outboundSchema; -} diff --git a/src/models/components/journalentriesfilter.ts b/src/models/components/journalentriesfilter.ts index 2fb06090d..456517c7c 100644 --- a/src/models/components/journalentriesfilter.ts +++ b/src/models/components/journalentriesfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const JournalEntriesFilterStatus = { Draft: "draft", @@ -28,42 +25,10 @@ export type JournalEntriesFilter = { status?: JournalEntriesFilterStatus | undefined; }; -/** @internal */ -export const JournalEntriesFilterStatus$inboundSchema: z.ZodNativeEnum< - typeof JournalEntriesFilterStatus -> = z.nativeEnum(JournalEntriesFilterStatus); - /** @internal */ export const JournalEntriesFilterStatus$outboundSchema: z.ZodNativeEnum< typeof JournalEntriesFilterStatus -> = JournalEntriesFilterStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntriesFilterStatus$ { - /** @deprecated use `JournalEntriesFilterStatus$inboundSchema` instead. */ - export const inboundSchema = JournalEntriesFilterStatus$inboundSchema; - /** @deprecated use `JournalEntriesFilterStatus$outboundSchema` instead. */ - export const outboundSchema = JournalEntriesFilterStatus$outboundSchema; -} - -/** @internal */ -export const JournalEntriesFilter$inboundSchema: z.ZodType< - JournalEntriesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - status: JournalEntriesFilterStatus$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - }); -}); +> = z.nativeEnum(JournalEntriesFilterStatus); /** @internal */ export type JournalEntriesFilter$Outbound = { @@ -85,19 +50,6 @@ export const JournalEntriesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntriesFilter$ { - /** @deprecated use `JournalEntriesFilter$inboundSchema` instead. */ - export const inboundSchema = JournalEntriesFilter$inboundSchema; - /** @deprecated use `JournalEntriesFilter$outboundSchema` instead. */ - export const outboundSchema = JournalEntriesFilter$outboundSchema; - /** @deprecated use `JournalEntriesFilter$Outbound` instead. */ - export type Outbound = JournalEntriesFilter$Outbound; -} - export function journalEntriesFilterToJSON( journalEntriesFilter: JournalEntriesFilter, ): string { @@ -105,13 +57,3 @@ export function journalEntriesFilterToJSON( JournalEntriesFilter$outboundSchema.parse(journalEntriesFilter), ); } - -export function journalEntriesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => JournalEntriesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'JournalEntriesFilter' from JSON`, - ); -} diff --git a/src/models/components/journalentriessort.ts b/src/models/components/journalentriessort.ts index 00265d6fe..94627b961 100644 --- a/src/models/components/journalentriessort.ts +++ b/src/models/components/journalentriessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type JournalEntriesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const JournalEntriesSortBy$inboundSchema: z.ZodNativeEnum< - typeof JournalEntriesSortBy -> = z.nativeEnum(JournalEntriesSortBy); - /** @internal */ export const JournalEntriesSortBy$outboundSchema: z.ZodNativeEnum< typeof JournalEntriesSortBy -> = JournalEntriesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntriesSortBy$ { - /** @deprecated use `JournalEntriesSortBy$inboundSchema` instead. */ - export const inboundSchema = JournalEntriesSortBy$inboundSchema; - /** @deprecated use `JournalEntriesSortBy$outboundSchema` instead. */ - export const outboundSchema = JournalEntriesSortBy$outboundSchema; -} - -/** @internal */ -export const JournalEntriesSort$inboundSchema: z.ZodType< - JournalEntriesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: JournalEntriesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(JournalEntriesSortBy); /** @internal */ export type JournalEntriesSort$Outbound = { @@ -83,19 +53,6 @@ export const JournalEntriesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntriesSort$ { - /** @deprecated use `JournalEntriesSort$inboundSchema` instead. */ - export const inboundSchema = JournalEntriesSort$inboundSchema; - /** @deprecated use `JournalEntriesSort$outboundSchema` instead. */ - export const outboundSchema = JournalEntriesSort$outboundSchema; - /** @deprecated use `JournalEntriesSort$Outbound` instead. */ - export type Outbound = JournalEntriesSort$Outbound; -} - export function journalEntriesSortToJSON( journalEntriesSort: JournalEntriesSort, ): string { @@ -103,13 +60,3 @@ export function journalEntriesSortToJSON( JournalEntriesSort$outboundSchema.parse(journalEntriesSort), ); } - -export function journalEntriesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => JournalEntriesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'JournalEntriesSort' from JSON`, - ); -} diff --git a/src/models/components/journalentry.ts b/src/models/components/journalentry.ts index a502135e6..91f175991 100644 --- a/src/models/components/journalentry.ts +++ b/src/models/components/journalentry.ts @@ -22,10 +22,7 @@ import { import { JournalEntryLineItem, JournalEntryLineItem$inboundSchema, - JournalEntryLineItem$Outbound, - JournalEntryLineItem$outboundSchema, JournalEntryLineItemInput, - JournalEntryLineItemInput$inboundSchema, JournalEntryLineItemInput$Outbound, JournalEntryLineItemInput$outboundSchema, } from "./journalentrylineitem.js"; @@ -260,23 +257,11 @@ export type JournalEntryInput = { export const JournalEntryStatus$inboundSchema: z.ZodNativeEnum< typeof JournalEntryStatus > = z.nativeEnum(JournalEntryStatus); - /** @internal */ export const JournalEntryStatus$outboundSchema: z.ZodNativeEnum< typeof JournalEntryStatus > = JournalEntryStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntryStatus$ { - /** @deprecated use `JournalEntryStatus$inboundSchema` instead. */ - export const inboundSchema = JournalEntryStatus$inboundSchema; - /** @deprecated use `JournalEntryStatus$outboundSchema` instead. */ - export const outboundSchema = JournalEntryStatus$outboundSchema; -} - /** @internal */ export const JournalEntry$inboundSchema: z.ZodType< JournalEntry, @@ -345,121 +330,6 @@ export const JournalEntry$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type JournalEntry$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - title?: string | null | undefined; - currency_rate?: number | null | undefined; - currency?: string | null | undefined; - company_id?: string | null | undefined; - line_items?: Array | undefined; - status?: string | null | undefined; - memo?: string | null | undefined; - posted_at?: string | undefined; - journal_symbol?: string | null | undefined; - tax_type?: string | null | undefined; - tax_code?: string | null | undefined; - number?: string | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - accounting_period?: string | null | undefined; - tax_inclusive?: boolean | null | undefined; - source_type?: string | null | undefined; - source_id?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - custom_fields?: Array | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const JournalEntry$outboundSchema: z.ZodType< - JournalEntry$Outbound, - z.ZodTypeDef, - JournalEntry -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - currencyRate: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - lineItems: z.array(JournalEntryLineItem$outboundSchema).optional(), - status: z.nullable(JournalEntryStatus$outboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - postedAt: z.date().transform(v => v.toISOString()).optional(), - journalSymbol: z.nullable(z.string()).optional(), - taxType: z.nullable(z.string()).optional(), - taxCode: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - accountingPeriod: z.nullable(z.string()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - sourceType: z.nullable(z.string()).optional(), - sourceId: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - currencyRate: "currency_rate", - companyId: "company_id", - lineItems: "line_items", - postedAt: "posted_at", - journalSymbol: "journal_symbol", - taxType: "tax_type", - taxCode: "tax_code", - trackingCategories: "tracking_categories", - accountingPeriod: "accounting_period", - taxInclusive: "tax_inclusive", - sourceType: "source_type", - sourceId: "source_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - customFields: "custom_fields", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntry$ { - /** @deprecated use `JournalEntry$inboundSchema` instead. */ - export const inboundSchema = JournalEntry$inboundSchema; - /** @deprecated use `JournalEntry$outboundSchema` instead. */ - export const outboundSchema = JournalEntry$outboundSchema; - /** @deprecated use `JournalEntry$Outbound` instead. */ - export type Outbound = JournalEntry$Outbound; -} - -export function journalEntryToJSON(journalEntry: JournalEntry): string { - return JSON.stringify(JournalEntry$outboundSchema.parse(journalEntry)); -} - export function journalEntryFromJSON( jsonString: string, ): SafeParseResult { @@ -470,57 +340,6 @@ export function journalEntryFromJSON( ); } -/** @internal */ -export const JournalEntryInput$inboundSchema: z.ZodType< - JournalEntryInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - currency_rate: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - line_items: z.array(JournalEntryLineItemInput$inboundSchema).optional(), - status: z.nullable(JournalEntryStatus$inboundSchema).optional(), - memo: z.nullable(z.string()).optional(), - posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - journal_symbol: z.nullable(z.string()).optional(), - tax_type: z.nullable(z.string()).optional(), - tax_code: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - accounting_period: z.nullable(z.string()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - source_type: z.nullable(z.string()).optional(), - source_id: z.nullable(z.string()).optional(), - row_version: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "currency_rate": "currencyRate", - "company_id": "companyId", - "line_items": "lineItems", - "posted_at": "postedAt", - "journal_symbol": "journalSymbol", - "tax_type": "taxType", - "tax_code": "taxCode", - "tracking_categories": "trackingCategories", - "accounting_period": "accountingPeriod", - "tax_inclusive": "taxInclusive", - "source_type": "sourceType", - "source_id": "sourceId", - "row_version": "rowVersion", - "custom_fields": "customFields", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type JournalEntryInput$Outbound = { display_id?: string | null | undefined; @@ -599,19 +418,6 @@ export const JournalEntryInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntryInput$ { - /** @deprecated use `JournalEntryInput$inboundSchema` instead. */ - export const inboundSchema = JournalEntryInput$inboundSchema; - /** @deprecated use `JournalEntryInput$outboundSchema` instead. */ - export const outboundSchema = JournalEntryInput$outboundSchema; - /** @deprecated use `JournalEntryInput$Outbound` instead. */ - export type Outbound = JournalEntryInput$Outbound; -} - export function journalEntryInputToJSON( journalEntryInput: JournalEntryInput, ): string { @@ -619,13 +425,3 @@ export function journalEntryInputToJSON( JournalEntryInput$outboundSchema.parse(journalEntryInput), ); } - -export function journalEntryInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => JournalEntryInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'JournalEntryInput' from JSON`, - ); -} diff --git a/src/models/components/journalentrylineitem.ts b/src/models/components/journalentrylineitem.ts index ceb67ce5b..3b75a5445 100644 --- a/src/models/components/journalentrylineitem.ts +++ b/src/models/components/journalentrylineitem.ts @@ -17,12 +17,9 @@ import { import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; @@ -32,33 +29,18 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedSupplier, LinkedSupplier$inboundSchema, - LinkedSupplier$Outbound, - LinkedSupplier$outboundSchema, } from "./linkedsupplier.js"; import { LinkedSupplierInput, - LinkedSupplierInput$inboundSchema, LinkedSupplierInput$Outbound, LinkedSupplierInput$outboundSchema, } from "./linkedsupplierinput.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -180,7 +162,7 @@ export type JournalEntryLineItemInput = { * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; - ledgerAccount: LinkedLedgerAccountInput | null; + ledgerAccount: LinkedLedgerAccount | null; /** * The customer this entity is linked to. */ @@ -211,23 +193,11 @@ export type JournalEntryLineItemInput = { export const JournalEntryLineItemType$inboundSchema: z.ZodNativeEnum< typeof JournalEntryLineItemType > = z.nativeEnum(JournalEntryLineItemType); - /** @internal */ export const JournalEntryLineItemType$outboundSchema: z.ZodNativeEnum< typeof JournalEntryLineItemType > = JournalEntryLineItemType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntryLineItemType$ { - /** @deprecated use `JournalEntryLineItemType$inboundSchema` instead. */ - export const inboundSchema = JournalEntryLineItemType$inboundSchema; - /** @deprecated use `JournalEntryLineItemType$outboundSchema` instead. */ - export const outboundSchema = JournalEntryLineItemType$outboundSchema; -} - /** @internal */ export const JournalEntryLineItem$inboundSchema: z.ZodType< JournalEntryLineItem, @@ -268,93 +238,6 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type JournalEntryLineItem$Outbound = { - id?: string | undefined; - description?: string | null | undefined; - tax_amount?: number | null | undefined; - sub_total?: number | null | undefined; - total_amount?: number | null | undefined; - type: string; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tracking_category?: - | DeprecatedLinkedTrackingCategory$Outbound - | null - | undefined; - tracking_categories?: - | Array - | null - | undefined; - ledger_account: LinkedLedgerAccount$Outbound | null; - customer?: LinkedCustomer$Outbound | null | undefined; - supplier?: LinkedSupplier$Outbound | null | undefined; - department_id?: string | null | undefined; - location_id?: string | null | undefined; - line_number?: number | null | undefined; - worktags?: Array | undefined; -}; - -/** @internal */ -export const JournalEntryLineItem$outboundSchema: z.ZodType< - JournalEntryLineItem$Outbound, - z.ZodTypeDef, - JournalEntryLineItem -> = z.object({ - id: z.string().optional(), - description: z.nullable(z.string()).optional(), - taxAmount: z.nullable(z.number()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()).optional(), - type: JournalEntryLineItemType$outboundSchema, - taxRate: LinkedTaxRate$outboundSchema.optional(), - trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema) - .optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - supplier: z.nullable(LinkedSupplier$outboundSchema).optional(), - departmentId: z.nullable(z.string()).optional(), - locationId: z.nullable(z.string()).optional(), - lineNumber: z.nullable(z.number().int()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - taxAmount: "tax_amount", - subTotal: "sub_total", - totalAmount: "total_amount", - taxRate: "tax_rate", - trackingCategory: "tracking_category", - trackingCategories: "tracking_categories", - ledgerAccount: "ledger_account", - departmentId: "department_id", - locationId: "location_id", - lineNumber: "line_number", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntryLineItem$ { - /** @deprecated use `JournalEntryLineItem$inboundSchema` instead. */ - export const inboundSchema = JournalEntryLineItem$inboundSchema; - /** @deprecated use `JournalEntryLineItem$outboundSchema` instead. */ - export const outboundSchema = JournalEntryLineItem$outboundSchema; - /** @deprecated use `JournalEntryLineItem$Outbound` instead. */ - export type Outbound = JournalEntryLineItem$Outbound; -} - -export function journalEntryLineItemToJSON( - journalEntryLineItem: JournalEntryLineItem, -): string { - return JSON.stringify( - JournalEntryLineItem$outboundSchema.parse(journalEntryLineItem), - ); -} - export function journalEntryLineItemFromJSON( jsonString: string, ): SafeParseResult { @@ -365,45 +248,6 @@ export function journalEntryLineItemFromJSON( ); } -/** @internal */ -export const JournalEntryLineItemInput$inboundSchema: z.ZodType< - JournalEntryLineItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - tax_amount: z.nullable(z.number()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()).optional(), - type: JournalEntryLineItemType$inboundSchema, - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tracking_category: z.nullable(DeprecatedLinkedTrackingCategory$inboundSchema) - .optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(), - department_id: z.nullable(z.string()).optional(), - location_id: z.nullable(z.string()).optional(), - line_number: z.nullable(z.number().int()).optional(), - worktags: z.array(z.nullable(LinkedWorktag$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "tax_amount": "taxAmount", - "sub_total": "subTotal", - "total_amount": "totalAmount", - "tax_rate": "taxRate", - "tracking_category": "trackingCategory", - "tracking_categories": "trackingCategories", - "ledger_account": "ledgerAccount", - "department_id": "departmentId", - "location_id": "locationId", - "line_number": "lineNumber", - }); -}); - /** @internal */ export type JournalEntryLineItemInput$Outbound = { description?: string | null | undefined; @@ -420,7 +264,7 @@ export type JournalEntryLineItemInput$Outbound = { | Array | null | undefined; - ledger_account: LinkedLedgerAccountInput$Outbound | null; + ledger_account: LinkedLedgerAccount$Outbound | null; customer?: LinkedCustomerInput$Outbound | null | undefined; supplier?: LinkedSupplierInput$Outbound | null | undefined; department_id?: string | null | undefined; @@ -446,7 +290,7 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType< trackingCategories: z.nullable( z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema), customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(), supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(), departmentId: z.nullable(z.string()).optional(), @@ -468,19 +312,6 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JournalEntryLineItemInput$ { - /** @deprecated use `JournalEntryLineItemInput$inboundSchema` instead. */ - export const inboundSchema = JournalEntryLineItemInput$inboundSchema; - /** @deprecated use `JournalEntryLineItemInput$outboundSchema` instead. */ - export const outboundSchema = JournalEntryLineItemInput$outboundSchema; - /** @deprecated use `JournalEntryLineItemInput$Outbound` instead. */ - export type Outbound = JournalEntryLineItemInput$Outbound; -} - export function journalEntryLineItemInputToJSON( journalEntryLineItemInput: JournalEntryLineItemInput, ): string { @@ -488,13 +319,3 @@ export function journalEntryLineItemInputToJSON( JournalEntryLineItemInput$outboundSchema.parse(journalEntryLineItemInput), ); } - -export function journalEntryLineItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => JournalEntryLineItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'JournalEntryLineItemInput' from JSON`, - ); -} diff --git a/src/models/components/lead.ts b/src/models/components/lead.ts index a26af2b3d..53960f919 100644 --- a/src/models/components/lead.ts +++ b/src/models/components/lead.ts @@ -7,53 +7,17 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - CustomField, - CustomField$inboundSchema, - CustomField$Outbound, - CustomField$outboundSchema, -} from "./customfield.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; +import { Address, Address$inboundSchema } from "./address.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { CustomField, CustomField$inboundSchema } from "./customfield.js"; +import { Email, Email$inboundSchema } from "./email.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; -import { - PhoneNumber, - PhoneNumber$inboundSchema, - PhoneNumber$Outbound, - PhoneNumber$outboundSchema, -} from "./phonenumber.js"; -import { - SocialLink, - SocialLink$inboundSchema, - SocialLink$Outbound, - SocialLink$outboundSchema, -} from "./sociallink.js"; -import { - Website, - Website$inboundSchema, - Website$Outbound, - Website$outboundSchema, -} from "./website.js"; +import { PhoneNumber, PhoneNumber$inboundSchema } from "./phonenumber.js"; +import { SocialLink, SocialLink$inboundSchema } from "./sociallink.js"; +import { Website, Website$inboundSchema } from "./website.js"; export type Lead = { /** @@ -203,109 +167,6 @@ export const Lead$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Lead$Outbound = { - id?: string | undefined; - name: string; - company_name?: string | null | undefined; - owner_id?: string | null | undefined; - owner_name?: string | null | undefined; - company_id?: string | null | undefined; - lead_id?: string | null | undefined; - lead_source?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - description?: string | null | undefined; - prefix?: string | null | undefined; - title?: string | null | undefined; - language?: string | null | undefined; - status?: string | null | undefined; - monetary_amount?: number | null | undefined; - currency?: string | null | undefined; - fax?: string | null | undefined; - websites?: Array | undefined; - addresses?: Array | undefined; - social_links?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - custom_fields?: Array | null | undefined; - tags?: Array | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Lead$outboundSchema: z.ZodType = - z.object({ - id: z.string().optional(), - name: z.string(), - companyName: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - ownerName: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - leadId: z.nullable(z.string()).optional(), - leadSource: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - monetaryAmount: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - fax: z.nullable(z.string()).optional(), - websites: z.array(Website$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - socialLinks: z.array(SocialLink$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(), - tags: z.nullable(z.array(z.string())).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - companyName: "company_name", - ownerId: "owner_id", - ownerName: "owner_name", - companyId: "company_id", - leadId: "lead_id", - leadSource: "lead_source", - firstName: "first_name", - lastName: "last_name", - monetaryAmount: "monetary_amount", - socialLinks: "social_links", - phoneNumbers: "phone_numbers", - customFields: "custom_fields", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Lead$ { - /** @deprecated use `Lead$inboundSchema` instead. */ - export const inboundSchema = Lead$inboundSchema; - /** @deprecated use `Lead$outboundSchema` instead. */ - export const outboundSchema = Lead$outboundSchema; - /** @deprecated use `Lead$Outbound` instead. */ - export type Outbound = Lead$Outbound; -} - -export function leadToJSON(lead: Lead): string { - return JSON.stringify(Lead$outboundSchema.parse(lead)); -} - export function leadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/leadinput.ts b/src/models/components/leadinput.ts index 45fbf8384..cdd511239 100644 --- a/src/models/components/leadinput.ts +++ b/src/models/components/leadinput.ts @@ -4,53 +4,35 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, - Address$inboundSchema, Address$Outbound, Address$outboundSchema, } from "./address.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$outboundSchema } from "./currency.js"; import { CustomField, - CustomField$inboundSchema, CustomField$Outbound, CustomField$outboundSchema, } from "./customfield.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; +import { Email, Email$Outbound, Email$outboundSchema } from "./email.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; import { PhoneNumber, - PhoneNumber$inboundSchema, PhoneNumber$Outbound, PhoneNumber$outboundSchema, } from "./phonenumber.js"; import { SocialLink, - SocialLink$inboundSchema, SocialLink$Outbound, SocialLink$outboundSchema, } from "./sociallink.js"; import { Website, - Website$inboundSchema, Website$Outbound, Website$outboundSchema, } from "./website.js"; @@ -134,55 +116,6 @@ export type LeadInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const LeadInput$inboundSchema: z.ZodType< - LeadInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - company_name: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - owner_name: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - lead_id: z.nullable(z.string()).optional(), - lead_source: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - prefix: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - monetary_amount: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - fax: z.nullable(z.string()).optional(), - websites: z.array(Website$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - social_links: z.array(SocialLink$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(), - tags: z.nullable(z.array(z.string())).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "company_name": "companyName", - "owner_id": "ownerId", - "owner_name": "ownerName", - "company_id": "companyId", - "lead_id": "leadId", - "lead_source": "leadSource", - "first_name": "firstName", - "last_name": "lastName", - "monetary_amount": "monetaryAmount", - "social_links": "socialLinks", - "phone_numbers": "phoneNumbers", - "custom_fields": "customFields", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type LeadInput$Outbound = { name: string; @@ -261,29 +194,6 @@ export const LeadInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LeadInput$ { - /** @deprecated use `LeadInput$inboundSchema` instead. */ - export const inboundSchema = LeadInput$inboundSchema; - /** @deprecated use `LeadInput$outboundSchema` instead. */ - export const outboundSchema = LeadInput$outboundSchema; - /** @deprecated use `LeadInput$Outbound` instead. */ - export type Outbound = LeadInput$Outbound; -} - export function leadInputToJSON(leadInput: LeadInput): string { return JSON.stringify(LeadInput$outboundSchema.parse(leadInput)); } - -export function leadInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LeadInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LeadInput' from JSON`, - ); -} diff --git a/src/models/components/leadsfilter.ts b/src/models/components/leadsfilter.ts index 95cd57ed1..70490a548 100644 --- a/src/models/components/leadsfilter.ts +++ b/src/models/components/leadsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LeadsFilter = { /** @@ -31,25 +28,6 @@ export type LeadsFilter = { phoneNumber?: string | undefined; }; -/** @internal */ -export const LeadsFilter$inboundSchema: z.ZodType< - LeadsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - first_name: z.string().optional(), - last_name: z.string().optional(), - email: z.string().optional(), - phone_number: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "phone_number": "phoneNumber", - }); -}); - /** @internal */ export type LeadsFilter$Outbound = { name?: string | undefined; @@ -78,29 +56,6 @@ export const LeadsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LeadsFilter$ { - /** @deprecated use `LeadsFilter$inboundSchema` instead. */ - export const inboundSchema = LeadsFilter$inboundSchema; - /** @deprecated use `LeadsFilter$outboundSchema` instead. */ - export const outboundSchema = LeadsFilter$outboundSchema; - /** @deprecated use `LeadsFilter$Outbound` instead. */ - export type Outbound = LeadsFilter$Outbound; -} - export function leadsFilterToJSON(leadsFilter: LeadsFilter): string { return JSON.stringify(LeadsFilter$outboundSchema.parse(leadsFilter)); } - -export function leadsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LeadsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LeadsFilter' from JSON`, - ); -} diff --git a/src/models/components/leadssort.ts b/src/models/components/leadssort.ts index 607beda9a..6cdf66b7d 100644 --- a/src/models/components/leadssort.ts +++ b/src/models/components/leadssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -41,34 +37,9 @@ export type LeadsSort = { }; /** @internal */ -export const LeadsSortBy$inboundSchema: z.ZodNativeEnum = z +export const LeadsSortBy$outboundSchema: z.ZodNativeEnum = z .nativeEnum(LeadsSortBy); -/** @internal */ -export const LeadsSortBy$outboundSchema: z.ZodNativeEnum = - LeadsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LeadsSortBy$ { - /** @deprecated use `LeadsSortBy$inboundSchema` instead. */ - export const inboundSchema = LeadsSortBy$inboundSchema; - /** @deprecated use `LeadsSortBy$outboundSchema` instead. */ - export const outboundSchema = LeadsSortBy$outboundSchema; -} - -/** @internal */ -export const LeadsSort$inboundSchema: z.ZodType< - LeadsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: LeadsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); - /** @internal */ export type LeadsSort$Outbound = { by?: string | undefined; @@ -85,29 +56,6 @@ export const LeadsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LeadsSort$ { - /** @deprecated use `LeadsSort$inboundSchema` instead. */ - export const inboundSchema = LeadsSort$inboundSchema; - /** @deprecated use `LeadsSort$outboundSchema` instead. */ - export const outboundSchema = LeadsSort$outboundSchema; - /** @deprecated use `LeadsSort$Outbound` instead. */ - export type Outbound = LeadsSort$Outbound; -} - export function leadsSortToJSON(leadsSort: LeadsSort): string { return JSON.stringify(LeadsSort$outboundSchema.parse(leadsSort)); } - -export function leadsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LeadsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LeadsSort' from JSON`, - ); -} diff --git a/src/models/components/ledgeraccount.ts b/src/models/components/ledgeraccount.ts index 0bfa2e3a3..8e460a052 100644 --- a/src/models/components/ledgeraccount.ts +++ b/src/models/components/ledgeraccount.ts @@ -26,15 +26,9 @@ import { CustomField$Outbound, CustomField$outboundSchema, } from "./customfield.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -375,65 +369,29 @@ export type LedgerAccountInput = { export const LedgerAccountClassification$inboundSchema: z.ZodNativeEnum< typeof LedgerAccountClassification > = z.nativeEnum(LedgerAccountClassification); - /** @internal */ export const LedgerAccountClassification$outboundSchema: z.ZodNativeEnum< typeof LedgerAccountClassification > = LedgerAccountClassification$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountClassification$ { - /** @deprecated use `LedgerAccountClassification$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountClassification$inboundSchema; - /** @deprecated use `LedgerAccountClassification$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountClassification$outboundSchema; -} - /** @internal */ export const LedgerAccountType$inboundSchema: z.ZodNativeEnum< typeof LedgerAccountType > = z.nativeEnum(LedgerAccountType); - /** @internal */ export const LedgerAccountType$outboundSchema: z.ZodNativeEnum< typeof LedgerAccountType > = LedgerAccountType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountType$ { - /** @deprecated use `LedgerAccountType$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountType$inboundSchema; - /** @deprecated use `LedgerAccountType$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountType$outboundSchema; -} - /** @internal */ export const AccountStatus$inboundSchema: z.ZodNativeEnum< typeof AccountStatus > = z.nativeEnum(AccountStatus); - /** @internal */ export const AccountStatus$outboundSchema: z.ZodNativeEnum< typeof AccountStatus > = AccountStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountStatus$ { - /** @deprecated use `AccountStatus$inboundSchema` instead. */ - export const inboundSchema = AccountStatus$inboundSchema; - /** @deprecated use `AccountStatus$outboundSchema` instead. */ - export const outboundSchema = AccountStatus$outboundSchema; -} - /** @internal */ export const Categories$inboundSchema: z.ZodType< Categories, @@ -444,39 +402,6 @@ export const Categories$inboundSchema: z.ZodType< name: z.string().optional(), }); -/** @internal */ -export type Categories$Outbound = { - id?: string | undefined; - name?: string | undefined; -}; - -/** @internal */ -export const Categories$outboundSchema: z.ZodType< - Categories$Outbound, - z.ZodTypeDef, - Categories -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Categories$ { - /** @deprecated use `Categories$inboundSchema` instead. */ - export const inboundSchema = Categories$inboundSchema; - /** @deprecated use `Categories$outboundSchema` instead. */ - export const outboundSchema = Categories$outboundSchema; - /** @deprecated use `Categories$Outbound` instead. */ - export type Outbound = Categories$Outbound; -} - -export function categoriesToJSON(categories: Categories): string { - return JSON.stringify(Categories$outboundSchema.parse(categories)); -} - export function categoriesFromJSON( jsonString: string, ): SafeParseResult { @@ -501,7 +426,6 @@ export const ParentAccount$inboundSchema: z.ZodType< "display_id": "displayId", }); }); - /** @internal */ export type ParentAccount$Outbound = { id?: string | undefined; @@ -524,23 +448,9 @@ export const ParentAccount$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ParentAccount$ { - /** @deprecated use `ParentAccount$inboundSchema` instead. */ - export const inboundSchema = ParentAccount$inboundSchema; - /** @deprecated use `ParentAccount$outboundSchema` instead. */ - export const outboundSchema = ParentAccount$outboundSchema; - /** @deprecated use `ParentAccount$Outbound` instead. */ - export type Outbound = ParentAccount$Outbound; -} - export function parentAccountToJSON(parentAccount: ParentAccount): string { return JSON.stringify(ParentAccount$outboundSchema.parse(parentAccount)); } - export function parentAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -565,43 +475,6 @@ export const SubAccounts$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SubAccounts$Outbound = { - id?: string | undefined; - account_sub_name?: string | undefined; -}; - -/** @internal */ -export const SubAccounts$outboundSchema: z.ZodType< - SubAccounts$Outbound, - z.ZodTypeDef, - SubAccounts -> = z.object({ - id: z.string().optional(), - accountSubName: z.string().optional(), -}).transform((v) => { - return remap$(v, { - accountSubName: "account_sub_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubAccounts$ { - /** @deprecated use `SubAccounts$inboundSchema` instead. */ - export const inboundSchema = SubAccounts$inboundSchema; - /** @deprecated use `SubAccounts$outboundSchema` instead. */ - export const outboundSchema = SubAccounts$outboundSchema; - /** @deprecated use `SubAccounts$Outbound` instead. */ - export type Outbound = SubAccounts$Outbound; -} - -export function subAccountsToJSON(subAccounts: SubAccounts): string { - return JSON.stringify(SubAccounts$outboundSchema.parse(subAccounts)); -} - export function subAccountsFromJSON( jsonString: string, ): SafeParseResult { @@ -620,7 +493,6 @@ export const LedgerAccountSubsidiaries$inboundSchema: z.ZodType< > = z.object({ id: z.string().optional(), }); - /** @internal */ export type LedgerAccountSubsidiaries$Outbound = { id?: string | undefined; @@ -635,19 +507,6 @@ export const LedgerAccountSubsidiaries$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountSubsidiaries$ { - /** @deprecated use `LedgerAccountSubsidiaries$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountSubsidiaries$inboundSchema; - /** @deprecated use `LedgerAccountSubsidiaries$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountSubsidiaries$outboundSchema; - /** @deprecated use `LedgerAccountSubsidiaries$Outbound` instead. */ - export type Outbound = LedgerAccountSubsidiaries$Outbound; -} - export function ledgerAccountSubsidiariesToJSON( ledgerAccountSubsidiaries: LedgerAccountSubsidiaries, ): string { @@ -655,7 +514,6 @@ export function ledgerAccountSubsidiariesToJSON( LedgerAccountSubsidiaries$outboundSchema.parse(ledgerAccountSubsidiaries), ); } - export function ledgerAccountSubsidiariesFromJSON( jsonString: string, ): SafeParseResult { @@ -740,131 +598,6 @@ export const LedgerAccount$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LedgerAccount$Outbound = { - id?: string | undefined; - display_id?: string | undefined; - nominal_code?: string | null | undefined; - code?: string | null | undefined; - classification?: string | null | undefined; - type?: string | undefined; - sub_type?: string | null | undefined; - name?: string | null | undefined; - fully_qualified_name?: string | null | undefined; - description?: string | null | undefined; - opening_balance?: number | null | undefined; - current_balance?: number | null | undefined; - currency?: string | null | undefined; - tax_type?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - level?: number | null | undefined; - active?: boolean | null | undefined; - status?: string | null | undefined; - header?: boolean | null | undefined; - bank_account?: BankAccount$Outbound | undefined; - categories?: Array | undefined; - parent_account?: ParentAccount$Outbound | undefined; - sub_account?: boolean | null | undefined; - sub_accounts?: Array | undefined; - last_reconciliation_date?: string | null | undefined; - subsidiaries?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const LedgerAccount$outboundSchema: z.ZodType< - LedgerAccount$Outbound, - z.ZodTypeDef, - LedgerAccount -> = z.object({ - id: z.string().optional(), - displayId: z.string().optional(), - nominalCode: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - classification: z.nullable(LedgerAccountClassification$outboundSchema) - .optional(), - type: LedgerAccountType$outboundSchema.optional(), - subType: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - fullyQualifiedName: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - openingBalance: z.nullable(z.number()).optional(), - currentBalance: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - taxType: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - level: z.nullable(z.number()).optional(), - active: z.nullable(z.boolean()).optional(), - status: z.nullable(AccountStatus$outboundSchema).optional(), - header: z.nullable(z.boolean()).optional(), - bankAccount: BankAccount$outboundSchema.optional(), - categories: z.array(z.lazy(() => Categories$outboundSchema)).optional(), - parentAccount: z.lazy(() => ParentAccount$outboundSchema).optional(), - subAccount: z.nullable(z.boolean()).optional(), - subAccounts: z.array(z.lazy(() => SubAccounts$outboundSchema)).optional(), - lastReconciliationDate: z.nullable( - z.instanceof(RFCDate).transform(v => v.toString()), - ).optional(), - subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema)) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - nominalCode: "nominal_code", - subType: "sub_type", - fullyQualifiedName: "fully_qualified_name", - openingBalance: "opening_balance", - currentBalance: "current_balance", - taxType: "tax_type", - taxRate: "tax_rate", - bankAccount: "bank_account", - parentAccount: "parent_account", - subAccount: "sub_account", - subAccounts: "sub_accounts", - lastReconciliationDate: "last_reconciliation_date", - customMappings: "custom_mappings", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccount$ { - /** @deprecated use `LedgerAccount$inboundSchema` instead. */ - export const inboundSchema = LedgerAccount$inboundSchema; - /** @deprecated use `LedgerAccount$outboundSchema` instead. */ - export const outboundSchema = LedgerAccount$outboundSchema; - /** @deprecated use `LedgerAccount$Outbound` instead. */ - export type Outbound = LedgerAccount$Outbound; -} - -export function ledgerAccountToJSON(ledgerAccount: LedgerAccount): string { - return JSON.stringify(LedgerAccount$outboundSchema.parse(ledgerAccount)); -} - export function ledgerAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -875,62 +608,6 @@ export function ledgerAccountFromJSON( ); } -/** @internal */ -export const LedgerAccountInput$inboundSchema: z.ZodType< - LedgerAccountInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.string().optional(), - nominal_code: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - classification: z.nullable(LedgerAccountClassification$inboundSchema) - .optional(), - type: LedgerAccountType$inboundSchema.optional(), - sub_type: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - fully_qualified_name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - opening_balance: z.nullable(z.number()).optional(), - current_balance: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - tax_type: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - level: z.nullable(z.number()).optional(), - active: z.nullable(z.boolean()).optional(), - status: z.nullable(AccountStatus$inboundSchema).optional(), - header: z.nullable(z.boolean()).optional(), - bank_account: BankAccount$inboundSchema.optional(), - parent_account: z.lazy(() => ParentAccount$inboundSchema).optional(), - sub_account: z.nullable(z.boolean()).optional(), - last_reconciliation_date: z.nullable( - z.string().transform(v => new RFCDate(v)), - ).optional(), - subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema)) - .optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "nominal_code": "nominalCode", - "sub_type": "subType", - "fully_qualified_name": "fullyQualifiedName", - "opening_balance": "openingBalance", - "current_balance": "currentBalance", - "tax_type": "taxType", - "tax_rate": "taxRate", - "bank_account": "bankAccount", - "parent_account": "parentAccount", - "sub_account": "subAccount", - "last_reconciliation_date": "lastReconciliationDate", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type LedgerAccountInput$Outbound = { display_id?: string | undefined; @@ -1017,19 +694,6 @@ export const LedgerAccountInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountInput$ { - /** @deprecated use `LedgerAccountInput$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountInput$inboundSchema; - /** @deprecated use `LedgerAccountInput$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountInput$outboundSchema; - /** @deprecated use `LedgerAccountInput$Outbound` instead. */ - export type Outbound = LedgerAccountInput$Outbound; -} - export function ledgerAccountInputToJSON( ledgerAccountInput: LedgerAccountInput, ): string { @@ -1037,13 +701,3 @@ export function ledgerAccountInputToJSON( LedgerAccountInput$outboundSchema.parse(ledgerAccountInput), ); } - -export function ledgerAccountInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LedgerAccountInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LedgerAccountInput' from JSON`, - ); -} diff --git a/src/models/components/ledgeraccountsfilter.ts b/src/models/components/ledgeraccountsfilter.ts index a4bb852c6..badf6647f 100644 --- a/src/models/components/ledgeraccountsfilter.ts +++ b/src/models/components/ledgeraccountsfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by account classification. @@ -37,42 +34,10 @@ export type LedgerAccountsFilter = { classification?: Classification | undefined; }; -/** @internal */ -export const Classification$inboundSchema: z.ZodNativeEnum< - typeof Classification -> = z.nativeEnum(Classification); - /** @internal */ export const Classification$outboundSchema: z.ZodNativeEnum< typeof Classification -> = Classification$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Classification$ { - /** @deprecated use `Classification$inboundSchema` instead. */ - export const inboundSchema = Classification$inboundSchema; - /** @deprecated use `Classification$outboundSchema` instead. */ - export const outboundSchema = Classification$outboundSchema; -} - -/** @internal */ -export const LedgerAccountsFilter$inboundSchema: z.ZodType< - LedgerAccountsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - classification: Classification$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - }); -}); +> = z.nativeEnum(Classification); /** @internal */ export type LedgerAccountsFilter$Outbound = { @@ -94,19 +59,6 @@ export const LedgerAccountsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountsFilter$ { - /** @deprecated use `LedgerAccountsFilter$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountsFilter$inboundSchema; - /** @deprecated use `LedgerAccountsFilter$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountsFilter$outboundSchema; - /** @deprecated use `LedgerAccountsFilter$Outbound` instead. */ - export type Outbound = LedgerAccountsFilter$Outbound; -} - export function ledgerAccountsFilterToJSON( ledgerAccountsFilter: LedgerAccountsFilter, ): string { @@ -114,13 +66,3 @@ export function ledgerAccountsFilterToJSON( LedgerAccountsFilter$outboundSchema.parse(ledgerAccountsFilter), ); } - -export function ledgerAccountsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LedgerAccountsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LedgerAccountsFilter' from JSON`, - ); -} diff --git a/src/models/components/ledgeraccountssort.ts b/src/models/components/ledgeraccountssort.ts index 8fde0212b..f1bf6be9b 100644 --- a/src/models/components/ledgeraccountssort.ts +++ b/src/models/components/ledgeraccountssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type LedgerAccountsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const LedgerAccountsSortBy$inboundSchema: z.ZodNativeEnum< - typeof LedgerAccountsSortBy -> = z.nativeEnum(LedgerAccountsSortBy); - /** @internal */ export const LedgerAccountsSortBy$outboundSchema: z.ZodNativeEnum< typeof LedgerAccountsSortBy -> = LedgerAccountsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountsSortBy$ { - /** @deprecated use `LedgerAccountsSortBy$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountsSortBy$inboundSchema; - /** @deprecated use `LedgerAccountsSortBy$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountsSortBy$outboundSchema; -} - -/** @internal */ -export const LedgerAccountsSort$inboundSchema: z.ZodType< - LedgerAccountsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: LedgerAccountsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(LedgerAccountsSortBy); /** @internal */ export type LedgerAccountsSort$Outbound = { @@ -83,19 +53,6 @@ export const LedgerAccountsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LedgerAccountsSort$ { - /** @deprecated use `LedgerAccountsSort$inboundSchema` instead. */ - export const inboundSchema = LedgerAccountsSort$inboundSchema; - /** @deprecated use `LedgerAccountsSort$outboundSchema` instead. */ - export const outboundSchema = LedgerAccountsSort$outboundSchema; - /** @deprecated use `LedgerAccountsSort$Outbound` instead. */ - export type Outbound = LedgerAccountsSort$Outbound; -} - export function ledgerAccountsSortToJSON( ledgerAccountsSort: LedgerAccountsSort, ): string { @@ -103,13 +60,3 @@ export function ledgerAccountsSortToJSON( LedgerAccountsSort$outboundSchema.parse(ledgerAccountsSort), ); } - -export function ledgerAccountsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LedgerAccountsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LedgerAccountsSort' from JSON`, - ); -} diff --git a/src/models/components/lineitemtype.ts b/src/models/components/lineitemtype.ts new file mode 100644 index 000000000..1114d2192 --- /dev/null +++ b/src/models/components/lineitemtype.ts @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * Line Item type + */ +export const LineItemType = { + ExpenseItem: "expense_item", + ExpenseAccount: "expense_account", + Other: "other", +} as const; +/** + * Line Item type + */ +export type LineItemType = ClosedEnum; + +/** @internal */ +export const LineItemType$inboundSchema: z.ZodNativeEnum = + z.nativeEnum(LineItemType); +/** @internal */ +export const LineItemType$outboundSchema: z.ZodNativeEnum = + LineItemType$inboundSchema; diff --git a/src/models/components/linkedattachment.ts b/src/models/components/linkedattachment.ts index 1295cd46e..89ecd1202 100644 --- a/src/models/components/linkedattachment.ts +++ b/src/models/components/linkedattachment.ts @@ -53,7 +53,6 @@ export const LinkedAttachment$inboundSchema: z.ZodType< "is_compressed": "isCompressed", }); }); - /** @internal */ export type LinkedAttachment$Outbound = { name?: string | null | undefined; @@ -83,19 +82,6 @@ export const LinkedAttachment$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedAttachment$ { - /** @deprecated use `LinkedAttachment$inboundSchema` instead. */ - export const inboundSchema = LinkedAttachment$inboundSchema; - /** @deprecated use `LinkedAttachment$outboundSchema` instead. */ - export const outboundSchema = LinkedAttachment$outboundSchema; - /** @deprecated use `LinkedAttachment$Outbound` instead. */ - export type Outbound = LinkedAttachment$Outbound; -} - export function linkedAttachmentToJSON( linkedAttachment: LinkedAttachment, ): string { @@ -103,7 +89,6 @@ export function linkedAttachmentToJSON( LinkedAttachment$outboundSchema.parse(linkedAttachment), ); } - export function linkedAttachmentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedbankaccount.ts b/src/models/components/linkedbankaccount.ts index 444a5d930..4cf4a2598 100644 --- a/src/models/components/linkedbankaccount.ts +++ b/src/models/components/linkedbankaccount.ts @@ -43,7 +43,6 @@ export const LinkedBankAccount$inboundSchema: z.ZodType< "bank_name": "bankName", }); }); - /** @internal */ export type LinkedBankAccount$Outbound = { id?: string | undefined; @@ -69,19 +68,6 @@ export const LinkedBankAccount$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedBankAccount$ { - /** @deprecated use `LinkedBankAccount$inboundSchema` instead. */ - export const inboundSchema = LinkedBankAccount$inboundSchema; - /** @deprecated use `LinkedBankAccount$outboundSchema` instead. */ - export const outboundSchema = LinkedBankAccount$outboundSchema; - /** @deprecated use `LinkedBankAccount$Outbound` instead. */ - export type Outbound = LinkedBankAccount$Outbound; -} - export function linkedBankAccountToJSON( linkedBankAccount: LinkedBankAccount, ): string { @@ -89,7 +75,6 @@ export function linkedBankAccountToJSON( LinkedBankAccount$outboundSchema.parse(linkedBankAccount), ); } - export function linkedBankAccountFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedconnectorresource.ts b/src/models/components/linkedconnectorresource.ts index d0e27b95c..d66838d99 100644 --- a/src/models/components/linkedconnectorresource.ts +++ b/src/models/components/linkedconnectorresource.ts @@ -10,7 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ResourceStatus, ResourceStatus$inboundSchema, - ResourceStatus$outboundSchema, } from "./resourcestatus.js"; export type LinkedConnectorResource = { @@ -54,54 +53,6 @@ export const LinkedConnectorResource$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LinkedConnectorResource$Outbound = { - id?: string | undefined; - name?: string | undefined; - status?: string | undefined; - downstream_id?: string | undefined; - downstream_name?: string | undefined; -}; - -/** @internal */ -export const LinkedConnectorResource$outboundSchema: z.ZodType< - LinkedConnectorResource$Outbound, - z.ZodTypeDef, - LinkedConnectorResource -> = z.object({ - id: z.string().optional(), - name: z.string().optional(), - status: ResourceStatus$outboundSchema.optional(), - downstreamId: z.string().optional(), - downstreamName: z.string().optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - downstreamName: "downstream_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedConnectorResource$ { - /** @deprecated use `LinkedConnectorResource$inboundSchema` instead. */ - export const inboundSchema = LinkedConnectorResource$inboundSchema; - /** @deprecated use `LinkedConnectorResource$outboundSchema` instead. */ - export const outboundSchema = LinkedConnectorResource$outboundSchema; - /** @deprecated use `LinkedConnectorResource$Outbound` instead. */ - export type Outbound = LinkedConnectorResource$Outbound; -} - -export function linkedConnectorResourceToJSON( - linkedConnectorResource: LinkedConnectorResource, -): string { - return JSON.stringify( - LinkedConnectorResource$outboundSchema.parse(linkedConnectorResource), - ); -} - export function linkedConnectorResourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedcustomer.ts b/src/models/components/linkedcustomer.ts index 09455ab37..973342796 100644 --- a/src/models/components/linkedcustomer.ts +++ b/src/models/components/linkedcustomer.ts @@ -60,53 +60,6 @@ export const LinkedCustomer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LinkedCustomer$Outbound = { - id?: string | undefined; - display_id?: string | null | undefined; - display_name?: string | null | undefined; - name?: string | undefined; - company_name?: string | null | undefined; - email?: string | undefined; -}; - -/** @internal */ -export const LinkedCustomer$outboundSchema: z.ZodType< - LinkedCustomer$Outbound, - z.ZodTypeDef, - LinkedCustomer -> = z.object({ - id: z.string().optional(), - displayId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - name: z.string().optional(), - companyName: z.nullable(z.string()).optional(), - email: z.string().optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - displayName: "display_name", - companyName: "company_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedCustomer$ { - /** @deprecated use `LinkedCustomer$inboundSchema` instead. */ - export const inboundSchema = LinkedCustomer$inboundSchema; - /** @deprecated use `LinkedCustomer$outboundSchema` instead. */ - export const outboundSchema = LinkedCustomer$outboundSchema; - /** @deprecated use `LinkedCustomer$Outbound` instead. */ - export type Outbound = LinkedCustomer$Outbound; -} - -export function linkedCustomerToJSON(linkedCustomer: LinkedCustomer): string { - return JSON.stringify(LinkedCustomer$outboundSchema.parse(linkedCustomer)); -} - export function linkedCustomerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedcustomerinput.ts b/src/models/components/linkedcustomerinput.ts index 5e18d1d39..1527014f0 100644 --- a/src/models/components/linkedcustomerinput.ts +++ b/src/models/components/linkedcustomerinput.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The customer this entity is linked to. @@ -32,22 +29,6 @@ export type LinkedCustomerInput = { email?: string | undefined; }; -/** @internal */ -export const LinkedCustomerInput$inboundSchema: z.ZodType< - LinkedCustomerInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - display_name: z.nullable(z.string()).optional(), - name: z.string().optional(), - email: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "display_name": "displayName", - }); -}); - /** @internal */ export type LinkedCustomerInput$Outbound = { id?: string | undefined; @@ -72,19 +53,6 @@ export const LinkedCustomerInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedCustomerInput$ { - /** @deprecated use `LinkedCustomerInput$inboundSchema` instead. */ - export const inboundSchema = LinkedCustomerInput$inboundSchema; - /** @deprecated use `LinkedCustomerInput$outboundSchema` instead. */ - export const outboundSchema = LinkedCustomerInput$outboundSchema; - /** @deprecated use `LinkedCustomerInput$Outbound` instead. */ - export type Outbound = LinkedCustomerInput$Outbound; -} - export function linkedCustomerInputToJSON( linkedCustomerInput: LinkedCustomerInput, ): string { @@ -92,13 +60,3 @@ export function linkedCustomerInputToJSON( LinkedCustomerInput$outboundSchema.parse(linkedCustomerInput), ); } - -export function linkedCustomerInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LinkedCustomerInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LinkedCustomerInput' from JSON`, - ); -} diff --git a/src/models/components/linkedecommercecustomer.ts b/src/models/components/linkedecommercecustomer.ts index 6e7ffd671..f7c0f5b21 100644 --- a/src/models/components/linkedecommercecustomer.ts +++ b/src/models/components/linkedecommercecustomer.ts @@ -7,18 +7,8 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; -import { - PhoneNumber, - PhoneNumber$inboundSchema, - PhoneNumber$Outbound, - PhoneNumber$outboundSchema, -} from "./phonenumber.js"; +import { Email, Email$inboundSchema } from "./email.js"; +import { PhoneNumber, PhoneNumber$inboundSchema } from "./phonenumber.js"; /** * The customer this entity is linked to. @@ -70,60 +60,6 @@ export const LinkedEcommerceCustomer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LinkedEcommerceCustomer$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - company_name?: string | null | undefined; - phone_numbers?: Array | null | undefined; - emails?: Array | null | undefined; -}; - -/** @internal */ -export const LinkedEcommerceCustomer$outboundSchema: z.ZodType< - LinkedEcommerceCustomer$Outbound, - z.ZodTypeDef, - LinkedEcommerceCustomer -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - phoneNumbers: z.nullable(z.array(PhoneNumber$outboundSchema)).optional(), - emails: z.nullable(z.array(Email$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - companyName: "company_name", - phoneNumbers: "phone_numbers", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedEcommerceCustomer$ { - /** @deprecated use `LinkedEcommerceCustomer$inboundSchema` instead. */ - export const inboundSchema = LinkedEcommerceCustomer$inboundSchema; - /** @deprecated use `LinkedEcommerceCustomer$outboundSchema` instead. */ - export const outboundSchema = LinkedEcommerceCustomer$outboundSchema; - /** @deprecated use `LinkedEcommerceCustomer$Outbound` instead. */ - export type Outbound = LinkedEcommerceCustomer$Outbound; -} - -export function linkedEcommerceCustomerToJSON( - linkedEcommerceCustomer: LinkedEcommerceCustomer, -): string { - return JSON.stringify( - LinkedEcommerceCustomer$outboundSchema.parse(linkedEcommerceCustomer), - ); -} - export function linkedEcommerceCustomerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedecommerceorder.ts b/src/models/components/linkedecommerceorder.ts index c8fe1bc03..fabece969 100644 --- a/src/models/components/linkedecommerceorder.ts +++ b/src/models/components/linkedecommerceorder.ts @@ -9,7 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceOrderStatus, EcommerceOrderStatus$inboundSchema, - EcommerceOrderStatus$outboundSchema, } from "./ecommerceorderstatus.js"; /** @@ -41,45 +40,6 @@ export const LinkedEcommerceOrder$inboundSchema: z.ZodType< status: z.nullable(EcommerceOrderStatus$inboundSchema).optional(), }); -/** @internal */ -export type LinkedEcommerceOrder$Outbound = { - id?: string | undefined; - total?: string | null | undefined; - status?: string | null | undefined; -}; - -/** @internal */ -export const LinkedEcommerceOrder$outboundSchema: z.ZodType< - LinkedEcommerceOrder$Outbound, - z.ZodTypeDef, - LinkedEcommerceOrder -> = z.object({ - id: z.string().optional(), - total: z.nullable(z.string()).optional(), - status: z.nullable(EcommerceOrderStatus$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedEcommerceOrder$ { - /** @deprecated use `LinkedEcommerceOrder$inboundSchema` instead. */ - export const inboundSchema = LinkedEcommerceOrder$inboundSchema; - /** @deprecated use `LinkedEcommerceOrder$outboundSchema` instead. */ - export const outboundSchema = LinkedEcommerceOrder$outboundSchema; - /** @deprecated use `LinkedEcommerceOrder$Outbound` instead. */ - export type Outbound = LinkedEcommerceOrder$Outbound; -} - -export function linkedEcommerceOrderToJSON( - linkedEcommerceOrder: LinkedEcommerceOrder, -): string { - return JSON.stringify( - LinkedEcommerceOrder$outboundSchema.parse(linkedEcommerceOrder), - ); -} - export function linkedEcommerceOrderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedfolder.ts b/src/models/components/linkedfolder.ts index 249c418c9..3a0050196 100644 --- a/src/models/components/linkedfolder.ts +++ b/src/models/components/linkedfolder.ts @@ -28,39 +28,6 @@ export const LinkedFolder$inboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** @internal */ -export type LinkedFolder$Outbound = { - id: string; - name?: string | null | undefined; -}; - -/** @internal */ -export const LinkedFolder$outboundSchema: z.ZodType< - LinkedFolder$Outbound, - z.ZodTypeDef, - LinkedFolder -> = z.object({ - id: z.string(), - name: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedFolder$ { - /** @deprecated use `LinkedFolder$inboundSchema` instead. */ - export const inboundSchema = LinkedFolder$inboundSchema; - /** @deprecated use `LinkedFolder$outboundSchema` instead. */ - export const outboundSchema = LinkedFolder$outboundSchema; - /** @deprecated use `LinkedFolder$Outbound` instead. */ - export type Outbound = LinkedFolder$Outbound; -} - -export function linkedFolderToJSON(linkedFolder: LinkedFolder): string { - return JSON.stringify(LinkedFolder$outboundSchema.parse(linkedFolder)); -} - export function linkedFolderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedinvoiceitem.ts b/src/models/components/linkedinvoiceitem.ts index c9be0941e..bdcf2e392 100644 --- a/src/models/components/linkedinvoiceitem.ts +++ b/src/models/components/linkedinvoiceitem.ts @@ -32,7 +32,6 @@ export const LinkedInvoiceItem$inboundSchema: z.ZodType< code: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }); - /** @internal */ export type LinkedInvoiceItem$Outbound = { id?: string | null | undefined; @@ -51,19 +50,6 @@ export const LinkedInvoiceItem$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedInvoiceItem$ { - /** @deprecated use `LinkedInvoiceItem$inboundSchema` instead. */ - export const inboundSchema = LinkedInvoiceItem$inboundSchema; - /** @deprecated use `LinkedInvoiceItem$outboundSchema` instead. */ - export const outboundSchema = LinkedInvoiceItem$outboundSchema; - /** @deprecated use `LinkedInvoiceItem$Outbound` instead. */ - export type Outbound = LinkedInvoiceItem$Outbound; -} - export function linkedInvoiceItemToJSON( linkedInvoiceItem: LinkedInvoiceItem, ): string { @@ -71,7 +57,6 @@ export function linkedInvoiceItemToJSON( LinkedInvoiceItem$outboundSchema.parse(linkedInvoiceItem), ); } - export function linkedInvoiceItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedledgeraccount.ts b/src/models/components/linkedledgeraccount.ts index c229404fc..af1dd604a 100644 --- a/src/models/components/linkedledgeraccount.ts +++ b/src/models/components/linkedledgeraccount.ts @@ -54,7 +54,6 @@ export const LinkedLedgerAccount$inboundSchema: z.ZodType< "display_id": "displayId", }); }); - /** @internal */ export type LinkedLedgerAccount$Outbound = { id?: string | undefined; @@ -85,19 +84,6 @@ export const LinkedLedgerAccount$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedLedgerAccount$ { - /** @deprecated use `LinkedLedgerAccount$inboundSchema` instead. */ - export const inboundSchema = LinkedLedgerAccount$inboundSchema; - /** @deprecated use `LinkedLedgerAccount$outboundSchema` instead. */ - export const outboundSchema = LinkedLedgerAccount$outboundSchema; - /** @deprecated use `LinkedLedgerAccount$Outbound` instead. */ - export type Outbound = LinkedLedgerAccount$Outbound; -} - export function linkedLedgerAccountToJSON( linkedLedgerAccount: LinkedLedgerAccount, ): string { @@ -105,7 +91,6 @@ export function linkedLedgerAccountToJSON( LinkedLedgerAccount$outboundSchema.parse(linkedLedgerAccount), ); } - export function linkedLedgerAccountFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedledgeraccountinput.ts b/src/models/components/linkedledgeraccountinput.ts deleted file mode 100644 index 40ea27bc4..000000000 --- a/src/models/components/linkedledgeraccountinput.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type LinkedLedgerAccountInput = { - /** - * The unique identifier for the account. - */ - id?: string | undefined; - /** - * The nominal code of the account. - */ - nominalCode?: string | null | undefined; - /** - * The code assigned to the account. - */ - code?: string | null | undefined; - /** - * The parent ID of the account. - */ - parentId?: string | null | undefined; - /** - * The display ID of the account. - */ - displayId?: string | null | undefined; -}; - -/** @internal */ -export const LinkedLedgerAccountInput$inboundSchema: z.ZodType< - LinkedLedgerAccountInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - nominal_code: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - parent_id: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "nominal_code": "nominalCode", - "parent_id": "parentId", - "display_id": "displayId", - }); -}); - -/** @internal */ -export type LinkedLedgerAccountInput$Outbound = { - id?: string | undefined; - nominal_code?: string | null | undefined; - code?: string | null | undefined; - parent_id?: string | null | undefined; - display_id?: string | null | undefined; -}; - -/** @internal */ -export const LinkedLedgerAccountInput$outboundSchema: z.ZodType< - LinkedLedgerAccountInput$Outbound, - z.ZodTypeDef, - LinkedLedgerAccountInput -> = z.object({ - id: z.string().optional(), - nominalCode: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - parentId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - nominalCode: "nominal_code", - parentId: "parent_id", - displayId: "display_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedLedgerAccountInput$ { - /** @deprecated use `LinkedLedgerAccountInput$inboundSchema` instead. */ - export const inboundSchema = LinkedLedgerAccountInput$inboundSchema; - /** @deprecated use `LinkedLedgerAccountInput$outboundSchema` instead. */ - export const outboundSchema = LinkedLedgerAccountInput$outboundSchema; - /** @deprecated use `LinkedLedgerAccountInput$Outbound` instead. */ - export type Outbound = LinkedLedgerAccountInput$Outbound; -} - -export function linkedLedgerAccountInputToJSON( - linkedLedgerAccountInput: LinkedLedgerAccountInput, -): string { - return JSON.stringify( - LinkedLedgerAccountInput$outboundSchema.parse(linkedLedgerAccountInput), - ); -} - -export function linkedLedgerAccountInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LinkedLedgerAccountInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LinkedLedgerAccountInput' from JSON`, - ); -} diff --git a/src/models/components/linkedparentcustomer.ts b/src/models/components/linkedparentcustomer.ts index 5833970c5..53781901a 100644 --- a/src/models/components/linkedparentcustomer.ts +++ b/src/models/components/linkedparentcustomer.ts @@ -30,7 +30,6 @@ export const LinkedParentCustomer$inboundSchema: z.ZodType< id: z.string(), name: z.string().optional(), }); - /** @internal */ export type LinkedParentCustomer$Outbound = { id: string; @@ -47,19 +46,6 @@ export const LinkedParentCustomer$outboundSchema: z.ZodType< name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedParentCustomer$ { - /** @deprecated use `LinkedParentCustomer$inboundSchema` instead. */ - export const inboundSchema = LinkedParentCustomer$inboundSchema; - /** @deprecated use `LinkedParentCustomer$outboundSchema` instead. */ - export const outboundSchema = LinkedParentCustomer$outboundSchema; - /** @deprecated use `LinkedParentCustomer$Outbound` instead. */ - export type Outbound = LinkedParentCustomer$Outbound; -} - export function linkedParentCustomerToJSON( linkedParentCustomer: LinkedParentCustomer, ): string { @@ -67,7 +53,6 @@ export function linkedParentCustomerToJSON( LinkedParentCustomer$outboundSchema.parse(linkedParentCustomer), ); } - export function linkedParentCustomerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedpurchaseorder.ts b/src/models/components/linkedpurchaseorder.ts index 55e307603..1ba7466c2 100644 --- a/src/models/components/linkedpurchaseorder.ts +++ b/src/models/components/linkedpurchaseorder.ts @@ -38,7 +38,6 @@ export const LinkedPurchaseOrder$inboundSchema: z.ZodType< "line_number": "lineNumber", }); }); - /** @internal */ export type LinkedPurchaseOrder$Outbound = { id?: string | undefined; @@ -62,19 +61,6 @@ export const LinkedPurchaseOrder$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedPurchaseOrder$ { - /** @deprecated use `LinkedPurchaseOrder$inboundSchema` instead. */ - export const inboundSchema = LinkedPurchaseOrder$inboundSchema; - /** @deprecated use `LinkedPurchaseOrder$outboundSchema` instead. */ - export const outboundSchema = LinkedPurchaseOrder$outboundSchema; - /** @deprecated use `LinkedPurchaseOrder$Outbound` instead. */ - export type Outbound = LinkedPurchaseOrder$Outbound; -} - export function linkedPurchaseOrderToJSON( linkedPurchaseOrder: LinkedPurchaseOrder, ): string { @@ -82,7 +68,6 @@ export function linkedPurchaseOrderToJSON( LinkedPurchaseOrder$outboundSchema.parse(linkedPurchaseOrder), ); } - export function linkedPurchaseOrderFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedsupplier.ts b/src/models/components/linkedsupplier.ts index a336cb539..67e3c9285 100644 --- a/src/models/components/linkedsupplier.ts +++ b/src/models/components/linkedsupplier.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; +import { Address, Address$inboundSchema } from "./address.js"; /** * The supplier this entity is linked to. @@ -56,51 +51,6 @@ export const LinkedSupplier$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type LinkedSupplier$Outbound = { - id?: string | undefined; - display_id?: string | null | undefined; - display_name?: string | null | undefined; - company_name?: string | null | undefined; - address?: Address$Outbound | undefined; -}; - -/** @internal */ -export const LinkedSupplier$outboundSchema: z.ZodType< - LinkedSupplier$Outbound, - z.ZodTypeDef, - LinkedSupplier -> = z.object({ - id: z.string().optional(), - displayId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - address: Address$outboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - displayName: "display_name", - companyName: "company_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedSupplier$ { - /** @deprecated use `LinkedSupplier$inboundSchema` instead. */ - export const inboundSchema = LinkedSupplier$inboundSchema; - /** @deprecated use `LinkedSupplier$outboundSchema` instead. */ - export const outboundSchema = LinkedSupplier$outboundSchema; - /** @deprecated use `LinkedSupplier$Outbound` instead. */ - export type Outbound = LinkedSupplier$Outbound; -} - -export function linkedSupplierToJSON(linkedSupplier: LinkedSupplier): string { - return JSON.stringify(LinkedSupplier$outboundSchema.parse(linkedSupplier)); -} - export function linkedSupplierFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedsupplierinput.ts b/src/models/components/linkedsupplierinput.ts index c133cdc14..ea3884f0f 100644 --- a/src/models/components/linkedsupplierinput.ts +++ b/src/models/components/linkedsupplierinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, - Address$inboundSchema, Address$Outbound, Address$outboundSchema, } from "./address.js"; @@ -29,21 +25,6 @@ export type LinkedSupplierInput = { address?: Address | undefined; }; -/** @internal */ -export const LinkedSupplierInput$inboundSchema: z.ZodType< - LinkedSupplierInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - display_name: z.nullable(z.string()).optional(), - address: Address$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "display_name": "displayName", - }); -}); - /** @internal */ export type LinkedSupplierInput$Outbound = { id?: string | undefined; @@ -66,19 +47,6 @@ export const LinkedSupplierInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedSupplierInput$ { - /** @deprecated use `LinkedSupplierInput$inboundSchema` instead. */ - export const inboundSchema = LinkedSupplierInput$inboundSchema; - /** @deprecated use `LinkedSupplierInput$outboundSchema` instead. */ - export const outboundSchema = LinkedSupplierInput$outboundSchema; - /** @deprecated use `LinkedSupplierInput$Outbound` instead. */ - export type Outbound = LinkedSupplierInput$Outbound; -} - export function linkedSupplierInputToJSON( linkedSupplierInput: LinkedSupplierInput, ): string { @@ -86,13 +54,3 @@ export function linkedSupplierInputToJSON( LinkedSupplierInput$outboundSchema.parse(linkedSupplierInput), ); } - -export function linkedSupplierInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LinkedSupplierInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LinkedSupplierInput' from JSON`, - ); -} diff --git a/src/models/components/linkedtaxdetail.ts b/src/models/components/linkedtaxdetail.ts index 0a20fe96a..be2a97d98 100644 --- a/src/models/components/linkedtaxdetail.ts +++ b/src/models/components/linkedtaxdetail.ts @@ -43,7 +43,6 @@ export const LinkedTaxDetail$inboundSchema: z.ZodType< "is_primary_tax": "isPrimaryTax", }); }); - /** @internal */ export type LinkedTaxDetail$Outbound = { type?: string | undefined; @@ -69,25 +68,11 @@ export const LinkedTaxDetail$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedTaxDetail$ { - /** @deprecated use `LinkedTaxDetail$inboundSchema` instead. */ - export const inboundSchema = LinkedTaxDetail$inboundSchema; - /** @deprecated use `LinkedTaxDetail$outboundSchema` instead. */ - export const outboundSchema = LinkedTaxDetail$outboundSchema; - /** @deprecated use `LinkedTaxDetail$Outbound` instead. */ - export type Outbound = LinkedTaxDetail$Outbound; -} - export function linkedTaxDetailToJSON( linkedTaxDetail: LinkedTaxDetail, ): string { return JSON.stringify(LinkedTaxDetail$outboundSchema.parse(linkedTaxDetail)); } - export function linkedTaxDetailFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedtaxrate.ts b/src/models/components/linkedtaxrate.ts index ea09dff92..6715661f1 100644 --- a/src/models/components/linkedtaxrate.ts +++ b/src/models/components/linkedtaxrate.ts @@ -38,43 +38,6 @@ export const LinkedTaxRate$inboundSchema: z.ZodType< rate: z.nullable(z.number()).optional(), }); -/** @internal */ -export type LinkedTaxRate$Outbound = { - id?: string | null | undefined; - code?: string | null | undefined; - name?: string | null | undefined; - rate?: number | null | undefined; -}; - -/** @internal */ -export const LinkedTaxRate$outboundSchema: z.ZodType< - LinkedTaxRate$Outbound, - z.ZodTypeDef, - LinkedTaxRate -> = z.object({ - id: z.nullable(z.string()).optional(), - code: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - rate: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedTaxRate$ { - /** @deprecated use `LinkedTaxRate$inboundSchema` instead. */ - export const inboundSchema = LinkedTaxRate$inboundSchema; - /** @deprecated use `LinkedTaxRate$outboundSchema` instead. */ - export const outboundSchema = LinkedTaxRate$outboundSchema; - /** @deprecated use `LinkedTaxRate$Outbound` instead. */ - export type Outbound = LinkedTaxRate$Outbound; -} - -export function linkedTaxRateToJSON(linkedTaxRate: LinkedTaxRate): string { - return JSON.stringify(LinkedTaxRate$outboundSchema.parse(linkedTaxRate)); -} - export function linkedTaxRateFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedtaxrateinput.ts b/src/models/components/linkedtaxrateinput.ts index 71386e6e0..d01324095 100644 --- a/src/models/components/linkedtaxrateinput.ts +++ b/src/models/components/linkedtaxrateinput.ts @@ -3,34 +3,26 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LinkedTaxRateInput = { /** * The ID of the object. */ id?: string | null | undefined; + /** + * Tax rate code + */ + code?: string | null | undefined; /** * Rate of the tax rate */ rate?: number | null | undefined; }; -/** @internal */ -export const LinkedTaxRateInput$inboundSchema: z.ZodType< - LinkedTaxRateInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - rate: z.nullable(z.number()).optional(), -}); - /** @internal */ export type LinkedTaxRateInput$Outbound = { id?: string | null | undefined; + code?: string | null | undefined; rate?: number | null | undefined; }; @@ -41,22 +33,10 @@ export const LinkedTaxRateInput$outboundSchema: z.ZodType< LinkedTaxRateInput > = z.object({ id: z.nullable(z.string()).optional(), + code: z.nullable(z.string()).optional(), rate: z.nullable(z.number()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedTaxRateInput$ { - /** @deprecated use `LinkedTaxRateInput$inboundSchema` instead. */ - export const inboundSchema = LinkedTaxRateInput$inboundSchema; - /** @deprecated use `LinkedTaxRateInput$outboundSchema` instead. */ - export const outboundSchema = LinkedTaxRateInput$outboundSchema; - /** @deprecated use `LinkedTaxRateInput$Outbound` instead. */ - export type Outbound = LinkedTaxRateInput$Outbound; -} - export function linkedTaxRateInputToJSON( linkedTaxRateInput: LinkedTaxRateInput, ): string { @@ -64,13 +44,3 @@ export function linkedTaxRateInputToJSON( LinkedTaxRateInput$outboundSchema.parse(linkedTaxRateInput), ); } - -export function linkedTaxRateInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LinkedTaxRateInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LinkedTaxRateInput' from JSON`, - ); -} diff --git a/src/models/components/linkedtaxstatusdetail.ts b/src/models/components/linkedtaxstatusdetail.ts index ed1f95a44..197d61051 100644 --- a/src/models/components/linkedtaxstatusdetail.ts +++ b/src/models/components/linkedtaxstatusdetail.ts @@ -32,7 +32,6 @@ export const LinkedTaxStatusDetail$inboundSchema: z.ZodType< "transaction_tax_status": "transactionTaxStatus", }); }); - /** @internal */ export type LinkedTaxStatusDetail$Outbound = { country?: string | undefined; @@ -53,19 +52,6 @@ export const LinkedTaxStatusDetail$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedTaxStatusDetail$ { - /** @deprecated use `LinkedTaxStatusDetail$inboundSchema` instead. */ - export const inboundSchema = LinkedTaxStatusDetail$inboundSchema; - /** @deprecated use `LinkedTaxStatusDetail$outboundSchema` instead. */ - export const outboundSchema = LinkedTaxStatusDetail$outboundSchema; - /** @deprecated use `LinkedTaxStatusDetail$Outbound` instead. */ - export type Outbound = LinkedTaxStatusDetail$Outbound; -} - export function linkedTaxStatusDetailToJSON( linkedTaxStatusDetail: LinkedTaxStatusDetail, ): string { @@ -73,7 +59,6 @@ export function linkedTaxStatusDetailToJSON( LinkedTaxStatusDetail$outboundSchema.parse(linkedTaxStatusDetail), ); } - export function linkedTaxStatusDetailFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedtrackingcategory.ts b/src/models/components/linkedtrackingcategory.ts index 7e58e7642..0efa3c3bb 100644 --- a/src/models/components/linkedtrackingcategory.ts +++ b/src/models/components/linkedtrackingcategory.ts @@ -43,7 +43,6 @@ export const LinkedTrackingCategory$inboundSchema: z.ZodType< "parent_name": "parentName", }); }); - /** @internal */ export type LinkedTrackingCategory$Outbound = { id?: string | undefined; @@ -69,19 +68,6 @@ export const LinkedTrackingCategory$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedTrackingCategory$ { - /** @deprecated use `LinkedTrackingCategory$inboundSchema` instead. */ - export const inboundSchema = LinkedTrackingCategory$inboundSchema; - /** @deprecated use `LinkedTrackingCategory$outboundSchema` instead. */ - export const outboundSchema = LinkedTrackingCategory$outboundSchema; - /** @deprecated use `LinkedTrackingCategory$Outbound` instead. */ - export type Outbound = LinkedTrackingCategory$Outbound; -} - export function linkedTrackingCategoryToJSON( linkedTrackingCategory: LinkedTrackingCategory, ): string { @@ -89,7 +75,6 @@ export function linkedTrackingCategoryToJSON( LinkedTrackingCategory$outboundSchema.parse(linkedTrackingCategory), ); } - export function linkedTrackingCategoryFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/linkedworktag.ts b/src/models/components/linkedworktag.ts index 3b8d43581..aa08e1e60 100644 --- a/src/models/components/linkedworktag.ts +++ b/src/models/components/linkedworktag.ts @@ -27,7 +27,6 @@ export const LinkedWorktag$inboundSchema: z.ZodType< id: z.string().optional(), value: z.nullable(z.string()).optional(), }); - /** @internal */ export type LinkedWorktag$Outbound = { id?: string | undefined; @@ -44,23 +43,9 @@ export const LinkedWorktag$outboundSchema: z.ZodType< value: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LinkedWorktag$ { - /** @deprecated use `LinkedWorktag$inboundSchema` instead. */ - export const inboundSchema = LinkedWorktag$inboundSchema; - /** @deprecated use `LinkedWorktag$outboundSchema` instead. */ - export const outboundSchema = LinkedWorktag$outboundSchema; - /** @deprecated use `LinkedWorktag$Outbound` instead. */ - export type Outbound = LinkedWorktag$Outbound; -} - export function linkedWorktagToJSON(linkedWorktag: LinkedWorktag): string { return JSON.stringify(LinkedWorktag$outboundSchema.parse(linkedWorktag)); } - export function linkedWorktagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/links.ts b/src/models/components/links.ts index 256a92cd9..e3b7f0324 100644 --- a/src/models/components/links.ts +++ b/src/models/components/links.ts @@ -33,41 +33,6 @@ export const Links$inboundSchema: z.ZodType = z next: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Links$Outbound = { - previous?: string | null | undefined; - current?: string | undefined; - next?: string | null | undefined; -}; - -/** @internal */ -export const Links$outboundSchema: z.ZodType< - Links$Outbound, - z.ZodTypeDef, - Links -> = z.object({ - previous: z.nullable(z.string()).optional(), - current: z.string().optional(), - next: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Links$ { - /** @deprecated use `Links$inboundSchema` instead. */ - export const inboundSchema = Links$inboundSchema; - /** @deprecated use `Links$outboundSchema` instead. */ - export const outboundSchema = Links$outboundSchema; - /** @deprecated use `Links$Outbound` instead. */ - export type Outbound = Links$Outbound; -} - -export function linksToJSON(links: Links): string { - return JSON.stringify(Links$outboundSchema.parse(links)); -} - export function linksFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/log.ts b/src/models/components/log.ts index aa5beec6d..d52466ca8 100644 --- a/src/models/components/log.ts +++ b/src/models/components/log.ts @@ -156,39 +156,6 @@ export const Operation$inboundSchema: z.ZodType< name: z.string(), }); -/** @internal */ -export type Operation$Outbound = { - id: string; - name: string; -}; - -/** @internal */ -export const Operation$outboundSchema: z.ZodType< - Operation$Outbound, - z.ZodTypeDef, - Operation -> = z.object({ - id: z.string(), - name: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Operation$ { - /** @deprecated use `Operation$inboundSchema` instead. */ - export const inboundSchema = Operation$inboundSchema; - /** @deprecated use `Operation$outboundSchema` instead. */ - export const outboundSchema = Operation$outboundSchema; - /** @deprecated use `Operation$Outbound` instead. */ - export type Outbound = Operation$Outbound; -} - -export function operationToJSON(operation: Operation): string { - return JSON.stringify(Operation$outboundSchema.parse(operation)); -} - export function operationFromJSON( jsonString: string, ): SafeParseResult { @@ -206,39 +173,6 @@ export const Service$inboundSchema: z.ZodType = name: z.string(), }); -/** @internal */ -export type Service$Outbound = { - id: string; - name: string; -}; - -/** @internal */ -export const Service$outboundSchema: z.ZodType< - Service$Outbound, - z.ZodTypeDef, - Service -> = z.object({ - id: z.string(), - name: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Service$ { - /** @deprecated use `Service$inboundSchema` instead. */ - export const inboundSchema = Service$inboundSchema; - /** @deprecated use `Service$outboundSchema` instead. */ - export const outboundSchema = Service$outboundSchema; - /** @deprecated use `Service$Outbound` instead. */ - export type Outbound = Service$Outbound; -} - -export function serviceToJSON(service: Service): string { - return JSON.stringify(Service$outboundSchema.parse(service)); -} - export function serviceFromJSON( jsonString: string, ): SafeParseResult { @@ -253,21 +187,6 @@ export function serviceFromJSON( export const UnifiedApi$inboundSchema: z.ZodNativeEnum = z .nativeEnum(UnifiedApi); -/** @internal */ -export const UnifiedApi$outboundSchema: z.ZodNativeEnum = - UnifiedApi$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnifiedApi$ { - /** @deprecated use `UnifiedApi$inboundSchema` instead. */ - export const inboundSchema = UnifiedApi$inboundSchema; - /** @deprecated use `UnifiedApi$outboundSchema` instead. */ - export const outboundSchema = UnifiedApi$outboundSchema; -} - /** @internal */ export const Log$inboundSchema: z.ZodType = z .object({ @@ -308,88 +227,6 @@ export const Log$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Log$Outbound = { - api_style: string; - base_url: string; - child_request: boolean; - consumer_id: string; - duration: number; - error_message?: string | null | undefined; - execution: number; - has_children: boolean; - http_method: string; - id: string; - latency: number; - operation: Operation$Outbound; - parent_id: string | null; - path: string; - sandbox: boolean; - service: Service$Outbound; - source_ip?: string | null | undefined; - status_code: number; - success: boolean; - timestamp: string; - unified_api: string; -}; - -/** @internal */ -export const Log$outboundSchema: z.ZodType = z - .object({ - apiStyle: z.string(), - baseUrl: z.string(), - childRequest: z.boolean(), - consumerId: z.string(), - duration: z.number(), - errorMessage: z.nullable(z.string()).optional(), - execution: z.number().int(), - hasChildren: z.boolean(), - httpMethod: z.string(), - id: z.string(), - latency: z.number(), - operation: z.lazy(() => Operation$outboundSchema), - parentId: z.nullable(z.string()), - path: z.string(), - sandbox: z.boolean(), - service: z.lazy(() => Service$outboundSchema), - sourceIp: z.nullable(z.string()).optional(), - statusCode: z.number().int(), - success: z.boolean(), - timestamp: z.string(), - unifiedApi: UnifiedApi$outboundSchema, - }).transform((v) => { - return remap$(v, { - apiStyle: "api_style", - baseUrl: "base_url", - childRequest: "child_request", - consumerId: "consumer_id", - errorMessage: "error_message", - hasChildren: "has_children", - httpMethod: "http_method", - parentId: "parent_id", - sourceIp: "source_ip", - statusCode: "status_code", - unifiedApi: "unified_api", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Log$ { - /** @deprecated use `Log$inboundSchema` instead. */ - export const inboundSchema = Log$inboundSchema; - /** @deprecated use `Log$outboundSchema` instead. */ - export const outboundSchema = Log$outboundSchema; - /** @deprecated use `Log$Outbound` instead. */ - export type Outbound = Log$Outbound; -} - -export function logToJSON(log: Log): string { - return JSON.stringify(Log$outboundSchema.parse(log)); -} - export function logFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/logsfilter.ts b/src/models/components/logsfilter.ts index c2527f6fe..4b9b9bb17 100644 --- a/src/models/components/logsfilter.ts +++ b/src/models/components/logsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LogsFilter = { connectorId?: string | null | undefined; @@ -21,25 +18,6 @@ export type LogsFilter = { excludeUnifiedApis?: string | null | undefined; }; -/** @internal */ -export const LogsFilter$inboundSchema: z.ZodType< - LogsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - connector_id: z.nullable(z.string()).optional(), - status_code: z.nullable(z.number()).optional(), - status_codes: z.nullable(z.array(z.number())).optional(), - exclude_unified_apis: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "connector_id": "connectorId", - "status_code": "statusCode", - "status_codes": "statusCodes", - "exclude_unified_apis": "excludeUnifiedApis", - }); -}); - /** @internal */ export type LogsFilter$Outbound = { connector_id?: string | null | undefined; @@ -67,29 +45,6 @@ export const LogsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogsFilter$ { - /** @deprecated use `LogsFilter$inboundSchema` instead. */ - export const inboundSchema = LogsFilter$inboundSchema; - /** @deprecated use `LogsFilter$outboundSchema` instead. */ - export const outboundSchema = LogsFilter$outboundSchema; - /** @deprecated use `LogsFilter$Outbound` instead. */ - export type Outbound = LogsFilter$Outbound; -} - export function logsFilterToJSON(logsFilter: LogsFilter): string { return JSON.stringify(LogsFilter$outboundSchema.parse(logsFilter)); } - -export function logsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LogsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogsFilter' from JSON`, - ); -} diff --git a/src/models/components/message.ts b/src/models/components/message.ts index 49e94bccd..66643a7c7 100644 --- a/src/models/components/message.ts +++ b/src/models/components/message.ts @@ -8,11 +8,7 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; import { PassThroughBody, PassThroughBody$inboundSchema, @@ -227,62 +223,19 @@ export type MessageInput = { /** @internal */ export const MessageType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(MessageType); - /** @internal */ export const MessageType$outboundSchema: z.ZodNativeEnum = MessageType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageType$ { - /** @deprecated use `MessageType$inboundSchema` instead. */ - export const inboundSchema = MessageType$inboundSchema; - /** @deprecated use `MessageType$outboundSchema` instead. */ - export const outboundSchema = MessageType$outboundSchema; -} - /** @internal */ export const Direction$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Direction); -/** @internal */ -export const Direction$outboundSchema: z.ZodNativeEnum = - Direction$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Direction$ { - /** @deprecated use `Direction$inboundSchema` instead. */ - export const inboundSchema = Direction$inboundSchema; - /** @deprecated use `Direction$outboundSchema` instead. */ - export const outboundSchema = Direction$outboundSchema; -} - /** @internal */ export const MessageStatus$inboundSchema: z.ZodNativeEnum< typeof MessageStatus > = z.nativeEnum(MessageStatus); -/** @internal */ -export const MessageStatus$outboundSchema: z.ZodNativeEnum< - typeof MessageStatus -> = MessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageStatus$ { - /** @deprecated use `MessageStatus$inboundSchema` instead. */ - export const inboundSchema = MessageStatus$inboundSchema; - /** @deprecated use `MessageStatus$outboundSchema` instead. */ - export const outboundSchema = MessageStatus$outboundSchema; -} - /** @internal */ export const Price$inboundSchema: z.ZodType = z .object({ @@ -296,46 +249,6 @@ export const Price$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Price$Outbound = { - per_unit?: string | undefined; - total_amount?: string | undefined; - currency?: string | null | undefined; -}; - -/** @internal */ -export const Price$outboundSchema: z.ZodType< - Price$Outbound, - z.ZodTypeDef, - Price -> = z.object({ - perUnit: z.string().optional(), - totalAmount: z.string().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - perUnit: "per_unit", - totalAmount: "total_amount", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Price$ { - /** @deprecated use `Price$inboundSchema` instead. */ - export const inboundSchema = Price$inboundSchema; - /** @deprecated use `Price$outboundSchema` instead. */ - export const outboundSchema = Price$outboundSchema; - /** @deprecated use `Price$Outbound` instead. */ - export type Outbound = Price$Outbound; -} - -export function priceToJSON(price: Price): string { - return JSON.stringify(Price$outboundSchema.parse(price)); -} - export function priceFromJSON( jsonString: string, ): SafeParseResult { @@ -353,39 +266,6 @@ export const ErrorT$inboundSchema: z.ZodType = z message: z.string().optional(), }); -/** @internal */ -export type ErrorT$Outbound = { - code?: string | undefined; - message?: string | undefined; -}; - -/** @internal */ -export const ErrorT$outboundSchema: z.ZodType< - ErrorT$Outbound, - z.ZodTypeDef, - ErrorT -> = z.object({ - code: z.string().optional(), - message: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ErrorT$ { - /** @deprecated use `ErrorT$inboundSchema` instead. */ - export const inboundSchema = ErrorT$inboundSchema; - /** @deprecated use `ErrorT$outboundSchema` instead. */ - export const outboundSchema = ErrorT$outboundSchema; - /** @deprecated use `ErrorT$Outbound` instead. */ - export type Outbound = ErrorT$Outbound; -} - -export function errorToJSON(errorT: ErrorT): string { - return JSON.stringify(ErrorT$outboundSchema.parse(errorT)); -} - export function errorFromJSON( jsonString: string, ): SafeParseResult { @@ -446,96 +326,6 @@ export const Message$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Message$Outbound = { - id?: string | undefined; - from: string; - to: string; - subject?: string | undefined; - body: string; - type?: string | undefined; - number_of_units?: number | undefined; - number_of_media_files?: number | undefined; - direction?: string | undefined; - status?: string | undefined; - scheduled_at?: string | undefined; - sent_at?: string | undefined; - webhook_url?: string | undefined; - reference?: string | undefined; - price?: Price$Outbound | undefined; - error?: ErrorT$Outbound | undefined; - messaging_service_id?: string | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Message$outboundSchema: z.ZodType< - Message$Outbound, - z.ZodTypeDef, - Message -> = z.object({ - id: z.string().optional(), - from: z.string(), - to: z.string(), - subject: z.string().optional(), - body: z.string(), - type: MessageType$outboundSchema.optional(), - numberOfUnits: z.number().int().optional(), - numberOfMediaFiles: z.number().int().optional(), - direction: Direction$outboundSchema.optional(), - status: MessageStatus$outboundSchema.optional(), - scheduledAt: z.date().transform(v => v.toISOString()).optional(), - sentAt: z.date().transform(v => v.toISOString()).optional(), - webhookUrl: z.string().optional(), - reference: z.string().optional(), - price: z.lazy(() => Price$outboundSchema).optional(), - error: z.lazy(() => ErrorT$outboundSchema).optional(), - messagingServiceId: z.string().optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - numberOfUnits: "number_of_units", - numberOfMediaFiles: "number_of_media_files", - scheduledAt: "scheduled_at", - sentAt: "sent_at", - webhookUrl: "webhook_url", - messagingServiceId: "messaging_service_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Message$ { - /** @deprecated use `Message$inboundSchema` instead. */ - export const inboundSchema = Message$inboundSchema; - /** @deprecated use `Message$outboundSchema` instead. */ - export const outboundSchema = Message$outboundSchema; - /** @deprecated use `Message$Outbound` instead. */ - export type Outbound = Message$Outbound; -} - -export function messageToJSON(message: Message): string { - return JSON.stringify(Message$outboundSchema.parse(message)); -} - export function messageFromJSON( jsonString: string, ): SafeParseResult { @@ -546,33 +336,6 @@ export function messageFromJSON( ); } -/** @internal */ -export const MessageInput$inboundSchema: z.ZodType< - MessageInput, - z.ZodTypeDef, - unknown -> = z.object({ - from: z.string(), - to: z.string(), - subject: z.string().optional(), - body: z.string(), - type: MessageType$inboundSchema.optional(), - scheduled_at: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - webhook_url: z.string().optional(), - reference: z.string().optional(), - messaging_service_id: z.string().optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "scheduled_at": "scheduledAt", - "webhook_url": "webhookUrl", - "messaging_service_id": "messagingServiceId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type MessageInput$Outbound = { from: string; @@ -612,29 +375,6 @@ export const MessageInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageInput$ { - /** @deprecated use `MessageInput$inboundSchema` instead. */ - export const inboundSchema = MessageInput$inboundSchema; - /** @deprecated use `MessageInput$outboundSchema` instead. */ - export const outboundSchema = MessageInput$outboundSchema; - /** @deprecated use `MessageInput$Outbound` instead. */ - export type Outbound = MessageInput$Outbound; -} - export function messageInputToJSON(messageInput: MessageInput): string { return JSON.stringify(MessageInput$outboundSchema.parse(messageInput)); } - -export function messageInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MessageInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MessageInput' from JSON`, - ); -} diff --git a/src/models/components/meta.ts b/src/models/components/meta.ts index 134c5d459..2ff702098 100644 --- a/src/models/components/meta.ts +++ b/src/models/components/meta.ts @@ -48,41 +48,6 @@ export const Cursors$inboundSchema: z.ZodType = next: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Cursors$Outbound = { - previous?: string | null | undefined; - current?: string | null | undefined; - next?: string | null | undefined; -}; - -/** @internal */ -export const Cursors$outboundSchema: z.ZodType< - Cursors$Outbound, - z.ZodTypeDef, - Cursors -> = z.object({ - previous: z.nullable(z.string()).optional(), - current: z.nullable(z.string()).optional(), - next: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Cursors$ { - /** @deprecated use `Cursors$inboundSchema` instead. */ - export const inboundSchema = Cursors$inboundSchema; - /** @deprecated use `Cursors$outboundSchema` instead. */ - export const outboundSchema = Cursors$outboundSchema; - /** @deprecated use `Cursors$Outbound` instead. */ - export type Outbound = Cursors$Outbound; -} - -export function cursorsToJSON(cursors: Cursors): string { - return JSON.stringify(Cursors$outboundSchema.parse(cursors)); -} - export function cursorsFromJSON( jsonString: string, ): SafeParseResult { @@ -104,40 +69,6 @@ export const Meta$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Meta$Outbound = { - items_on_page?: number | undefined; - cursors?: Cursors$Outbound | undefined; -}; - -/** @internal */ -export const Meta$outboundSchema: z.ZodType = - z.object({ - itemsOnPage: z.number().int().optional(), - cursors: z.lazy(() => Cursors$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - itemsOnPage: "items_on_page", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Meta$ { - /** @deprecated use `Meta$inboundSchema` instead. */ - export const inboundSchema = Meta$inboundSchema; - /** @deprecated use `Meta$outboundSchema` instead. */ - export const outboundSchema = Meta$outboundSchema; - /** @deprecated use `Meta$Outbound` instead. */ - export type Outbound = Meta$Outbound; -} - -export function metaToJSON(meta: Meta): string { - return JSON.stringify(Meta$outboundSchema.parse(meta)); -} - export function metaFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/note.ts b/src/models/components/note.ts index 39077b5ca..6dfca3712 100644 --- a/src/models/components/note.ts +++ b/src/models/components/note.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Note = { @@ -117,79 +115,6 @@ export const Note$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Note$Outbound = { - id?: string | undefined; - title?: string | null | undefined; - content?: string | null | undefined; - owner_id?: string | null | undefined; - contact_id?: string | null | undefined; - company_id?: string | null | undefined; - opportunity_id?: string | null | undefined; - activity_id?: string | null | undefined; - lead_id?: string | null | undefined; - active?: boolean | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Note$outboundSchema: z.ZodType = - z.object({ - id: z.string().optional(), - title: z.nullable(z.string()).optional(), - content: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - contactId: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - opportunityId: z.nullable(z.string()).optional(), - activityId: z.nullable(z.string()).optional(), - leadId: z.nullable(z.string()).optional(), - active: z.nullable(z.boolean()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - ownerId: "owner_id", - contactId: "contact_id", - companyId: "company_id", - opportunityId: "opportunity_id", - activityId: "activity_id", - leadId: "lead_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Note$ { - /** @deprecated use `Note$inboundSchema` instead. */ - export const inboundSchema = Note$inboundSchema; - /** @deprecated use `Note$outboundSchema` instead. */ - export const outboundSchema = Note$outboundSchema; - /** @deprecated use `Note$Outbound` instead. */ - export type Outbound = Note$Outbound; -} - -export function noteToJSON(note: Note): string { - return JSON.stringify(Note$outboundSchema.parse(note)); -} - export function noteFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/noteinput.ts b/src/models/components/noteinput.ts index 258960772..925c74d5f 100644 --- a/src/models/components/noteinput.ts +++ b/src/models/components/noteinput.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -57,34 +53,6 @@ export type NoteInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const NoteInput$inboundSchema: z.ZodType< - NoteInput, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.nullable(z.string()).optional(), - content: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - contact_id: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - opportunity_id: z.nullable(z.string()).optional(), - activity_id: z.nullable(z.string()).optional(), - lead_id: z.nullable(z.string()).optional(), - active: z.nullable(z.boolean()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "owner_id": "ownerId", - "contact_id": "contactId", - "company_id": "companyId", - "opportunity_id": "opportunityId", - "activity_id": "activityId", - "lead_id": "leadId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type NoteInput$Outbound = { title?: string | null | undefined; @@ -127,29 +95,6 @@ export const NoteInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NoteInput$ { - /** @deprecated use `NoteInput$inboundSchema` instead. */ - export const inboundSchema = NoteInput$inboundSchema; - /** @deprecated use `NoteInput$outboundSchema` instead. */ - export const outboundSchema = NoteInput$outboundSchema; - /** @deprecated use `NoteInput$Outbound` instead. */ - export type Outbound = NoteInput$Outbound; -} - export function noteInputToJSON(noteInput: NoteInput): string { return JSON.stringify(NoteInput$outboundSchema.parse(noteInput)); } - -export function noteInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NoteInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NoteInput' from JSON`, - ); -} diff --git a/src/models/components/oauthgranttype.ts b/src/models/components/oauthgranttype.ts index 572dda110..4f5d8f46e 100644 --- a/src/models/components/oauthgranttype.ts +++ b/src/models/components/oauthgranttype.ts @@ -22,19 +22,3 @@ export type OAuthGrantType = ClosedEnum; export const OAuthGrantType$inboundSchema: z.ZodNativeEnum< typeof OAuthGrantType > = z.nativeEnum(OAuthGrantType); - -/** @internal */ -export const OAuthGrantType$outboundSchema: z.ZodNativeEnum< - typeof OAuthGrantType -> = OAuthGrantType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OAuthGrantType$ { - /** @deprecated use `OAuthGrantType$inboundSchema` instead. */ - export const inboundSchema = OAuthGrantType$inboundSchema; - /** @deprecated use `OAuthGrantType$outboundSchema` instead. */ - export const outboundSchema = OAuthGrantType$outboundSchema; -} diff --git a/src/models/components/opportunitiesfilter.ts b/src/models/components/opportunitiesfilter.ts index 1037faadb..62d6ec874 100644 --- a/src/models/components/opportunitiesfilter.ts +++ b/src/models/components/opportunitiesfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type OpportunitiesFilter = { /** @@ -39,29 +36,6 @@ export type OpportunitiesFilter = { primaryContactId?: string | undefined; }; -/** @internal */ -export const OpportunitiesFilter$inboundSchema: z.ZodType< - OpportunitiesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string().optional(), - status: z.string().optional(), - monetary_amount: z.number().optional(), - win_probability: z.number().optional(), - company_id: z.string().optional(), - owner_id: z.string().optional(), - primary_contact_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "monetary_amount": "monetaryAmount", - "win_probability": "winProbability", - "company_id": "companyId", - "owner_id": "ownerId", - "primary_contact_id": "primaryContactId", - }); -}); - /** @internal */ export type OpportunitiesFilter$Outbound = { title?: string | undefined; @@ -96,19 +70,6 @@ export const OpportunitiesFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpportunitiesFilter$ { - /** @deprecated use `OpportunitiesFilter$inboundSchema` instead. */ - export const inboundSchema = OpportunitiesFilter$inboundSchema; - /** @deprecated use `OpportunitiesFilter$outboundSchema` instead. */ - export const outboundSchema = OpportunitiesFilter$outboundSchema; - /** @deprecated use `OpportunitiesFilter$Outbound` instead. */ - export type Outbound = OpportunitiesFilter$Outbound; -} - export function opportunitiesFilterToJSON( opportunitiesFilter: OpportunitiesFilter, ): string { @@ -116,13 +77,3 @@ export function opportunitiesFilterToJSON( OpportunitiesFilter$outboundSchema.parse(opportunitiesFilter), ); } - -export function opportunitiesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OpportunitiesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OpportunitiesFilter' from JSON`, - ); -} diff --git a/src/models/components/opportunitiessort.ts b/src/models/components/opportunitiessort.ts index 8cd430f9e..9a6431a0b 100644 --- a/src/models/components/opportunitiessort.ts +++ b/src/models/components/opportunitiessort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -40,36 +36,10 @@ export type OpportunitiesSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const OpportunitiesSortBy$inboundSchema: z.ZodNativeEnum< - typeof OpportunitiesSortBy -> = z.nativeEnum(OpportunitiesSortBy); - /** @internal */ export const OpportunitiesSortBy$outboundSchema: z.ZodNativeEnum< typeof OpportunitiesSortBy -> = OpportunitiesSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpportunitiesSortBy$ { - /** @deprecated use `OpportunitiesSortBy$inboundSchema` instead. */ - export const inboundSchema = OpportunitiesSortBy$inboundSchema; - /** @deprecated use `OpportunitiesSortBy$outboundSchema` instead. */ - export const outboundSchema = OpportunitiesSortBy$outboundSchema; -} - -/** @internal */ -export const OpportunitiesSort$inboundSchema: z.ZodType< - OpportunitiesSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: OpportunitiesSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(OpportunitiesSortBy); /** @internal */ export type OpportunitiesSort$Outbound = { @@ -87,19 +57,6 @@ export const OpportunitiesSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpportunitiesSort$ { - /** @deprecated use `OpportunitiesSort$inboundSchema` instead. */ - export const inboundSchema = OpportunitiesSort$inboundSchema; - /** @deprecated use `OpportunitiesSort$outboundSchema` instead. */ - export const outboundSchema = OpportunitiesSort$outboundSchema; - /** @deprecated use `OpportunitiesSort$Outbound` instead. */ - export type Outbound = OpportunitiesSort$Outbound; -} - export function opportunitiesSortToJSON( opportunitiesSort: OpportunitiesSort, ): string { @@ -107,13 +64,3 @@ export function opportunitiesSortToJSON( OpportunitiesSort$outboundSchema.parse(opportunitiesSort), ); } - -export function opportunitiesSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OpportunitiesSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OpportunitiesSort' from JSON`, - ); -} diff --git a/src/models/components/opportunity.ts b/src/models/components/opportunity.ts index 0ff3da744..f89ac7270 100644 --- a/src/models/components/opportunity.ts +++ b/src/models/components/opportunity.ts @@ -8,22 +8,11 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - CustomField, - CustomField$inboundSchema, - CustomField$Outbound, - CustomField$outboundSchema, -} from "./customfield.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { CustomField, CustomField$inboundSchema } from "./customfield.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Opportunity = { @@ -289,160 +278,6 @@ export const Opportunity$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Opportunity$Outbound = { - id?: string | undefined; - title: string; - primary_contact_id?: string | null | undefined; - description?: string | null | undefined; - type?: string | null | undefined; - monetary_amount?: number | null | undefined; - currency?: string | null | undefined; - win_probability?: number | null | undefined; - expected_revenue?: number | null | undefined; - close_date?: string | null | undefined; - loss_reason_id?: string | null | undefined; - loss_reason?: string | null | undefined; - won_reason_id?: string | null | undefined; - won_reason?: string | null | undefined; - pipeline_id?: string | null | undefined; - pipeline_stage_id?: string | null | undefined; - source_id?: string | null | undefined; - lead_id?: string | null | undefined; - lead_source?: string | null | undefined; - contact_id?: string | null | undefined; - contact_ids?: Array | undefined; - company_id?: string | null | undefined; - company_name?: string | null | undefined; - owner_id?: string | null | undefined; - priority?: string | null | undefined; - status?: string | null | undefined; - status_id?: string | null | undefined; - tags?: Array | null | undefined; - interaction_count?: number | null | undefined; - custom_fields?: Array | undefined; - stage_last_changed_at?: string | null | undefined; - last_activity_at?: string | null | undefined; - deleted?: boolean | undefined; - date_stage_changed?: string | null | undefined; - date_last_contacted?: string | null | undefined; - date_lead_created?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Opportunity$outboundSchema: z.ZodType< - Opportunity$Outbound, - z.ZodTypeDef, - Opportunity -> = z.object({ - id: z.string().optional(), - title: z.string(), - primaryContactId: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - monetaryAmount: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - winProbability: z.nullable(z.number()).optional(), - expectedRevenue: z.nullable(z.number()).optional(), - closeDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - lossReasonId: z.nullable(z.string()).optional(), - lossReason: z.nullable(z.string()).optional(), - wonReasonId: z.nullable(z.string()).optional(), - wonReason: z.nullable(z.string()).optional(), - pipelineId: z.nullable(z.string()).optional(), - pipelineStageId: z.nullable(z.string()).optional(), - sourceId: z.nullable(z.string()).optional(), - leadId: z.nullable(z.string()).optional(), - leadSource: z.nullable(z.string()).optional(), - contactId: z.nullable(z.string()).optional(), - contactIds: z.array(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - priority: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - statusId: z.nullable(z.string()).optional(), - tags: z.nullable(z.array(z.string())).optional(), - interactionCount: z.nullable(z.number()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - stageLastChangedAt: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - lastActivityAt: z.nullable(z.string()).optional(), - deleted: z.boolean().optional(), - dateStageChanged: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - dateLastContacted: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - dateLeadCreated: z.nullable(z.date().transform(v => v.toISOString())) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - primaryContactId: "primary_contact_id", - monetaryAmount: "monetary_amount", - winProbability: "win_probability", - expectedRevenue: "expected_revenue", - closeDate: "close_date", - lossReasonId: "loss_reason_id", - lossReason: "loss_reason", - wonReasonId: "won_reason_id", - wonReason: "won_reason", - pipelineId: "pipeline_id", - pipelineStageId: "pipeline_stage_id", - sourceId: "source_id", - leadId: "lead_id", - leadSource: "lead_source", - contactId: "contact_id", - contactIds: "contact_ids", - companyId: "company_id", - companyName: "company_name", - ownerId: "owner_id", - statusId: "status_id", - interactionCount: "interaction_count", - customFields: "custom_fields", - stageLastChangedAt: "stage_last_changed_at", - lastActivityAt: "last_activity_at", - dateStageChanged: "date_stage_changed", - dateLastContacted: "date_last_contacted", - dateLeadCreated: "date_lead_created", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Opportunity$ { - /** @deprecated use `Opportunity$inboundSchema` instead. */ - export const inboundSchema = Opportunity$inboundSchema; - /** @deprecated use `Opportunity$outboundSchema` instead. */ - export const outboundSchema = Opportunity$outboundSchema; - /** @deprecated use `Opportunity$Outbound` instead. */ - export type Outbound = Opportunity$Outbound; -} - -export function opportunityToJSON(opportunity: Opportunity): string { - return JSON.stringify(Opportunity$outboundSchema.parse(opportunity)); -} - export function opportunityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/opportunityinput.ts b/src/models/components/opportunityinput.ts index b5ef65bf3..0f6fd71b5 100644 --- a/src/models/components/opportunityinput.ts +++ b/src/models/components/opportunityinput.ts @@ -4,24 +4,15 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$outboundSchema } from "./currency.js"; import { CustomField, - CustomField$inboundSchema, CustomField$Outbound, CustomField$outboundSchema, } from "./customfield.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -139,70 +130,6 @@ export type OpportunityInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const OpportunityInput$inboundSchema: z.ZodType< - OpportunityInput, - z.ZodTypeDef, - unknown -> = z.object({ - title: z.string(), - primary_contact_id: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - monetary_amount: z.nullable(z.number()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - win_probability: z.nullable(z.number()).optional(), - close_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - loss_reason_id: z.nullable(z.string()).optional(), - loss_reason: z.nullable(z.string()).optional(), - won_reason_id: z.nullable(z.string()).optional(), - won_reason: z.nullable(z.string()).optional(), - pipeline_id: z.nullable(z.string()).optional(), - pipeline_stage_id: z.nullable(z.string()).optional(), - source_id: z.nullable(z.string()).optional(), - lead_id: z.nullable(z.string()).optional(), - lead_source: z.nullable(z.string()).optional(), - contact_id: z.nullable(z.string()).optional(), - contact_ids: z.array(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - priority: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - status_id: z.nullable(z.string()).optional(), - tags: z.nullable(z.array(z.string())).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - stage_last_changed_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "primary_contact_id": "primaryContactId", - "monetary_amount": "monetaryAmount", - "win_probability": "winProbability", - "close_date": "closeDate", - "loss_reason_id": "lossReasonId", - "loss_reason": "lossReason", - "won_reason_id": "wonReasonId", - "won_reason": "wonReason", - "pipeline_id": "pipelineId", - "pipeline_stage_id": "pipelineStageId", - "source_id": "sourceId", - "lead_id": "leadId", - "lead_source": "leadSource", - "contact_id": "contactId", - "contact_ids": "contactIds", - "company_id": "companyId", - "company_name": "companyName", - "owner_id": "ownerId", - "status_id": "statusId", - "custom_fields": "customFields", - "stage_last_changed_at": "stageLastChangedAt", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type OpportunityInput$Outbound = { title: string; @@ -300,19 +227,6 @@ export const OpportunityInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpportunityInput$ { - /** @deprecated use `OpportunityInput$inboundSchema` instead. */ - export const inboundSchema = OpportunityInput$inboundSchema; - /** @deprecated use `OpportunityInput$outboundSchema` instead. */ - export const outboundSchema = OpportunityInput$outboundSchema; - /** @deprecated use `OpportunityInput$Outbound` instead. */ - export type Outbound = OpportunityInput$Outbound; -} - export function opportunityInputToJSON( opportunityInput: OpportunityInput, ): string { @@ -320,13 +234,3 @@ export function opportunityInputToJSON( OpportunityInput$outboundSchema.parse(opportunityInput), ); } - -export function opportunityInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OpportunityInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OpportunityInput' from JSON`, - ); -} diff --git a/src/models/components/orderssort.ts b/src/models/components/orderssort.ts index aadc135ea..ba6137d38 100644 --- a/src/models/components/orderssort.ts +++ b/src/models/components/orderssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -37,34 +33,9 @@ export type OrdersSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const OrdersSortBy$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(OrdersSortBy); - /** @internal */ export const OrdersSortBy$outboundSchema: z.ZodNativeEnum = - OrdersSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrdersSortBy$ { - /** @deprecated use `OrdersSortBy$inboundSchema` instead. */ - export const inboundSchema = OrdersSortBy$inboundSchema; - /** @deprecated use `OrdersSortBy$outboundSchema` instead. */ - export const outboundSchema = OrdersSortBy$outboundSchema; -} - -/** @internal */ -export const OrdersSort$inboundSchema: z.ZodType< - OrdersSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: OrdersSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); + z.nativeEnum(OrdersSortBy); /** @internal */ export type OrdersSort$Outbound = { @@ -82,29 +53,6 @@ export const OrdersSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OrdersSort$ { - /** @deprecated use `OrdersSort$inboundSchema` instead. */ - export const inboundSchema = OrdersSort$inboundSchema; - /** @deprecated use `OrdersSort$outboundSchema` instead. */ - export const outboundSchema = OrdersSort$outboundSchema; - /** @deprecated use `OrdersSort$Outbound` instead. */ - export type Outbound = OrdersSort$Outbound; -} - export function ordersSortToJSON(ordersSort: OrdersSort): string { return JSON.stringify(OrdersSort$outboundSchema.parse(ordersSort)); } - -export function ordersSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OrdersSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OrdersSort' from JSON`, - ); -} diff --git a/src/models/components/outstandingbalancebycurrency.ts b/src/models/components/outstandingbalancebycurrency.ts index 2e19bbecc..f114cbae3 100644 --- a/src/models/components/outstandingbalancebycurrency.ts +++ b/src/models/components/outstandingbalancebycurrency.ts @@ -10,14 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BalanceByPeriod, BalanceByPeriod$inboundSchema, - BalanceByPeriod$Outbound, - BalanceByPeriod$outboundSchema, } from "./balancebyperiod.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; export type OutstandingBalanceByCurrency = { /** @@ -47,52 +41,6 @@ export const OutstandingBalanceByCurrency$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OutstandingBalanceByCurrency$Outbound = { - currency?: string | null | undefined; - total_amount?: number | undefined; - balances_by_period?: Array | undefined; -}; - -/** @internal */ -export const OutstandingBalanceByCurrency$outboundSchema: z.ZodType< - OutstandingBalanceByCurrency$Outbound, - z.ZodTypeDef, - OutstandingBalanceByCurrency -> = z.object({ - currency: z.nullable(Currency$outboundSchema).optional(), - totalAmount: z.number().optional(), - balancesByPeriod: z.array(BalanceByPeriod$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - totalAmount: "total_amount", - balancesByPeriod: "balances_by_period", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OutstandingBalanceByCurrency$ { - /** @deprecated use `OutstandingBalanceByCurrency$inboundSchema` instead. */ - export const inboundSchema = OutstandingBalanceByCurrency$inboundSchema; - /** @deprecated use `OutstandingBalanceByCurrency$outboundSchema` instead. */ - export const outboundSchema = OutstandingBalanceByCurrency$outboundSchema; - /** @deprecated use `OutstandingBalanceByCurrency$Outbound` instead. */ - export type Outbound = OutstandingBalanceByCurrency$Outbound; -} - -export function outstandingBalanceByCurrencyToJSON( - outstandingBalanceByCurrency: OutstandingBalanceByCurrency, -): string { - return JSON.stringify( - OutstandingBalanceByCurrency$outboundSchema.parse( - outstandingBalanceByCurrency, - ), - ); -} - export function outstandingBalanceByCurrencyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/outstandingbalancebycustomer.ts b/src/models/components/outstandingbalancebycustomer.ts index 678ab8787..29744a16f 100644 --- a/src/models/components/outstandingbalancebycustomer.ts +++ b/src/models/components/outstandingbalancebycustomer.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutstandingBalanceByCurrency, OutstandingBalanceByCurrency$inboundSchema, - OutstandingBalanceByCurrency$Outbound, - OutstandingBalanceByCurrency$outboundSchema, } from "./outstandingbalancebycurrency.js"; export type OutstandingBalanceByCustomer = { @@ -47,57 +45,6 @@ export const OutstandingBalanceByCustomer$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OutstandingBalanceByCustomer$Outbound = { - customer_id?: string | undefined; - customer_name?: string | undefined; - outstanding_balances_by_currency?: - | Array - | undefined; -}; - -/** @internal */ -export const OutstandingBalanceByCustomer$outboundSchema: z.ZodType< - OutstandingBalanceByCustomer$Outbound, - z.ZodTypeDef, - OutstandingBalanceByCustomer -> = z.object({ - customerId: z.string().optional(), - customerName: z.string().optional(), - outstandingBalancesByCurrency: z.array( - OutstandingBalanceByCurrency$outboundSchema, - ).optional(), -}).transform((v) => { - return remap$(v, { - customerId: "customer_id", - customerName: "customer_name", - outstandingBalancesByCurrency: "outstanding_balances_by_currency", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OutstandingBalanceByCustomer$ { - /** @deprecated use `OutstandingBalanceByCustomer$inboundSchema` instead. */ - export const inboundSchema = OutstandingBalanceByCustomer$inboundSchema; - /** @deprecated use `OutstandingBalanceByCustomer$outboundSchema` instead. */ - export const outboundSchema = OutstandingBalanceByCustomer$outboundSchema; - /** @deprecated use `OutstandingBalanceByCustomer$Outbound` instead. */ - export type Outbound = OutstandingBalanceByCustomer$Outbound; -} - -export function outstandingBalanceByCustomerToJSON( - outstandingBalanceByCustomer: OutstandingBalanceByCustomer, -): string { - return JSON.stringify( - OutstandingBalanceByCustomer$outboundSchema.parse( - outstandingBalanceByCustomer, - ), - ); -} - export function outstandingBalanceByCustomerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/outstandingbalancebysupplier.ts b/src/models/components/outstandingbalancebysupplier.ts index dd7bcfccf..45564d277 100644 --- a/src/models/components/outstandingbalancebysupplier.ts +++ b/src/models/components/outstandingbalancebysupplier.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutstandingBalanceByCurrency, OutstandingBalanceByCurrency$inboundSchema, - OutstandingBalanceByCurrency$Outbound, - OutstandingBalanceByCurrency$outboundSchema, } from "./outstandingbalancebycurrency.js"; export type OutstandingBalanceBySupplier = { @@ -47,57 +45,6 @@ export const OutstandingBalanceBySupplier$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OutstandingBalanceBySupplier$Outbound = { - supplier_id?: string | undefined; - supplier_name?: string | undefined; - outstanding_balances_by_currency?: - | Array - | undefined; -}; - -/** @internal */ -export const OutstandingBalanceBySupplier$outboundSchema: z.ZodType< - OutstandingBalanceBySupplier$Outbound, - z.ZodTypeDef, - OutstandingBalanceBySupplier -> = z.object({ - supplierId: z.string().optional(), - supplierName: z.string().optional(), - outstandingBalancesByCurrency: z.array( - OutstandingBalanceByCurrency$outboundSchema, - ).optional(), -}).transform((v) => { - return remap$(v, { - supplierId: "supplier_id", - supplierName: "supplier_name", - outstandingBalancesByCurrency: "outstanding_balances_by_currency", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OutstandingBalanceBySupplier$ { - /** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */ - export const inboundSchema = OutstandingBalanceBySupplier$inboundSchema; - /** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */ - export const outboundSchema = OutstandingBalanceBySupplier$outboundSchema; - /** @deprecated use `OutstandingBalanceBySupplier$Outbound` instead. */ - export type Outbound = OutstandingBalanceBySupplier$Outbound; -} - -export function outstandingBalanceBySupplierToJSON( - outstandingBalanceBySupplier: OutstandingBalanceBySupplier, -): string { - return JSON.stringify( - OutstandingBalanceBySupplier$outboundSchema.parse( - outstandingBalanceBySupplier, - ), - ); -} - export function outstandingBalanceBySupplierFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/owner.ts b/src/models/components/owner.ts index 59d97b7cc..4038f04c1 100644 --- a/src/models/components/owner.ts +++ b/src/models/components/owner.ts @@ -30,41 +30,6 @@ export const Owner$inboundSchema: z.ZodType = z name: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Owner$Outbound = { - id?: string | undefined; - email?: string | null | undefined; - name?: string | null | undefined; -}; - -/** @internal */ -export const Owner$outboundSchema: z.ZodType< - Owner$Outbound, - z.ZodTypeDef, - Owner -> = z.object({ - id: z.string().optional(), - email: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Owner$ { - /** @deprecated use `Owner$inboundSchema` instead. */ - export const inboundSchema = Owner$inboundSchema; - /** @deprecated use `Owner$outboundSchema` instead. */ - export const outboundSchema = Owner$outboundSchema; - /** @deprecated use `Owner$Outbound` instead. */ - export type Outbound = Owner$Outbound; -} - -export function ownerToJSON(owner: Owner): string { - return JSON.stringify(Owner$outboundSchema.parse(owner)); -} - export function ownerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginationcoverage.ts b/src/models/components/paginationcoverage.ts index 8578c1361..9a7034fe4 100644 --- a/src/models/components/paginationcoverage.ts +++ b/src/models/components/paginationcoverage.ts @@ -41,22 +41,6 @@ export const PaginationCoverageMode$inboundSchema: z.ZodNativeEnum< typeof PaginationCoverageMode > = z.nativeEnum(PaginationCoverageMode); -/** @internal */ -export const PaginationCoverageMode$outboundSchema: z.ZodNativeEnum< - typeof PaginationCoverageMode -> = PaginationCoverageMode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginationCoverageMode$ { - /** @deprecated use `PaginationCoverageMode$inboundSchema` instead. */ - export const inboundSchema = PaginationCoverageMode$inboundSchema; - /** @deprecated use `PaginationCoverageMode$outboundSchema` instead. */ - export const outboundSchema = PaginationCoverageMode$outboundSchema; -} - /** @internal */ export const PaginationCoverage$inboundSchema: z.ZodType< PaginationCoverage, @@ -73,50 +57,6 @@ export const PaginationCoverage$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PaginationCoverage$Outbound = { - mode?: string | undefined; - paging_support?: boolean | undefined; - limit_support?: boolean | undefined; -}; - -/** @internal */ -export const PaginationCoverage$outboundSchema: z.ZodType< - PaginationCoverage$Outbound, - z.ZodTypeDef, - PaginationCoverage -> = z.object({ - mode: PaginationCoverageMode$outboundSchema.optional(), - pagingSupport: z.boolean().optional(), - limitSupport: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - pagingSupport: "paging_support", - limitSupport: "limit_support", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginationCoverage$ { - /** @deprecated use `PaginationCoverage$inboundSchema` instead. */ - export const inboundSchema = PaginationCoverage$inboundSchema; - /** @deprecated use `PaginationCoverage$outboundSchema` instead. */ - export const outboundSchema = PaginationCoverage$outboundSchema; - /** @deprecated use `PaginationCoverage$Outbound` instead. */ - export type Outbound = PaginationCoverage$Outbound; -} - -export function paginationCoverageToJSON( - paginationCoverage: PaginationCoverage, -): string { - return JSON.stringify( - PaginationCoverage$outboundSchema.parse(paginationCoverage), - ); -} - export function paginationCoverageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/passthroughbody.ts b/src/models/components/passthroughbody.ts index ab931f73a..3c3847ee5 100644 --- a/src/models/components/passthroughbody.ts +++ b/src/models/components/passthroughbody.ts @@ -47,7 +47,6 @@ export const ExtendPaths$inboundSchema: z.ZodType< path: z.string(), value: z.any().optional(), }); - /** @internal */ export type ExtendPaths$Outbound = { path: string; @@ -64,23 +63,9 @@ export const ExtendPaths$outboundSchema: z.ZodType< value: z.any().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ExtendPaths$ { - /** @deprecated use `ExtendPaths$inboundSchema` instead. */ - export const inboundSchema = ExtendPaths$inboundSchema; - /** @deprecated use `ExtendPaths$outboundSchema` instead. */ - export const outboundSchema = ExtendPaths$outboundSchema; - /** @deprecated use `ExtendPaths$Outbound` instead. */ - export type Outbound = ExtendPaths$Outbound; -} - export function extendPathsToJSON(extendPaths: ExtendPaths): string { return JSON.stringify(ExtendPaths$outboundSchema.parse(extendPaths)); } - export function extendPathsFromJSON( jsonString: string, ): SafeParseResult { @@ -109,7 +94,6 @@ export const PassThroughBody$inboundSchema: z.ZodType< "extend_paths": "extendPaths", }); }); - /** @internal */ export type PassThroughBody$Outbound = { service_id: string; @@ -137,25 +121,11 @@ export const PassThroughBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PassThroughBody$ { - /** @deprecated use `PassThroughBody$inboundSchema` instead. */ - export const inboundSchema = PassThroughBody$inboundSchema; - /** @deprecated use `PassThroughBody$outboundSchema` instead. */ - export const outboundSchema = PassThroughBody$outboundSchema; - /** @deprecated use `PassThroughBody$Outbound` instead. */ - export type Outbound = PassThroughBody$Outbound; -} - export function passThroughBodyToJSON( passThroughBody: PassThroughBody, ): string { return JSON.stringify(PassThroughBody$outboundSchema.parse(passThroughBody)); } - export function passThroughBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/payment.ts b/src/models/components/payment.ts index 2915c59df..a443660fd 100644 --- a/src/models/components/payment.ts +++ b/src/models/components/payment.ts @@ -7,63 +7,31 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Allocation, - Allocation$inboundSchema, - Allocation$Outbound, - Allocation$outboundSchema, -} from "./allocation.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; -import { - CustomField, - CustomField$inboundSchema, - CustomField$Outbound, - CustomField$outboundSchema, -} from "./customfield.js"; +import { Allocation, Allocation$inboundSchema } from "./allocation.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; +import { CustomField, CustomField$inboundSchema } from "./customfield.js"; import { DeprecatedLinkedSupplier, DeprecatedLinkedSupplier$inboundSchema, - DeprecatedLinkedSupplier$Outbound, - DeprecatedLinkedSupplier$outboundSchema, } from "./deprecatedlinkedsupplier.js"; import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$inboundSchema, - LinkedLedgerAccount$Outbound, - LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$inboundSchema, - LinkedTrackingCategory$Outbound, - LinkedTrackingCategory$outboundSchema, } from "./linkedtrackingcategory.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; -import { - PaymentStatus, - PaymentStatus$inboundSchema, - PaymentStatus$outboundSchema, -} from "./paymentstatus.js"; -import { - PaymentType, - PaymentType$inboundSchema, - PaymentType$outboundSchema, -} from "./paymenttype.js"; +import { PaymentStatus, PaymentStatus$inboundSchema } from "./paymentstatus.js"; +import { PaymentType, PaymentType$inboundSchema } from "./paymenttype.js"; export type Payment = { /** @@ -261,127 +229,6 @@ export const Payment$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Payment$Outbound = { - id: string; - downstream_id?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - total_amount: number | null; - reference?: string | null | undefined; - payment_method?: string | null | undefined; - payment_method_reference?: string | null | undefined; - payment_method_id?: string | null | undefined; - accounts_receivable_account_type?: string | null | undefined; - accounts_receivable_account_id?: string | null | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - transaction_date: string | null; - customer?: LinkedCustomer$Outbound | null | undefined; - supplier?: DeprecatedLinkedSupplier$Outbound | null | undefined; - company_id?: string | null | undefined; - reconciled?: boolean | null | undefined; - status?: string | undefined; - type?: string | undefined; - allocations?: Array | undefined; - note?: string | null | undefined; - number?: string | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - display_id?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Payment$outboundSchema: z.ZodType< - Payment$Outbound, - z.ZodTypeDef, - Payment -> = z.object({ - id: z.string(), - downstreamId: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()), - reference: z.nullable(z.string()).optional(), - paymentMethod: z.nullable(z.string()).optional(), - paymentMethodReference: z.nullable(z.string()).optional(), - paymentMethodId: z.nullable(z.string()).optional(), - accountsReceivableAccountType: z.nullable(z.string()).optional(), - accountsReceivableAccountId: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - transactionDate: z.nullable(z.date().transform(v => v.toISOString())), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - supplier: z.nullable(DeprecatedLinkedSupplier$outboundSchema).optional(), - companyId: z.nullable(z.string()).optional(), - reconciled: z.nullable(z.boolean()).optional(), - status: PaymentStatus$outboundSchema.optional(), - type: PaymentType$outboundSchema.optional(), - allocations: z.array(Allocation$outboundSchema).optional(), - note: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - currencyRate: "currency_rate", - totalAmount: "total_amount", - paymentMethod: "payment_method", - paymentMethodReference: "payment_method_reference", - paymentMethodId: "payment_method_id", - accountsReceivableAccountType: "accounts_receivable_account_type", - accountsReceivableAccountId: "accounts_receivable_account_id", - transactionDate: "transaction_date", - companyId: "company_id", - trackingCategories: "tracking_categories", - customFields: "custom_fields", - rowVersion: "row_version", - displayId: "display_id", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Payment$ { - /** @deprecated use `Payment$inboundSchema` instead. */ - export const inboundSchema = Payment$inboundSchema; - /** @deprecated use `Payment$outboundSchema` instead. */ - export const outboundSchema = Payment$outboundSchema; - /** @deprecated use `Payment$Outbound` instead. */ - export type Outbound = Payment$Outbound; -} - -export function paymentToJSON(payment: Payment): string { - return JSON.stringify(Payment$outboundSchema.parse(payment)); -} - export function paymentFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paymentfrequency.ts b/src/models/components/paymentfrequency.ts index b7c490117..c82c1e118 100644 --- a/src/models/components/paymentfrequency.ts +++ b/src/models/components/paymentfrequency.ts @@ -24,19 +24,7 @@ export type PaymentFrequency = ClosedEnum; export const PaymentFrequency$inboundSchema: z.ZodNativeEnum< typeof PaymentFrequency > = z.nativeEnum(PaymentFrequency); - /** @internal */ export const PaymentFrequency$outboundSchema: z.ZodNativeEnum< typeof PaymentFrequency > = PaymentFrequency$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentFrequency$ { - /** @deprecated use `PaymentFrequency$inboundSchema` instead. */ - export const inboundSchema = PaymentFrequency$inboundSchema; - /** @deprecated use `PaymentFrequency$outboundSchema` instead. */ - export const outboundSchema = PaymentFrequency$outboundSchema; -} diff --git a/src/models/components/paymentinput.ts b/src/models/components/paymentinput.ts index 5b9157a09..ef195b6f8 100644 --- a/src/models/components/paymentinput.ts +++ b/src/models/components/paymentinput.ts @@ -4,66 +4,47 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AllocationInput, - AllocationInput$inboundSchema, AllocationInput$Outbound, AllocationInput$outboundSchema, } from "./allocation.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$outboundSchema } from "./currency.js"; import { CustomField, - CustomField$inboundSchema, CustomField$Outbound, CustomField$outboundSchema, } from "./customfield.js"; import { DeprecatedLinkedSupplierInput, - DeprecatedLinkedSupplierInput$inboundSchema, DeprecatedLinkedSupplierInput$Outbound, DeprecatedLinkedSupplierInput$outboundSchema, } from "./deprecatedlinkedsupplierinput.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; + LinkedLedgerAccount, + LinkedLedgerAccount$Outbound, + LinkedLedgerAccount$outboundSchema, +} from "./linkedledgeraccount.js"; import { LinkedTrackingCategory, - LinkedTrackingCategory$inboundSchema, LinkedTrackingCategory$Outbound, LinkedTrackingCategory$outboundSchema, } from "./linkedtrackingcategory.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; import { PaymentStatus, - PaymentStatus$inboundSchema, PaymentStatus$outboundSchema, } from "./paymentstatus.js"; -import { - PaymentType, - PaymentType$inboundSchema, - PaymentType$outboundSchema, -} from "./paymenttype.js"; +import { PaymentType, PaymentType$outboundSchema } from "./paymenttype.js"; export type PaymentInput = { /** @@ -106,7 +87,7 @@ export type PaymentInput = { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ accountsReceivableAccountId?: string | null | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ @@ -165,60 +146,6 @@ export type PaymentInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const PaymentInput$inboundSchema: z.ZodType< - PaymentInput, - z.ZodTypeDef, - unknown -> = z.object({ - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()), - reference: z.nullable(z.string()).optional(), - payment_method: z.nullable(z.string()).optional(), - payment_method_reference: z.nullable(z.string()).optional(), - payment_method_id: z.nullable(z.string()).optional(), - accounts_receivable_account_type: z.nullable(z.string()).optional(), - accounts_receivable_account_id: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - transaction_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - supplier: z.nullable(DeprecatedLinkedSupplierInput$inboundSchema).optional(), - company_id: z.nullable(z.string()).optional(), - reconciled: z.nullable(z.boolean()).optional(), - status: PaymentStatus$inboundSchema.optional(), - type: PaymentType$inboundSchema.optional(), - allocations: z.array(AllocationInput$inboundSchema).optional(), - note: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "currency_rate": "currencyRate", - "total_amount": "totalAmount", - "payment_method": "paymentMethod", - "payment_method_reference": "paymentMethodReference", - "payment_method_id": "paymentMethodId", - "accounts_receivable_account_type": "accountsReceivableAccountType", - "accounts_receivable_account_id": "accountsReceivableAccountId", - "transaction_date": "transactionDate", - "company_id": "companyId", - "tracking_categories": "trackingCategories", - "custom_fields": "customFields", - "row_version": "rowVersion", - "display_id": "displayId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type PaymentInput$Outbound = { currency?: string | null | undefined; @@ -230,7 +157,7 @@ export type PaymentInput$Outbound = { payment_method_id?: string | null | undefined; accounts_receivable_account_type?: string | null | undefined; accounts_receivable_account_id?: string | null | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; transaction_date: string | null; customer?: LinkedCustomerInput$Outbound | null | undefined; supplier?: DeprecatedLinkedSupplierInput$Outbound | null | undefined; @@ -266,7 +193,7 @@ export const PaymentInput$outboundSchema: z.ZodType< paymentMethodId: z.nullable(z.string()).optional(), accountsReceivableAccountType: z.nullable(z.string()).optional(), accountsReceivableAccountId: z.nullable(z.string()).optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), transactionDate: z.nullable(z.date().transform(v => v.toISOString())), customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(), supplier: z.nullable(DeprecatedLinkedSupplierInput$outboundSchema).optional(), @@ -303,29 +230,6 @@ export const PaymentInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentInput$ { - /** @deprecated use `PaymentInput$inboundSchema` instead. */ - export const inboundSchema = PaymentInput$inboundSchema; - /** @deprecated use `PaymentInput$outboundSchema` instead. */ - export const outboundSchema = PaymentInput$outboundSchema; - /** @deprecated use `PaymentInput$Outbound` instead. */ - export type Outbound = PaymentInput$Outbound; -} - export function paymentInputToJSON(paymentInput: PaymentInput): string { return JSON.stringify(PaymentInput$outboundSchema.parse(paymentInput)); } - -export function paymentInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PaymentInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PaymentInput' from JSON`, - ); -} diff --git a/src/models/components/paymentsfilter.ts b/src/models/components/paymentsfilter.ts index 783dcaff0..5303253a0 100644 --- a/src/models/components/paymentsfilter.ts +++ b/src/models/components/paymentsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PaymentsFilter = { updatedSince?: Date | undefined; @@ -14,25 +11,6 @@ export type PaymentsFilter = { supplierId?: string | undefined; }; -/** @internal */ -export const PaymentsFilter$inboundSchema: z.ZodType< - PaymentsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - invoice_id: z.string().optional(), - supplier_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - "invoice_id": "invoiceId", - "supplier_id": "supplierId", - }); -}); - /** @internal */ export type PaymentsFilter$Outbound = { updated_since?: string | undefined; @@ -57,29 +35,6 @@ export const PaymentsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentsFilter$ { - /** @deprecated use `PaymentsFilter$inboundSchema` instead. */ - export const inboundSchema = PaymentsFilter$inboundSchema; - /** @deprecated use `PaymentsFilter$outboundSchema` instead. */ - export const outboundSchema = PaymentsFilter$outboundSchema; - /** @deprecated use `PaymentsFilter$Outbound` instead. */ - export type Outbound = PaymentsFilter$Outbound; -} - export function paymentsFilterToJSON(paymentsFilter: PaymentsFilter): string { return JSON.stringify(PaymentsFilter$outboundSchema.parse(paymentsFilter)); } - -export function paymentsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PaymentsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PaymentsFilter' from JSON`, - ); -} diff --git a/src/models/components/paymentssort.ts b/src/models/components/paymentssort.ts index c0e11dfb4..1ff679f2a 100644 --- a/src/models/components/paymentssort.ts +++ b/src/models/components/paymentssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type PaymentsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const PaymentsSortBy$inboundSchema: z.ZodNativeEnum< - typeof PaymentsSortBy -> = z.nativeEnum(PaymentsSortBy); - /** @internal */ export const PaymentsSortBy$outboundSchema: z.ZodNativeEnum< typeof PaymentsSortBy -> = PaymentsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentsSortBy$ { - /** @deprecated use `PaymentsSortBy$inboundSchema` instead. */ - export const inboundSchema = PaymentsSortBy$inboundSchema; - /** @deprecated use `PaymentsSortBy$outboundSchema` instead. */ - export const outboundSchema = PaymentsSortBy$outboundSchema; -} - -/** @internal */ -export const PaymentsSort$inboundSchema: z.ZodType< - PaymentsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: PaymentsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(PaymentsSortBy); /** @internal */ export type PaymentsSort$Outbound = { @@ -83,29 +53,6 @@ export const PaymentsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentsSort$ { - /** @deprecated use `PaymentsSort$inboundSchema` instead. */ - export const inboundSchema = PaymentsSort$inboundSchema; - /** @deprecated use `PaymentsSort$outboundSchema` instead. */ - export const outboundSchema = PaymentsSort$outboundSchema; - /** @deprecated use `PaymentsSort$Outbound` instead. */ - export type Outbound = PaymentsSort$Outbound; -} - export function paymentsSortToJSON(paymentsSort: PaymentsSort): string { return JSON.stringify(PaymentsSort$outboundSchema.parse(paymentsSort)); } - -export function paymentsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PaymentsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PaymentsSort' from JSON`, - ); -} diff --git a/src/models/components/paymentstatus.ts b/src/models/components/paymentstatus.ts index 455b9059c..d192e454a 100644 --- a/src/models/components/paymentstatus.ts +++ b/src/models/components/paymentstatus.ts @@ -25,19 +25,7 @@ export type PaymentStatus = ClosedEnum; export const PaymentStatus$inboundSchema: z.ZodNativeEnum< typeof PaymentStatus > = z.nativeEnum(PaymentStatus); - /** @internal */ export const PaymentStatus$outboundSchema: z.ZodNativeEnum< typeof PaymentStatus > = PaymentStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentStatus$ { - /** @deprecated use `PaymentStatus$inboundSchema` instead. */ - export const inboundSchema = PaymentStatus$inboundSchema; - /** @deprecated use `PaymentStatus$outboundSchema` instead. */ - export const outboundSchema = PaymentStatus$outboundSchema; -} diff --git a/src/models/components/paymenttype.ts b/src/models/components/paymenttype.ts index ff4662db4..cd86fe91b 100644 --- a/src/models/components/paymenttype.ts +++ b/src/models/components/paymenttype.ts @@ -26,18 +26,6 @@ export type PaymentType = ClosedEnum; /** @internal */ export const PaymentType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PaymentType); - /** @internal */ export const PaymentType$outboundSchema: z.ZodNativeEnum = PaymentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentType$ { - /** @deprecated use `PaymentType$inboundSchema` instead. */ - export const inboundSchema = PaymentType$inboundSchema; - /** @deprecated use `PaymentType$outboundSchema` instead. */ - export const outboundSchema = PaymentType$outboundSchema; -} diff --git a/src/models/components/paymentunit.ts b/src/models/components/paymentunit.ts index cfbc979a3..569dd51e3 100644 --- a/src/models/components/paymentunit.ts +++ b/src/models/components/paymentunit.ts @@ -24,18 +24,6 @@ export type PaymentUnit = ClosedEnum; /** @internal */ export const PaymentUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PaymentUnit); - /** @internal */ export const PaymentUnit$outboundSchema: z.ZodNativeEnum = PaymentUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentUnit$ { - /** @deprecated use `PaymentUnit$inboundSchema` instead. */ - export const inboundSchema = PaymentUnit$inboundSchema; - /** @deprecated use `PaymentUnit$outboundSchema` instead. */ - export const outboundSchema = PaymentUnit$outboundSchema; -} diff --git a/src/models/components/payroll.ts b/src/models/components/payroll.ts index f317a05c7..f61a4cc5c 100644 --- a/src/models/components/payroll.ts +++ b/src/models/components/payroll.ts @@ -7,18 +7,8 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Compensation, - Compensation$inboundSchema, - Compensation$Outbound, - Compensation$outboundSchema, -} from "./compensation.js"; -import { - PayrollTotals, - PayrollTotals$inboundSchema, - PayrollTotals$Outbound, - PayrollTotals$outboundSchema, -} from "./payrolltotals.js"; +import { Compensation, Compensation$inboundSchema } from "./compensation.js"; +import { PayrollTotals, PayrollTotals$inboundSchema } from "./payrolltotals.js"; export type Payroll = { /** @@ -87,64 +77,6 @@ export const Payroll$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Payroll$Outbound = { - id: string | null; - company_id?: string | null | undefined; - processed: boolean | null; - processed_date?: string | null | undefined; - check_date: string | null; - start_date: string | null; - end_date: string | null; - totals?: PayrollTotals$Outbound | undefined; - compensations?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const Payroll$outboundSchema: z.ZodType< - Payroll$Outbound, - z.ZodTypeDef, - Payroll -> = z.object({ - id: z.nullable(z.string()), - companyId: z.nullable(z.string()).optional(), - processed: z.nullable(z.boolean()), - processedDate: z.nullable(z.string()).optional(), - checkDate: z.nullable(z.string()), - startDate: z.nullable(z.string()), - endDate: z.nullable(z.string()), - totals: PayrollTotals$outboundSchema.optional(), - compensations: z.array(Compensation$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - companyId: "company_id", - processedDate: "processed_date", - checkDate: "check_date", - startDate: "start_date", - endDate: "end_date", - customMappings: "custom_mappings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Payroll$ { - /** @deprecated use `Payroll$inboundSchema` instead. */ - export const inboundSchema = Payroll$inboundSchema; - /** @deprecated use `Payroll$outboundSchema` instead. */ - export const outboundSchema = Payroll$outboundSchema; - /** @deprecated use `Payroll$Outbound` instead. */ - export type Outbound = Payroll$Outbound; -} - -export function payrollToJSON(payroll: Payroll): string { - return JSON.stringify(Payroll$outboundSchema.parse(payroll)); -} - export function payrollFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/payrollsfilter.ts b/src/models/components/payrollsfilter.ts index e40213207..387ff91b7 100644 --- a/src/models/components/payrollsfilter.ts +++ b/src/models/components/payrollsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PayrollsFilter = { /** @@ -19,21 +16,6 @@ export type PayrollsFilter = { endDate?: string | undefined; }; -/** @internal */ -export const PayrollsFilter$inboundSchema: z.ZodType< - PayrollsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - start_date: z.string().optional(), - end_date: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "start_date": "startDate", - "end_date": "endDate", - }); -}); - /** @internal */ export type PayrollsFilter$Outbound = { start_date?: string | undefined; @@ -55,29 +37,6 @@ export const PayrollsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PayrollsFilter$ { - /** @deprecated use `PayrollsFilter$inboundSchema` instead. */ - export const inboundSchema = PayrollsFilter$inboundSchema; - /** @deprecated use `PayrollsFilter$outboundSchema` instead. */ - export const outboundSchema = PayrollsFilter$outboundSchema; - /** @deprecated use `PayrollsFilter$Outbound` instead. */ - export type Outbound = PayrollsFilter$Outbound; -} - export function payrollsFilterToJSON(payrollsFilter: PayrollsFilter): string { return JSON.stringify(PayrollsFilter$outboundSchema.parse(payrollsFilter)); } - -export function payrollsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PayrollsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PayrollsFilter' from JSON`, - ); -} diff --git a/src/models/components/payrolltotals.ts b/src/models/components/payrolltotals.ts index 6e6480950..be876c4bd 100644 --- a/src/models/components/payrolltotals.ts +++ b/src/models/components/payrolltotals.ts @@ -79,65 +79,6 @@ export const PayrollTotals$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PayrollTotals$Outbound = { - company_debit?: number | null | undefined; - tax_debit?: number | null | undefined; - check_amount?: number | null | undefined; - net_pay?: number | null | undefined; - gross_pay?: number | null | undefined; - employer_taxes?: number | null | undefined; - employee_taxes?: number | null | undefined; - employer_benefit_contributions?: number | null | undefined; - employee_benefit_deductions?: number | null | undefined; -}; - -/** @internal */ -export const PayrollTotals$outboundSchema: z.ZodType< - PayrollTotals$Outbound, - z.ZodTypeDef, - PayrollTotals -> = z.object({ - companyDebit: z.nullable(z.number()).optional(), - taxDebit: z.nullable(z.number()).optional(), - checkAmount: z.nullable(z.number()).optional(), - netPay: z.nullable(z.number()).optional(), - grossPay: z.nullable(z.number()).optional(), - employerTaxes: z.nullable(z.number()).optional(), - employeeTaxes: z.nullable(z.number()).optional(), - employerBenefitContributions: z.nullable(z.number()).optional(), - employeeBenefitDeductions: z.nullable(z.number()).optional(), -}).transform((v) => { - return remap$(v, { - companyDebit: "company_debit", - taxDebit: "tax_debit", - checkAmount: "check_amount", - netPay: "net_pay", - grossPay: "gross_pay", - employerTaxes: "employer_taxes", - employeeTaxes: "employee_taxes", - employerBenefitContributions: "employer_benefit_contributions", - employeeBenefitDeductions: "employee_benefit_deductions", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PayrollTotals$ { - /** @deprecated use `PayrollTotals$inboundSchema` instead. */ - export const inboundSchema = PayrollTotals$inboundSchema; - /** @deprecated use `PayrollTotals$outboundSchema` instead. */ - export const outboundSchema = PayrollTotals$outboundSchema; - /** @deprecated use `PayrollTotals$Outbound` instead. */ - export type Outbound = PayrollTotals$Outbound; -} - -export function payrollTotalsToJSON(payrollTotals: PayrollTotals): string { - return JSON.stringify(PayrollTotals$outboundSchema.parse(payrollTotals)); -} - export function payrollTotalsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/person.ts b/src/models/components/person.ts index 708b7fe21..f39650d06 100644 --- a/src/models/components/person.ts +++ b/src/models/components/person.ts @@ -8,11 +8,7 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Gender, - Gender$inboundSchema, - Gender$outboundSchema, -} from "./gender.js"; +import { Gender, Gender$inboundSchema } from "./gender.js"; export type Person = { /** @@ -76,63 +72,6 @@ export const Person$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Person$Outbound = { - id?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - middle_name?: string | null | undefined; - gender?: string | null | undefined; - initials?: string | null | undefined; - birthday?: string | null | undefined; - deceased_on?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const Person$outboundSchema: z.ZodType< - Person$Outbound, - z.ZodTypeDef, - Person -> = z.object({ - id: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - gender: z.nullable(Gender$outboundSchema).optional(), - initials: z.nullable(z.string()).optional(), - birthday: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - deceasedOn: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - firstName: "first_name", - lastName: "last_name", - middleName: "middle_name", - deceasedOn: "deceased_on", - customMappings: "custom_mappings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Person$ { - /** @deprecated use `Person$inboundSchema` instead. */ - export const inboundSchema = Person$inboundSchema; - /** @deprecated use `Person$outboundSchema` instead. */ - export const outboundSchema = Person$outboundSchema; - /** @deprecated use `Person$Outbound` instead. */ - export type Outbound = Person$Outbound; -} - -export function personToJSON(person: Person): string { - return JSON.stringify(Person$outboundSchema.parse(person)); -} - export function personFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/personinput.ts b/src/models/components/personinput.ts index 85f0eed17..28bc2272f 100644 --- a/src/models/components/personinput.ts +++ b/src/models/components/personinput.ts @@ -4,15 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Gender, - Gender$inboundSchema, - Gender$outboundSchema, -} from "./gender.js"; +import { Gender, Gender$outboundSchema } from "./gender.js"; export type PersonInput = { /** @@ -45,28 +38,6 @@ export type PersonInput = { deceasedOn?: RFCDate | null | undefined; }; -/** @internal */ -export const PersonInput$inboundSchema: z.ZodType< - PersonInput, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - gender: z.nullable(Gender$inboundSchema).optional(), - initials: z.nullable(z.string()).optional(), - birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - deceased_on: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), -}).transform((v) => { - return remap$(v, { - "first_name": "firstName", - "last_name": "lastName", - "middle_name": "middleName", - "deceased_on": "deceasedOn", - }); -}); - /** @internal */ export type PersonInput$Outbound = { first_name?: string | null | undefined; @@ -102,29 +73,6 @@ export const PersonInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PersonInput$ { - /** @deprecated use `PersonInput$inboundSchema` instead. */ - export const inboundSchema = PersonInput$inboundSchema; - /** @deprecated use `PersonInput$outboundSchema` instead. */ - export const outboundSchema = PersonInput$outboundSchema; - /** @deprecated use `PersonInput$Outbound` instead. */ - export type Outbound = PersonInput$Outbound; -} - export function personInputToJSON(personInput: PersonInput): string { return JSON.stringify(PersonInput$outboundSchema.parse(personInput)); } - -export function personInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PersonInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PersonInput' from JSON`, - ); -} diff --git a/src/models/components/phonenumber.ts b/src/models/components/phonenumber.ts index 73dc58b1b..2fae42655 100644 --- a/src/models/components/phonenumber.ts +++ b/src/models/components/phonenumber.ts @@ -62,23 +62,11 @@ export type PhoneNumber = { export const PhoneNumberType$inboundSchema: z.ZodNativeEnum< typeof PhoneNumberType > = z.nativeEnum(PhoneNumberType); - /** @internal */ export const PhoneNumberType$outboundSchema: z.ZodNativeEnum< typeof PhoneNumberType > = PhoneNumberType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PhoneNumberType$ { - /** @deprecated use `PhoneNumberType$inboundSchema` instead. */ - export const inboundSchema = PhoneNumberType$inboundSchema; - /** @deprecated use `PhoneNumberType$outboundSchema` instead. */ - export const outboundSchema = PhoneNumberType$outboundSchema; -} - /** @internal */ export const PhoneNumber$inboundSchema: z.ZodType< PhoneNumber, @@ -97,7 +85,6 @@ export const PhoneNumber$inboundSchema: z.ZodType< "area_code": "areaCode", }); }); - /** @internal */ export type PhoneNumber$Outbound = { id?: string | null | undefined; @@ -127,23 +114,9 @@ export const PhoneNumber$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PhoneNumber$ { - /** @deprecated use `PhoneNumber$inboundSchema` instead. */ - export const inboundSchema = PhoneNumber$inboundSchema; - /** @deprecated use `PhoneNumber$outboundSchema` instead. */ - export const outboundSchema = PhoneNumber$outboundSchema; - /** @deprecated use `PhoneNumber$Outbound` instead. */ - export type Outbound = PhoneNumber$Outbound; -} - export function phoneNumberToJSON(phoneNumber: PhoneNumber): string { return JSON.stringify(PhoneNumber$outboundSchema.parse(phoneNumber)); } - export function phoneNumberFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/pipeline.ts b/src/models/components/pipeline.ts index 0ead33435..3cd710b3f 100644 --- a/src/models/components/pipeline.ts +++ b/src/models/components/pipeline.ts @@ -7,16 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type Stages = { @@ -104,50 +98,6 @@ export const Stages$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Stages$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - value?: string | null | undefined; - win_probability?: number | null | undefined; - display_order?: number | null | undefined; -}; - -/** @internal */ -export const Stages$outboundSchema: z.ZodType< - Stages$Outbound, - z.ZodTypeDef, - Stages -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - value: z.nullable(z.string()).optional(), - winProbability: z.nullable(z.number().int()).optional(), - displayOrder: z.nullable(z.number().int()).optional(), -}).transform((v) => { - return remap$(v, { - winProbability: "win_probability", - displayOrder: "display_order", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Stages$ { - /** @deprecated use `Stages$inboundSchema` instead. */ - export const inboundSchema = Stages$inboundSchema; - /** @deprecated use `Stages$outboundSchema` instead. */ - export const outboundSchema = Stages$outboundSchema; - /** @deprecated use `Stages$Outbound` instead. */ - export type Outbound = Stages$Outbound; -} - -export function stagesToJSON(stages: Stages): string { - return JSON.stringify(Stages$outboundSchema.parse(stages)); -} - export function stagesFromJSON( jsonString: string, ): SafeParseResult { @@ -189,65 +139,6 @@ export const Pipeline$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Pipeline$Outbound = { - id?: string | undefined; - name: string; - currency?: string | null | undefined; - archived?: boolean | undefined; - active?: boolean | undefined; - display_order?: number | null | undefined; - win_probability_enabled?: boolean | undefined; - stages?: Array | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Pipeline$outboundSchema: z.ZodType< - Pipeline$Outbound, - z.ZodTypeDef, - Pipeline -> = z.object({ - id: z.string().optional(), - name: z.string(), - currency: z.nullable(Currency$outboundSchema).optional(), - archived: z.boolean().optional(), - active: z.boolean().optional(), - displayOrder: z.nullable(z.number().int()).optional(), - winProbabilityEnabled: z.boolean().optional(), - stages: z.array(z.lazy(() => Stages$outboundSchema)).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayOrder: "display_order", - winProbabilityEnabled: "win_probability_enabled", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Pipeline$ { - /** @deprecated use `Pipeline$inboundSchema` instead. */ - export const inboundSchema = Pipeline$inboundSchema; - /** @deprecated use `Pipeline$outboundSchema` instead. */ - export const outboundSchema = Pipeline$outboundSchema; - /** @deprecated use `Pipeline$Outbound` instead. */ - export type Outbound = Pipeline$Outbound; -} - -export function pipelineToJSON(pipeline: Pipeline): string { - return JSON.stringify(Pipeline$outboundSchema.parse(pipeline)); -} - export function pipelineFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/pipelineinput.ts b/src/models/components/pipelineinput.ts index fe4341a19..c959873f1 100644 --- a/src/models/components/pipelineinput.ts +++ b/src/models/components/pipelineinput.ts @@ -4,17 +4,9 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$outboundSchema } from "./currency.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -77,23 +69,6 @@ export type PipelineInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const PipelineStages$inboundSchema: z.ZodType< - PipelineStages, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), - value: z.nullable(z.string()).optional(), - win_probability: z.nullable(z.number().int()).optional(), - display_order: z.nullable(z.number().int()).optional(), -}).transform((v) => { - return remap$(v, { - "win_probability": "winProbability", - "display_order": "displayOrder", - }); -}); - /** @internal */ export type PipelineStages$Outbound = { name?: string | null | undefined; @@ -119,56 +94,10 @@ export const PipelineStages$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PipelineStages$ { - /** @deprecated use `PipelineStages$inboundSchema` instead. */ - export const inboundSchema = PipelineStages$inboundSchema; - /** @deprecated use `PipelineStages$outboundSchema` instead. */ - export const outboundSchema = PipelineStages$outboundSchema; - /** @deprecated use `PipelineStages$Outbound` instead. */ - export type Outbound = PipelineStages$Outbound; -} - export function pipelineStagesToJSON(pipelineStages: PipelineStages): string { return JSON.stringify(PipelineStages$outboundSchema.parse(pipelineStages)); } -export function pipelineStagesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PipelineStages$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PipelineStages' from JSON`, - ); -} - -/** @internal */ -export const PipelineInput$inboundSchema: z.ZodType< - PipelineInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), - name: z.string(), - currency: z.nullable(Currency$inboundSchema).optional(), - archived: z.boolean().optional(), - active: z.boolean().optional(), - display_order: z.nullable(z.number().int()).optional(), - win_probability_enabled: z.boolean().optional(), - stages: z.array(z.lazy(() => PipelineStages$inboundSchema)).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_order": "displayOrder", - "win_probability_enabled": "winProbabilityEnabled", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type PipelineInput$Outbound = { id?: string | undefined; @@ -205,29 +134,6 @@ export const PipelineInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PipelineInput$ { - /** @deprecated use `PipelineInput$inboundSchema` instead. */ - export const inboundSchema = PipelineInput$inboundSchema; - /** @deprecated use `PipelineInput$outboundSchema` instead. */ - export const outboundSchema = PipelineInput$outboundSchema; - /** @deprecated use `PipelineInput$Outbound` instead. */ - export type Outbound = PipelineInput$Outbound; -} - export function pipelineInputToJSON(pipelineInput: PipelineInput): string { return JSON.stringify(PipelineInput$outboundSchema.parse(pipelineInput)); } - -export function pipelineInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PipelineInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PipelineInput' from JSON`, - ); -} diff --git a/src/models/components/profitandloss.ts b/src/models/components/profitandloss.ts index 0d74a168b..b952afa7c 100644 --- a/src/models/components/profitandloss.ts +++ b/src/models/components/profitandloss.ts @@ -7,21 +7,14 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Currency, - Currency$inboundSchema, - Currency$outboundSchema, -} from "./currency.js"; +import { Currency, Currency$inboundSchema } from "./currency.js"; import { ProfitAndLossIndicator, ProfitAndLossIndicator$inboundSchema, - ProfitAndLossIndicator$Outbound, - ProfitAndLossIndicator$outboundSchema, } from "./profitandlossindicator.js"; import { ProfitAndLossType, ProfitAndLossType$inboundSchema, - ProfitAndLossType$outboundSchema, } from "./profitandlosstype.js"; /** @@ -255,47 +248,6 @@ export const Income$inboundSchema: z.ZodType = z records: z.any().optional(), }); -/** @internal */ -export type Income$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total: number | null; - records?: any | undefined; -}; - -/** @internal */ -export const Income$outboundSchema: z.ZodType< - Income$Outbound, - z.ZodTypeDef, - Income -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Income$ { - /** @deprecated use `Income$inboundSchema` instead. */ - export const inboundSchema = Income$inboundSchema; - /** @deprecated use `Income$outboundSchema` instead. */ - export const outboundSchema = Income$outboundSchema; - /** @deprecated use `Income$Outbound` instead. */ - export type Outbound = Income$Outbound; -} - -export function incomeToJSON(income: Income): string { - return JSON.stringify(Income$outboundSchema.parse(income)); -} - export function incomeFromJSON( jsonString: string, ): SafeParseResult { @@ -320,49 +272,6 @@ export const CostOfGoodsSold$inboundSchema: z.ZodType< records: z.any().optional(), }); -/** @internal */ -export type CostOfGoodsSold$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total?: number | null | undefined; - records?: any | undefined; -}; - -/** @internal */ -export const CostOfGoodsSold$outboundSchema: z.ZodType< - CostOfGoodsSold$Outbound, - z.ZodTypeDef, - CostOfGoodsSold -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()).optional(), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CostOfGoodsSold$ { - /** @deprecated use `CostOfGoodsSold$inboundSchema` instead. */ - export const inboundSchema = CostOfGoodsSold$inboundSchema; - /** @deprecated use `CostOfGoodsSold$outboundSchema` instead. */ - export const outboundSchema = CostOfGoodsSold$outboundSchema; - /** @deprecated use `CostOfGoodsSold$Outbound` instead. */ - export type Outbound = CostOfGoodsSold$Outbound; -} - -export function costOfGoodsSoldToJSON( - costOfGoodsSold: CostOfGoodsSold, -): string { - return JSON.stringify(CostOfGoodsSold$outboundSchema.parse(costOfGoodsSold)); -} - export function costOfGoodsSoldFromJSON( jsonString: string, ): SafeParseResult { @@ -387,47 +296,6 @@ export const Expenses$inboundSchema: z.ZodType< records: z.any().optional(), }); -/** @internal */ -export type Expenses$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total: number | null; - records?: any | undefined; -}; - -/** @internal */ -export const Expenses$outboundSchema: z.ZodType< - Expenses$Outbound, - z.ZodTypeDef, - Expenses -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Expenses$ { - /** @deprecated use `Expenses$inboundSchema` instead. */ - export const inboundSchema = Expenses$inboundSchema; - /** @deprecated use `Expenses$outboundSchema` instead. */ - export const outboundSchema = Expenses$outboundSchema; - /** @deprecated use `Expenses$Outbound` instead. */ - export type Outbound = Expenses$Outbound; -} - -export function expensesToJSON(expenses: Expenses): string { - return JSON.stringify(Expenses$outboundSchema.parse(expenses)); -} - export function expensesFromJSON( jsonString: string, ): SafeParseResult { @@ -452,47 +320,6 @@ export const OtherIncome$inboundSchema: z.ZodType< records: z.any().optional(), }); -/** @internal */ -export type OtherIncome$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total?: number | null | undefined; - records?: any | undefined; -}; - -/** @internal */ -export const OtherIncome$outboundSchema: z.ZodType< - OtherIncome$Outbound, - z.ZodTypeDef, - OtherIncome -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()).optional(), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OtherIncome$ { - /** @deprecated use `OtherIncome$inboundSchema` instead. */ - export const inboundSchema = OtherIncome$inboundSchema; - /** @deprecated use `OtherIncome$outboundSchema` instead. */ - export const outboundSchema = OtherIncome$outboundSchema; - /** @deprecated use `OtherIncome$Outbound` instead. */ - export type Outbound = OtherIncome$Outbound; -} - -export function otherIncomeToJSON(otherIncome: OtherIncome): string { - return JSON.stringify(OtherIncome$outboundSchema.parse(otherIncome)); -} - export function otherIncomeFromJSON( jsonString: string, ): SafeParseResult { @@ -517,47 +344,6 @@ export const OtherExpenses$inboundSchema: z.ZodType< records: z.any().optional(), }); -/** @internal */ -export type OtherExpenses$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total?: number | null | undefined; - records?: any | undefined; -}; - -/** @internal */ -export const OtherExpenses$outboundSchema: z.ZodType< - OtherExpenses$Outbound, - z.ZodTypeDef, - OtherExpenses -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()).optional(), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OtherExpenses$ { - /** @deprecated use `OtherExpenses$inboundSchema` instead. */ - export const inboundSchema = OtherExpenses$inboundSchema; - /** @deprecated use `OtherExpenses$outboundSchema` instead. */ - export const outboundSchema = OtherExpenses$outboundSchema; - /** @deprecated use `OtherExpenses$Outbound` instead. */ - export type Outbound = OtherExpenses$Outbound; -} - -export function otherExpensesToJSON(otherExpenses: OtherExpenses): string { - return JSON.stringify(OtherExpenses$outboundSchema.parse(otherExpenses)); -} - export function otherExpensesFromJSON( jsonString: string, ): SafeParseResult { @@ -582,51 +368,6 @@ export const UncategorizedAccounts$inboundSchema: z.ZodType< records: z.any().optional(), }); -/** @internal */ -export type UncategorizedAccounts$Outbound = { - id?: string | undefined; - code?: string | undefined; - title?: string | undefined; - type?: string | null | undefined; - total: number | null; - records?: any | undefined; -}; - -/** @internal */ -export const UncategorizedAccounts$outboundSchema: z.ZodType< - UncategorizedAccounts$Outbound, - z.ZodTypeDef, - UncategorizedAccounts -> = z.object({ - id: z.string().optional(), - code: z.string().optional(), - title: z.string().optional(), - type: z.nullable(ProfitAndLossType$outboundSchema).optional(), - total: z.nullable(z.number()), - records: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UncategorizedAccounts$ { - /** @deprecated use `UncategorizedAccounts$inboundSchema` instead. */ - export const inboundSchema = UncategorizedAccounts$inboundSchema; - /** @deprecated use `UncategorizedAccounts$outboundSchema` instead. */ - export const outboundSchema = UncategorizedAccounts$outboundSchema; - /** @deprecated use `UncategorizedAccounts$Outbound` instead. */ - export type Outbound = UncategorizedAccounts$Outbound; -} - -export function uncategorizedAccountsToJSON( - uncategorizedAccounts: UncategorizedAccounts, -): string { - return JSON.stringify( - UncategorizedAccounts$outboundSchema.parse(uncategorizedAccounts), - ); -} - export function uncategorizedAccountsFromJSON( jsonString: string, ): SafeParseResult { @@ -676,82 +417,6 @@ export const ProfitAndLoss$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ProfitAndLoss$Outbound = { - id?: string | undefined; - report_name: string; - start_date?: string | undefined; - end_date?: string | undefined; - currency?: string | null | undefined; - income: Income$Outbound; - cost_of_goods_sold?: CostOfGoodsSold$Outbound | undefined; - expenses: Expenses$Outbound; - other_income?: OtherIncome$Outbound | undefined; - other_expenses?: OtherExpenses$Outbound | undefined; - uncategorized_accounts?: UncategorizedAccounts$Outbound | undefined; - gross_profit?: ProfitAndLossIndicator$Outbound | undefined; - net_operating_income?: ProfitAndLossIndicator$Outbound | undefined; - net_income?: ProfitAndLossIndicator$Outbound | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - customer?: string | undefined; -}; - -/** @internal */ -export const ProfitAndLoss$outboundSchema: z.ZodType< - ProfitAndLoss$Outbound, - z.ZodTypeDef, - ProfitAndLoss -> = z.object({ - id: z.string().optional(), - reportName: z.string(), - startDate: z.string().optional(), - endDate: z.string().optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - income: z.lazy(() => Income$outboundSchema), - costOfGoodsSold: z.lazy(() => CostOfGoodsSold$outboundSchema).optional(), - expenses: z.lazy(() => Expenses$outboundSchema), - otherIncome: z.lazy(() => OtherIncome$outboundSchema).optional(), - otherExpenses: z.lazy(() => OtherExpenses$outboundSchema).optional(), - uncategorizedAccounts: z.lazy(() => UncategorizedAccounts$outboundSchema) - .optional(), - grossProfit: ProfitAndLossIndicator$outboundSchema.optional(), - netOperatingIncome: ProfitAndLossIndicator$outboundSchema.optional(), - netIncome: ProfitAndLossIndicator$outboundSchema.optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customer: z.string().optional(), -}).transform((v) => { - return remap$(v, { - reportName: "report_name", - startDate: "start_date", - endDate: "end_date", - costOfGoodsSold: "cost_of_goods_sold", - otherIncome: "other_income", - otherExpenses: "other_expenses", - uncategorizedAccounts: "uncategorized_accounts", - grossProfit: "gross_profit", - netOperatingIncome: "net_operating_income", - netIncome: "net_income", - customMappings: "custom_mappings", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitAndLoss$ { - /** @deprecated use `ProfitAndLoss$inboundSchema` instead. */ - export const inboundSchema = ProfitAndLoss$inboundSchema; - /** @deprecated use `ProfitAndLoss$outboundSchema` instead. */ - export const outboundSchema = ProfitAndLoss$outboundSchema; - /** @deprecated use `ProfitAndLoss$Outbound` instead. */ - export type Outbound = ProfitAndLoss$Outbound; -} - -export function profitAndLossToJSON(profitAndLoss: ProfitAndLoss): string { - return JSON.stringify(ProfitAndLoss$outboundSchema.parse(profitAndLoss)); -} - export function profitAndLossFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/profitandlossfilter.ts b/src/models/components/profitandlossfilter.ts index 12f345d73..4c6f92ff5 100644 --- a/src/models/components/profitandlossfilter.ts +++ b/src/models/components/profitandlossfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ProfitAndLossFilter = { /** @@ -27,25 +24,6 @@ export type ProfitAndLossFilter = { locationId?: string | undefined; }; -/** @internal */ -export const ProfitAndLossFilter$inboundSchema: z.ZodType< - ProfitAndLossFilter, - z.ZodTypeDef, - unknown -> = z.object({ - customer_id: z.string().optional(), - start_date: z.string().optional(), - end_date: z.string().optional(), - location_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "customer_id": "customerId", - "start_date": "startDate", - "end_date": "endDate", - "location_id": "locationId", - }); -}); - /** @internal */ export type ProfitAndLossFilter$Outbound = { customer_id?: string | undefined; @@ -73,19 +51,6 @@ export const ProfitAndLossFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitAndLossFilter$ { - /** @deprecated use `ProfitAndLossFilter$inboundSchema` instead. */ - export const inboundSchema = ProfitAndLossFilter$inboundSchema; - /** @deprecated use `ProfitAndLossFilter$outboundSchema` instead. */ - export const outboundSchema = ProfitAndLossFilter$outboundSchema; - /** @deprecated use `ProfitAndLossFilter$Outbound` instead. */ - export type Outbound = ProfitAndLossFilter$Outbound; -} - export function profitAndLossFilterToJSON( profitAndLossFilter: ProfitAndLossFilter, ): string { @@ -93,13 +58,3 @@ export function profitAndLossFilterToJSON( ProfitAndLossFilter$outboundSchema.parse(profitAndLossFilter), ); } - -export function profitAndLossFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProfitAndLossFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProfitAndLossFilter' from JSON`, - ); -} diff --git a/src/models/components/profitandlossindicator.ts b/src/models/components/profitandlossindicator.ts index a411711ae..ea93bbbfc 100644 --- a/src/models/components/profitandlossindicator.ts +++ b/src/models/components/profitandlossindicator.ts @@ -23,41 +23,6 @@ export const ProfitAndLossIndicator$inboundSchema: z.ZodType< total: z.nullable(z.number()).optional(), }); -/** @internal */ -export type ProfitAndLossIndicator$Outbound = { - total?: number | null | undefined; -}; - -/** @internal */ -export const ProfitAndLossIndicator$outboundSchema: z.ZodType< - ProfitAndLossIndicator$Outbound, - z.ZodTypeDef, - ProfitAndLossIndicator -> = z.object({ - total: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitAndLossIndicator$ { - /** @deprecated use `ProfitAndLossIndicator$inboundSchema` instead. */ - export const inboundSchema = ProfitAndLossIndicator$inboundSchema; - /** @deprecated use `ProfitAndLossIndicator$outboundSchema` instead. */ - export const outboundSchema = ProfitAndLossIndicator$outboundSchema; - /** @deprecated use `ProfitAndLossIndicator$Outbound` instead. */ - export type Outbound = ProfitAndLossIndicator$Outbound; -} - -export function profitAndLossIndicatorToJSON( - profitAndLossIndicator: ProfitAndLossIndicator, -): string { - return JSON.stringify( - ProfitAndLossIndicator$outboundSchema.parse(profitAndLossIndicator), - ); -} - export function profitAndLossIndicatorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/profitandlosstype.ts b/src/models/components/profitandlosstype.ts index a78a5e828..ad7ae5219 100644 --- a/src/models/components/profitandlosstype.ts +++ b/src/models/components/profitandlosstype.ts @@ -21,19 +21,3 @@ export type ProfitAndLossType = ClosedEnum; export const ProfitAndLossType$inboundSchema: z.ZodNativeEnum< typeof ProfitAndLossType > = z.nativeEnum(ProfitAndLossType); - -/** @internal */ -export const ProfitAndLossType$outboundSchema: z.ZodNativeEnum< - typeof ProfitAndLossType -> = ProfitAndLossType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProfitAndLossType$ { - /** @deprecated use `ProfitAndLossType$inboundSchema` instead. */ - export const inboundSchema = ProfitAndLossType$inboundSchema; - /** @deprecated use `ProfitAndLossType$outboundSchema` instead. */ - export const outboundSchema = ProfitAndLossType$outboundSchema; -} diff --git a/src/models/components/project.ts b/src/models/components/project.ts index 12e55bb40..98102159b 100644 --- a/src/models/components/project.ts +++ b/src/models/components/project.ts @@ -29,24 +29,15 @@ import { import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -488,61 +479,25 @@ export type ProjectInput = { export const ProjectProjectStatus$inboundSchema: z.ZodNativeEnum< typeof ProjectProjectStatus > = z.nativeEnum(ProjectProjectStatus); - /** @internal */ export const ProjectProjectStatus$outboundSchema: z.ZodNativeEnum< typeof ProjectProjectStatus > = ProjectProjectStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectProjectStatus$ { - /** @deprecated use `ProjectProjectStatus$inboundSchema` instead. */ - export const inboundSchema = ProjectProjectStatus$inboundSchema; - /** @deprecated use `ProjectProjectStatus$outboundSchema` instead. */ - export const outboundSchema = ProjectProjectStatus$outboundSchema; -} - /** @internal */ export const ProjectType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ProjectType); - /** @internal */ export const ProjectType$outboundSchema: z.ZodNativeEnum = ProjectType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectType$ { - /** @deprecated use `ProjectType$inboundSchema` instead. */ - export const inboundSchema = ProjectType$inboundSchema; - /** @deprecated use `ProjectType$outboundSchema` instead. */ - export const outboundSchema = ProjectType$outboundSchema; -} - /** @internal */ export const Priority$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Priority); - /** @internal */ export const Priority$outboundSchema: z.ZodNativeEnum = Priority$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Priority$ { - /** @deprecated use `Priority$inboundSchema` instead. */ - export const inboundSchema = Priority$inboundSchema; - /** @deprecated use `Priority$outboundSchema` instead. */ - export const outboundSchema = Priority$outboundSchema; -} - /** @internal */ export const ProjectDepartment$inboundSchema: z.ZodType< ProjectDepartment, @@ -552,7 +507,6 @@ export const ProjectDepartment$inboundSchema: z.ZodType< id: z.string().optional(), name: z.string().optional(), }); - /** @internal */ export type ProjectDepartment$Outbound = { id?: string | undefined; @@ -569,19 +523,6 @@ export const ProjectDepartment$outboundSchema: z.ZodType< name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectDepartment$ { - /** @deprecated use `ProjectDepartment$inboundSchema` instead. */ - export const inboundSchema = ProjectDepartment$inboundSchema; - /** @deprecated use `ProjectDepartment$outboundSchema` instead. */ - export const outboundSchema = ProjectDepartment$outboundSchema; - /** @deprecated use `ProjectDepartment$Outbound` instead. */ - export type Outbound = ProjectDepartment$Outbound; -} - export function projectDepartmentToJSON( projectDepartment: ProjectDepartment, ): string { @@ -589,7 +530,6 @@ export function projectDepartmentToJSON( ProjectDepartment$outboundSchema.parse(projectDepartment), ); } - export function projectDepartmentFromJSON( jsonString: string, ): SafeParseResult { @@ -609,7 +549,6 @@ export const ParentProject$inboundSchema: z.ZodType< id: z.string().optional(), name: z.string().optional(), }); - /** @internal */ export type ParentProject$Outbound = { id?: string | undefined; @@ -626,23 +565,9 @@ export const ParentProject$outboundSchema: z.ZodType< name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ParentProject$ { - /** @deprecated use `ParentProject$inboundSchema` instead. */ - export const inboundSchema = ParentProject$inboundSchema; - /** @deprecated use `ParentProject$outboundSchema` instead. */ - export const outboundSchema = ParentProject$outboundSchema; - /** @deprecated use `ParentProject$Outbound` instead. */ - export type Outbound = ParentProject$Outbound; -} - export function parentProjectToJSON(parentProject: ParentProject): string { return JSON.stringify(ParentProject$outboundSchema.parse(parentProject)); } - export function parentProjectFromJSON( jsonString: string, ): SafeParseResult { @@ -657,63 +582,27 @@ export function parentProjectFromJSON( export const BillingMethod$inboundSchema: z.ZodNativeEnum< typeof BillingMethod > = z.nativeEnum(BillingMethod); - /** @internal */ export const BillingMethod$outboundSchema: z.ZodNativeEnum< typeof BillingMethod > = BillingMethod$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BillingMethod$ { - /** @deprecated use `BillingMethod$inboundSchema` instead. */ - export const inboundSchema = BillingMethod$inboundSchema; - /** @deprecated use `BillingMethod$outboundSchema` instead. */ - export const outboundSchema = BillingMethod$outboundSchema; -} - /** @internal */ export const ProjectPhase$inboundSchema: z.ZodNativeEnum = z.nativeEnum(ProjectPhase); - /** @internal */ export const ProjectPhase$outboundSchema: z.ZodNativeEnum = ProjectPhase$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectPhase$ { - /** @deprecated use `ProjectPhase$inboundSchema` instead. */ - export const inboundSchema = ProjectPhase$inboundSchema; - /** @deprecated use `ProjectPhase$outboundSchema` instead. */ - export const outboundSchema = ProjectPhase$outboundSchema; -} - /** @internal */ export const ScheduleStatus$inboundSchema: z.ZodNativeEnum< typeof ScheduleStatus > = z.nativeEnum(ScheduleStatus); - /** @internal */ export const ScheduleStatus$outboundSchema: z.ZodNativeEnum< typeof ScheduleStatus > = ScheduleStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScheduleStatus$ { - /** @deprecated use `ScheduleStatus$inboundSchema` instead. */ - export const inboundSchema = ScheduleStatus$inboundSchema; - /** @deprecated use `ScheduleStatus$outboundSchema` instead. */ - export const outboundSchema = ScheduleStatus$outboundSchema; -} - /** @internal */ export const Project$inboundSchema: z.ZodType = z.object({ @@ -804,163 +693,6 @@ export const Project$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Project$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - name: string; - display_id?: string | null | undefined; - reference_id?: string | null | undefined; - description?: string | null | undefined; - status?: string | null | undefined; - active?: boolean | null | undefined; - project_type?: string | null | undefined; - priority?: string | null | undefined; - completion_percentage?: number | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - customer?: LinkedCustomer$Outbound | null | undefined; - department?: ProjectDepartment$Outbound | null | undefined; - company_id?: string | null | undefined; - owner_id?: string | null | undefined; - parent_project?: ParentProject$Outbound | null | undefined; - currency?: string | null | undefined; - budget_amount?: number | null | undefined; - approved_amount?: number | null | undefined; - actual_amount?: number | null | undefined; - budget_hours?: number | null | undefined; - actual_hours?: number | null | undefined; - hourly_rate?: number | null | undefined; - billing_method?: string | null | undefined; - is_billable: boolean | null; - phase?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tracking_categories?: - | Array - | null - | undefined; - tags?: Array | undefined; - notes?: string | null | undefined; - contract_number?: string | null | undefined; - profit_margin?: number | null | undefined; - schedule_status?: string | null | undefined; - addresses?: Array | undefined; - team_size?: number | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const Project$outboundSchema: z.ZodType< - Project$Outbound, - z.ZodTypeDef, - Project -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - name: z.string(), - displayId: z.nullable(z.string()).optional(), - referenceId: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - status: z.nullable(ProjectProjectStatus$outboundSchema).optional(), - active: z.nullable(z.boolean()).optional(), - projectType: z.nullable(ProjectType$outboundSchema).optional(), - priority: z.nullable(Priority$outboundSchema).optional(), - completionPercentage: z.nullable(z.number()).optional(), - startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - department: z.nullable(z.lazy(() => ProjectDepartment$outboundSchema)) - .optional(), - companyId: z.nullable(z.string()).optional(), - ownerId: z.nullable(z.string()).optional(), - parentProject: z.nullable(z.lazy(() => ParentProject$outboundSchema)) - .optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - budgetAmount: z.nullable(z.number()).optional(), - approvedAmount: z.nullable(z.number()).optional(), - actualAmount: z.nullable(z.number()).optional(), - budgetHours: z.nullable(z.number()).optional(), - actualHours: z.nullable(z.number()).optional(), - hourlyRate: z.nullable(z.number()).optional(), - billingMethod: z.nullable(BillingMethod$outboundSchema).optional(), - isBillable: z.nullable(z.boolean().default(true)), - phase: z.nullable(ProjectPhase$outboundSchema).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - tags: z.array(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - contractNumber: z.nullable(z.string()).optional(), - profitMargin: z.nullable(z.number()).optional(), - scheduleStatus: z.nullable(ScheduleStatus$outboundSchema).optional(), - addresses: z.array(Address$outboundSchema).optional(), - teamSize: z.nullable(z.number().int()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - referenceId: "reference_id", - projectType: "project_type", - completionPercentage: "completion_percentage", - startDate: "start_date", - endDate: "end_date", - companyId: "company_id", - ownerId: "owner_id", - parentProject: "parent_project", - budgetAmount: "budget_amount", - approvedAmount: "approved_amount", - actualAmount: "actual_amount", - budgetHours: "budget_hours", - actualHours: "actual_hours", - hourlyRate: "hourly_rate", - billingMethod: "billing_method", - isBillable: "is_billable", - taxRate: "tax_rate", - trackingCategories: "tracking_categories", - contractNumber: "contract_number", - profitMargin: "profit_margin", - scheduleStatus: "schedule_status", - teamSize: "team_size", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Project$ { - /** @deprecated use `Project$inboundSchema` instead. */ - export const inboundSchema = Project$inboundSchema; - /** @deprecated use `Project$outboundSchema` instead. */ - export const outboundSchema = Project$outboundSchema; - /** @deprecated use `Project$Outbound` instead. */ - export type Outbound = Project$Outbound; -} - -export function projectToJSON(project: Project): string { - return JSON.stringify(Project$outboundSchema.parse(project)); -} - export function projectFromJSON( jsonString: string, ): SafeParseResult { @@ -971,79 +703,6 @@ export function projectFromJSON( ); } -/** @internal */ -export const ProjectInput$inboundSchema: z.ZodType< - ProjectInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - display_id: z.nullable(z.string()).optional(), - reference_id: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - status: z.nullable(ProjectProjectStatus$inboundSchema).optional(), - active: z.nullable(z.boolean()).optional(), - project_type: z.nullable(ProjectType$inboundSchema).optional(), - priority: z.nullable(Priority$inboundSchema).optional(), - completion_percentage: z.nullable(z.number()).optional(), - start_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - end_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - department: z.nullable(z.lazy(() => ProjectDepartment$inboundSchema)) - .optional(), - company_id: z.nullable(z.string()).optional(), - owner_id: z.nullable(z.string()).optional(), - parent_project: z.nullable(z.lazy(() => ParentProject$inboundSchema)) - .optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - budget_amount: z.nullable(z.number()).optional(), - approved_amount: z.nullable(z.number()).optional(), - budget_hours: z.nullable(z.number()).optional(), - hourly_rate: z.nullable(z.number()).optional(), - billing_method: z.nullable(BillingMethod$inboundSchema).optional(), - is_billable: z.nullable(z.boolean().default(true)), - phase: z.nullable(ProjectPhase$inboundSchema).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - tags: z.array(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - contract_number: z.nullable(z.string()).optional(), - profit_margin: z.nullable(z.number()).optional(), - schedule_status: z.nullable(ScheduleStatus$inboundSchema).optional(), - addresses: z.array(Address$inboundSchema).optional(), - team_size: z.nullable(z.number().int()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "reference_id": "referenceId", - "project_type": "projectType", - "completion_percentage": "completionPercentage", - "start_date": "startDate", - "end_date": "endDate", - "company_id": "companyId", - "owner_id": "ownerId", - "parent_project": "parentProject", - "budget_amount": "budgetAmount", - "approved_amount": "approvedAmount", - "budget_hours": "budgetHours", - "hourly_rate": "hourlyRate", - "billing_method": "billingMethod", - "is_billable": "isBillable", - "tax_rate": "taxRate", - "tracking_categories": "trackingCategories", - "contract_number": "contractNumber", - "profit_margin": "profitMargin", - "schedule_status": "scheduleStatus", - "team_size": "teamSize", - "custom_fields": "customFields", - "row_version": "rowVersion", - }); -}); - /** @internal */ export type ProjectInput$Outbound = { name: string; @@ -1161,29 +820,6 @@ export const ProjectInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectInput$ { - /** @deprecated use `ProjectInput$inboundSchema` instead. */ - export const inboundSchema = ProjectInput$inboundSchema; - /** @deprecated use `ProjectInput$outboundSchema` instead. */ - export const outboundSchema = ProjectInput$outboundSchema; - /** @deprecated use `ProjectInput$Outbound` instead. */ - export type Outbound = ProjectInput$Outbound; -} - export function projectInputToJSON(projectInput: ProjectInput): string { return JSON.stringify(ProjectInput$outboundSchema.parse(projectInput)); } - -export function projectInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectInput' from JSON`, - ); -} diff --git a/src/models/components/projectsfilter.ts b/src/models/components/projectsfilter.ts index aea5edf05..9583b3e0b 100644 --- a/src/models/components/projectsfilter.ts +++ b/src/models/components/projectsfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Status of projects to filter by @@ -43,45 +40,10 @@ export type ProjectsFilter = { updatedSince?: Date | undefined; }; -/** @internal */ -export const ProjectStatus$inboundSchema: z.ZodNativeEnum< - typeof ProjectStatus -> = z.nativeEnum(ProjectStatus); - /** @internal */ export const ProjectStatus$outboundSchema: z.ZodNativeEnum< typeof ProjectStatus -> = ProjectStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectStatus$ { - /** @deprecated use `ProjectStatus$inboundSchema` instead. */ - export const inboundSchema = ProjectStatus$inboundSchema; - /** @deprecated use `ProjectStatus$outboundSchema` instead. */ - export const outboundSchema = ProjectStatus$outboundSchema; -} - -/** @internal */ -export const ProjectsFilter$inboundSchema: z.ZodType< - ProjectsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - status: ProjectStatus$inboundSchema.optional(), - customer_id: z.string().optional(), - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), -}).transform((v) => { - return remap$(v, { - "customer_id": "customerId", - "updated_since": "updatedSince", - }); -}); +> = z.nativeEnum(ProjectStatus); /** @internal */ export type ProjectsFilter$Outbound = { @@ -108,29 +70,6 @@ export const ProjectsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectsFilter$ { - /** @deprecated use `ProjectsFilter$inboundSchema` instead. */ - export const inboundSchema = ProjectsFilter$inboundSchema; - /** @deprecated use `ProjectsFilter$outboundSchema` instead. */ - export const outboundSchema = ProjectsFilter$outboundSchema; - /** @deprecated use `ProjectsFilter$Outbound` instead. */ - export type Outbound = ProjectsFilter$Outbound; -} - export function projectsFilterToJSON(projectsFilter: ProjectsFilter): string { return JSON.stringify(ProjectsFilter$outboundSchema.parse(projectsFilter)); } - -export function projectsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectsFilter' from JSON`, - ); -} diff --git a/src/models/components/projectssort.ts b/src/models/components/projectssort.ts index 1c3f994f0..e9dac9114 100644 --- a/src/models/components/projectssort.ts +++ b/src/models/components/projectssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -42,36 +38,10 @@ export type ProjectsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const ProjectsSortSortBy$inboundSchema: z.ZodNativeEnum< - typeof ProjectsSortSortBy -> = z.nativeEnum(ProjectsSortSortBy); - /** @internal */ export const ProjectsSortSortBy$outboundSchema: z.ZodNativeEnum< typeof ProjectsSortSortBy -> = ProjectsSortSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectsSortSortBy$ { - /** @deprecated use `ProjectsSortSortBy$inboundSchema` instead. */ - export const inboundSchema = ProjectsSortSortBy$inboundSchema; - /** @deprecated use `ProjectsSortSortBy$outboundSchema` instead. */ - export const outboundSchema = ProjectsSortSortBy$outboundSchema; -} - -/** @internal */ -export const ProjectsSort$inboundSchema: z.ZodType< - ProjectsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: ProjectsSortSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(ProjectsSortSortBy); /** @internal */ export type ProjectsSort$Outbound = { @@ -89,29 +59,6 @@ export const ProjectsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProjectsSort$ { - /** @deprecated use `ProjectsSort$inboundSchema` instead. */ - export const inboundSchema = ProjectsSort$inboundSchema; - /** @deprecated use `ProjectsSort$outboundSchema` instead. */ - export const outboundSchema = ProjectsSort$outboundSchema; - /** @deprecated use `ProjectsSort$Outbound` instead. */ - export type Outbound = ProjectsSort$Outbound; -} - export function projectsSortToJSON(projectsSort: ProjectsSort): string { return JSON.stringify(ProjectsSort$outboundSchema.parse(projectsSort)); } - -export function projectsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProjectsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectsSort' from JSON`, - ); -} diff --git a/src/models/components/purchaseorder.ts b/src/models/components/purchaseorder.ts index b988125cd..2db75a3cf 100644 --- a/src/models/components/purchaseorder.ts +++ b/src/models/components/purchaseorder.ts @@ -35,10 +35,7 @@ import { import { InvoiceLineItem, InvoiceLineItem$inboundSchema, - InvoiceLineItem$Outbound, - InvoiceLineItem$outboundSchema, InvoiceLineItemInput, - InvoiceLineItemInput$inboundSchema, InvoiceLineItemInput$Outbound, InvoiceLineItemInput$outboundSchema, } from "./invoicelineitem.js"; @@ -48,21 +45,12 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedSupplier, LinkedSupplier$inboundSchema, - LinkedSupplier$Outbound, - LinkedSupplier$outboundSchema, } from "./linkedsupplier.js"; import { LinkedSupplierInput, - LinkedSupplierInput$inboundSchema, LinkedSupplierInput$Outbound, LinkedSupplierInput$outboundSchema, } from "./linkedsupplierinput.js"; @@ -344,7 +332,7 @@ export type PurchaseOrderInput = { lineItems?: Array | undefined; billingAddress?: Address | undefined; shippingAddress?: Address | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; /** * Optional purchase order template */ @@ -421,44 +409,20 @@ export type PurchaseOrderInput = { export const PurchaseOrderStatus$inboundSchema: z.ZodNativeEnum< typeof PurchaseOrderStatus > = z.nativeEnum(PurchaseOrderStatus); - /** @internal */ export const PurchaseOrderStatus$outboundSchema: z.ZodNativeEnum< typeof PurchaseOrderStatus > = PurchaseOrderStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrderStatus$ { - /** @deprecated use `PurchaseOrderStatus$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrderStatus$inboundSchema; - /** @deprecated use `PurchaseOrderStatus$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrderStatus$outboundSchema; -} - /** @internal */ export const PurchaseOrderAmortizationType$inboundSchema: z.ZodNativeEnum< typeof PurchaseOrderAmortizationType > = z.nativeEnum(PurchaseOrderAmortizationType); - /** @internal */ export const PurchaseOrderAmortizationType$outboundSchema: z.ZodNativeEnum< typeof PurchaseOrderAmortizationType > = PurchaseOrderAmortizationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrderAmortizationType$ { - /** @deprecated use `PurchaseOrderAmortizationType$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrderAmortizationType$inboundSchema; - /** @deprecated use `PurchaseOrderAmortizationType$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrderAmortizationType$outboundSchema; -} - /** @internal */ export const PurchaseOrder$inboundSchema: z.ZodType< PurchaseOrder, @@ -563,180 +527,6 @@ export const PurchaseOrder$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type PurchaseOrder$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - po_number?: string | null | undefined; - reference?: string | null | undefined; - supplier?: LinkedSupplier$Outbound | null | undefined; - subsidiary_id?: string | null | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - status?: string | null | undefined; - issued_date?: string | null | undefined; - delivery_date?: string | null | undefined; - expected_arrival_date?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - sub_total?: number | null | undefined; - total_tax?: number | null | undefined; - total?: number | null | undefined; - tax_inclusive?: boolean | null | undefined; - line_items?: Array | undefined; - billing_address?: Address$Outbound | undefined; - shipping_address?: Address$Outbound | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - template_id?: string | null | undefined; - discount_percentage?: number | null | undefined; - bank_account?: BankAccount$Outbound | undefined; - accounting_by_row?: boolean | null | undefined; - due_date?: string | null | undefined; - payment_method?: string | null | undefined; - terms?: string | null | undefined; - amortization_type?: string | null | undefined; - tax_code?: string | null | undefined; - tax_method?: string | null | undefined; - issued_method?: string | null | undefined; - issued_email?: string | null | undefined; - channel?: string | null | undefined; - memo?: string | null | undefined; - notes?: string | null | undefined; - tracking_categories?: - | Array - | null - | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const PurchaseOrder$outboundSchema: z.ZodType< - PurchaseOrder$Outbound, - z.ZodTypeDef, - PurchaseOrder -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - poNumber: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - supplier: z.nullable(LinkedSupplier$outboundSchema).optional(), - subsidiaryId: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(), - issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - deliveryDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - expectedArrivalDate: z.nullable( - z.instanceof(RFCDate).transform(v => v.toString()), - ).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalTax: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - lineItems: z.array(InvoiceLineItem$outboundSchema).optional(), - billingAddress: Address$outboundSchema.optional(), - shippingAddress: Address$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - templateId: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - bankAccount: BankAccount$outboundSchema.optional(), - accountingByRow: z.nullable(z.boolean()).optional(), - dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - paymentMethod: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - amortizationType: z.nullable(PurchaseOrderAmortizationType$outboundSchema) - .optional(), - taxCode: z.nullable(z.string()).optional(), - taxMethod: z.nullable(z.string()).optional(), - issuedMethod: z.nullable(z.string()).optional(), - issuedEmail: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - poNumber: "po_number", - subsidiaryId: "subsidiary_id", - companyId: "company_id", - departmentId: "department_id", - issuedDate: "issued_date", - deliveryDate: "delivery_date", - expectedArrivalDate: "expected_arrival_date", - currencyRate: "currency_rate", - subTotal: "sub_total", - totalTax: "total_tax", - taxInclusive: "tax_inclusive", - lineItems: "line_items", - billingAddress: "billing_address", - shippingAddress: "shipping_address", - ledgerAccount: "ledger_account", - templateId: "template_id", - discountPercentage: "discount_percentage", - bankAccount: "bank_account", - accountingByRow: "accounting_by_row", - dueDate: "due_date", - paymentMethod: "payment_method", - amortizationType: "amortization_type", - taxCode: "tax_code", - taxMethod: "tax_method", - issuedMethod: "issued_method", - issuedEmail: "issued_email", - trackingCategories: "tracking_categories", - customMappings: "custom_mappings", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrder$ { - /** @deprecated use `PurchaseOrder$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrder$inboundSchema; - /** @deprecated use `PurchaseOrder$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrder$outboundSchema; - /** @deprecated use `PurchaseOrder$Outbound` instead. */ - export type Outbound = PurchaseOrder$Outbound; -} - -export function purchaseOrderToJSON(purchaseOrder: PurchaseOrder): string { - return JSON.stringify(PurchaseOrder$outboundSchema.parse(purchaseOrder)); -} - export function purchaseOrderFromJSON( jsonString: string, ): SafeParseResult { @@ -747,93 +537,6 @@ export function purchaseOrderFromJSON( ); } -/** @internal */ -export const PurchaseOrderInput$inboundSchema: z.ZodType< - PurchaseOrderInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - po_number: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(), - subsidiary_id: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(), - issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - delivery_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - expected_arrival_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_tax: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(), - billing_address: Address$inboundSchema.optional(), - shipping_address: Address$inboundSchema.optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - template_id: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - bank_account: BankAccount$inboundSchema.optional(), - accounting_by_row: z.nullable(z.boolean()).optional(), - due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - payment_method: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - amortization_type: z.nullable(PurchaseOrderAmortizationType$inboundSchema) - .optional(), - tax_code: z.nullable(z.string()).optional(), - tax_method: z.nullable(z.string()).optional(), - issued_method: z.nullable(z.string()).optional(), - issued_email: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - memo: z.nullable(z.string()).optional(), - notes: z.nullable(z.string()).optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "po_number": "poNumber", - "subsidiary_id": "subsidiaryId", - "company_id": "companyId", - "department_id": "departmentId", - "issued_date": "issuedDate", - "delivery_date": "deliveryDate", - "expected_arrival_date": "expectedArrivalDate", - "currency_rate": "currencyRate", - "sub_total": "subTotal", - "total_tax": "totalTax", - "tax_inclusive": "taxInclusive", - "line_items": "lineItems", - "billing_address": "billingAddress", - "shipping_address": "shippingAddress", - "ledger_account": "ledgerAccount", - "template_id": "templateId", - "discount_percentage": "discountPercentage", - "bank_account": "bankAccount", - "accounting_by_row": "accountingByRow", - "due_date": "dueDate", - "payment_method": "paymentMethod", - "amortization_type": "amortizationType", - "tax_code": "taxCode", - "tax_method": "taxMethod", - "issued_method": "issuedMethod", - "issued_email": "issuedEmail", - "tracking_categories": "trackingCategories", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type PurchaseOrderInput$Outbound = { display_id?: string | null | undefined; @@ -856,7 +559,7 @@ export type PurchaseOrderInput$Outbound = { line_items?: Array | undefined; billing_address?: Address$Outbound | undefined; shipping_address?: Address$Outbound | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; template_id?: string | null | undefined; discount_percentage?: number | null | undefined; bank_account?: BankAccount$Outbound | undefined; @@ -911,7 +614,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType< lineItems: z.array(InvoiceLineItemInput$outboundSchema).optional(), billingAddress: Address$outboundSchema.optional(), shippingAddress: Address$outboundSchema.optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), templateId: z.nullable(z.string()).optional(), discountPercentage: z.nullable(z.number()).optional(), bankAccount: BankAccount$outboundSchema.optional(), @@ -971,19 +674,6 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrderInput$ { - /** @deprecated use `PurchaseOrderInput$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrderInput$inboundSchema; - /** @deprecated use `PurchaseOrderInput$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrderInput$outboundSchema; - /** @deprecated use `PurchaseOrderInput$Outbound` instead. */ - export type Outbound = PurchaseOrderInput$Outbound; -} - export function purchaseOrderInputToJSON( purchaseOrderInput: PurchaseOrderInput, ): string { @@ -991,13 +681,3 @@ export function purchaseOrderInputToJSON( PurchaseOrderInput$outboundSchema.parse(purchaseOrderInput), ); } - -export function purchaseOrderInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PurchaseOrderInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PurchaseOrderInput' from JSON`, - ); -} diff --git a/src/models/components/purchaseordersfilter.ts b/src/models/components/purchaseordersfilter.ts index ba51c12eb..04fd8bd8b 100644 --- a/src/models/components/purchaseordersfilter.ts +++ b/src/models/components/purchaseordersfilter.ts @@ -4,32 +4,12 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PurchaseOrdersFilter = { updatedSince?: Date | undefined; supplierId?: string | undefined; }; -/** @internal */ -export const PurchaseOrdersFilter$inboundSchema: z.ZodType< - PurchaseOrdersFilter, - z.ZodTypeDef, - unknown -> = z.object({ - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - supplier_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "updated_since": "updatedSince", - "supplier_id": "supplierId", - }); -}); - /** @internal */ export type PurchaseOrdersFilter$Outbound = { updated_since?: string | undefined; @@ -51,19 +31,6 @@ export const PurchaseOrdersFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrdersFilter$ { - /** @deprecated use `PurchaseOrdersFilter$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrdersFilter$inboundSchema; - /** @deprecated use `PurchaseOrdersFilter$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrdersFilter$outboundSchema; - /** @deprecated use `PurchaseOrdersFilter$Outbound` instead. */ - export type Outbound = PurchaseOrdersFilter$Outbound; -} - export function purchaseOrdersFilterToJSON( purchaseOrdersFilter: PurchaseOrdersFilter, ): string { @@ -71,13 +38,3 @@ export function purchaseOrdersFilterToJSON( PurchaseOrdersFilter$outboundSchema.parse(purchaseOrdersFilter), ); } - -export function purchaseOrdersFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PurchaseOrdersFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PurchaseOrdersFilter' from JSON`, - ); -} diff --git a/src/models/components/purchaseorderssort.ts b/src/models/components/purchaseorderssort.ts index de75a4329..3ac01dd97 100644 --- a/src/models/components/purchaseorderssort.ts +++ b/src/models/components/purchaseorderssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type PurchaseOrdersSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const PurchaseOrdersSortBy$inboundSchema: z.ZodNativeEnum< - typeof PurchaseOrdersSortBy -> = z.nativeEnum(PurchaseOrdersSortBy); - /** @internal */ export const PurchaseOrdersSortBy$outboundSchema: z.ZodNativeEnum< typeof PurchaseOrdersSortBy -> = PurchaseOrdersSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrdersSortBy$ { - /** @deprecated use `PurchaseOrdersSortBy$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrdersSortBy$inboundSchema; - /** @deprecated use `PurchaseOrdersSortBy$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrdersSortBy$outboundSchema; -} - -/** @internal */ -export const PurchaseOrdersSort$inboundSchema: z.ZodType< - PurchaseOrdersSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: PurchaseOrdersSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(PurchaseOrdersSortBy); /** @internal */ export type PurchaseOrdersSort$Outbound = { @@ -83,19 +53,6 @@ export const PurchaseOrdersSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PurchaseOrdersSort$ { - /** @deprecated use `PurchaseOrdersSort$inboundSchema` instead. */ - export const inboundSchema = PurchaseOrdersSort$inboundSchema; - /** @deprecated use `PurchaseOrdersSort$outboundSchema` instead. */ - export const outboundSchema = PurchaseOrdersSort$outboundSchema; - /** @deprecated use `PurchaseOrdersSort$Outbound` instead. */ - export type Outbound = PurchaseOrdersSort$Outbound; -} - export function purchaseOrdersSortToJSON( purchaseOrdersSort: PurchaseOrdersSort, ): string { @@ -103,13 +60,3 @@ export function purchaseOrdersSortToJSON( PurchaseOrdersSort$outboundSchema.parse(purchaseOrdersSort), ); } - -export function purchaseOrdersSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PurchaseOrdersSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PurchaseOrdersSort' from JSON`, - ); -} diff --git a/src/models/components/quote.ts b/src/models/components/quote.ts index df524ea39..466904816 100644 --- a/src/models/components/quote.ts +++ b/src/models/components/quote.ts @@ -29,12 +29,9 @@ import { import { LinkedCustomer, LinkedCustomer$inboundSchema, - LinkedCustomer$Outbound, - LinkedCustomer$outboundSchema, } from "./linkedcustomer.js"; import { LinkedCustomerInput, - LinkedCustomerInput$inboundSchema, LinkedCustomerInput$Outbound, LinkedCustomerInput$outboundSchema, } from "./linkedcustomerinput.js"; @@ -53,10 +50,7 @@ import { import { QuoteLineItem, QuoteLineItem$inboundSchema, - QuoteLineItem$Outbound, - QuoteLineItem$outboundSchema, QuoteLineItemInput, - QuoteLineItemInput$inboundSchema, QuoteLineItemInput$Outbound, QuoteLineItemInput$outboundSchema, } from "./quotelineitem.js"; @@ -332,22 +326,10 @@ export type QuoteInput = { /** @internal */ export const QuoteStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(QuoteStatus); - /** @internal */ export const QuoteStatus$outboundSchema: z.ZodNativeEnum = QuoteStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuoteStatus$ { - /** @deprecated use `QuoteStatus$inboundSchema` instead. */ - export const inboundSchema = QuoteStatus$inboundSchema; - /** @deprecated use `QuoteStatus$outboundSchema` instead. */ - export const outboundSchema = QuoteStatus$outboundSchema; -} - /** @internal */ export const Quote$inboundSchema: z.ZodType = z .object({ @@ -430,148 +412,6 @@ export const Quote$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Quote$Outbound = { - id?: string | undefined; - downstream_id?: string | null | undefined; - number?: string | null | undefined; - customer?: LinkedCustomer$Outbound | null | undefined; - invoice_id?: string | undefined; - sales_order_id?: string | null | undefined; - company_id?: string | null | undefined; - department_id?: string | null | undefined; - project_id?: string | undefined; - quote_date?: string | null | undefined; - expiry_date?: string | null | undefined; - terms?: string | null | undefined; - reference?: string | null | undefined; - status?: string | null | undefined; - currency?: string | null | undefined; - currency_rate?: number | null | undefined; - tax_inclusive?: boolean | null | undefined; - sub_total?: number | null | undefined; - total_tax?: number | null | undefined; - tax_code?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - total?: number | null | undefined; - customer_memo?: string | null | undefined; - line_items?: Array | undefined; - billing_address?: Address$Outbound | undefined; - shipping_address?: Address$Outbound | undefined; - tracking_categories?: - | Array - | null - | undefined; - template_id?: string | null | undefined; - source_document_url?: string | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Quote$outboundSchema: z.ZodType< - Quote$Outbound, - z.ZodTypeDef, - Quote -> = z.object({ - id: z.string().optional(), - downstreamId: z.nullable(z.string()).optional(), - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomer$outboundSchema).optional(), - invoiceId: z.string().optional(), - salesOrderId: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - projectId: z.string().optional(), - quoteDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - expiryDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - terms: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - status: z.nullable(QuoteStatus$outboundSchema).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - currencyRate: z.nullable(z.number()).optional(), - taxInclusive: z.nullable(z.boolean()).optional(), - subTotal: z.nullable(z.number()).optional(), - totalTax: z.nullable(z.number()).optional(), - taxCode: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - customerMemo: z.nullable(z.string()).optional(), - lineItems: z.array(QuoteLineItem$outboundSchema).optional(), - billingAddress: Address$outboundSchema.optional(), - shippingAddress: Address$outboundSchema.optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - templateId: z.nullable(z.string()).optional(), - sourceDocumentUrl: z.nullable(z.string()).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - invoiceId: "invoice_id", - salesOrderId: "sales_order_id", - companyId: "company_id", - departmentId: "department_id", - projectId: "project_id", - quoteDate: "quote_date", - expiryDate: "expiry_date", - currencyRate: "currency_rate", - taxInclusive: "tax_inclusive", - subTotal: "sub_total", - totalTax: "total_tax", - taxCode: "tax_code", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - customerMemo: "customer_memo", - lineItems: "line_items", - billingAddress: "billing_address", - shippingAddress: "shipping_address", - trackingCategories: "tracking_categories", - templateId: "template_id", - sourceDocumentUrl: "source_document_url", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Quote$ { - /** @deprecated use `Quote$inboundSchema` instead. */ - export const inboundSchema = Quote$inboundSchema; - /** @deprecated use `Quote$outboundSchema` instead. */ - export const outboundSchema = Quote$outboundSchema; - /** @deprecated use `Quote$Outbound` instead. */ - export type Outbound = Quote$Outbound; -} - -export function quoteToJSON(quote: Quote): string { - return JSON.stringify(Quote$outboundSchema.parse(quote)); -} - export function quoteFromJSON( jsonString: string, ): SafeParseResult { @@ -582,72 +422,6 @@ export function quoteFromJSON( ); } -/** @internal */ -export const QuoteInput$inboundSchema: z.ZodType< - QuoteInput, - z.ZodTypeDef, - unknown -> = z.object({ - number: z.nullable(z.string()).optional(), - customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), - sales_order_id: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - project_id: z.string().optional(), - quote_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - expiry_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), - terms: z.nullable(z.string()).optional(), - reference: z.nullable(z.string()).optional(), - status: z.nullable(QuoteStatus$inboundSchema).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - currency_rate: z.nullable(z.number()).optional(), - tax_inclusive: z.nullable(z.boolean()).optional(), - sub_total: z.nullable(z.number()).optional(), - total_tax: z.nullable(z.number()).optional(), - tax_code: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - discount_amount: z.nullable(z.number()).optional(), - total: z.nullable(z.number()).optional(), - customer_memo: z.nullable(z.string()).optional(), - line_items: z.array(QuoteLineItemInput$inboundSchema).optional(), - billing_address: Address$inboundSchema.optional(), - shipping_address: Address$inboundSchema.optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - template_id: z.nullable(z.string()).optional(), - source_document_url: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "sales_order_id": "salesOrderId", - "company_id": "companyId", - "department_id": "departmentId", - "project_id": "projectId", - "quote_date": "quoteDate", - "expiry_date": "expiryDate", - "currency_rate": "currencyRate", - "tax_inclusive": "taxInclusive", - "sub_total": "subTotal", - "total_tax": "totalTax", - "tax_code": "taxCode", - "discount_percentage": "discountPercentage", - "discount_amount": "discountAmount", - "customer_memo": "customerMemo", - "line_items": "lineItems", - "billing_address": "billingAddress", - "shipping_address": "shippingAddress", - "tracking_categories": "trackingCategories", - "template_id": "templateId", - "source_document_url": "sourceDocumentUrl", - "custom_fields": "customFields", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type QuoteInput$Outbound = { number?: string | null | undefined; @@ -753,29 +527,6 @@ export const QuoteInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuoteInput$ { - /** @deprecated use `QuoteInput$inboundSchema` instead. */ - export const inboundSchema = QuoteInput$inboundSchema; - /** @deprecated use `QuoteInput$outboundSchema` instead. */ - export const outboundSchema = QuoteInput$outboundSchema; - /** @deprecated use `QuoteInput$Outbound` instead. */ - export type Outbound = QuoteInput$Outbound; -} - export function quoteInputToJSON(quoteInput: QuoteInput): string { return JSON.stringify(QuoteInput$outboundSchema.parse(quoteInput)); } - -export function quoteInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => QuoteInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'QuoteInput' from JSON`, - ); -} diff --git a/src/models/components/quotelineitem.ts b/src/models/components/quotelineitem.ts index b7e08f569..26ef2b973 100644 --- a/src/models/components/quotelineitem.ts +++ b/src/models/components/quotelineitem.ts @@ -27,21 +27,9 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -230,7 +218,7 @@ export type QuoteLineItemInput = { * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; - ledgerAccount?: LinkedLedgerAccountInput | null | undefined; + ledgerAccount?: LinkedLedgerAccount | null | undefined; customFields?: Array | undefined; /** * 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. @@ -242,23 +230,11 @@ export type QuoteLineItemInput = { export const QuoteLineItemType$inboundSchema: z.ZodNativeEnum< typeof QuoteLineItemType > = z.nativeEnum(QuoteLineItemType); - /** @internal */ export const QuoteLineItemType$outboundSchema: z.ZodNativeEnum< typeof QuoteLineItemType > = QuoteLineItemType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuoteLineItemType$ { - /** @deprecated use `QuoteLineItemType$inboundSchema` instead. */ - export const inboundSchema = QuoteLineItemType$inboundSchema; - /** @deprecated use `QuoteLineItemType$outboundSchema` instead. */ - export const outboundSchema = QuoteLineItemType$outboundSchema; -} - /** @internal */ export const QuoteLineItem$inboundSchema: z.ZodType< QuoteLineItem, @@ -325,119 +301,6 @@ export const QuoteLineItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type QuoteLineItem$Outbound = { - id?: string | null | undefined; - row_id?: string | undefined; - code?: string | null | undefined; - line_number?: number | null | undefined; - description?: string | null | undefined; - type?: string | null | undefined; - tax_amount?: number | null | undefined; - total_amount?: number | null | undefined; - quantity?: number | null | undefined; - unit_price?: number | null | undefined; - unit_of_measure?: string | null | undefined; - discount_percentage?: number | null | undefined; - discount_amount?: number | null | undefined; - service_date?: string | null | undefined; - category_id?: string | null | undefined; - location_id?: string | null | undefined; - department_id?: string | null | undefined; - item?: LinkedInvoiceItem$Outbound | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tracking_categories?: - | Array - | null - | undefined; - ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; - custom_fields?: Array | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const QuoteLineItem$outboundSchema: z.ZodType< - QuoteLineItem$Outbound, - z.ZodTypeDef, - QuoteLineItem -> = z.object({ - id: z.nullable(z.string()).optional(), - rowId: z.string().optional(), - code: z.nullable(z.string()).optional(), - lineNumber: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(QuoteLineItemType$outboundSchema).optional(), - taxAmount: z.nullable(z.number()).optional(), - totalAmount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unitPrice: z.nullable(z.number()).optional(), - unitOfMeasure: z.nullable(z.string()).optional(), - discountPercentage: z.nullable(z.number()).optional(), - discountAmount: z.nullable(z.number()).optional(), - serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) - .optional(), - categoryId: z.nullable(z.string()).optional(), - locationId: z.nullable(z.string()).optional(), - departmentId: z.nullable(z.string()).optional(), - item: LinkedInvoiceItem$outboundSchema.optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - trackingCategories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), - ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - rowId: "row_id", - lineNumber: "line_number", - taxAmount: "tax_amount", - totalAmount: "total_amount", - unitPrice: "unit_price", - unitOfMeasure: "unit_of_measure", - discountPercentage: "discount_percentage", - discountAmount: "discount_amount", - serviceDate: "service_date", - categoryId: "category_id", - locationId: "location_id", - departmentId: "department_id", - taxRate: "tax_rate", - trackingCategories: "tracking_categories", - ledgerAccount: "ledger_account", - customFields: "custom_fields", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuoteLineItem$ { - /** @deprecated use `QuoteLineItem$inboundSchema` instead. */ - export const inboundSchema = QuoteLineItem$inboundSchema; - /** @deprecated use `QuoteLineItem$outboundSchema` instead. */ - export const outboundSchema = QuoteLineItem$outboundSchema; - /** @deprecated use `QuoteLineItem$Outbound` instead. */ - export type Outbound = QuoteLineItem$Outbound; -} - -export function quoteLineItemToJSON(quoteLineItem: QuoteLineItem): string { - return JSON.stringify(QuoteLineItem$outboundSchema.parse(quoteLineItem)); -} - export function quoteLineItemFromJSON( jsonString: string, ): SafeParseResult { @@ -448,60 +311,6 @@ export function quoteLineItemFromJSON( ); } -/** @internal */ -export const QuoteLineItemInput$inboundSchema: z.ZodType< - QuoteLineItemInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - row_id: z.string().optional(), - code: z.nullable(z.string()).optional(), - line_number: z.nullable(z.number().int()).optional(), - description: z.nullable(z.string()).optional(), - type: z.nullable(QuoteLineItemType$inboundSchema).optional(), - tax_amount: z.nullable(z.number()).optional(), - total_amount: z.nullable(z.number()).optional(), - quantity: z.nullable(z.number()).optional(), - unit_price: z.nullable(z.number()).optional(), - unit_of_measure: z.nullable(z.string()).optional(), - discount_percentage: z.nullable(z.number()).optional(), - discount_amount: z.nullable(z.number()).optional(), - service_date: z.nullable(z.string().transform(v => new RFCDate(v))) - .optional(), - category_id: z.nullable(z.string()).optional(), - location_id: z.nullable(z.string()).optional(), - department_id: z.nullable(z.string()).optional(), - item: LinkedInvoiceItem$inboundSchema.optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tracking_categories: z.nullable( - z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), - ).optional(), - ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "row_id": "rowId", - "line_number": "lineNumber", - "tax_amount": "taxAmount", - "total_amount": "totalAmount", - "unit_price": "unitPrice", - "unit_of_measure": "unitOfMeasure", - "discount_percentage": "discountPercentage", - "discount_amount": "discountAmount", - "service_date": "serviceDate", - "category_id": "categoryId", - "location_id": "locationId", - "department_id": "departmentId", - "tax_rate": "taxRate", - "tracking_categories": "trackingCategories", - "ledger_account": "ledgerAccount", - "custom_fields": "customFields", - "row_version": "rowVersion", - }); -}); - /** @internal */ export type QuoteLineItemInput$Outbound = { id?: string | null | undefined; @@ -527,7 +336,7 @@ export type QuoteLineItemInput$Outbound = { | Array | null | undefined; - ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined; + ledger_account?: LinkedLedgerAccount$Outbound | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; }; @@ -561,7 +370,7 @@ export const QuoteLineItemInput$outboundSchema: z.ZodType< trackingCategories: z.nullable( z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), - ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), customFields: z.array(CustomField$outboundSchema).optional(), rowVersion: z.nullable(z.string()).optional(), }).transform((v) => { @@ -586,19 +395,6 @@ export const QuoteLineItemInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuoteLineItemInput$ { - /** @deprecated use `QuoteLineItemInput$inboundSchema` instead. */ - export const inboundSchema = QuoteLineItemInput$inboundSchema; - /** @deprecated use `QuoteLineItemInput$outboundSchema` instead. */ - export const outboundSchema = QuoteLineItemInput$outboundSchema; - /** @deprecated use `QuoteLineItemInput$Outbound` instead. */ - export type Outbound = QuoteLineItemInput$Outbound; -} - export function quoteLineItemInputToJSON( quoteLineItemInput: QuoteLineItemInput, ): string { @@ -606,13 +402,3 @@ export function quoteLineItemInputToJSON( QuoteLineItemInput$outboundSchema.parse(quoteLineItemInput), ); } - -export function quoteLineItemInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => QuoteLineItemInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'QuoteLineItemInput' from JSON`, - ); -} diff --git a/src/models/components/rebilling.ts b/src/models/components/rebilling.ts index 823059d13..c841c1d15 100644 --- a/src/models/components/rebilling.ts +++ b/src/models/components/rebilling.ts @@ -47,22 +47,10 @@ export type Rebilling = { /** @internal */ export const RebillStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum(RebillStatus); - /** @internal */ export const RebillStatus$outboundSchema: z.ZodNativeEnum = RebillStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RebillStatus$ { - /** @deprecated use `RebillStatus$inboundSchema` instead. */ - export const inboundSchema = RebillStatus$inboundSchema; - /** @deprecated use `RebillStatus$outboundSchema` instead. */ - export const outboundSchema = RebillStatus$outboundSchema; -} - /** @internal */ export const Rebilling$inboundSchema: z.ZodType< Rebilling, @@ -80,7 +68,6 @@ export const Rebilling$inboundSchema: z.ZodType< "linked_transaction_line_id": "linkedTransactionLineId", }); }); - /** @internal */ export type Rebilling$Outbound = { rebillable?: boolean | undefined; @@ -107,23 +94,9 @@ export const Rebilling$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Rebilling$ { - /** @deprecated use `Rebilling$inboundSchema` instead. */ - export const inboundSchema = Rebilling$inboundSchema; - /** @deprecated use `Rebilling$outboundSchema` instead. */ - export const outboundSchema = Rebilling$outboundSchema; - /** @deprecated use `Rebilling$Outbound` instead. */ - export type Outbound = Rebilling$Outbound; -} - export function rebillingToJSON(rebilling: Rebilling): string { return JSON.stringify(Rebilling$outboundSchema.parse(rebilling)); } - export function rebillingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestcountallocation.ts b/src/models/components/requestcountallocation.ts index 082a3d92e..d28ca48b9 100644 --- a/src/models/components/requestcountallocation.ts +++ b/src/models/components/requestcountallocation.ts @@ -24,45 +24,6 @@ export const RequestCountAllocation$inboundSchema: z.ZodType< vault: z.number().optional(), }); -/** @internal */ -export type RequestCountAllocation$Outbound = { - unify?: number | undefined; - proxy?: number | undefined; - vault?: number | undefined; -}; - -/** @internal */ -export const RequestCountAllocation$outboundSchema: z.ZodType< - RequestCountAllocation$Outbound, - z.ZodTypeDef, - RequestCountAllocation -> = z.object({ - unify: z.number().optional(), - proxy: z.number().optional(), - vault: z.number().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestCountAllocation$ { - /** @deprecated use `RequestCountAllocation$inboundSchema` instead. */ - export const inboundSchema = RequestCountAllocation$inboundSchema; - /** @deprecated use `RequestCountAllocation$outboundSchema` instead. */ - export const outboundSchema = RequestCountAllocation$outboundSchema; - /** @deprecated use `RequestCountAllocation$Outbound` instead. */ - export type Outbound = RequestCountAllocation$Outbound; -} - -export function requestCountAllocationToJSON( - requestCountAllocation: RequestCountAllocation, -): string { - return JSON.stringify( - RequestCountAllocation$outboundSchema.parse(requestCountAllocation), - ); -} - export function requestCountAllocationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourcestatus.ts b/src/models/components/resourcestatus.ts index 7ff9806c5..0f3a54a7c 100644 --- a/src/models/components/resourcestatus.ts +++ b/src/models/components/resourcestatus.ts @@ -24,19 +24,3 @@ export type ResourceStatus = ClosedEnum; export const ResourceStatus$inboundSchema: z.ZodNativeEnum< typeof ResourceStatus > = z.nativeEnum(ResourceStatus); - -/** @internal */ -export const ResourceStatus$outboundSchema: z.ZodNativeEnum< - typeof ResourceStatus -> = ResourceStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceStatus$ { - /** @deprecated use `ResourceStatus$inboundSchema` instead. */ - export const inboundSchema = ResourceStatus$inboundSchema; - /** @deprecated use `ResourceStatus$outboundSchema` instead. */ - export const outboundSchema = ResourceStatus$outboundSchema; -} diff --git a/src/models/components/schedule.ts b/src/models/components/schedule.ts index 855232c19..406c100fd 100644 --- a/src/models/components/schedule.ts +++ b/src/models/components/schedule.ts @@ -74,59 +74,6 @@ export const OddWeeks$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type OddWeeks$Outbound = { - hours_monday?: number | undefined; - hours_tuesday?: number | undefined; - hours_wednesday?: number | undefined; - hours_thursday?: number | undefined; - hours_friday?: number | undefined; - hours_saturday?: number | undefined; - hours_sunday?: number | undefined; -}; - -/** @internal */ -export const OddWeeks$outboundSchema: z.ZodType< - OddWeeks$Outbound, - z.ZodTypeDef, - OddWeeks -> = z.object({ - hoursMonday: z.number().optional(), - hoursTuesday: z.number().optional(), - hoursWednesday: z.number().optional(), - hoursThursday: z.number().optional(), - hoursFriday: z.number().optional(), - hoursSaturday: z.number().optional(), - hoursSunday: z.number().optional(), -}).transform((v) => { - return remap$(v, { - hoursMonday: "hours_monday", - hoursTuesday: "hours_tuesday", - hoursWednesday: "hours_wednesday", - hoursThursday: "hours_thursday", - hoursFriday: "hours_friday", - hoursSaturday: "hours_saturday", - hoursSunday: "hours_sunday", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OddWeeks$ { - /** @deprecated use `OddWeeks$inboundSchema` instead. */ - export const inboundSchema = OddWeeks$inboundSchema; - /** @deprecated use `OddWeeks$outboundSchema` instead. */ - export const outboundSchema = OddWeeks$outboundSchema; - /** @deprecated use `OddWeeks$Outbound` instead. */ - export type Outbound = OddWeeks$Outbound; -} - -export function oddWeeksToJSON(oddWeeks: OddWeeks): string { - return JSON.stringify(OddWeeks$outboundSchema.parse(oddWeeks)); -} - export function oddWeeksFromJSON( jsonString: string, ): SafeParseResult { @@ -162,59 +109,6 @@ export const EvenWeeks$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EvenWeeks$Outbound = { - hours_monday?: number | undefined; - hours_tuesday?: number | undefined; - hours_wednesday?: number | undefined; - hours_thursday?: number | undefined; - hours_friday?: number | undefined; - hours_saturday?: number | undefined; - hours_sunday?: number | undefined; -}; - -/** @internal */ -export const EvenWeeks$outboundSchema: z.ZodType< - EvenWeeks$Outbound, - z.ZodTypeDef, - EvenWeeks -> = z.object({ - hoursMonday: z.number().optional(), - hoursTuesday: z.number().optional(), - hoursWednesday: z.number().optional(), - hoursThursday: z.number().optional(), - hoursFriday: z.number().optional(), - hoursSaturday: z.number().optional(), - hoursSunday: z.number().optional(), -}).transform((v) => { - return remap$(v, { - hoursMonday: "hours_monday", - hoursTuesday: "hours_tuesday", - hoursWednesday: "hours_wednesday", - hoursThursday: "hours_thursday", - hoursFriday: "hours_friday", - hoursSaturday: "hours_saturday", - hoursSunday: "hours_sunday", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EvenWeeks$ { - /** @deprecated use `EvenWeeks$inboundSchema` instead. */ - export const inboundSchema = EvenWeeks$inboundSchema; - /** @deprecated use `EvenWeeks$outboundSchema` instead. */ - export const outboundSchema = EvenWeeks$outboundSchema; - /** @deprecated use `EvenWeeks$Outbound` instead. */ - export type Outbound = EvenWeeks$Outbound; -} - -export function evenWeeksToJSON(evenWeeks: EvenWeeks): string { - return JSON.stringify(EvenWeeks$outboundSchema.parse(evenWeeks)); -} - export function evenWeeksFromJSON( jsonString: string, ): SafeParseResult { @@ -240,44 +134,6 @@ export const WorkPattern$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WorkPattern$Outbound = { - odd_weeks?: OddWeeks$Outbound | undefined; - even_weeks?: EvenWeeks$Outbound | undefined; -}; - -/** @internal */ -export const WorkPattern$outboundSchema: z.ZodType< - WorkPattern$Outbound, - z.ZodTypeDef, - WorkPattern -> = z.object({ - oddWeeks: z.lazy(() => OddWeeks$outboundSchema).optional(), - evenWeeks: z.lazy(() => EvenWeeks$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - oddWeeks: "odd_weeks", - evenWeeks: "even_weeks", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkPattern$ { - /** @deprecated use `WorkPattern$inboundSchema` instead. */ - export const inboundSchema = WorkPattern$inboundSchema; - /** @deprecated use `WorkPattern$outboundSchema` instead. */ - export const outboundSchema = WorkPattern$outboundSchema; - /** @deprecated use `WorkPattern$Outbound` instead. */ - export type Outbound = WorkPattern$Outbound; -} - -export function workPatternToJSON(workPattern: WorkPattern): string { - return JSON.stringify(WorkPattern$outboundSchema.parse(workPattern)); -} - export function workPatternFromJSON( jsonString: string, ): SafeParseResult { @@ -306,49 +162,6 @@ export const Schedule$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Schedule$Outbound = { - id: string; - start_date: string; - end_date: string; - work_pattern: WorkPattern$Outbound; -}; - -/** @internal */ -export const Schedule$outboundSchema: z.ZodType< - Schedule$Outbound, - z.ZodTypeDef, - Schedule -> = z.object({ - id: z.string(), - startDate: z.string(), - endDate: z.string(), - workPattern: z.lazy(() => WorkPattern$outboundSchema), -}).transform((v) => { - return remap$(v, { - startDate: "start_date", - endDate: "end_date", - workPattern: "work_pattern", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schedule$ { - /** @deprecated use `Schedule$inboundSchema` instead. */ - export const inboundSchema = Schedule$inboundSchema; - /** @deprecated use `Schedule$outboundSchema` instead. */ - export const outboundSchema = Schedule$outboundSchema; - /** @deprecated use `Schedule$Outbound` instead. */ - export type Outbound = Schedule$Outbound; -} - -export function scheduleToJSON(schedule: Schedule): string { - return JSON.stringify(Schedule$outboundSchema.parse(schedule)); -} - export function scheduleFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/schemasupport.ts b/src/models/components/schemasupport.ts index 6b7fea771..9635e10c1 100644 --- a/src/models/components/schemasupport.ts +++ b/src/models/components/schemasupport.ts @@ -26,37 +26,6 @@ export const SchemaSupport$inboundSchema: z.ZodType< supported: z.boolean().optional(), }); -/** @internal */ -export type SchemaSupport$Outbound = { - supported?: boolean | undefined; -}; - -/** @internal */ -export const SchemaSupport$outboundSchema: z.ZodType< - SchemaSupport$Outbound, - z.ZodTypeDef, - SchemaSupport -> = z.object({ - supported: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SchemaSupport$ { - /** @deprecated use `SchemaSupport$inboundSchema` instead. */ - export const inboundSchema = SchemaSupport$inboundSchema; - /** @deprecated use `SchemaSupport$outboundSchema` instead. */ - export const outboundSchema = SchemaSupport$outboundSchema; - /** @deprecated use `SchemaSupport$Outbound` instead. */ - export type Outbound = SchemaSupport$Outbound; -} - -export function schemaSupportToJSON(schemaSupport: SchemaSupport): string { - return JSON.stringify(SchemaSupport$outboundSchema.parse(schemaSupport)); -} - export function schemaSupportFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/security.ts b/src/models/components/security.ts index b995fe96c..7ddf5e07f 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -3,23 +3,11 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Security = { apiKey?: string | undefined; }; -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - apiKey: z.string().optional(), -}); - /** @internal */ export type Security$Outbound = { apiKey?: string | undefined; @@ -34,29 +22,6 @@ export const Security$outboundSchema: z.ZodType< apiKey: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/src/models/components/session.ts b/src/models/components/session.ts index d4c7cde83..c9be38ddf 100644 --- a/src/models/components/session.ts +++ b/src/models/components/session.ts @@ -4,21 +4,13 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerMetadata, - ConsumerMetadata$inboundSchema, ConsumerMetadata$Outbound, ConsumerMetadata$outboundSchema, } from "./consumermetadata.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { UnifiedApiId, UnifiedApiId$outboundSchema } from "./unifiedapiid.js"; export const AllowActions = { Delete: "delete", @@ -143,57 +135,9 @@ export type Session = { customConsumerSettings?: { [k: string]: any } | undefined; }; -/** @internal */ -export const AllowActions$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(AllowActions); - /** @internal */ export const AllowActions$outboundSchema: z.ZodNativeEnum = - AllowActions$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AllowActions$ { - /** @deprecated use `AllowActions$inboundSchema` instead. */ - export const inboundSchema = AllowActions$inboundSchema; - /** @deprecated use `AllowActions$outboundSchema` instead. */ - export const outboundSchema = AllowActions$outboundSchema; -} - -/** @internal */ -export const Settings$inboundSchema: z.ZodType< - Settings, - z.ZodTypeDef, - unknown -> = z.object({ - unified_apis: z.array(UnifiedApiId$inboundSchema).optional(), - hide_resource_settings: z.boolean().default(false), - sandbox_mode: z.boolean().default(false), - isolation_mode: z.boolean().default(false), - session_length: z.string().default("1h"), - show_logs: z.boolean().default(true), - show_suggestions: z.boolean().default(false), - show_sidebar: z.boolean().default(true), - auto_redirect: z.boolean().default(false), - hide_guides: z.boolean().default(false), - allow_actions: z.array(AllowActions$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "unified_apis": "unifiedApis", - "hide_resource_settings": "hideResourceSettings", - "sandbox_mode": "sandboxMode", - "isolation_mode": "isolationMode", - "session_length": "sessionLength", - "show_logs": "showLogs", - "show_suggestions": "showSuggestions", - "show_sidebar": "showSidebar", - "auto_redirect": "autoRedirect", - "hide_guides": "hideGuides", - "allow_actions": "allowActions", - }); -}); + z.nativeEnum(AllowActions); /** @internal */ export type Settings$Outbound = { @@ -243,55 +187,10 @@ export const Settings$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Settings$ { - /** @deprecated use `Settings$inboundSchema` instead. */ - export const inboundSchema = Settings$inboundSchema; - /** @deprecated use `Settings$outboundSchema` instead. */ - export const outboundSchema = Settings$outboundSchema; - /** @deprecated use `Settings$Outbound` instead. */ - export type Outbound = Settings$Outbound; -} - export function settingsToJSON(settings: Settings): string { return JSON.stringify(Settings$outboundSchema.parse(settings)); } -export function settingsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Settings$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Settings' from JSON`, - ); -} - -/** @internal */ -export const Theme$inboundSchema: z.ZodType = z - .object({ - favicon: z.string().optional(), - logo: z.string().optional(), - primary_color: z.string().optional(), - sidepanel_background_color: z.string().optional(), - sidepanel_text_color: z.string().optional(), - vault_name: z.string().optional(), - privacy_url: z.string().optional(), - terms_url: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "primary_color": "primaryColor", - "sidepanel_background_color": "sidepanelBackgroundColor", - "sidepanel_text_color": "sidepanelTextColor", - "vault_name": "vaultName", - "privacy_url": "privacyUrl", - "terms_url": "termsUrl", - }); - }); - /** @internal */ export type Theme$Outbound = { favicon?: string | undefined; @@ -329,49 +228,10 @@ export const Theme$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Theme$ { - /** @deprecated use `Theme$inboundSchema` instead. */ - export const inboundSchema = Theme$inboundSchema; - /** @deprecated use `Theme$outboundSchema` instead. */ - export const outboundSchema = Theme$outboundSchema; - /** @deprecated use `Theme$Outbound` instead. */ - export type Outbound = Theme$Outbound; -} - export function themeToJSON(theme: Theme): string { return JSON.stringify(Theme$outboundSchema.parse(theme)); } -export function themeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Theme$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Theme' from JSON`, - ); -} - -/** @internal */ -export const Session$inboundSchema: z.ZodType = - z.object({ - consumer_metadata: ConsumerMetadata$inboundSchema.optional(), - redirect_uri: z.string().optional(), - settings: z.lazy(() => Settings$inboundSchema).optional(), - theme: z.lazy(() => Theme$inboundSchema).optional(), - custom_consumer_settings: z.record(z.any()).optional(), - }).transform((v) => { - return remap$(v, { - "consumer_metadata": "consumerMetadata", - "redirect_uri": "redirectUri", - "custom_consumer_settings": "customConsumerSettings", - }); - }); - /** @internal */ export type Session$Outbound = { consumer_metadata?: ConsumerMetadata$Outbound | undefined; @@ -400,29 +260,6 @@ export const Session$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Session$ { - /** @deprecated use `Session$inboundSchema` instead. */ - export const inboundSchema = Session$inboundSchema; - /** @deprecated use `Session$outboundSchema` instead. */ - export const outboundSchema = Session$outboundSchema; - /** @deprecated use `Session$Outbound` instead. */ - export type Outbound = Session$Outbound; -} - export function sessionToJSON(session: Session): string { return JSON.stringify(Session$outboundSchema.parse(session)); } - -export function sessionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Session$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Session' from JSON`, - ); -} diff --git a/src/models/components/sharedlink.ts b/src/models/components/sharedlink.ts index 16849c005..9ebbe8c2e 100644 --- a/src/models/components/sharedlink.ts +++ b/src/models/components/sharedlink.ts @@ -17,8 +17,6 @@ import { import { SharedLinkTarget, SharedLinkTarget$inboundSchema, - SharedLinkTarget$Outbound, - SharedLinkTarget$outboundSchema, } from "./sharedlinktarget.js"; /** @@ -93,22 +91,10 @@ export type SharedLinkInput = { export const Scope$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Scope, ); - /** @internal */ export const Scope$outboundSchema: z.ZodNativeEnum = Scope$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Scope$ { - /** @deprecated use `Scope$inboundSchema` instead. */ - export const inboundSchema = Scope$inboundSchema; - /** @deprecated use `Scope$outboundSchema` instead. */ - export const outboundSchema = Scope$outboundSchema; -} - /** @internal */ export const SharedLink$inboundSchema: z.ZodType< SharedLink, @@ -141,62 +127,6 @@ export const SharedLink$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SharedLink$Outbound = { - url?: string | null | undefined; - download_url?: string | null | undefined; - target?: SharedLinkTarget$Outbound | undefined; - scope?: string | null | undefined; - password_protected?: boolean | null | undefined; - expires_at?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const SharedLink$outboundSchema: z.ZodType< - SharedLink$Outbound, - z.ZodTypeDef, - SharedLink -> = z.object({ - url: z.nullable(z.string()).optional(), - downloadUrl: z.nullable(z.string()).optional(), - target: SharedLinkTarget$outboundSchema.optional(), - scope: z.nullable(Scope$outboundSchema).optional(), - passwordProtected: z.nullable(z.boolean()).optional(), - expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - downloadUrl: "download_url", - passwordProtected: "password_protected", - expiresAt: "expires_at", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SharedLink$ { - /** @deprecated use `SharedLink$inboundSchema` instead. */ - export const inboundSchema = SharedLink$inboundSchema; - /** @deprecated use `SharedLink$outboundSchema` instead. */ - export const outboundSchema = SharedLink$outboundSchema; - /** @deprecated use `SharedLink$Outbound` instead. */ - export type Outbound = SharedLink$Outbound; -} - -export function sharedLinkToJSON(sharedLink: SharedLink): string { - return JSON.stringify(SharedLink$outboundSchema.parse(sharedLink)); -} - export function sharedLinkFromJSON( jsonString: string, ): SafeParseResult { @@ -207,25 +137,6 @@ export function sharedLinkFromJSON( ); } -/** @internal */ -export const SharedLinkInput$inboundSchema: z.ZodType< - SharedLinkInput, - z.ZodTypeDef, - unknown -> = z.object({ - download_url: z.nullable(z.string()).optional(), - target_id: z.nullable(z.string()), - scope: z.nullable(Scope$inboundSchema).optional(), - password: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "download_url": "downloadUrl", - "target_id": "targetId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type SharedLinkInput$Outbound = { download_url?: string | null | undefined; @@ -254,31 +165,8 @@ export const SharedLinkInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SharedLinkInput$ { - /** @deprecated use `SharedLinkInput$inboundSchema` instead. */ - export const inboundSchema = SharedLinkInput$inboundSchema; - /** @deprecated use `SharedLinkInput$outboundSchema` instead. */ - export const outboundSchema = SharedLinkInput$outboundSchema; - /** @deprecated use `SharedLinkInput$Outbound` instead. */ - export type Outbound = SharedLinkInput$Outbound; -} - export function sharedLinkInputToJSON( sharedLinkInput: SharedLinkInput, ): string { return JSON.stringify(SharedLinkInput$outboundSchema.parse(sharedLinkInput)); } - -export function sharedLinkInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SharedLinkInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SharedLinkInput' from JSON`, - ); -} diff --git a/src/models/components/sharedlinktarget.ts b/src/models/components/sharedlinktarget.ts index cff487653..23818c14d 100644 --- a/src/models/components/sharedlinktarget.ts +++ b/src/models/components/sharedlinktarget.ts @@ -6,11 +6,7 @@ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - FileType, - FileType$inboundSchema, - FileType$outboundSchema, -} from "./filetype.js"; +import { FileType, FileType$inboundSchema } from "./filetype.js"; export type SharedLinkTarget = { /** @@ -38,45 +34,6 @@ export const SharedLinkTarget$inboundSchema: z.ZodType< type: z.nullable(FileType$inboundSchema).optional(), }); -/** @internal */ -export type SharedLinkTarget$Outbound = { - id: string; - name?: string | null | undefined; - type?: string | null | undefined; -}; - -/** @internal */ -export const SharedLinkTarget$outboundSchema: z.ZodType< - SharedLinkTarget$Outbound, - z.ZodTypeDef, - SharedLinkTarget -> = z.object({ - id: z.string(), - name: z.nullable(z.string()).optional(), - type: z.nullable(FileType$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SharedLinkTarget$ { - /** @deprecated use `SharedLinkTarget$inboundSchema` instead. */ - export const inboundSchema = SharedLinkTarget$inboundSchema; - /** @deprecated use `SharedLinkTarget$outboundSchema` instead. */ - export const outboundSchema = SharedLinkTarget$outboundSchema; - /** @deprecated use `SharedLinkTarget$Outbound` instead. */ - export type Outbound = SharedLinkTarget$Outbound; -} - -export function sharedLinkTargetToJSON( - sharedLinkTarget: SharedLinkTarget, -): string { - return JSON.stringify( - SharedLinkTarget$outboundSchema.parse(sharedLinkTarget), - ); -} - export function sharedLinkTargetFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/simpleformfieldoption.ts b/src/models/components/simpleformfieldoption.ts index a9665efc5..efcb932d0 100644 --- a/src/models/components/simpleformfieldoption.ts +++ b/src/models/components/simpleformfieldoption.ts @@ -38,7 +38,6 @@ export type SimpleFormFieldOption = { /** @internal */ export const Value5$inboundSchema: z.ZodType = z .union([z.string(), z.number().int(), z.number()]); - /** @internal */ export type Value5$Outbound = string | number | number; @@ -49,23 +48,9 @@ export const Value5$outboundSchema: z.ZodType< Value5 > = z.union([z.string(), z.number().int(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value5$ { - /** @deprecated use `Value5$inboundSchema` instead. */ - export const inboundSchema = Value5$inboundSchema; - /** @deprecated use `Value5$outboundSchema` instead. */ - export const outboundSchema = Value5$outboundSchema; - /** @deprecated use `Value5$Outbound` instead. */ - export type Outbound = Value5$Outbound; -} - export function value5ToJSON(value5: Value5): string { return JSON.stringify(Value5$outboundSchema.parse(value5)); } - export function value5FromJSON( jsonString: string, ): SafeParseResult { @@ -88,7 +73,6 @@ export const SimpleFormFieldOptionValue$inboundSchema: z.ZodType< z.boolean(), z.array(z.union([z.string(), z.number().int(), z.number()])), ]); - /** @internal */ export type SimpleFormFieldOptionValue$Outbound = | string @@ -110,19 +94,6 @@ export const SimpleFormFieldOptionValue$outboundSchema: z.ZodType< z.array(z.union([z.string(), z.number().int(), z.number()])), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SimpleFormFieldOptionValue$ { - /** @deprecated use `SimpleFormFieldOptionValue$inboundSchema` instead. */ - export const inboundSchema = SimpleFormFieldOptionValue$inboundSchema; - /** @deprecated use `SimpleFormFieldOptionValue$outboundSchema` instead. */ - export const outboundSchema = SimpleFormFieldOptionValue$outboundSchema; - /** @deprecated use `SimpleFormFieldOptionValue$Outbound` instead. */ - export type Outbound = SimpleFormFieldOptionValue$Outbound; -} - export function simpleFormFieldOptionValueToJSON( simpleFormFieldOptionValue: SimpleFormFieldOptionValue, ): string { @@ -130,7 +101,6 @@ export function simpleFormFieldOptionValueToJSON( SimpleFormFieldOptionValue$outboundSchema.parse(simpleFormFieldOptionValue), ); } - export function simpleFormFieldOptionValueFromJSON( jsonString: string, ): SafeParseResult { @@ -144,22 +114,10 @@ export function simpleFormFieldOptionValueFromJSON( /** @internal */ export const OptionType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(OptionType); - /** @internal */ export const OptionType$outboundSchema: z.ZodNativeEnum = OptionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OptionType$ { - /** @deprecated use `OptionType$inboundSchema` instead. */ - export const inboundSchema = OptionType$inboundSchema; - /** @deprecated use `OptionType$outboundSchema` instead. */ - export const outboundSchema = OptionType$outboundSchema; -} - /** @internal */ export const SimpleFormFieldOption$inboundSchema: z.ZodType< SimpleFormFieldOption, @@ -180,7 +138,6 @@ export const SimpleFormFieldOption$inboundSchema: z.ZodType< "option_type": "optionType", }); }); - /** @internal */ export type SimpleFormFieldOption$Outbound = { label: string; @@ -215,19 +172,6 @@ export const SimpleFormFieldOption$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SimpleFormFieldOption$ { - /** @deprecated use `SimpleFormFieldOption$inboundSchema` instead. */ - export const inboundSchema = SimpleFormFieldOption$inboundSchema; - /** @deprecated use `SimpleFormFieldOption$outboundSchema` instead. */ - export const outboundSchema = SimpleFormFieldOption$outboundSchema; - /** @deprecated use `SimpleFormFieldOption$Outbound` instead. */ - export type Outbound = SimpleFormFieldOption$Outbound; -} - export function simpleFormFieldOptionToJSON( simpleFormFieldOption: SimpleFormFieldOption, ): string { @@ -235,7 +179,6 @@ export function simpleFormFieldOptionToJSON( SimpleFormFieldOption$outboundSchema.parse(simpleFormFieldOption), ); } - export function simpleFormFieldOptionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/sociallink.ts b/src/models/components/sociallink.ts index a88058a15..db33765f0 100644 --- a/src/models/components/sociallink.ts +++ b/src/models/components/sociallink.ts @@ -32,7 +32,6 @@ export const SocialLink$inboundSchema: z.ZodType< url: z.string(), type: z.nullable(z.string()).optional(), }); - /** @internal */ export type SocialLink$Outbound = { id?: string | null | undefined; @@ -51,23 +50,9 @@ export const SocialLink$outboundSchema: z.ZodType< type: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SocialLink$ { - /** @deprecated use `SocialLink$inboundSchema` instead. */ - export const inboundSchema = SocialLink$inboundSchema; - /** @deprecated use `SocialLink$outboundSchema` instead. */ - export const outboundSchema = SocialLink$outboundSchema; - /** @deprecated use `SocialLink$Outbound` instead. */ - export type Outbound = SocialLink$Outbound; -} - export function socialLinkToJSON(socialLink: SocialLink): string { return JSON.stringify(SocialLink$outboundSchema.parse(socialLink)); } - export function socialLinkFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/sortdirection.ts b/src/models/components/sortdirection.ts index 959e4fc61..bbec92778 100644 --- a/src/models/components/sortdirection.ts +++ b/src/models/components/sortdirection.ts @@ -17,23 +17,7 @@ export const SortDirection = { */ export type SortDirection = ClosedEnum; -/** @internal */ -export const SortDirection$inboundSchema: z.ZodNativeEnum< - typeof SortDirection -> = z.nativeEnum(SortDirection); - /** @internal */ export const SortDirection$outboundSchema: z.ZodNativeEnum< typeof SortDirection -> = SortDirection$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SortDirection$ { - /** @deprecated use `SortDirection$inboundSchema` instead. */ - export const inboundSchema = SortDirection$inboundSchema; - /** @deprecated use `SortDirection$outboundSchema` instead. */ - export const outboundSchema = SortDirection$outboundSchema; -} +> = z.nativeEnum(SortDirection); diff --git a/src/models/components/status.ts b/src/models/components/status.ts index e58a2167f..f4070e816 100644 --- a/src/models/components/status.ts +++ b/src/models/components/status.ts @@ -20,18 +20,6 @@ export type Status = ClosedEnum; /** @internal */ export const Status$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Status); - /** @internal */ export const Status$outboundSchema: z.ZodNativeEnum = Status$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Status$ { - /** @deprecated use `Status$inboundSchema` instead. */ - export const inboundSchema = Status$inboundSchema; - /** @deprecated use `Status$outboundSchema` instead. */ - export const outboundSchema = Status$outboundSchema; -} diff --git a/src/models/components/subsidiary.ts b/src/models/components/subsidiary.ts index 3dbd9eb6d..d257ac16f 100644 --- a/src/models/components/subsidiary.ts +++ b/src/models/components/subsidiary.ts @@ -122,23 +122,11 @@ export type SubsidiaryInput = { export const SubsidiaryStatus$inboundSchema: z.ZodNativeEnum< typeof SubsidiaryStatus > = z.nativeEnum(SubsidiaryStatus); - /** @internal */ export const SubsidiaryStatus$outboundSchema: z.ZodNativeEnum< typeof SubsidiaryStatus > = SubsidiaryStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubsidiaryStatus$ { - /** @deprecated use `SubsidiaryStatus$inboundSchema` instead. */ - export const inboundSchema = SubsidiaryStatus$inboundSchema; - /** @deprecated use `SubsidiaryStatus$outboundSchema` instead. */ - export const outboundSchema = SubsidiaryStatus$outboundSchema; -} - /** @internal */ export const Subsidiary$inboundSchema: z.ZodType< Subsidiary, @@ -177,74 +165,6 @@ export const Subsidiary$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Subsidiary$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - name?: string | null | undefined; - display_id?: string | null | undefined; - status?: string | undefined; - currencies?: Array | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Subsidiary$outboundSchema: z.ZodType< - Subsidiary$Outbound, - z.ZodTypeDef, - Subsidiary -> = z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - status: SubsidiaryStatus$outboundSchema.optional(), - currencies: z.nullable(z.array(z.nullable(Currency$outboundSchema))) - .optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - displayId: "display_id", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Subsidiary$ { - /** @deprecated use `Subsidiary$inboundSchema` instead. */ - export const inboundSchema = Subsidiary$inboundSchema; - /** @deprecated use `Subsidiary$outboundSchema` instead. */ - export const outboundSchema = Subsidiary$outboundSchema; - /** @deprecated use `Subsidiary$Outbound` instead. */ - export type Outbound = Subsidiary$Outbound; -} - -export function subsidiaryToJSON(subsidiary: Subsidiary): string { - return JSON.stringify(Subsidiary$outboundSchema.parse(subsidiary)); -} - export function subsidiaryFromJSON( jsonString: string, ): SafeParseResult { @@ -255,29 +175,6 @@ export function subsidiaryFromJSON( ); } -/** @internal */ -export const SubsidiaryInput$inboundSchema: z.ZodType< - SubsidiaryInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), - status: SubsidiaryStatus$inboundSchema.optional(), - currencies: z.nullable(z.array(z.nullable(Currency$inboundSchema))) - .optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "display_id": "displayId", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type SubsidiaryInput$Outbound = { parent_id?: string | null | undefined; @@ -312,31 +209,8 @@ export const SubsidiaryInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubsidiaryInput$ { - /** @deprecated use `SubsidiaryInput$inboundSchema` instead. */ - export const inboundSchema = SubsidiaryInput$inboundSchema; - /** @deprecated use `SubsidiaryInput$outboundSchema` instead. */ - export const outboundSchema = SubsidiaryInput$outboundSchema; - /** @deprecated use `SubsidiaryInput$Outbound` instead. */ - export type Outbound = SubsidiaryInput$Outbound; -} - export function subsidiaryInputToJSON( subsidiaryInput: SubsidiaryInput, ): string { return JSON.stringify(SubsidiaryInput$outboundSchema.parse(subsidiaryInput)); } - -export function subsidiaryInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SubsidiaryInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SubsidiaryInput' from JSON`, - ); -} diff --git a/src/models/components/subsidiaryreference.ts b/src/models/components/subsidiaryreference.ts index 6fa422203..98a450999 100644 --- a/src/models/components/subsidiaryreference.ts +++ b/src/models/components/subsidiaryreference.ts @@ -28,43 +28,6 @@ export const SubsidiaryReference$inboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** @internal */ -export type SubsidiaryReference$Outbound = { - id?: string | undefined; - name?: string | null | undefined; -}; - -/** @internal */ -export const SubsidiaryReference$outboundSchema: z.ZodType< - SubsidiaryReference$Outbound, - z.ZodTypeDef, - SubsidiaryReference -> = z.object({ - id: z.string().optional(), - name: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubsidiaryReference$ { - /** @deprecated use `SubsidiaryReference$inboundSchema` instead. */ - export const inboundSchema = SubsidiaryReference$inboundSchema; - /** @deprecated use `SubsidiaryReference$outboundSchema` instead. */ - export const outboundSchema = SubsidiaryReference$outboundSchema; - /** @deprecated use `SubsidiaryReference$Outbound` instead. */ - export type Outbound = SubsidiaryReference$Outbound; -} - -export function subsidiaryReferenceToJSON( - subsidiaryReference: SubsidiaryReference, -): string { - return JSON.stringify( - SubsidiaryReference$outboundSchema.parse(subsidiaryReference), - ); -} - export function subsidiaryReferenceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/subsidiaryreferenceinput.ts b/src/models/components/subsidiaryreferenceinput.ts index 13051a4aa..cadc04b68 100644 --- a/src/models/components/subsidiaryreferenceinput.ts +++ b/src/models/components/subsidiaryreferenceinput.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SubsidiaryReferenceInput = { /** @@ -14,15 +11,6 @@ export type SubsidiaryReferenceInput = { name?: string | null | undefined; }; -/** @internal */ -export const SubsidiaryReferenceInput$inboundSchema: z.ZodType< - SubsidiaryReferenceInput, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.nullable(z.string()).optional(), -}); - /** @internal */ export type SubsidiaryReferenceInput$Outbound = { name?: string | null | undefined; @@ -37,19 +25,6 @@ export const SubsidiaryReferenceInput$outboundSchema: z.ZodType< name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubsidiaryReferenceInput$ { - /** @deprecated use `SubsidiaryReferenceInput$inboundSchema` instead. */ - export const inboundSchema = SubsidiaryReferenceInput$inboundSchema; - /** @deprecated use `SubsidiaryReferenceInput$outboundSchema` instead. */ - export const outboundSchema = SubsidiaryReferenceInput$outboundSchema; - /** @deprecated use `SubsidiaryReferenceInput$Outbound` instead. */ - export type Outbound = SubsidiaryReferenceInput$Outbound; -} - export function subsidiaryReferenceInputToJSON( subsidiaryReferenceInput: SubsidiaryReferenceInput, ): string { @@ -57,13 +32,3 @@ export function subsidiaryReferenceInputToJSON( SubsidiaryReferenceInput$outboundSchema.parse(subsidiaryReferenceInput), ); } - -export function subsidiaryReferenceInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SubsidiaryReferenceInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SubsidiaryReferenceInput' from JSON`, - ); -} diff --git a/src/models/components/supplier.ts b/src/models/components/supplier.ts index d6d0c7a7c..fa7595bfa 100644 --- a/src/models/components/supplier.ts +++ b/src/models/components/supplier.ts @@ -43,27 +43,15 @@ import { LinkedLedgerAccount$Outbound, LinkedLedgerAccount$outboundSchema, } from "./linkedledgeraccount.js"; -import { - LinkedLedgerAccountInput, - LinkedLedgerAccountInput$inboundSchema, - LinkedLedgerAccountInput$Outbound, - LinkedLedgerAccountInput$outboundSchema, -} from "./linkedledgeraccountinput.js"; import { LinkedTaxDetail, LinkedTaxDetail$inboundSchema, LinkedTaxDetail$Outbound, LinkedTaxDetail$outboundSchema, } from "./linkedtaxdetail.js"; -import { - LinkedTaxRate, - LinkedTaxRate$inboundSchema, - LinkedTaxRate$Outbound, - LinkedTaxRate$outboundSchema, -} from "./linkedtaxrate.js"; +import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, - LinkedTaxRateInput$inboundSchema, LinkedTaxRateInput$Outbound, LinkedTaxRateInput$outboundSchema, } from "./linkedtaxrateinput.js"; @@ -295,7 +283,7 @@ export type SupplierInput = { * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; - account?: LinkedLedgerAccountInput | null | undefined; + account?: LinkedLedgerAccount | null | undefined; /** * Supplier status */ @@ -345,23 +333,11 @@ export type SupplierInput = { export const SupplierStatus$inboundSchema: z.ZodNativeEnum< typeof SupplierStatus > = z.nativeEnum(SupplierStatus); - /** @internal */ export const SupplierStatus$outboundSchema: z.ZodNativeEnum< typeof SupplierStatus > = SupplierStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupplierStatus$ { - /** @deprecated use `SupplierStatus$inboundSchema` instead. */ - export const inboundSchema = SupplierStatus$inboundSchema; - /** @deprecated use `SupplierStatus$outboundSchema` instead. */ - export const outboundSchema = SupplierStatus$outboundSchema; -} - /** @internal */ export const Supplier$inboundSchema: z.ZodType< Supplier, @@ -447,149 +423,6 @@ export const Supplier$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Supplier$Outbound = { - id: string; - downstream_id?: string | null | undefined; - display_id?: string | null | undefined; - display_name?: string | null | undefined; - company_name?: string | null | undefined; - company_id?: string | null | undefined; - supplier_category?: string | null | undefined; - title?: string | null | undefined; - first_name?: string | null | undefined; - middle_name?: string | null | undefined; - last_name?: string | null | undefined; - suffix?: string | null | undefined; - individual?: boolean | null | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails?: Array | undefined; - websites?: Array | undefined; - bank_accounts?: Array | undefined; - notes?: string | null | undefined; - tax_rate?: LinkedTaxRate$Outbound | undefined; - tax_number?: string | null | undefined; - currency?: string | null | undefined; - account?: LinkedLedgerAccount$Outbound | null | undefined; - status?: string | null | undefined; - payment_method?: string | null | undefined; - terms?: string | null | undefined; - channel?: string | null | undefined; - issued_method?: string | null | undefined; - issued_email?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - custom_fields?: Array | undefined; - tax_details?: Array | undefined; - tax_status_details?: Array | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - row_version?: string | null | undefined; - pass_through?: Array | undefined; - subsidiary_id?: string | undefined; - integration_system_id?: string | undefined; -}; - -/** @internal */ -export const Supplier$outboundSchema: z.ZodType< - Supplier$Outbound, - z.ZodTypeDef, - Supplier -> = z.object({ - id: z.string(), - downstreamId: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - displayName: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - companyId: z.nullable(z.string()).optional(), - supplierCategory: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - middleName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - individual: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema).optional(), - websites: z.array(Website$outboundSchema).optional(), - bankAccounts: z.array(BankAccount$outboundSchema).optional(), - notes: z.nullable(z.string()).optional(), - taxRate: LinkedTaxRate$outboundSchema.optional(), - taxNumber: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$outboundSchema).optional(), - account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), - status: z.nullable(SupplierStatus$outboundSchema).optional(), - paymentMethod: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - issuedMethod: z.nullable(z.string()).optional(), - issuedEmail: z.nullable(z.string()).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), - taxDetails: z.array(z.nullable(LinkedTaxDetail$outboundSchema)).optional(), - taxStatusDetails: z.array(z.nullable(LinkedTaxStatusDetail$outboundSchema)) - .optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - rowVersion: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - subsidiaryId: z.string().optional(), - integrationSystemId: z.string().optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - displayId: "display_id", - displayName: "display_name", - companyName: "company_name", - companyId: "company_id", - supplierCategory: "supplier_category", - firstName: "first_name", - middleName: "middle_name", - lastName: "last_name", - phoneNumbers: "phone_numbers", - bankAccounts: "bank_accounts", - taxRate: "tax_rate", - taxNumber: "tax_number", - paymentMethod: "payment_method", - issuedMethod: "issued_method", - issuedEmail: "issued_email", - customMappings: "custom_mappings", - customFields: "custom_fields", - taxDetails: "tax_details", - taxStatusDetails: "tax_status_details", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - rowVersion: "row_version", - passThrough: "pass_through", - subsidiaryId: "subsidiary_id", - integrationSystemId: "integration_system_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Supplier$ { - /** @deprecated use `Supplier$inboundSchema` instead. */ - export const inboundSchema = Supplier$inboundSchema; - /** @deprecated use `Supplier$outboundSchema` instead. */ - export const outboundSchema = Supplier$outboundSchema; - /** @deprecated use `Supplier$Outbound` instead. */ - export type Outbound = Supplier$Outbound; -} - -export function supplierToJSON(supplier: Supplier): string { - return JSON.stringify(Supplier$outboundSchema.parse(supplier)); -} - export function supplierFromJSON( jsonString: string, ): SafeParseResult { @@ -600,74 +433,6 @@ export function supplierFromJSON( ); } -/** @internal */ -export const SupplierInput$inboundSchema: z.ZodType< - SupplierInput, - z.ZodTypeDef, - unknown -> = z.object({ - display_id: z.nullable(z.string()).optional(), - display_name: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - company_id: z.nullable(z.string()).optional(), - supplier_category: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - middle_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - suffix: z.nullable(z.string()).optional(), - individual: z.nullable(z.boolean()).optional(), - addresses: z.array(Address$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema).optional(), - websites: z.array(Website$inboundSchema).optional(), - bank_accounts: z.array(BankAccount$inboundSchema).optional(), - notes: z.nullable(z.string()).optional(), - tax_rate: LinkedTaxRateInput$inboundSchema.optional(), - tax_number: z.nullable(z.string()).optional(), - currency: z.nullable(Currency$inboundSchema).optional(), - account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(), - status: z.nullable(SupplierStatus$inboundSchema).optional(), - payment_method: z.nullable(z.string()).optional(), - terms: z.nullable(z.string()).optional(), - channel: z.nullable(z.string()).optional(), - issued_method: z.nullable(z.string()).optional(), - issued_email: z.nullable(z.string()).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), - tax_details: z.array(z.nullable(LinkedTaxDetail$inboundSchema)).optional(), - tax_status_details: z.array(z.nullable(LinkedTaxStatusDetail$inboundSchema)) - .optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), - subsidiary_id: z.string().optional(), - integration_system_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "display_name": "displayName", - "company_name": "companyName", - "company_id": "companyId", - "supplier_category": "supplierCategory", - "first_name": "firstName", - "middle_name": "middleName", - "last_name": "lastName", - "phone_numbers": "phoneNumbers", - "bank_accounts": "bankAccounts", - "tax_rate": "taxRate", - "tax_number": "taxNumber", - "payment_method": "paymentMethod", - "issued_method": "issuedMethod", - "issued_email": "issuedEmail", - "custom_fields": "customFields", - "tax_details": "taxDetails", - "tax_status_details": "taxStatusDetails", - "row_version": "rowVersion", - "pass_through": "passThrough", - "subsidiary_id": "subsidiaryId", - "integration_system_id": "integrationSystemId", - }); -}); - /** @internal */ export type SupplierInput$Outbound = { display_id?: string | null | undefined; @@ -690,7 +455,7 @@ export type SupplierInput$Outbound = { tax_rate?: LinkedTaxRateInput$Outbound | undefined; tax_number?: string | null | undefined; currency?: string | null | undefined; - account?: LinkedLedgerAccountInput$Outbound | null | undefined; + account?: LinkedLedgerAccount$Outbound | null | undefined; status?: string | null | undefined; payment_method?: string | null | undefined; terms?: string | null | undefined; @@ -732,7 +497,7 @@ export const SupplierInput$outboundSchema: z.ZodType< taxRate: LinkedTaxRateInput$outboundSchema.optional(), taxNumber: z.nullable(z.string()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), - account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(), + account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), status: z.nullable(SupplierStatus$outboundSchema).optional(), paymentMethod: z.nullable(z.string()).optional(), terms: z.nullable(z.string()).optional(), @@ -774,29 +539,6 @@ export const SupplierInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupplierInput$ { - /** @deprecated use `SupplierInput$inboundSchema` instead. */ - export const inboundSchema = SupplierInput$inboundSchema; - /** @deprecated use `SupplierInput$outboundSchema` instead. */ - export const outboundSchema = SupplierInput$outboundSchema; - /** @deprecated use `SupplierInput$Outbound` instead. */ - export type Outbound = SupplierInput$Outbound; -} - export function supplierInputToJSON(supplierInput: SupplierInput): string { return JSON.stringify(SupplierInput$outboundSchema.parse(supplierInput)); } - -export function supplierInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SupplierInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SupplierInput' from JSON`, - ); -} diff --git a/src/models/components/suppliersfilter.ts b/src/models/components/suppliersfilter.ts index 8043e4d05..ff6979e2a 100644 --- a/src/models/components/suppliersfilter.ts +++ b/src/models/components/suppliersfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SuppliersFilter = { /** @@ -32,30 +29,6 @@ export type SuppliersFilter = { updatedSince?: Date | undefined; }; -/** @internal */ -export const SuppliersFilter$inboundSchema: z.ZodType< - SuppliersFilter, - z.ZodTypeDef, - unknown -> = z.object({ - company_name: z.string().optional(), - display_name: z.string().optional(), - first_name: z.string().optional(), - last_name: z.string().optional(), - email: z.string().optional(), - updated_since: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), -}).transform((v) => { - return remap$(v, { - "company_name": "companyName", - "display_name": "displayName", - "first_name": "firstName", - "last_name": "lastName", - "updated_since": "updatedSince", - }); -}); - /** @internal */ export type SuppliersFilter$Outbound = { company_name?: string | undefined; @@ -88,31 +61,8 @@ export const SuppliersFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuppliersFilter$ { - /** @deprecated use `SuppliersFilter$inboundSchema` instead. */ - export const inboundSchema = SuppliersFilter$inboundSchema; - /** @deprecated use `SuppliersFilter$outboundSchema` instead. */ - export const outboundSchema = SuppliersFilter$outboundSchema; - /** @deprecated use `SuppliersFilter$Outbound` instead. */ - export type Outbound = SuppliersFilter$Outbound; -} - export function suppliersFilterToJSON( suppliersFilter: SuppliersFilter, ): string { return JSON.stringify(SuppliersFilter$outboundSchema.parse(suppliersFilter)); } - -export function suppliersFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SuppliersFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SuppliersFilter' from JSON`, - ); -} diff --git a/src/models/components/supplierssort.ts b/src/models/components/supplierssort.ts index fabb9ee6a..59fade03b 100644 --- a/src/models/components/supplierssort.ts +++ b/src/models/components/supplierssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type SuppliersSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const SuppliersSortBy$inboundSchema: z.ZodNativeEnum< - typeof SuppliersSortBy -> = z.nativeEnum(SuppliersSortBy); - /** @internal */ export const SuppliersSortBy$outboundSchema: z.ZodNativeEnum< typeof SuppliersSortBy -> = SuppliersSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuppliersSortBy$ { - /** @deprecated use `SuppliersSortBy$inboundSchema` instead. */ - export const inboundSchema = SuppliersSortBy$inboundSchema; - /** @deprecated use `SuppliersSortBy$outboundSchema` instead. */ - export const outboundSchema = SuppliersSortBy$outboundSchema; -} - -/** @internal */ -export const SuppliersSort$inboundSchema: z.ZodType< - SuppliersSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: SuppliersSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(SuppliersSortBy); /** @internal */ export type SuppliersSort$Outbound = { @@ -83,29 +53,6 @@ export const SuppliersSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SuppliersSort$ { - /** @deprecated use `SuppliersSort$inboundSchema` instead. */ - export const inboundSchema = SuppliersSort$inboundSchema; - /** @deprecated use `SuppliersSort$outboundSchema` instead. */ - export const outboundSchema = SuppliersSort$outboundSchema; - /** @deprecated use `SuppliersSort$Outbound` instead. */ - export type Outbound = SuppliersSort$Outbound; -} - export function suppliersSortToJSON(suppliersSort: SuppliersSort): string { return JSON.stringify(SuppliersSort$outboundSchema.parse(suppliersSort)); } - -export function suppliersSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SuppliersSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SuppliersSort' from JSON`, - ); -} diff --git a/src/models/components/supportedproperty.ts b/src/models/components/supportedproperty.ts index 0a2ad5b13..be7a2467d 100644 --- a/src/models/components/supportedproperty.ts +++ b/src/models/components/supportedproperty.ts @@ -35,49 +35,6 @@ export const SupportedProperty$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SupportedProperty$Outbound = { - unified_property?: string | undefined; - child_properties?: Array | undefined; -}; - -/** @internal */ -export const SupportedProperty$outboundSchema: z.ZodType< - SupportedProperty$Outbound, - z.ZodTypeDef, - SupportedProperty -> = z.object({ - unifiedProperty: z.string().optional(), - childProperties: z.array(z.lazy(() => SupportedProperty$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - unifiedProperty: "unified_property", - childProperties: "child_properties", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportedProperty$ { - /** @deprecated use `SupportedProperty$inboundSchema` instead. */ - export const inboundSchema = SupportedProperty$inboundSchema; - /** @deprecated use `SupportedProperty$outboundSchema` instead. */ - export const outboundSchema = SupportedProperty$outboundSchema; - /** @deprecated use `SupportedProperty$Outbound` instead. */ - export type Outbound = SupportedProperty$Outbound; -} - -export function supportedPropertyToJSON( - supportedProperty: SupportedProperty, -): string { - return JSON.stringify( - SupportedProperty$outboundSchema.parse(supportedProperty), - ); -} - export function supportedPropertyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/tax.ts b/src/models/components/tax.ts index 86cfdb00f..a17816c31 100644 --- a/src/models/components/tax.ts +++ b/src/models/components/tax.ts @@ -30,38 +30,6 @@ export const Tax$inboundSchema: z.ZodType = z amount: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Tax$Outbound = { - name?: string | null | undefined; - employer?: boolean | null | undefined; - amount?: number | null | undefined; -}; - -/** @internal */ -export const Tax$outboundSchema: z.ZodType = z - .object({ - name: z.nullable(z.string()).optional(), - employer: z.nullable(z.boolean()).optional(), - amount: z.nullable(z.number()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Tax$ { - /** @deprecated use `Tax$inboundSchema` instead. */ - export const inboundSchema = Tax$inboundSchema; - /** @deprecated use `Tax$outboundSchema` instead. */ - export const outboundSchema = Tax$outboundSchema; - /** @deprecated use `Tax$Outbound` instead. */ - export type Outbound = Tax$Outbound; -} - -export function taxToJSON(tax: Tax): string { - return JSON.stringify(Tax$outboundSchema.parse(tax)); -} - export function taxFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/taxrate.ts b/src/models/components/taxrate.ts index 7ab33870b..778779fd2 100644 --- a/src/models/components/taxrate.ts +++ b/src/models/components/taxrate.ts @@ -217,7 +217,6 @@ export const Components$inboundSchema: z.ZodType< rate: z.nullable(z.number()).optional(), compound: z.nullable(z.boolean()).optional(), }); - /** @internal */ export type Components$Outbound = { id?: string | null | undefined; @@ -238,23 +237,9 @@ export const Components$outboundSchema: z.ZodType< compound: z.nullable(z.boolean()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Components$ { - /** @deprecated use `Components$inboundSchema` instead. */ - export const inboundSchema = Components$inboundSchema; - /** @deprecated use `Components$outboundSchema` instead. */ - export const outboundSchema = Components$outboundSchema; - /** @deprecated use `Components$Outbound` instead. */ - export type Outbound = Components$Outbound; -} - export function componentsToJSON(components: Components): string { return JSON.stringify(Components$outboundSchema.parse(components)); } - export function componentsFromJSON( jsonString: string, ): SafeParseResult { @@ -269,23 +254,11 @@ export function componentsFromJSON( export const TaxRateStatus$inboundSchema: z.ZodNativeEnum< typeof TaxRateStatus > = z.nativeEnum(TaxRateStatus); - /** @internal */ export const TaxRateStatus$outboundSchema: z.ZodNativeEnum< typeof TaxRateStatus > = TaxRateStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TaxRateStatus$ { - /** @deprecated use `TaxRateStatus$inboundSchema` instead. */ - export const inboundSchema = TaxRateStatus$inboundSchema; - /** @deprecated use `TaxRateStatus$outboundSchema` instead. */ - export const outboundSchema = TaxRateStatus$outboundSchema; -} - /** @internal */ export const Subsidiaries$inboundSchema: z.ZodType< Subsidiaries, @@ -294,7 +267,6 @@ export const Subsidiaries$inboundSchema: z.ZodType< > = z.object({ id: z.string().optional(), }); - /** @internal */ export type Subsidiaries$Outbound = { id?: string | undefined; @@ -309,23 +281,9 @@ export const Subsidiaries$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Subsidiaries$ { - /** @deprecated use `Subsidiaries$inboundSchema` instead. */ - export const inboundSchema = Subsidiaries$inboundSchema; - /** @deprecated use `Subsidiaries$outboundSchema` instead. */ - export const outboundSchema = Subsidiaries$outboundSchema; - /** @deprecated use `Subsidiaries$Outbound` instead. */ - export type Outbound = Subsidiaries$Outbound; -} - export function subsidiariesToJSON(subsidiaries: Subsidiaries): string { return JSON.stringify(Subsidiaries$outboundSchema.parse(subsidiaries)); } - export function subsidiariesFromJSON( jsonString: string, ): SafeParseResult { @@ -387,100 +345,6 @@ export const TaxRate$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type TaxRate$Outbound = { - id?: string | null | undefined; - display_id?: string | null | undefined; - name?: string | undefined; - code?: string | null | undefined; - description?: string | null | undefined; - effective_tax_rate?: number | null | undefined; - total_tax_rate?: number | null | undefined; - tax_payable_account_id?: string | null | undefined; - tax_remitted_account_id?: string | null | undefined; - components?: Array | null | undefined; - type?: string | null | undefined; - report_tax_type?: string | null | undefined; - original_tax_rate_id?: string | null | undefined; - status?: string | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; - subsidiaries?: Array | undefined; - custom_fields?: Array | undefined; -}; - -/** @internal */ -export const TaxRate$outboundSchema: z.ZodType< - TaxRate$Outbound, - z.ZodTypeDef, - TaxRate -> = z.object({ - id: z.nullable(z.string()).optional(), - displayId: z.nullable(z.string()).optional(), - name: z.string().optional(), - code: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - effectiveTaxRate: z.nullable(z.number()).optional(), - totalTaxRate: z.nullable(z.number()).optional(), - taxPayableAccountId: z.nullable(z.string()).optional(), - taxRemittedAccountId: z.nullable(z.string()).optional(), - components: z.nullable(z.array(z.lazy(() => Components$outboundSchema))) - .optional(), - type: z.nullable(z.string()).optional(), - reportTaxType: z.nullable(z.string()).optional(), - originalTaxRateId: z.nullable(z.string()).optional(), - status: z.nullable(TaxRateStatus$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - subsidiaries: z.array(z.lazy(() => Subsidiaries$outboundSchema)).optional(), - customFields: z.array(CustomField$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - displayId: "display_id", - effectiveTaxRate: "effective_tax_rate", - totalTaxRate: "total_tax_rate", - taxPayableAccountId: "tax_payable_account_id", - taxRemittedAccountId: "tax_remitted_account_id", - reportTaxType: "report_tax_type", - originalTaxRateId: "original_tax_rate_id", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - customFields: "custom_fields", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TaxRate$ { - /** @deprecated use `TaxRate$inboundSchema` instead. */ - export const inboundSchema = TaxRate$inboundSchema; - /** @deprecated use `TaxRate$outboundSchema` instead. */ - export const outboundSchema = TaxRate$outboundSchema; - /** @deprecated use `TaxRate$Outbound` instead. */ - export type Outbound = TaxRate$Outbound; -} - -export function taxRateToJSON(taxRate: TaxRate): string { - return JSON.stringify(TaxRate$outboundSchema.parse(taxRate)); -} - export function taxRateFromJSON( jsonString: string, ): SafeParseResult { @@ -491,46 +355,6 @@ export function taxRateFromJSON( ); } -/** @internal */ -export const TaxRateInput$inboundSchema: z.ZodType< - TaxRateInput, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - display_id: z.nullable(z.string()).optional(), - name: z.string().optional(), - code: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - effective_tax_rate: z.nullable(z.number()).optional(), - total_tax_rate: z.nullable(z.number()).optional(), - tax_payable_account_id: z.nullable(z.string()).optional(), - tax_remitted_account_id: z.nullable(z.string()).optional(), - components: z.nullable(z.array(z.lazy(() => Components$inboundSchema))) - .optional(), - type: z.nullable(z.string()).optional(), - report_tax_type: z.nullable(z.string()).optional(), - original_tax_rate_id: z.nullable(z.string()).optional(), - status: z.nullable(TaxRateStatus$inboundSchema).optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), - subsidiaries: z.array(z.lazy(() => Subsidiaries$inboundSchema)).optional(), - custom_fields: z.array(CustomField$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "display_id": "displayId", - "effective_tax_rate": "effectiveTaxRate", - "total_tax_rate": "totalTaxRate", - "tax_payable_account_id": "taxPayableAccountId", - "tax_remitted_account_id": "taxRemittedAccountId", - "report_tax_type": "reportTaxType", - "original_tax_rate_id": "originalTaxRateId", - "row_version": "rowVersion", - "pass_through": "passThrough", - "custom_fields": "customFields", - }); -}); - /** @internal */ export type TaxRateInput$Outbound = { id?: string | null | undefined; @@ -593,29 +417,6 @@ export const TaxRateInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TaxRateInput$ { - /** @deprecated use `TaxRateInput$inboundSchema` instead. */ - export const inboundSchema = TaxRateInput$inboundSchema; - /** @deprecated use `TaxRateInput$outboundSchema` instead. */ - export const outboundSchema = TaxRateInput$outboundSchema; - /** @deprecated use `TaxRateInput$Outbound` instead. */ - export type Outbound = TaxRateInput$Outbound; -} - export function taxRateInputToJSON(taxRateInput: TaxRateInput): string { return JSON.stringify(TaxRateInput$outboundSchema.parse(taxRateInput)); } - -export function taxRateInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TaxRateInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TaxRateInput' from JSON`, - ); -} diff --git a/src/models/components/taxratesfilter.ts b/src/models/components/taxratesfilter.ts index 684cb5c6a..5f865eab8 100644 --- a/src/models/components/taxratesfilter.ts +++ b/src/models/components/taxratesfilter.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type TaxRatesFilter = { /** @@ -30,19 +27,6 @@ export type TaxRatesFilter = { revenue?: boolean | undefined; }; -/** @internal */ -export const TaxRatesFilter$inboundSchema: z.ZodType< - TaxRatesFilter, - z.ZodTypeDef, - unknown -> = z.object({ - assets: z.boolean().optional(), - equity: z.boolean().optional(), - expenses: z.boolean().optional(), - liabilities: z.boolean().optional(), - revenue: z.boolean().optional(), -}); - /** @internal */ export type TaxRatesFilter$Outbound = { assets?: boolean | undefined; @@ -65,29 +49,6 @@ export const TaxRatesFilter$outboundSchema: z.ZodType< revenue: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TaxRatesFilter$ { - /** @deprecated use `TaxRatesFilter$inboundSchema` instead. */ - export const inboundSchema = TaxRatesFilter$inboundSchema; - /** @deprecated use `TaxRatesFilter$outboundSchema` instead. */ - export const outboundSchema = TaxRatesFilter$outboundSchema; - /** @deprecated use `TaxRatesFilter$Outbound` instead. */ - export type Outbound = TaxRatesFilter$Outbound; -} - export function taxRatesFilterToJSON(taxRatesFilter: TaxRatesFilter): string { return JSON.stringify(TaxRatesFilter$outboundSchema.parse(taxRatesFilter)); } - -export function taxRatesFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TaxRatesFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TaxRatesFilter' from JSON`, - ); -} diff --git a/src/models/components/team.ts b/src/models/components/team.ts index a2d1ad663..f85e7401a 100644 --- a/src/models/components/team.ts +++ b/src/models/components/team.ts @@ -27,7 +27,6 @@ export const Team$inboundSchema: z.ZodType = z id: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }); - /** @internal */ export type Team$Outbound = { id?: string | null | undefined; @@ -41,23 +40,9 @@ export const Team$outboundSchema: z.ZodType = name: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Team$ { - /** @deprecated use `Team$inboundSchema` instead. */ - export const inboundSchema = Team$inboundSchema; - /** @deprecated use `Team$outboundSchema` instead. */ - export const outboundSchema = Team$outboundSchema; - /** @deprecated use `Team$Outbound` instead. */ - export type Outbound = Team$Outbound; -} - export function teamToJSON(team: Team): string { return JSON.stringify(Team$outboundSchema.parse(team)); } - export function teamFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ticket.ts b/src/models/components/ticket.ts index 227618fc3..b017c74f8 100644 --- a/src/models/components/ticket.ts +++ b/src/models/components/ticket.ts @@ -8,27 +8,15 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Assignee, - Assignee$inboundSchema, - Assignee$Outbound, - Assignee$outboundSchema, -} from "./assignee.js"; +import { Assignee, Assignee$inboundSchema } from "./assignee.js"; import { AssigneeInput, - AssigneeInput$inboundSchema, AssigneeInput$Outbound, AssigneeInput$outboundSchema, } from "./assigneeinput.js"; -import { - CollectionTag, - CollectionTag$inboundSchema, - CollectionTag$Outbound, - CollectionTag$outboundSchema, -} from "./collectiontag.js"; +import { CollectionTag, CollectionTag$inboundSchema } from "./collectiontag.js"; import { CollectionTagInput, - CollectionTagInput$inboundSchema, CollectionTagInput$Outbound, CollectionTagInput$outboundSchema, } from "./collectiontaginput.js"; @@ -159,23 +147,11 @@ export type TicketInput = { export const TicketPriority$inboundSchema: z.ZodNativeEnum< typeof TicketPriority > = z.nativeEnum(TicketPriority); - /** @internal */ export const TicketPriority$outboundSchema: z.ZodNativeEnum< typeof TicketPriority > = TicketPriority$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketPriority$ { - /** @deprecated use `TicketPriority$inboundSchema` instead. */ - export const inboundSchema = TicketPriority$inboundSchema; - /** @deprecated use `TicketPriority$outboundSchema` instead. */ - export const outboundSchema = TicketPriority$outboundSchema; -} - /** @internal */ export const Ticket$inboundSchema: z.ZodType = z .object({ @@ -218,81 +194,6 @@ export const Ticket$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Ticket$Outbound = { - id: string; - parent_id?: string | null | undefined; - collection_id?: string | null | undefined; - type?: string | null | undefined; - subject?: string | null | undefined; - description?: string | null | undefined; - status?: string | null | undefined; - priority?: string | null | undefined; - assignees?: Array | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - created_by?: string | null | undefined; - due_date?: string | null | undefined; - completed_at?: string | null | undefined; - tags?: Array | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const Ticket$outboundSchema: z.ZodType< - Ticket$Outbound, - z.ZodTypeDef, - Ticket -> = z.object({ - id: z.string(), - parentId: z.nullable(z.string()).optional(), - collectionId: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - priority: z.nullable(TicketPriority$outboundSchema).optional(), - assignees: z.array(Assignee$outboundSchema).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdBy: z.nullable(z.string()).optional(), - dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), - completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - tags: z.array(CollectionTag$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - collectionId: "collection_id", - updatedAt: "updated_at", - createdAt: "created_at", - createdBy: "created_by", - dueDate: "due_date", - completedAt: "completed_at", - customMappings: "custom_mappings", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Ticket$ { - /** @deprecated use `Ticket$inboundSchema` instead. */ - export const inboundSchema = Ticket$inboundSchema; - /** @deprecated use `Ticket$outboundSchema` instead. */ - export const outboundSchema = Ticket$outboundSchema; - /** @deprecated use `Ticket$Outbound` instead. */ - export type Outbound = Ticket$Outbound; -} - -export function ticketToJSON(ticket: Ticket): string { - return JSON.stringify(Ticket$outboundSchema.parse(ticket)); -} - export function ticketFromJSON( jsonString: string, ): SafeParseResult { @@ -303,32 +204,6 @@ export function ticketFromJSON( ); } -/** @internal */ -export const TicketInput$inboundSchema: z.ZodType< - TicketInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - subject: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - priority: z.nullable(TicketPriority$inboundSchema).optional(), - assignees: z.array(AssigneeInput$inboundSchema).optional(), - due_date: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - tags: z.array(CollectionTagInput$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "due_date": "dueDate", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type TicketInput$Outbound = { parent_id?: string | null | undefined; @@ -367,29 +242,6 @@ export const TicketInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketInput$ { - /** @deprecated use `TicketInput$inboundSchema` instead. */ - export const inboundSchema = TicketInput$inboundSchema; - /** @deprecated use `TicketInput$outboundSchema` instead. */ - export const outboundSchema = TicketInput$outboundSchema; - /** @deprecated use `TicketInput$Outbound` instead. */ - export type Outbound = TicketInput$Outbound; -} - export function ticketInputToJSON(ticketInput: TicketInput): string { return JSON.stringify(TicketInput$outboundSchema.parse(ticketInput)); } - -export function ticketInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TicketInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TicketInput' from JSON`, - ); -} diff --git a/src/models/components/ticketssort.ts b/src/models/components/ticketssort.ts index da55bdd16..e3e9c59f6 100644 --- a/src/models/components/ticketssort.ts +++ b/src/models/components/ticketssort.ts @@ -3,13 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SortDirection, - SortDirection$inboundSchema, SortDirection$outboundSchema, } from "./sortdirection.js"; @@ -36,36 +32,10 @@ export type TicketsSort = { direction?: SortDirection | undefined; }; -/** @internal */ -export const TicketsSortBy$inboundSchema: z.ZodNativeEnum< - typeof TicketsSortBy -> = z.nativeEnum(TicketsSortBy); - /** @internal */ export const TicketsSortBy$outboundSchema: z.ZodNativeEnum< typeof TicketsSortBy -> = TicketsSortBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketsSortBy$ { - /** @deprecated use `TicketsSortBy$inboundSchema` instead. */ - export const inboundSchema = TicketsSortBy$inboundSchema; - /** @deprecated use `TicketsSortBy$outboundSchema` instead. */ - export const outboundSchema = TicketsSortBy$outboundSchema; -} - -/** @internal */ -export const TicketsSort$inboundSchema: z.ZodType< - TicketsSort, - z.ZodTypeDef, - unknown -> = z.object({ - by: TicketsSortBy$inboundSchema.optional(), - direction: SortDirection$inboundSchema.default("asc"), -}); +> = z.nativeEnum(TicketsSortBy); /** @internal */ export type TicketsSort$Outbound = { @@ -83,29 +53,6 @@ export const TicketsSort$outboundSchema: z.ZodType< direction: SortDirection$outboundSchema.default("asc"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketsSort$ { - /** @deprecated use `TicketsSort$inboundSchema` instead. */ - export const inboundSchema = TicketsSort$inboundSchema; - /** @deprecated use `TicketsSort$outboundSchema` instead. */ - export const outboundSchema = TicketsSort$outboundSchema; - /** @deprecated use `TicketsSort$Outbound` instead. */ - export type Outbound = TicketsSort$Outbound; -} - export function ticketsSortToJSON(ticketsSort: TicketsSort): string { return JSON.stringify(TicketsSort$outboundSchema.parse(ticketsSort)); } - -export function ticketsSortFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TicketsSort$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TicketsSort' from JSON`, - ); -} diff --git a/src/models/components/timeoffrequest.ts b/src/models/components/timeoffrequest.ts index e90264b47..33466466c 100644 --- a/src/models/components/timeoffrequest.ts +++ b/src/models/components/timeoffrequest.ts @@ -216,69 +216,32 @@ export type TimeOffRequestInput = { export const TimeOffRequestStatusStatus$inboundSchema: z.ZodNativeEnum< typeof TimeOffRequestStatusStatus > = z.nativeEnum(TimeOffRequestStatusStatus); - /** @internal */ export const TimeOffRequestStatusStatus$outboundSchema: z.ZodNativeEnum< typeof TimeOffRequestStatusStatus > = TimeOffRequestStatusStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffRequestStatusStatus$ { - /** @deprecated use `TimeOffRequestStatusStatus$inboundSchema` instead. */ - export const inboundSchema = TimeOffRequestStatusStatus$inboundSchema; - /** @deprecated use `TimeOffRequestStatusStatus$outboundSchema` instead. */ - export const outboundSchema = TimeOffRequestStatusStatus$outboundSchema; -} - /** @internal */ export const RequestType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(RequestType); - /** @internal */ export const RequestType$outboundSchema: z.ZodNativeEnum = RequestType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestType$ { - /** @deprecated use `RequestType$inboundSchema` instead. */ - export const inboundSchema = RequestType$inboundSchema; - /** @deprecated use `RequestType$outboundSchema` instead. */ - export const outboundSchema = RequestType$outboundSchema; -} - /** @internal */ export const Units$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Units, ); - /** @internal */ export const Units$outboundSchema: z.ZodNativeEnum = Units$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Units$ { - /** @deprecated use `Units$inboundSchema` instead. */ - export const inboundSchema = Units$inboundSchema; - /** @deprecated use `Units$outboundSchema` instead. */ - export const outboundSchema = Units$outboundSchema; -} - /** @internal */ export const Notes$inboundSchema: z.ZodType = z .object({ employee: z.nullable(z.string()).optional(), manager: z.nullable(z.string()).optional(), }); - /** @internal */ export type Notes$Outbound = { employee?: string | null | undefined; @@ -295,23 +258,9 @@ export const Notes$outboundSchema: z.ZodType< manager: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Notes$ { - /** @deprecated use `Notes$inboundSchema` instead. */ - export const inboundSchema = Notes$inboundSchema; - /** @deprecated use `Notes$outboundSchema` instead. */ - export const outboundSchema = Notes$outboundSchema; - /** @deprecated use `Notes$Outbound` instead. */ - export type Outbound = Notes$Outbound; -} - export function notesToJSON(notes: Notes): string { return JSON.stringify(Notes$outboundSchema.parse(notes)); } - export function notesFromJSON( jsonString: string, ): SafeParseResult { @@ -373,95 +322,6 @@ export const TimeOffRequest$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TimeOffRequest$Outbound = { - id?: string | undefined; - employee_id?: string | null | undefined; - policy_id?: string | null | undefined; - status?: string | null | undefined; - description?: string | null | undefined; - start_date?: string | null | undefined; - end_date?: string | null | undefined; - request_date?: string | null | undefined; - request_type?: string | null | undefined; - approval_date?: string | null | undefined; - units?: string | null | undefined; - amount?: number | null | undefined; - day_part?: string | null | undefined; - notes?: Notes$Outbound | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; - policy_type?: string | undefined; -}; - -/** @internal */ -export const TimeOffRequest$outboundSchema: z.ZodType< - TimeOffRequest$Outbound, - z.ZodTypeDef, - TimeOffRequest -> = z.object({ - id: z.string().optional(), - employeeId: z.nullable(z.string()).optional(), - policyId: z.nullable(z.string()).optional(), - status: z.nullable(TimeOffRequestStatusStatus$outboundSchema).optional(), - description: z.nullable(z.string()).optional(), - startDate: z.nullable(z.string()).optional(), - endDate: z.nullable(z.string()).optional(), - requestDate: z.nullable(z.string()).optional(), - requestType: z.nullable(RequestType$outboundSchema).optional(), - approvalDate: z.nullable(z.string()).optional(), - units: z.nullable(Units$outboundSchema).optional(), - amount: z.nullable(z.number()).optional(), - dayPart: z.nullable(z.string()).optional(), - notes: z.lazy(() => Notes$outboundSchema).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - policyType: z.string().optional(), -}).transform((v) => { - return remap$(v, { - employeeId: "employee_id", - policyId: "policy_id", - startDate: "start_date", - endDate: "end_date", - requestDate: "request_date", - requestType: "request_type", - approvalDate: "approval_date", - dayPart: "day_part", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - policyType: "policy_type", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffRequest$ { - /** @deprecated use `TimeOffRequest$inboundSchema` instead. */ - export const inboundSchema = TimeOffRequest$inboundSchema; - /** @deprecated use `TimeOffRequest$outboundSchema` instead. */ - export const outboundSchema = TimeOffRequest$outboundSchema; - /** @deprecated use `TimeOffRequest$Outbound` instead. */ - export type Outbound = TimeOffRequest$Outbound; -} - -export function timeOffRequestToJSON(timeOffRequest: TimeOffRequest): string { - return JSON.stringify(TimeOffRequest$outboundSchema.parse(timeOffRequest)); -} - export function timeOffRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -472,42 +332,6 @@ export function timeOffRequestFromJSON( ); } -/** @internal */ -export const TimeOffRequestInput$inboundSchema: z.ZodType< - TimeOffRequestInput, - z.ZodTypeDef, - unknown -> = z.object({ - employee_id: z.nullable(z.string()).optional(), - policy_id: z.nullable(z.string()).optional(), - status: z.nullable(TimeOffRequestStatusStatus$inboundSchema).optional(), - description: z.nullable(z.string()).optional(), - start_date: z.nullable(z.string()).optional(), - end_date: z.nullable(z.string()).optional(), - request_date: z.nullable(z.string()).optional(), - request_type: z.nullable(RequestType$inboundSchema).optional(), - approval_date: z.nullable(z.string()).optional(), - units: z.nullable(Units$inboundSchema).optional(), - amount: z.nullable(z.number()).optional(), - day_part: z.nullable(z.string()).optional(), - notes: z.lazy(() => Notes$inboundSchema).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), - policy_type: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "policy_id": "policyId", - "start_date": "startDate", - "end_date": "endDate", - "request_date": "requestDate", - "request_type": "requestType", - "approval_date": "approvalDate", - "day_part": "dayPart", - "pass_through": "passThrough", - "policy_type": "policyType", - }); -}); - /** @internal */ export type TimeOffRequestInput$Outbound = { employee_id?: string | null | undefined; @@ -563,19 +387,6 @@ export const TimeOffRequestInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffRequestInput$ { - /** @deprecated use `TimeOffRequestInput$inboundSchema` instead. */ - export const inboundSchema = TimeOffRequestInput$inboundSchema; - /** @deprecated use `TimeOffRequestInput$outboundSchema` instead. */ - export const outboundSchema = TimeOffRequestInput$outboundSchema; - /** @deprecated use `TimeOffRequestInput$Outbound` instead. */ - export type Outbound = TimeOffRequestInput$Outbound; -} - export function timeOffRequestInputToJSON( timeOffRequestInput: TimeOffRequestInput, ): string { @@ -583,13 +394,3 @@ export function timeOffRequestInputToJSON( TimeOffRequestInput$outboundSchema.parse(timeOffRequestInput), ); } - -export function timeOffRequestInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TimeOffRequestInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TimeOffRequestInput' from JSON`, - ); -} diff --git a/src/models/components/timeoffrequestsfilter.ts b/src/models/components/timeoffrequestsfilter.ts index 3d81b53c5..32ec47432 100644 --- a/src/models/components/timeoffrequestsfilter.ts +++ b/src/models/components/timeoffrequestsfilter.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Time off request status to filter on @@ -52,49 +49,10 @@ export type TimeOffRequestsFilter = { companyId?: string | undefined; }; -/** @internal */ -export const TimeOffRequestStatus$inboundSchema: z.ZodNativeEnum< - typeof TimeOffRequestStatus -> = z.nativeEnum(TimeOffRequestStatus); - /** @internal */ export const TimeOffRequestStatus$outboundSchema: z.ZodNativeEnum< typeof TimeOffRequestStatus -> = TimeOffRequestStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffRequestStatus$ { - /** @deprecated use `TimeOffRequestStatus$inboundSchema` instead. */ - export const inboundSchema = TimeOffRequestStatus$inboundSchema; - /** @deprecated use `TimeOffRequestStatus$outboundSchema` instead. */ - export const outboundSchema = TimeOffRequestStatus$outboundSchema; -} - -/** @internal */ -export const TimeOffRequestsFilter$inboundSchema: z.ZodType< - TimeOffRequestsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - start_date: z.string().optional(), - end_date: z.string().optional(), - updated_since: z.string().optional(), - employee_id: z.string().optional(), - time_off_request_status: TimeOffRequestStatus$inboundSchema.optional(), - company_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "start_date": "startDate", - "end_date": "endDate", - "updated_since": "updatedSince", - "employee_id": "employeeId", - "time_off_request_status": "timeOffRequestStatus", - "company_id": "companyId", - }); -}); +> = z.nativeEnum(TimeOffRequestStatus); /** @internal */ export type TimeOffRequestsFilter$Outbound = { @@ -129,19 +87,6 @@ export const TimeOffRequestsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffRequestsFilter$ { - /** @deprecated use `TimeOffRequestsFilter$inboundSchema` instead. */ - export const inboundSchema = TimeOffRequestsFilter$inboundSchema; - /** @deprecated use `TimeOffRequestsFilter$outboundSchema` instead. */ - export const outboundSchema = TimeOffRequestsFilter$outboundSchema; - /** @deprecated use `TimeOffRequestsFilter$Outbound` instead. */ - export type Outbound = TimeOffRequestsFilter$Outbound; -} - export function timeOffRequestsFilterToJSON( timeOffRequestsFilter: TimeOffRequestsFilter, ): string { @@ -149,13 +94,3 @@ export function timeOffRequestsFilterToJSON( TimeOffRequestsFilter$outboundSchema.parse(timeOffRequestsFilter), ); } - -export function timeOffRequestsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TimeOffRequestsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TimeOffRequestsFilter' from JSON`, - ); -} diff --git a/src/models/components/trackingcategory.ts b/src/models/components/trackingcategory.ts index dc997e1ec..be4bf5644 100644 --- a/src/models/components/trackingcategory.ts +++ b/src/models/components/trackingcategory.ts @@ -132,23 +132,11 @@ export type TrackingCategoryInput = { export const TrackingCategoryStatus$inboundSchema: z.ZodNativeEnum< typeof TrackingCategoryStatus > = z.nativeEnum(TrackingCategoryStatus); - /** @internal */ export const TrackingCategoryStatus$outboundSchema: z.ZodNativeEnum< typeof TrackingCategoryStatus > = TrackingCategoryStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingCategoryStatus$ { - /** @deprecated use `TrackingCategoryStatus$inboundSchema` instead. */ - export const inboundSchema = TrackingCategoryStatus$inboundSchema; - /** @deprecated use `TrackingCategoryStatus$outboundSchema` instead. */ - export const outboundSchema = TrackingCategoryStatus$outboundSchema; -} - /** @internal */ export const TrackingCategorySubsidiaries$inboundSchema: z.ZodType< TrackingCategorySubsidiaries, @@ -157,7 +145,6 @@ export const TrackingCategorySubsidiaries$inboundSchema: z.ZodType< > = z.object({ id: z.string().optional(), }); - /** @internal */ export type TrackingCategorySubsidiaries$Outbound = { id?: string | undefined; @@ -172,19 +159,6 @@ export const TrackingCategorySubsidiaries$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingCategorySubsidiaries$ { - /** @deprecated use `TrackingCategorySubsidiaries$inboundSchema` instead. */ - export const inboundSchema = TrackingCategorySubsidiaries$inboundSchema; - /** @deprecated use `TrackingCategorySubsidiaries$outboundSchema` instead. */ - export const outboundSchema = TrackingCategorySubsidiaries$outboundSchema; - /** @deprecated use `TrackingCategorySubsidiaries$Outbound` instead. */ - export type Outbound = TrackingCategorySubsidiaries$Outbound; -} - export function trackingCategorySubsidiariesToJSON( trackingCategorySubsidiaries: TrackingCategorySubsidiaries, ): string { @@ -194,7 +168,6 @@ export function trackingCategorySubsidiariesToJSON( ), ); } - export function trackingCategorySubsidiariesFromJSON( jsonString: string, ): SafeParseResult { @@ -245,81 +218,6 @@ export const TrackingCategory$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TrackingCategory$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - parent_name?: string | null | undefined; - name?: string | undefined; - code?: string | null | undefined; - status?: string | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - row_version?: string | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; - subsidiaries?: Array | undefined; -}; - -/** @internal */ -export const TrackingCategory$outboundSchema: z.ZodType< - TrackingCategory$Outbound, - z.ZodTypeDef, - TrackingCategory -> = z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - parentName: z.nullable(z.string()).optional(), - name: z.string().optional(), - code: z.nullable(z.string()).optional(), - status: TrackingCategoryStatus$outboundSchema.optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - rowVersion: z.nullable(z.string()).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - subsidiaries: z.array( - z.lazy(() => TrackingCategorySubsidiaries$outboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - parentId: "parent_id", - parentName: "parent_name", - customMappings: "custom_mappings", - rowVersion: "row_version", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingCategory$ { - /** @deprecated use `TrackingCategory$inboundSchema` instead. */ - export const inboundSchema = TrackingCategory$inboundSchema; - /** @deprecated use `TrackingCategory$outboundSchema` instead. */ - export const outboundSchema = TrackingCategory$outboundSchema; - /** @deprecated use `TrackingCategory$Outbound` instead. */ - export type Outbound = TrackingCategory$Outbound; -} - -export function trackingCategoryToJSON( - trackingCategory: TrackingCategory, -): string { - return JSON.stringify( - TrackingCategory$outboundSchema.parse(trackingCategory), - ); -} - export function trackingCategoryFromJSON( jsonString: string, ): SafeParseResult { @@ -330,31 +228,6 @@ export function trackingCategoryFromJSON( ); } -/** @internal */ -export const TrackingCategoryInput$inboundSchema: z.ZodType< - TrackingCategoryInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - parent_name: z.nullable(z.string()).optional(), - name: z.string().optional(), - code: z.nullable(z.string()).optional(), - status: TrackingCategoryStatus$inboundSchema.optional(), - row_version: z.nullable(z.string()).optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), - subsidiaries: z.array( - z.lazy(() => TrackingCategorySubsidiaries$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "parent_name": "parentName", - "row_version": "rowVersion", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type TrackingCategoryInput$Outbound = { parent_id?: string | null | undefined; @@ -392,19 +265,6 @@ export const TrackingCategoryInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingCategoryInput$ { - /** @deprecated use `TrackingCategoryInput$inboundSchema` instead. */ - export const inboundSchema = TrackingCategoryInput$inboundSchema; - /** @deprecated use `TrackingCategoryInput$outboundSchema` instead. */ - export const outboundSchema = TrackingCategoryInput$outboundSchema; - /** @deprecated use `TrackingCategoryInput$Outbound` instead. */ - export type Outbound = TrackingCategoryInput$Outbound; -} - export function trackingCategoryInputToJSON( trackingCategoryInput: TrackingCategoryInput, ): string { @@ -412,13 +272,3 @@ export function trackingCategoryInputToJSON( TrackingCategoryInput$outboundSchema.parse(trackingCategoryInput), ); } - -export function trackingCategoryInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TrackingCategoryInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TrackingCategoryInput' from JSON`, - ); -} diff --git a/src/models/components/trackingitem.ts b/src/models/components/trackingitem.ts index 9b1fb4b85..c20e4bcdf 100644 --- a/src/models/components/trackingitem.ts +++ b/src/models/components/trackingitem.ts @@ -48,47 +48,6 @@ export const TrackingItem$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type TrackingItem$Outbound = { - provider: string | null; - number: string | null; - url?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const TrackingItem$outboundSchema: z.ZodType< - TrackingItem$Outbound, - z.ZodTypeDef, - TrackingItem -> = z.object({ - provider: z.nullable(z.string()), - number: z.nullable(z.string()), - url: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - updatedAt: "updated_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TrackingItem$ { - /** @deprecated use `TrackingItem$inboundSchema` instead. */ - export const inboundSchema = TrackingItem$inboundSchema; - /** @deprecated use `TrackingItem$outboundSchema` instead. */ - export const outboundSchema = TrackingItem$outboundSchema; - /** @deprecated use `TrackingItem$Outbound` instead. */ - export type Outbound = TrackingItem$Outbound; -} - -export function trackingItemToJSON(trackingItem: TrackingItem): string { - return JSON.stringify(TrackingItem$outboundSchema.parse(trackingItem)); -} - export function trackingItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/unexpectederrorresponse.ts b/src/models/components/unexpectederrorresponse.ts index 0a514e89a..7ed50344b 100644 --- a/src/models/components/unexpectederrorresponse.ts +++ b/src/models/components/unexpectederrorresponse.ts @@ -47,33 +47,6 @@ export type UnexpectedErrorResponse = { export const Detail$inboundSchema: z.ZodType = z .union([z.string(), z.record(z.any())]); -/** @internal */ -export type Detail$Outbound = string | { [k: string]: any }; - -/** @internal */ -export const Detail$outboundSchema: z.ZodType< - Detail$Outbound, - z.ZodTypeDef, - Detail -> = z.union([z.string(), z.record(z.any())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Detail$ { - /** @deprecated use `Detail$inboundSchema` instead. */ - export const inboundSchema = Detail$inboundSchema; - /** @deprecated use `Detail$outboundSchema` instead. */ - export const outboundSchema = Detail$outboundSchema; - /** @deprecated use `Detail$Outbound` instead. */ - export type Outbound = Detail$Outbound; -} - -export function detailToJSON(detail: Detail): string { - return JSON.stringify(Detail$outboundSchema.parse(detail)); -} - export function detailFromJSON( jsonString: string, ): SafeParseResult { @@ -103,56 +76,6 @@ export const UnexpectedErrorResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnexpectedErrorResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | { [k: string]: any } | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const UnexpectedErrorResponse$outboundSchema: z.ZodType< - UnexpectedErrorResponse$Outbound, - z.ZodTypeDef, - UnexpectedErrorResponse -> = z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.union([z.string(), z.record(z.any())]).optional(), - ref: z.string().optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnexpectedErrorResponse$ { - /** @deprecated use `UnexpectedErrorResponse$inboundSchema` instead. */ - export const inboundSchema = UnexpectedErrorResponse$inboundSchema; - /** @deprecated use `UnexpectedErrorResponse$outboundSchema` instead. */ - export const outboundSchema = UnexpectedErrorResponse$outboundSchema; - /** @deprecated use `UnexpectedErrorResponse$Outbound` instead. */ - export type Outbound = UnexpectedErrorResponse$Outbound; -} - -export function unexpectedErrorResponseToJSON( - unexpectedErrorResponse: UnexpectedErrorResponse, -): string { - return JSON.stringify( - UnexpectedErrorResponse$outboundSchema.parse(unexpectedErrorResponse), - ); -} - export function unexpectedErrorResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/unifiedapiid.ts b/src/models/components/unifiedapiid.ts index d640e7428..0aef6401f 100644 --- a/src/models/components/unifiedapiid.ts +++ b/src/models/components/unifiedapiid.ts @@ -45,18 +45,6 @@ export type UnifiedApiId = ClosedEnum; /** @internal */ export const UnifiedApiId$inboundSchema: z.ZodNativeEnum = z.nativeEnum(UnifiedApiId); - /** @internal */ export const UnifiedApiId$outboundSchema: z.ZodNativeEnum = UnifiedApiId$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnifiedApiId$ { - /** @deprecated use `UnifiedApiId$inboundSchema` instead. */ - export const inboundSchema = UnifiedApiId$inboundSchema; - /** @deprecated use `UnifiedApiId$outboundSchema` instead. */ - export const outboundSchema = UnifiedApiId$outboundSchema; -} diff --git a/src/models/components/unifiedfile.ts b/src/models/components/unifiedfile.ts index e46526b8f..63d2c3536 100644 --- a/src/models/components/unifiedfile.ts +++ b/src/models/components/unifiedfile.ts @@ -7,23 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - FileType, - FileType$inboundSchema, - FileType$outboundSchema, -} from "./filetype.js"; -import { - LinkedFolder, - LinkedFolder$inboundSchema, - LinkedFolder$Outbound, - LinkedFolder$outboundSchema, -} from "./linkedfolder.js"; -import { - Owner, - Owner$inboundSchema, - Owner$Outbound, - Owner$outboundSchema, -} from "./owner.js"; +import { FileType, FileType$inboundSchema } from "./filetype.js"; +import { LinkedFolder, LinkedFolder$inboundSchema } from "./linkedfolder.js"; +import { Owner, Owner$inboundSchema } from "./owner.js"; /** * Permissions the current user has on this file. @@ -124,37 +110,6 @@ export const Permissions$inboundSchema: z.ZodType< download: z.boolean().optional(), }); -/** @internal */ -export type Permissions$Outbound = { - download?: boolean | undefined; -}; - -/** @internal */ -export const Permissions$outboundSchema: z.ZodType< - Permissions$Outbound, - z.ZodTypeDef, - Permissions -> = z.object({ - download: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Permissions$ { - /** @deprecated use `Permissions$inboundSchema` instead. */ - export const inboundSchema = Permissions$inboundSchema; - /** @deprecated use `Permissions$outboundSchema` instead. */ - export const outboundSchema = Permissions$outboundSchema; - /** @deprecated use `Permissions$Outbound` instead. */ - export type Outbound = Permissions$Outbound; -} - -export function permissionsToJSON(permissions: Permissions): string { - return JSON.stringify(Permissions$outboundSchema.parse(permissions)); -} - export function permissionsFromJSON( jsonString: string, ): SafeParseResult { @@ -210,88 +165,6 @@ export const UnifiedFile$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UnifiedFile$Outbound = { - id: string; - downstream_id?: string | null | undefined; - name: string | null; - description?: string | null | undefined; - type: string | null; - path?: string | null | undefined; - mime_type?: string | null | undefined; - downloadable?: boolean | undefined; - size?: number | null | undefined; - owner?: Owner$Outbound | undefined; - parent_folders?: Array | undefined; - parent_folders_complete?: boolean | undefined; - permissions?: Permissions$Outbound | undefined; - exportable?: boolean | undefined; - export_formats?: Array | null | undefined; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_by?: string | null | undefined; - created_by?: string | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const UnifiedFile$outboundSchema: z.ZodType< - UnifiedFile$Outbound, - z.ZodTypeDef, - UnifiedFile -> = z.object({ - id: z.string(), - downstreamId: z.nullable(z.string()).optional(), - name: z.nullable(z.string()), - description: z.nullable(z.string()).optional(), - type: z.nullable(FileType$outboundSchema), - path: z.nullable(z.string()).optional(), - mimeType: z.nullable(z.string()).optional(), - downloadable: z.boolean().optional(), - size: z.nullable(z.number().int()).optional(), - owner: Owner$outboundSchema.optional(), - parentFolders: z.array(LinkedFolder$outboundSchema).optional(), - parentFoldersComplete: z.boolean().optional(), - permissions: z.lazy(() => Permissions$outboundSchema).optional(), - exportable: z.boolean().optional(), - exportFormats: z.nullable(z.array(z.string())).optional(), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedBy: z.nullable(z.string()).optional(), - createdBy: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - mimeType: "mime_type", - parentFolders: "parent_folders", - parentFoldersComplete: "parent_folders_complete", - exportFormats: "export_formats", - customMappings: "custom_mappings", - updatedBy: "updated_by", - createdBy: "created_by", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnifiedFile$ { - /** @deprecated use `UnifiedFile$inboundSchema` instead. */ - export const inboundSchema = UnifiedFile$inboundSchema; - /** @deprecated use `UnifiedFile$outboundSchema` instead. */ - export const outboundSchema = UnifiedFile$outboundSchema; - /** @deprecated use `UnifiedFile$Outbound` instead. */ - export type Outbound = UnifiedFile$Outbound; -} - -export function unifiedFileToJSON(unifiedFile: UnifiedFile): string { - return JSON.stringify(UnifiedFile$outboundSchema.parse(unifiedFile)); -} - export function unifiedFileFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/unifiedid.ts b/src/models/components/unifiedid.ts index 9ce61868e..ef942699f 100644 --- a/src/models/components/unifiedid.ts +++ b/src/models/components/unifiedid.ts @@ -26,37 +26,6 @@ export const UnifiedId$inboundSchema: z.ZodType< id: z.string(), }); -/** @internal */ -export type UnifiedId$Outbound = { - id: string; -}; - -/** @internal */ -export const UnifiedId$outboundSchema: z.ZodType< - UnifiedId$Outbound, - z.ZodTypeDef, - UnifiedId -> = z.object({ - id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnifiedId$ { - /** @deprecated use `UnifiedId$inboundSchema` instead. */ - export const inboundSchema = UnifiedId$inboundSchema; - /** @deprecated use `UnifiedId$outboundSchema` instead. */ - export const outboundSchema = UnifiedId$outboundSchema; - /** @deprecated use `UnifiedId$Outbound` instead. */ - export type Outbound = UnifiedId$Outbound; -} - -export function unifiedIdToJSON(unifiedId: UnifiedId): string { - return JSON.stringify(UnifiedId$outboundSchema.parse(unifiedId)); -} - export function unifiedIdFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateaccountingdepartmentresponse.ts b/src/models/components/updateaccountingdepartmentresponse.ts index a0c47a0f0..9c3701721 100644 --- a/src/models/components/updateaccountingdepartmentresponse.ts +++ b/src/models/components/updateaccountingdepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Department @@ -68,61 +63,6 @@ export const UpdateAccountingDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateAccountingDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateAccountingDepartmentResponse$outboundSchema: z.ZodType< - UpdateAccountingDepartmentResponse$Outbound, - z.ZodTypeDef, - UpdateAccountingDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAccountingDepartmentResponse$ { - /** @deprecated use `UpdateAccountingDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateAccountingDepartmentResponse$inboundSchema; - /** @deprecated use `UpdateAccountingDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = - UpdateAccountingDepartmentResponse$outboundSchema; - /** @deprecated use `UpdateAccountingDepartmentResponse$Outbound` instead. */ - export type Outbound = UpdateAccountingDepartmentResponse$Outbound; -} - -export function updateAccountingDepartmentResponseToJSON( - updateAccountingDepartmentResponse: UpdateAccountingDepartmentResponse, -): string { - return JSON.stringify( - UpdateAccountingDepartmentResponse$outboundSchema.parse( - updateAccountingDepartmentResponse, - ), - ); -} - export function updateAccountingDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateaccountinglocationresponse.ts b/src/models/components/updateaccountinglocationresponse.ts index 0c96da2b8..2656ddadf 100644 --- a/src/models/components/updateaccountinglocationresponse.ts +++ b/src/models/components/updateaccountinglocationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Location @@ -68,60 +63,6 @@ export const UpdateAccountingLocationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateAccountingLocationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateAccountingLocationResponse$outboundSchema: z.ZodType< - UpdateAccountingLocationResponse$Outbound, - z.ZodTypeDef, - UpdateAccountingLocationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAccountingLocationResponse$ { - /** @deprecated use `UpdateAccountingLocationResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateAccountingLocationResponse$inboundSchema; - /** @deprecated use `UpdateAccountingLocationResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateAccountingLocationResponse$outboundSchema; - /** @deprecated use `UpdateAccountingLocationResponse$Outbound` instead. */ - export type Outbound = UpdateAccountingLocationResponse$Outbound; -} - -export function updateAccountingLocationResponseToJSON( - updateAccountingLocationResponse: UpdateAccountingLocationResponse, -): string { - return JSON.stringify( - UpdateAccountingLocationResponse$outboundSchema.parse( - updateAccountingLocationResponse, - ), - ); -} - export function updateAccountingLocationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateactivityresponse.ts b/src/models/components/updateactivityresponse.ts index 49d777b19..58357739a 100644 --- a/src/models/components/updateactivityresponse.ts +++ b/src/models/components/updateactivityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Activity updated @@ -68,58 +63,6 @@ export const UpdateActivityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateActivityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateActivityResponse$outboundSchema: z.ZodType< - UpdateActivityResponse$Outbound, - z.ZodTypeDef, - UpdateActivityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateActivityResponse$ { - /** @deprecated use `UpdateActivityResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateActivityResponse$inboundSchema; - /** @deprecated use `UpdateActivityResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateActivityResponse$outboundSchema; - /** @deprecated use `UpdateActivityResponse$Outbound` instead. */ - export type Outbound = UpdateActivityResponse$Outbound; -} - -export function updateActivityResponseToJSON( - updateActivityResponse: UpdateActivityResponse, -): string { - return JSON.stringify( - UpdateActivityResponse$outboundSchema.parse(updateActivityResponse), - ); -} - export function updateActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateapplicantresponse.ts b/src/models/components/updateapplicantresponse.ts index 26fed29d3..fe950b9f4 100644 --- a/src/models/components/updateapplicantresponse.ts +++ b/src/models/components/updateapplicantresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applicants @@ -68,58 +63,6 @@ export const UpdateApplicantResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateApplicantResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateApplicantResponse$outboundSchema: z.ZodType< - UpdateApplicantResponse$Outbound, - z.ZodTypeDef, - UpdateApplicantResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateApplicantResponse$ { - /** @deprecated use `UpdateApplicantResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateApplicantResponse$inboundSchema; - /** @deprecated use `UpdateApplicantResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateApplicantResponse$outboundSchema; - /** @deprecated use `UpdateApplicantResponse$Outbound` instead. */ - export type Outbound = UpdateApplicantResponse$Outbound; -} - -export function updateApplicantResponseToJSON( - updateApplicantResponse: UpdateApplicantResponse, -): string { - return JSON.stringify( - UpdateApplicantResponse$outboundSchema.parse(updateApplicantResponse), - ); -} - export function updateApplicantResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateapplicationresponse.ts b/src/models/components/updateapplicationresponse.ts index a84ade929..ccc43050f 100644 --- a/src/models/components/updateapplicationresponse.ts +++ b/src/models/components/updateapplicationresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Applications @@ -68,58 +63,6 @@ export const UpdateApplicationResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateApplicationResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateApplicationResponse$outboundSchema: z.ZodType< - UpdateApplicationResponse$Outbound, - z.ZodTypeDef, - UpdateApplicationResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateApplicationResponse$ { - /** @deprecated use `UpdateApplicationResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateApplicationResponse$inboundSchema; - /** @deprecated use `UpdateApplicationResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateApplicationResponse$outboundSchema; - /** @deprecated use `UpdateApplicationResponse$Outbound` instead. */ - export type Outbound = UpdateApplicationResponse$Outbound; -} - -export function updateApplicationResponseToJSON( - updateApplicationResponse: UpdateApplicationResponse, -): string { - return JSON.stringify( - UpdateApplicationResponse$outboundSchema.parse(updateApplicationResponse), - ); -} - export function updateApplicationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatebankaccountresponse.ts b/src/models/components/updatebankaccountresponse.ts index 80ab91760..a201645d5 100644 --- a/src/models/components/updatebankaccountresponse.ts +++ b/src/models/components/updatebankaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Account updated @@ -62,55 +57,6 @@ export const UpdateBankAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateBankAccountResponse$Outbound = { - status_code: number; - status: string; - service?: string | undefined; - resource?: string | undefined; - operation?: string | undefined; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const UpdateBankAccountResponse$outboundSchema: z.ZodType< - UpdateBankAccountResponse$Outbound, - z.ZodTypeDef, - UpdateBankAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string().optional(), - resource: z.string().optional(), - operation: z.string().optional(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankAccountResponse$ { - /** @deprecated use `UpdateBankAccountResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBankAccountResponse$inboundSchema; - /** @deprecated use `UpdateBankAccountResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBankAccountResponse$outboundSchema; - /** @deprecated use `UpdateBankAccountResponse$Outbound` instead. */ - export type Outbound = UpdateBankAccountResponse$Outbound; -} - -export function updateBankAccountResponseToJSON( - updateBankAccountResponse: UpdateBankAccountResponse, -): string { - return JSON.stringify( - UpdateBankAccountResponse$outboundSchema.parse(updateBankAccountResponse), - ); -} - export function updateBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatebankfeedaccountresponse.ts b/src/models/components/updatebankfeedaccountresponse.ts index dc8e506d4..9fadedb6a 100644 --- a/src/models/components/updatebankfeedaccountresponse.ts +++ b/src/models/components/updatebankfeedaccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Accounts @@ -68,60 +63,6 @@ export const UpdateBankFeedAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateBankFeedAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateBankFeedAccountResponse$outboundSchema: z.ZodType< - UpdateBankFeedAccountResponse$Outbound, - z.ZodTypeDef, - UpdateBankFeedAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankFeedAccountResponse$ { - /** @deprecated use `UpdateBankFeedAccountResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBankFeedAccountResponse$inboundSchema; - /** @deprecated use `UpdateBankFeedAccountResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBankFeedAccountResponse$outboundSchema; - /** @deprecated use `UpdateBankFeedAccountResponse$Outbound` instead. */ - export type Outbound = UpdateBankFeedAccountResponse$Outbound; -} - -export function updateBankFeedAccountResponseToJSON( - updateBankFeedAccountResponse: UpdateBankFeedAccountResponse, -): string { - return JSON.stringify( - UpdateBankFeedAccountResponse$outboundSchema.parse( - updateBankFeedAccountResponse, - ), - ); -} - export function updateBankFeedAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatebankfeedstatementresponse.ts b/src/models/components/updatebankfeedstatementresponse.ts index 73c8fa77d..3ab275080 100644 --- a/src/models/components/updatebankfeedstatementresponse.ts +++ b/src/models/components/updatebankfeedstatementresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Feed Statements @@ -68,60 +63,6 @@ export const UpdateBankFeedStatementResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateBankFeedStatementResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateBankFeedStatementResponse$outboundSchema: z.ZodType< - UpdateBankFeedStatementResponse$Outbound, - z.ZodTypeDef, - UpdateBankFeedStatementResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBankFeedStatementResponse$ { - /** @deprecated use `UpdateBankFeedStatementResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBankFeedStatementResponse$inboundSchema; - /** @deprecated use `UpdateBankFeedStatementResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBankFeedStatementResponse$outboundSchema; - /** @deprecated use `UpdateBankFeedStatementResponse$Outbound` instead. */ - export type Outbound = UpdateBankFeedStatementResponse$Outbound; -} - -export function updateBankFeedStatementResponseToJSON( - updateBankFeedStatementResponse: UpdateBankFeedStatementResponse, -): string { - return JSON.stringify( - UpdateBankFeedStatementResponse$outboundSchema.parse( - updateBankFeedStatementResponse, - ), - ); -} - export function updateBankFeedStatementResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatebillpaymentresponse.ts b/src/models/components/updatebillpaymentresponse.ts index bb753623f..2dfc02a9a 100644 --- a/src/models/components/updatebillpaymentresponse.ts +++ b/src/models/components/updatebillpaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill Payment updated @@ -68,58 +63,6 @@ export const UpdateBillPaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateBillPaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateBillPaymentResponse$outboundSchema: z.ZodType< - UpdateBillPaymentResponse$Outbound, - z.ZodTypeDef, - UpdateBillPaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBillPaymentResponse$ { - /** @deprecated use `UpdateBillPaymentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBillPaymentResponse$inboundSchema; - /** @deprecated use `UpdateBillPaymentResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBillPaymentResponse$outboundSchema; - /** @deprecated use `UpdateBillPaymentResponse$Outbound` instead. */ - export type Outbound = UpdateBillPaymentResponse$Outbound; -} - -export function updateBillPaymentResponseToJSON( - updateBillPaymentResponse: UpdateBillPaymentResponse, -): string { - return JSON.stringify( - UpdateBillPaymentResponse$outboundSchema.parse(updateBillPaymentResponse), - ); -} - export function updateBillPaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatebillresponse.ts b/src/models/components/updatebillresponse.ts index 246076cb3..2ca4c8ee8 100644 --- a/src/models/components/updatebillresponse.ts +++ b/src/models/components/updatebillresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bill Updated @@ -68,58 +63,6 @@ export const UpdateBillResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateBillResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateBillResponse$outboundSchema: z.ZodType< - UpdateBillResponse$Outbound, - z.ZodTypeDef, - UpdateBillResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBillResponse$ { - /** @deprecated use `UpdateBillResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateBillResponse$inboundSchema; - /** @deprecated use `UpdateBillResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateBillResponse$outboundSchema; - /** @deprecated use `UpdateBillResponse$Outbound` instead. */ - export type Outbound = UpdateBillResponse$Outbound; -} - -export function updateBillResponseToJSON( - updateBillResponse: UpdateBillResponse, -): string { - return JSON.stringify( - UpdateBillResponse$outboundSchema.parse(updateBillResponse), - ); -} - export function updateBillResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecommentresponse.ts b/src/models/components/updatecommentresponse.ts index 61961f6bf..1f96c0ea5 100644 --- a/src/models/components/updatecommentresponse.ts +++ b/src/models/components/updatecommentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Update a Comment @@ -68,58 +63,6 @@ export const UpdateCommentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCommentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCommentResponse$outboundSchema: z.ZodType< - UpdateCommentResponse$Outbound, - z.ZodTypeDef, - UpdateCommentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCommentResponse$ { - /** @deprecated use `UpdateCommentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCommentResponse$inboundSchema; - /** @deprecated use `UpdateCommentResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCommentResponse$outboundSchema; - /** @deprecated use `UpdateCommentResponse$Outbound` instead. */ - export type Outbound = UpdateCommentResponse$Outbound; -} - -export function updateCommentResponseToJSON( - updateCommentResponse: UpdateCommentResponse, -): string { - return JSON.stringify( - UpdateCommentResponse$outboundSchema.parse(updateCommentResponse), - ); -} - export function updateCommentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecompanyresponse.ts b/src/models/components/updatecompanyresponse.ts index a48085770..0b1b85f8e 100644 --- a/src/models/components/updatecompanyresponse.ts +++ b/src/models/components/updatecompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Company updated @@ -68,58 +63,6 @@ export const UpdateCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCompanyResponse$outboundSchema: z.ZodType< - UpdateCompanyResponse$Outbound, - z.ZodTypeDef, - UpdateCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCompanyResponse$ { - /** @deprecated use `UpdateCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCompanyResponse$inboundSchema; - /** @deprecated use `UpdateCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCompanyResponse$outboundSchema; - /** @deprecated use `UpdateCompanyResponse$Outbound` instead. */ - export type Outbound = UpdateCompanyResponse$Outbound; -} - -export function updateCompanyResponseToJSON( - updateCompanyResponse: UpdateCompanyResponse, -): string { - return JSON.stringify( - UpdateCompanyResponse$outboundSchema.parse(updateCompanyResponse), - ); -} - export function updateCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateconnectionresponse.ts b/src/models/components/updateconnectionresponse.ts index bd1881cd4..9b112d35d 100644 --- a/src/models/components/updateconnectionresponse.ts +++ b/src/models/components/updateconnectionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Connection, - Connection$inboundSchema, - Connection$Outbound, - Connection$outboundSchema, -} from "./connection.js"; +import { Connection, Connection$inboundSchema } from "./connection.js"; /** * Connection updated @@ -50,52 +45,6 @@ export const UpdateConnectionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateConnectionResponse$Outbound = { - status_code: number; - status: string; - data: Connection$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateConnectionResponse$outboundSchema: z.ZodType< - UpdateConnectionResponse$Outbound, - z.ZodTypeDef, - UpdateConnectionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Connection$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConnectionResponse$ { - /** @deprecated use `UpdateConnectionResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateConnectionResponse$inboundSchema; - /** @deprecated use `UpdateConnectionResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateConnectionResponse$outboundSchema; - /** @deprecated use `UpdateConnectionResponse$Outbound` instead. */ - export type Outbound = UpdateConnectionResponse$Outbound; -} - -export function updateConnectionResponseToJSON( - updateConnectionResponse: UpdateConnectionResponse, -): string { - return JSON.stringify( - UpdateConnectionResponse$outboundSchema.parse(updateConnectionResponse), - ); -} - export function updateConnectionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateconsentrequest.ts b/src/models/components/updateconsentrequest.ts index 25ca46117..cc3cbc7df 100644 --- a/src/models/components/updateconsentrequest.ts +++ b/src/models/components/updateconsentrequest.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Wildcard indicating all resources and fields when Data Scopes is disabled @@ -43,29 +40,9 @@ export type UpdateConsentRequest = { }; /** @internal */ -export const Two$inboundSchema: z.ZodNativeEnum = z.nativeEnum(Two); - -/** @internal */ -export const Two$outboundSchema: z.ZodNativeEnum = - Two$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Two$ { - /** @deprecated use `Two$inboundSchema` instead. */ - export const inboundSchema = Two$inboundSchema; - /** @deprecated use `Two$outboundSchema` instead. */ - export const outboundSchema = Two$outboundSchema; -} - -/** @internal */ -export const One$inboundSchema: z.ZodType = z - .object({ - read: z.boolean().optional(), - write: z.boolean().optional(), - }); +export const Two$outboundSchema: z.ZodNativeEnum = z.nativeEnum( + Two, +); /** @internal */ export type One$Outbound = { @@ -80,43 +57,10 @@ export const One$outboundSchema: z.ZodType = z write: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace One$ { - /** @deprecated use `One$inboundSchema` instead. */ - export const inboundSchema = One$inboundSchema; - /** @deprecated use `One$outboundSchema` instead. */ - export const outboundSchema = One$outboundSchema; - /** @deprecated use `One$Outbound` instead. */ - export type Outbound = One$Outbound; -} - export function oneToJSON(one: One): string { return JSON.stringify(One$outboundSchema.parse(one)); } -export function oneFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => One$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'One' from JSON`, - ); -} - -/** @internal */ -export const UpdateConsentRequestResources$inboundSchema: z.ZodType< - UpdateConsentRequestResources, - z.ZodTypeDef, - unknown -> = z.union([ - z.record(z.record(z.lazy(() => One$inboundSchema))), - Two$inboundSchema, -]); - /** @internal */ export type UpdateConsentRequestResources$Outbound = { [k: string]: { [k: string]: One$Outbound }; @@ -132,19 +76,6 @@ export const UpdateConsentRequestResources$outboundSchema: z.ZodType< Two$outboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConsentRequestResources$ { - /** @deprecated use `UpdateConsentRequestResources$inboundSchema` instead. */ - export const inboundSchema = UpdateConsentRequestResources$inboundSchema; - /** @deprecated use `UpdateConsentRequestResources$outboundSchema` instead. */ - export const outboundSchema = UpdateConsentRequestResources$outboundSchema; - /** @deprecated use `UpdateConsentRequestResources$Outbound` instead. */ - export type Outbound = UpdateConsentRequestResources$Outbound; -} - export function updateConsentRequestResourcesToJSON( updateConsentRequestResources: UpdateConsentRequestResources, ): string { @@ -155,29 +86,6 @@ export function updateConsentRequestResourcesToJSON( ); } -export function updateConsentRequestResourcesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateConsentRequestResources$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateConsentRequestResources' from JSON`, - ); -} - -/** @internal */ -export const UpdateConsentRequest$inboundSchema: z.ZodType< - UpdateConsentRequest, - z.ZodTypeDef, - unknown -> = z.object({ - resources: z.union([ - z.record(z.record(z.lazy(() => One$inboundSchema))), - Two$inboundSchema, - ]), - granted: z.boolean(), -}); - /** @internal */ export type UpdateConsentRequest$Outbound = { resources: { [k: string]: { [k: string]: One$Outbound } } | string; @@ -197,19 +105,6 @@ export const UpdateConsentRequest$outboundSchema: z.ZodType< granted: z.boolean(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConsentRequest$ { - /** @deprecated use `UpdateConsentRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateConsentRequest$inboundSchema; - /** @deprecated use `UpdateConsentRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateConsentRequest$outboundSchema; - /** @deprecated use `UpdateConsentRequest$Outbound` instead. */ - export type Outbound = UpdateConsentRequest$Outbound; -} - export function updateConsentRequestToJSON( updateConsentRequest: UpdateConsentRequest, ): string { @@ -217,13 +112,3 @@ export function updateConsentRequestToJSON( UpdateConsentRequest$outboundSchema.parse(updateConsentRequest), ); } - -export function updateConsentRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateConsentRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateConsentRequest' from JSON`, - ); -} diff --git a/src/models/components/updateconsentresponse.ts b/src/models/components/updateconsentresponse.ts index 483bcc232..75b5f528d 100644 --- a/src/models/components/updateconsentresponse.ts +++ b/src/models/components/updateconsentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ConsentRecord, - ConsentRecord$inboundSchema, - ConsentRecord$Outbound, - ConsentRecord$outboundSchema, -} from "./consentrecord.js"; +import { ConsentRecord, ConsentRecord$inboundSchema } from "./consentrecord.js"; /** * Consent updated @@ -50,52 +45,6 @@ export const UpdateConsentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateConsentResponse$Outbound = { - status_code: number; - status: string; - data: ConsentRecord$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateConsentResponse$outboundSchema: z.ZodType< - UpdateConsentResponse$Outbound, - z.ZodTypeDef, - UpdateConsentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: ConsentRecord$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConsentResponse$ { - /** @deprecated use `UpdateConsentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateConsentResponse$inboundSchema; - /** @deprecated use `UpdateConsentResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateConsentResponse$outboundSchema; - /** @deprecated use `UpdateConsentResponse$Outbound` instead. */ - export type Outbound = UpdateConsentResponse$Outbound; -} - -export function updateConsentResponseToJSON( - updateConsentResponse: UpdateConsentResponse, -): string { - return JSON.stringify( - UpdateConsentResponse$outboundSchema.parse(updateConsentResponse), - ); -} - export function updateConsentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateconsumerrequest.ts b/src/models/components/updateconsumerrequest.ts index 8529dab04..2ea7408b0 100644 --- a/src/models/components/updateconsumerrequest.ts +++ b/src/models/components/updateconsumerrequest.ts @@ -3,12 +3,8 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerMetadata, - ConsumerMetadata$inboundSchema, ConsumerMetadata$Outbound, ConsumerMetadata$outboundSchema, } from "./consumermetadata.js"; @@ -20,15 +16,6 @@ export type UpdateConsumerRequest = { metadata?: ConsumerMetadata | undefined; }; -/** @internal */ -export const UpdateConsumerRequest$inboundSchema: z.ZodType< - UpdateConsumerRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metadata: ConsumerMetadata$inboundSchema.optional(), -}); - /** @internal */ export type UpdateConsumerRequest$Outbound = { metadata?: ConsumerMetadata$Outbound | undefined; @@ -43,19 +30,6 @@ export const UpdateConsumerRequest$outboundSchema: z.ZodType< metadata: ConsumerMetadata$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConsumerRequest$ { - /** @deprecated use `UpdateConsumerRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateConsumerRequest$inboundSchema; - /** @deprecated use `UpdateConsumerRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateConsumerRequest$outboundSchema; - /** @deprecated use `UpdateConsumerRequest$Outbound` instead. */ - export type Outbound = UpdateConsumerRequest$Outbound; -} - export function updateConsumerRequestToJSON( updateConsumerRequest: UpdateConsumerRequest, ): string { @@ -63,13 +37,3 @@ export function updateConsumerRequestToJSON( UpdateConsumerRequest$outboundSchema.parse(updateConsumerRequest), ); } - -export function updateConsumerRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateConsumerRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateConsumerRequest' from JSON`, - ); -} diff --git a/src/models/components/updateconsumerresponse.ts b/src/models/components/updateconsumerresponse.ts index 8eef98bb5..ecc6afada 100644 --- a/src/models/components/updateconsumerresponse.ts +++ b/src/models/components/updateconsumerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Consumer, - Consumer$inboundSchema, - Consumer$Outbound, - Consumer$outboundSchema, -} from "./consumer.js"; +import { Consumer, Consumer$inboundSchema } from "./consumer.js"; /** * Consumer updated @@ -50,52 +45,6 @@ export const UpdateConsumerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateConsumerResponse$Outbound = { - status_code: number; - status: string; - data: Consumer$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateConsumerResponse$outboundSchema: z.ZodType< - UpdateConsumerResponse$Outbound, - z.ZodTypeDef, - UpdateConsumerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Consumer$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConsumerResponse$ { - /** @deprecated use `UpdateConsumerResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateConsumerResponse$inboundSchema; - /** @deprecated use `UpdateConsumerResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateConsumerResponse$outboundSchema; - /** @deprecated use `UpdateConsumerResponse$Outbound` instead. */ - export type Outbound = UpdateConsumerResponse$Outbound; -} - -export function updateConsumerResponseToJSON( - updateConsumerResponse: UpdateConsumerResponse, -): string { - return JSON.stringify( - UpdateConsumerResponse$outboundSchema.parse(updateConsumerResponse), - ); -} - export function updateConsumerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecontactresponse.ts b/src/models/components/updatecontactresponse.ts index bdd691bb9..23357318d 100644 --- a/src/models/components/updatecontactresponse.ts +++ b/src/models/components/updatecontactresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Contact updated @@ -68,58 +63,6 @@ export const UpdateContactResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateContactResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateContactResponse$outboundSchema: z.ZodType< - UpdateContactResponse$Outbound, - z.ZodTypeDef, - UpdateContactResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateContactResponse$ { - /** @deprecated use `UpdateContactResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateContactResponse$inboundSchema; - /** @deprecated use `UpdateContactResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateContactResponse$outboundSchema; - /** @deprecated use `UpdateContactResponse$Outbound` instead. */ - export type Outbound = UpdateContactResponse$Outbound; -} - -export function updateContactResponseToJSON( - updateContactResponse: UpdateContactResponse, -): string { - return JSON.stringify( - UpdateContactResponse$outboundSchema.parse(updateContactResponse), - ); -} - export function updateContactResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecreditnoteresponse.ts b/src/models/components/updatecreditnoteresponse.ts index 435f7b264..c79fc0e96 100644 --- a/src/models/components/updatecreditnoteresponse.ts +++ b/src/models/components/updatecreditnoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Credit Note updated @@ -68,58 +63,6 @@ export const UpdateCreditNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCreditNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCreditNoteResponse$outboundSchema: z.ZodType< - UpdateCreditNoteResponse$Outbound, - z.ZodTypeDef, - UpdateCreditNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCreditNoteResponse$ { - /** @deprecated use `UpdateCreditNoteResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCreditNoteResponse$inboundSchema; - /** @deprecated use `UpdateCreditNoteResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCreditNoteResponse$outboundSchema; - /** @deprecated use `UpdateCreditNoteResponse$Outbound` instead. */ - export type Outbound = UpdateCreditNoteResponse$Outbound; -} - -export function updateCreditNoteResponseToJSON( - updateCreditNoteResponse: UpdateCreditNoteResponse, -): string { - return JSON.stringify( - UpdateCreditNoteResponse$outboundSchema.parse(updateCreditNoteResponse), - ); -} - export function updateCreditNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecustomerresponse.ts b/src/models/components/updatecustomerresponse.ts index 1b3c7ae01..7adacc062 100644 --- a/src/models/components/updatecustomerresponse.ts +++ b/src/models/components/updatecustomerresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Customers @@ -68,58 +63,6 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCustomerResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCustomerResponse$outboundSchema: z.ZodType< - UpdateCustomerResponse$Outbound, - z.ZodTypeDef, - UpdateCustomerResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomerResponse$ { - /** @deprecated use `UpdateCustomerResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomerResponse$inboundSchema; - /** @deprecated use `UpdateCustomerResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomerResponse$outboundSchema; - /** @deprecated use `UpdateCustomerResponse$Outbound` instead. */ - export type Outbound = UpdateCustomerResponse$Outbound; -} - -export function updateCustomerResponseToJSON( - updateCustomerResponse: UpdateCustomerResponse, -): string { - return JSON.stringify( - UpdateCustomerResponse$outboundSchema.parse(updateCustomerResponse), - ); -} - export function updateCustomerResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecustomobjectresponse.ts b/src/models/components/updatecustomobjectresponse.ts index 86b936ac1..eeb24379e 100644 --- a/src/models/components/updatecustomobjectresponse.ts +++ b/src/models/components/updatecustomobjectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Custom object updated @@ -68,58 +63,6 @@ export const UpdateCustomObjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCustomObjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCustomObjectResponse$outboundSchema: z.ZodType< - UpdateCustomObjectResponse$Outbound, - z.ZodTypeDef, - UpdateCustomObjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomObjectResponse$ { - /** @deprecated use `UpdateCustomObjectResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomObjectResponse$inboundSchema; - /** @deprecated use `UpdateCustomObjectResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomObjectResponse$outboundSchema; - /** @deprecated use `UpdateCustomObjectResponse$Outbound` instead. */ - export type Outbound = UpdateCustomObjectResponse$Outbound; -} - -export function updateCustomObjectResponseToJSON( - updateCustomObjectResponse: UpdateCustomObjectResponse, -): string { - return JSON.stringify( - UpdateCustomObjectResponse$outboundSchema.parse(updateCustomObjectResponse), - ); -} - export function updateCustomObjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatecustomobjectschemaresponse.ts b/src/models/components/updatecustomobjectschemaresponse.ts index 5c77c2396..f9169b14f 100644 --- a/src/models/components/updatecustomobjectschemaresponse.ts +++ b/src/models/components/updatecustomobjectschemaresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Custom object schema updated @@ -68,60 +63,6 @@ export const UpdateCustomObjectSchemaResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateCustomObjectSchemaResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateCustomObjectSchemaResponse$outboundSchema: z.ZodType< - UpdateCustomObjectSchemaResponse$Outbound, - z.ZodTypeDef, - UpdateCustomObjectSchemaResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateCustomObjectSchemaResponse$ { - /** @deprecated use `UpdateCustomObjectSchemaResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateCustomObjectSchemaResponse$inboundSchema; - /** @deprecated use `UpdateCustomObjectSchemaResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateCustomObjectSchemaResponse$outboundSchema; - /** @deprecated use `UpdateCustomObjectSchemaResponse$Outbound` instead. */ - export type Outbound = UpdateCustomObjectSchemaResponse$Outbound; -} - -export function updateCustomObjectSchemaResponseToJSON( - updateCustomObjectSchemaResponse: UpdateCustomObjectSchemaResponse, -): string { - return JSON.stringify( - UpdateCustomObjectSchemaResponse$outboundSchema.parse( - updateCustomObjectSchemaResponse, - ), - ); -} - export function updateCustomObjectSchemaResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatedepartmentresponse.ts b/src/models/components/updatedepartmentresponse.ts index 23d293f44..e61afc637 100644 --- a/src/models/components/updatedepartmentresponse.ts +++ b/src/models/components/updatedepartmentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Departments @@ -68,58 +63,6 @@ export const UpdateDepartmentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateDepartmentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateDepartmentResponse$outboundSchema: z.ZodType< - UpdateDepartmentResponse$Outbound, - z.ZodTypeDef, - UpdateDepartmentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateDepartmentResponse$ { - /** @deprecated use `UpdateDepartmentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateDepartmentResponse$inboundSchema; - /** @deprecated use `UpdateDepartmentResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateDepartmentResponse$outboundSchema; - /** @deprecated use `UpdateDepartmentResponse$Outbound` instead. */ - export type Outbound = UpdateDepartmentResponse$Outbound; -} - -export function updateDepartmentResponseToJSON( - updateDepartmentResponse: UpdateDepartmentResponse, -): string { - return JSON.stringify( - UpdateDepartmentResponse$outboundSchema.parse(updateDepartmentResponse), - ); -} - export function updateDepartmentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatedrivegroupresponse.ts b/src/models/components/updatedrivegroupresponse.ts index 257782338..2f3133c3b 100644 --- a/src/models/components/updatedrivegroupresponse.ts +++ b/src/models/components/updatedrivegroupresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * DriveGroups @@ -68,58 +63,6 @@ export const UpdateDriveGroupResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateDriveGroupResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateDriveGroupResponse$outboundSchema: z.ZodType< - UpdateDriveGroupResponse$Outbound, - z.ZodTypeDef, - UpdateDriveGroupResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateDriveGroupResponse$ { - /** @deprecated use `UpdateDriveGroupResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateDriveGroupResponse$inboundSchema; - /** @deprecated use `UpdateDriveGroupResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateDriveGroupResponse$outboundSchema; - /** @deprecated use `UpdateDriveGroupResponse$Outbound` instead. */ - export type Outbound = UpdateDriveGroupResponse$Outbound; -} - -export function updateDriveGroupResponseToJSON( - updateDriveGroupResponse: UpdateDriveGroupResponse, -): string { - return JSON.stringify( - UpdateDriveGroupResponse$outboundSchema.parse(updateDriveGroupResponse), - ); -} - export function updateDriveGroupResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatedriveresponse.ts b/src/models/components/updatedriveresponse.ts index 07b9fdf1a..4ed49aa22 100644 --- a/src/models/components/updatedriveresponse.ts +++ b/src/models/components/updatedriveresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Drives @@ -68,58 +63,6 @@ export const UpdateDriveResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateDriveResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateDriveResponse$outboundSchema: z.ZodType< - UpdateDriveResponse$Outbound, - z.ZodTypeDef, - UpdateDriveResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateDriveResponse$ { - /** @deprecated use `UpdateDriveResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateDriveResponse$inboundSchema; - /** @deprecated use `UpdateDriveResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateDriveResponse$outboundSchema; - /** @deprecated use `UpdateDriveResponse$Outbound` instead. */ - export type Outbound = UpdateDriveResponse$Outbound; -} - -export function updateDriveResponseToJSON( - updateDriveResponse: UpdateDriveResponse, -): string { - return JSON.stringify( - UpdateDriveResponse$outboundSchema.parse(updateDriveResponse), - ); -} - export function updateDriveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateemployeeresponse.ts b/src/models/components/updateemployeeresponse.ts index ecfb9b56c..cebe52cc5 100644 --- a/src/models/components/updateemployeeresponse.ts +++ b/src/models/components/updateemployeeresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Employees @@ -68,58 +63,6 @@ export const UpdateEmployeeResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateEmployeeResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateEmployeeResponse$outboundSchema: z.ZodType< - UpdateEmployeeResponse$Outbound, - z.ZodTypeDef, - UpdateEmployeeResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateEmployeeResponse$ { - /** @deprecated use `UpdateEmployeeResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateEmployeeResponse$inboundSchema; - /** @deprecated use `UpdateEmployeeResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateEmployeeResponse$outboundSchema; - /** @deprecated use `UpdateEmployeeResponse$Outbound` instead. */ - export type Outbound = UpdateEmployeeResponse$Outbound; -} - -export function updateEmployeeResponseToJSON( - updateEmployeeResponse: UpdateEmployeeResponse, -): string { - return JSON.stringify( - UpdateEmployeeResponse$outboundSchema.parse(updateEmployeeResponse), - ); -} - export function updateEmployeeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateexpenseresponse.ts b/src/models/components/updateexpenseresponse.ts index d8492d29f..03fc8da9b 100644 --- a/src/models/components/updateexpenseresponse.ts +++ b/src/models/components/updateexpenseresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Expenses @@ -68,58 +63,6 @@ export const UpdateExpenseResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateExpenseResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateExpenseResponse$outboundSchema: z.ZodType< - UpdateExpenseResponse$Outbound, - z.ZodTypeDef, - UpdateExpenseResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateExpenseResponse$ { - /** @deprecated use `UpdateExpenseResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateExpenseResponse$inboundSchema; - /** @deprecated use `UpdateExpenseResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateExpenseResponse$outboundSchema; - /** @deprecated use `UpdateExpenseResponse$Outbound` instead. */ - export type Outbound = UpdateExpenseResponse$Outbound; -} - -export function updateExpenseResponseToJSON( - updateExpenseResponse: UpdateExpenseResponse, -): string { - return JSON.stringify( - UpdateExpenseResponse$outboundSchema.parse(updateExpenseResponse), - ); -} - export function updateExpenseResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatefilerequest.ts b/src/models/components/updatefilerequest.ts index b44f4ded1..40b2c05cf 100644 --- a/src/models/components/updatefilerequest.ts +++ b/src/models/components/updatefilerequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -33,23 +29,6 @@ export type UpdateFileRequest = { passThrough?: Array | undefined; }; -/** @internal */ -export const UpdateFileRequest$inboundSchema: z.ZodType< - UpdateFileRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - parent_folder_id: z.string().optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_folder_id": "parentFolderId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type UpdateFileRequest$Outbound = { name?: string | undefined; @@ -75,19 +54,6 @@ export const UpdateFileRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateFileRequest$ { - /** @deprecated use `UpdateFileRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateFileRequest$inboundSchema; - /** @deprecated use `UpdateFileRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateFileRequest$outboundSchema; - /** @deprecated use `UpdateFileRequest$Outbound` instead. */ - export type Outbound = UpdateFileRequest$Outbound; -} - export function updateFileRequestToJSON( updateFileRequest: UpdateFileRequest, ): string { @@ -95,13 +61,3 @@ export function updateFileRequestToJSON( UpdateFileRequest$outboundSchema.parse(updateFileRequest), ); } - -export function updateFileRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateFileRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateFileRequest' from JSON`, - ); -} diff --git a/src/models/components/updatefileresponse.ts b/src/models/components/updatefileresponse.ts index 3c5e80aff..0f9eedd6b 100644 --- a/src/models/components/updatefileresponse.ts +++ b/src/models/components/updatefileresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Files @@ -68,58 +63,6 @@ export const UpdateFileResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateFileResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateFileResponse$outboundSchema: z.ZodType< - UpdateFileResponse$Outbound, - z.ZodTypeDef, - UpdateFileResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateFileResponse$ { - /** @deprecated use `UpdateFileResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateFileResponse$inboundSchema; - /** @deprecated use `UpdateFileResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateFileResponse$outboundSchema; - /** @deprecated use `UpdateFileResponse$Outbound` instead. */ - export type Outbound = UpdateFileResponse$Outbound; -} - -export function updateFileResponseToJSON( - updateFileResponse: UpdateFileResponse, -): string { - return JSON.stringify( - UpdateFileResponse$outboundSchema.parse(updateFileResponse), - ); -} - export function updateFileResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatefolderrequest.ts b/src/models/components/updatefolderrequest.ts index 2fbed4593..1ca9e1388 100644 --- a/src/models/components/updatefolderrequest.ts +++ b/src/models/components/updatefolderrequest.ts @@ -4,12 +4,8 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; @@ -33,23 +29,6 @@ export type UpdateFolderRequest = { passThrough?: Array | undefined; }; -/** @internal */ -export const UpdateFolderRequest$inboundSchema: z.ZodType< - UpdateFolderRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - parent_folder_id: z.string().optional(), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_folder_id": "parentFolderId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type UpdateFolderRequest$Outbound = { name?: string | undefined; @@ -75,19 +54,6 @@ export const UpdateFolderRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateFolderRequest$ { - /** @deprecated use `UpdateFolderRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateFolderRequest$inboundSchema; - /** @deprecated use `UpdateFolderRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateFolderRequest$outboundSchema; - /** @deprecated use `UpdateFolderRequest$Outbound` instead. */ - export type Outbound = UpdateFolderRequest$Outbound; -} - export function updateFolderRequestToJSON( updateFolderRequest: UpdateFolderRequest, ): string { @@ -95,13 +61,3 @@ export function updateFolderRequestToJSON( UpdateFolderRequest$outboundSchema.parse(updateFolderRequest), ); } - -export function updateFolderRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateFolderRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateFolderRequest' from JSON`, - ); -} diff --git a/src/models/components/updatefolderresponse.ts b/src/models/components/updatefolderresponse.ts index 8b9765620..ebc5557b3 100644 --- a/src/models/components/updatefolderresponse.ts +++ b/src/models/components/updatefolderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Folders @@ -68,58 +63,6 @@ export const UpdateFolderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateFolderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateFolderResponse$outboundSchema: z.ZodType< - UpdateFolderResponse$Outbound, - z.ZodTypeDef, - UpdateFolderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateFolderResponse$ { - /** @deprecated use `UpdateFolderResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateFolderResponse$inboundSchema; - /** @deprecated use `UpdateFolderResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateFolderResponse$outboundSchema; - /** @deprecated use `UpdateFolderResponse$Outbound` instead. */ - export type Outbound = UpdateFolderResponse$Outbound; -} - -export function updateFolderResponseToJSON( - updateFolderResponse: UpdateFolderResponse, -): string { - return JSON.stringify( - UpdateFolderResponse$outboundSchema.parse(updateFolderResponse), - ); -} - export function updateFolderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatehriscompanyresponse.ts b/src/models/components/updatehriscompanyresponse.ts index 9447e3eb0..26f5bb7f4 100644 --- a/src/models/components/updatehriscompanyresponse.ts +++ b/src/models/components/updatehriscompanyresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Companies @@ -68,58 +63,6 @@ export const UpdateHrisCompanyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateHrisCompanyResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateHrisCompanyResponse$outboundSchema: z.ZodType< - UpdateHrisCompanyResponse$Outbound, - z.ZodTypeDef, - UpdateHrisCompanyResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateHrisCompanyResponse$ { - /** @deprecated use `UpdateHrisCompanyResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateHrisCompanyResponse$inboundSchema; - /** @deprecated use `UpdateHrisCompanyResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateHrisCompanyResponse$outboundSchema; - /** @deprecated use `UpdateHrisCompanyResponse$Outbound` instead. */ - export type Outbound = UpdateHrisCompanyResponse$Outbound; -} - -export function updateHrisCompanyResponseToJSON( - updateHrisCompanyResponse: UpdateHrisCompanyResponse, -): string { - return JSON.stringify( - UpdateHrisCompanyResponse$outboundSchema.parse(updateHrisCompanyResponse), - ); -} - export function updateHrisCompanyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateinvoiceitemsresponse.ts b/src/models/components/updateinvoiceitemsresponse.ts index ca469868c..11f4fb02f 100644 --- a/src/models/components/updateinvoiceitemsresponse.ts +++ b/src/models/components/updateinvoiceitemsresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * InvoiceItems @@ -68,58 +63,6 @@ export const UpdateInvoiceItemsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateInvoiceItemsResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateInvoiceItemsResponse$outboundSchema: z.ZodType< - UpdateInvoiceItemsResponse$Outbound, - z.ZodTypeDef, - UpdateInvoiceItemsResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceItemsResponse$ { - /** @deprecated use `UpdateInvoiceItemsResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceItemsResponse$inboundSchema; - /** @deprecated use `UpdateInvoiceItemsResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceItemsResponse$outboundSchema; - /** @deprecated use `UpdateInvoiceItemsResponse$Outbound` instead. */ - export type Outbound = UpdateInvoiceItemsResponse$Outbound; -} - -export function updateInvoiceItemsResponseToJSON( - updateInvoiceItemsResponse: UpdateInvoiceItemsResponse, -): string { - return JSON.stringify( - UpdateInvoiceItemsResponse$outboundSchema.parse(updateInvoiceItemsResponse), - ); -} - export function updateInvoiceItemsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateinvoiceresponse.ts b/src/models/components/updateinvoiceresponse.ts index fca2c5976..01df4a4c0 100644 --- a/src/models/components/updateinvoiceresponse.ts +++ b/src/models/components/updateinvoiceresponse.ts @@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { InvoiceResponse, InvoiceResponse$inboundSchema, - InvoiceResponse$Outbound, - InvoiceResponse$outboundSchema, } from "./invoiceresponse.js"; /** @@ -65,58 +63,6 @@ export const UpdateInvoiceResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateInvoiceResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: InvoiceResponse$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateInvoiceResponse$outboundSchema: z.ZodType< - UpdateInvoiceResponse$Outbound, - z.ZodTypeDef, - UpdateInvoiceResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: InvoiceResponse$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateInvoiceResponse$ { - /** @deprecated use `UpdateInvoiceResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceResponse$inboundSchema; - /** @deprecated use `UpdateInvoiceResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceResponse$outboundSchema; - /** @deprecated use `UpdateInvoiceResponse$Outbound` instead. */ - export type Outbound = UpdateInvoiceResponse$Outbound; -} - -export function updateInvoiceResponseToJSON( - updateInvoiceResponse: UpdateInvoiceResponse, -): string { - return JSON.stringify( - UpdateInvoiceResponse$outboundSchema.parse(updateInvoiceResponse), - ); -} - export function updateInvoiceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatejournalentryresponse.ts b/src/models/components/updatejournalentryresponse.ts index 4c7fb0635..3816033b2 100644 --- a/src/models/components/updatejournalentryresponse.ts +++ b/src/models/components/updatejournalentryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * JournalEntries @@ -68,58 +63,6 @@ export const UpdateJournalEntryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateJournalEntryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateJournalEntryResponse$outboundSchema: z.ZodType< - UpdateJournalEntryResponse$Outbound, - z.ZodTypeDef, - UpdateJournalEntryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateJournalEntryResponse$ { - /** @deprecated use `UpdateJournalEntryResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateJournalEntryResponse$inboundSchema; - /** @deprecated use `UpdateJournalEntryResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateJournalEntryResponse$outboundSchema; - /** @deprecated use `UpdateJournalEntryResponse$Outbound` instead. */ - export type Outbound = UpdateJournalEntryResponse$Outbound; -} - -export function updateJournalEntryResponseToJSON( - updateJournalEntryResponse: UpdateJournalEntryResponse, -): string { - return JSON.stringify( - UpdateJournalEntryResponse$outboundSchema.parse(updateJournalEntryResponse), - ); -} - export function updateJournalEntryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateleadresponse.ts b/src/models/components/updateleadresponse.ts index 4a9fd94ed..e13e16399 100644 --- a/src/models/components/updateleadresponse.ts +++ b/src/models/components/updateleadresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Lead updated @@ -68,58 +63,6 @@ export const UpdateLeadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateLeadResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateLeadResponse$outboundSchema: z.ZodType< - UpdateLeadResponse$Outbound, - z.ZodTypeDef, - UpdateLeadResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateLeadResponse$ { - /** @deprecated use `UpdateLeadResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateLeadResponse$inboundSchema; - /** @deprecated use `UpdateLeadResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateLeadResponse$outboundSchema; - /** @deprecated use `UpdateLeadResponse$Outbound` instead. */ - export type Outbound = UpdateLeadResponse$Outbound; -} - -export function updateLeadResponseToJSON( - updateLeadResponse: UpdateLeadResponse, -): string { - return JSON.stringify( - UpdateLeadResponse$outboundSchema.parse(updateLeadResponse), - ); -} - export function updateLeadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateledgeraccountresponse.ts b/src/models/components/updateledgeraccountresponse.ts index 546cad8b5..fb5dc3f2b 100644 --- a/src/models/components/updateledgeraccountresponse.ts +++ b/src/models/components/updateledgeraccountresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * LedgerAccount updated @@ -68,60 +63,6 @@ export const UpdateLedgerAccountResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateLedgerAccountResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateLedgerAccountResponse$outboundSchema: z.ZodType< - UpdateLedgerAccountResponse$Outbound, - z.ZodTypeDef, - UpdateLedgerAccountResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateLedgerAccountResponse$ { - /** @deprecated use `UpdateLedgerAccountResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateLedgerAccountResponse$inboundSchema; - /** @deprecated use `UpdateLedgerAccountResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateLedgerAccountResponse$outboundSchema; - /** @deprecated use `UpdateLedgerAccountResponse$Outbound` instead. */ - export type Outbound = UpdateLedgerAccountResponse$Outbound; -} - -export function updateLedgerAccountResponseToJSON( - updateLedgerAccountResponse: UpdateLedgerAccountResponse, -): string { - return JSON.stringify( - UpdateLedgerAccountResponse$outboundSchema.parse( - updateLedgerAccountResponse, - ), - ); -} - export function updateLedgerAccountResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatemessageresponse.ts b/src/models/components/updatemessageresponse.ts index 4e52e4547..a32234631 100644 --- a/src/models/components/updatemessageresponse.ts +++ b/src/models/components/updatemessageresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Messages @@ -68,58 +63,6 @@ export const UpdateMessageResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateMessageResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateMessageResponse$outboundSchema: z.ZodType< - UpdateMessageResponse$Outbound, - z.ZodTypeDef, - UpdateMessageResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateMessageResponse$ { - /** @deprecated use `UpdateMessageResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateMessageResponse$inboundSchema; - /** @deprecated use `UpdateMessageResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateMessageResponse$outboundSchema; - /** @deprecated use `UpdateMessageResponse$Outbound` instead. */ - export type Outbound = UpdateMessageResponse$Outbound; -} - -export function updateMessageResponseToJSON( - updateMessageResponse: UpdateMessageResponse, -): string { - return JSON.stringify( - UpdateMessageResponse$outboundSchema.parse(updateMessageResponse), - ); -} - export function updateMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatenoteresponse.ts b/src/models/components/updatenoteresponse.ts index 098c2de77..6a11ea7a1 100644 --- a/src/models/components/updatenoteresponse.ts +++ b/src/models/components/updatenoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Note updated @@ -68,58 +63,6 @@ export const UpdateNoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateNoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateNoteResponse$outboundSchema: z.ZodType< - UpdateNoteResponse$Outbound, - z.ZodTypeDef, - UpdateNoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateNoteResponse$ { - /** @deprecated use `UpdateNoteResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateNoteResponse$inboundSchema; - /** @deprecated use `UpdateNoteResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateNoteResponse$outboundSchema; - /** @deprecated use `UpdateNoteResponse$Outbound` instead. */ - export type Outbound = UpdateNoteResponse$Outbound; -} - -export function updateNoteResponseToJSON( - updateNoteResponse: UpdateNoteResponse, -): string { - return JSON.stringify( - UpdateNoteResponse$outboundSchema.parse(updateNoteResponse), - ); -} - export function updateNoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateopportunityresponse.ts b/src/models/components/updateopportunityresponse.ts index 9678bad76..50a141454 100644 --- a/src/models/components/updateopportunityresponse.ts +++ b/src/models/components/updateopportunityresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Opportunity updated @@ -68,58 +63,6 @@ export const UpdateOpportunityResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateOpportunityResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateOpportunityResponse$outboundSchema: z.ZodType< - UpdateOpportunityResponse$Outbound, - z.ZodTypeDef, - UpdateOpportunityResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateOpportunityResponse$ { - /** @deprecated use `UpdateOpportunityResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateOpportunityResponse$inboundSchema; - /** @deprecated use `UpdateOpportunityResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateOpportunityResponse$outboundSchema; - /** @deprecated use `UpdateOpportunityResponse$Outbound` instead. */ - export type Outbound = UpdateOpportunityResponse$Outbound; -} - -export function updateOpportunityResponseToJSON( - updateOpportunityResponse: UpdateOpportunityResponse, -): string { - return JSON.stringify( - UpdateOpportunityResponse$outboundSchema.parse(updateOpportunityResponse), - ); -} - export function updateOpportunityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatepaymentresponse.ts b/src/models/components/updatepaymentresponse.ts index 767f0f2ca..e82723c5a 100644 --- a/src/models/components/updatepaymentresponse.ts +++ b/src/models/components/updatepaymentresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Payment Updated @@ -68,58 +63,6 @@ export const UpdatePaymentResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdatePaymentResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdatePaymentResponse$outboundSchema: z.ZodType< - UpdatePaymentResponse$Outbound, - z.ZodTypeDef, - UpdatePaymentResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePaymentResponse$ { - /** @deprecated use `UpdatePaymentResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePaymentResponse$inboundSchema; - /** @deprecated use `UpdatePaymentResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePaymentResponse$outboundSchema; - /** @deprecated use `UpdatePaymentResponse$Outbound` instead. */ - export type Outbound = UpdatePaymentResponse$Outbound; -} - -export function updatePaymentResponseToJSON( - updatePaymentResponse: UpdatePaymentResponse, -): string { - return JSON.stringify( - UpdatePaymentResponse$outboundSchema.parse(updatePaymentResponse), - ); -} - export function updatePaymentResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatepipelineresponse.ts b/src/models/components/updatepipelineresponse.ts index bf7b4e925..a15fd7da2 100644 --- a/src/models/components/updatepipelineresponse.ts +++ b/src/models/components/updatepipelineresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Pipeline updated @@ -68,58 +63,6 @@ export const UpdatePipelineResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdatePipelineResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdatePipelineResponse$outboundSchema: z.ZodType< - UpdatePipelineResponse$Outbound, - z.ZodTypeDef, - UpdatePipelineResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePipelineResponse$ { - /** @deprecated use `UpdatePipelineResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePipelineResponse$inboundSchema; - /** @deprecated use `UpdatePipelineResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePipelineResponse$outboundSchema; - /** @deprecated use `UpdatePipelineResponse$Outbound` instead. */ - export type Outbound = UpdatePipelineResponse$Outbound; -} - -export function updatePipelineResponseToJSON( - updatePipelineResponse: UpdatePipelineResponse, -): string { - return JSON.stringify( - UpdatePipelineResponse$outboundSchema.parse(updatePipelineResponse), - ); -} - export function updatePipelineResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateprojectresponse.ts b/src/models/components/updateprojectresponse.ts index 764ab37ef..2697a1a04 100644 --- a/src/models/components/updateprojectresponse.ts +++ b/src/models/components/updateprojectresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Projects @@ -62,55 +57,6 @@ export const UpdateProjectResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateProjectResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const UpdateProjectResponse$outboundSchema: z.ZodType< - UpdateProjectResponse$Outbound, - z.ZodTypeDef, - UpdateProjectResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateProjectResponse$ { - /** @deprecated use `UpdateProjectResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateProjectResponse$inboundSchema; - /** @deprecated use `UpdateProjectResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateProjectResponse$outboundSchema; - /** @deprecated use `UpdateProjectResponse$Outbound` instead. */ - export type Outbound = UpdateProjectResponse$Outbound; -} - -export function updateProjectResponseToJSON( - updateProjectResponse: UpdateProjectResponse, -): string { - return JSON.stringify( - UpdateProjectResponse$outboundSchema.parse(updateProjectResponse), - ); -} - export function updateProjectResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatepurchaseorderresponse.ts b/src/models/components/updatepurchaseorderresponse.ts index a9be9fc56..3aaa461d9 100644 --- a/src/models/components/updatepurchaseorderresponse.ts +++ b/src/models/components/updatepurchaseorderresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * PurchaseOrders @@ -68,60 +63,6 @@ export const UpdatePurchaseOrderResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdatePurchaseOrderResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdatePurchaseOrderResponse$outboundSchema: z.ZodType< - UpdatePurchaseOrderResponse$Outbound, - z.ZodTypeDef, - UpdatePurchaseOrderResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdatePurchaseOrderResponse$ { - /** @deprecated use `UpdatePurchaseOrderResponse$inboundSchema` instead. */ - export const inboundSchema = UpdatePurchaseOrderResponse$inboundSchema; - /** @deprecated use `UpdatePurchaseOrderResponse$outboundSchema` instead. */ - export const outboundSchema = UpdatePurchaseOrderResponse$outboundSchema; - /** @deprecated use `UpdatePurchaseOrderResponse$Outbound` instead. */ - export type Outbound = UpdatePurchaseOrderResponse$Outbound; -} - -export function updatePurchaseOrderResponseToJSON( - updatePurchaseOrderResponse: UpdatePurchaseOrderResponse, -): string { - return JSON.stringify( - UpdatePurchaseOrderResponse$outboundSchema.parse( - updatePurchaseOrderResponse, - ), - ); -} - export function updatePurchaseOrderResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatequoteresponse.ts b/src/models/components/updatequoteresponse.ts index 7e8c99cbb..9dfba706c 100644 --- a/src/models/components/updatequoteresponse.ts +++ b/src/models/components/updatequoteresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Quotes @@ -62,55 +57,6 @@ export const UpdateQuoteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateQuoteResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; -}; - -/** @internal */ -export const UpdateQuoteResponse$outboundSchema: z.ZodType< - UpdateQuoteResponse$Outbound, - z.ZodTypeDef, - UpdateQuoteResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateQuoteResponse$ { - /** @deprecated use `UpdateQuoteResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateQuoteResponse$inboundSchema; - /** @deprecated use `UpdateQuoteResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateQuoteResponse$outboundSchema; - /** @deprecated use `UpdateQuoteResponse$Outbound` instead. */ - export type Outbound = UpdateQuoteResponse$Outbound; -} - -export function updateQuoteResponseToJSON( - updateQuoteResponse: UpdateQuoteResponse, -): string { - return JSON.stringify( - UpdateQuoteResponse$outboundSchema.parse(updateQuoteResponse), - ); -} - export function updateQuoteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatesharedlinkresponse.ts b/src/models/components/updatesharedlinkresponse.ts index 778898a5e..5914ced24 100644 --- a/src/models/components/updatesharedlinkresponse.ts +++ b/src/models/components/updatesharedlinkresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Shared Links @@ -68,58 +63,6 @@ export const UpdateSharedLinkResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateSharedLinkResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateSharedLinkResponse$outboundSchema: z.ZodType< - UpdateSharedLinkResponse$Outbound, - z.ZodTypeDef, - UpdateSharedLinkResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateSharedLinkResponse$ { - /** @deprecated use `UpdateSharedLinkResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateSharedLinkResponse$inboundSchema; - /** @deprecated use `UpdateSharedLinkResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateSharedLinkResponse$outboundSchema; - /** @deprecated use `UpdateSharedLinkResponse$Outbound` instead. */ - export type Outbound = UpdateSharedLinkResponse$Outbound; -} - -export function updateSharedLinkResponseToJSON( - updateSharedLinkResponse: UpdateSharedLinkResponse, -): string { - return JSON.stringify( - UpdateSharedLinkResponse$outboundSchema.parse(updateSharedLinkResponse), - ); -} - export function updateSharedLinkResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatesubsidiaryresponse.ts b/src/models/components/updatesubsidiaryresponse.ts index 6df71ae3d..d6c3fe2d5 100644 --- a/src/models/components/updatesubsidiaryresponse.ts +++ b/src/models/components/updatesubsidiaryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Subsidiaries @@ -68,58 +63,6 @@ export const UpdateSubsidiaryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateSubsidiaryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateSubsidiaryResponse$outboundSchema: z.ZodType< - UpdateSubsidiaryResponse$Outbound, - z.ZodTypeDef, - UpdateSubsidiaryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateSubsidiaryResponse$ { - /** @deprecated use `UpdateSubsidiaryResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateSubsidiaryResponse$inboundSchema; - /** @deprecated use `UpdateSubsidiaryResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateSubsidiaryResponse$outboundSchema; - /** @deprecated use `UpdateSubsidiaryResponse$Outbound` instead. */ - export type Outbound = UpdateSubsidiaryResponse$Outbound; -} - -export function updateSubsidiaryResponseToJSON( - updateSubsidiaryResponse: UpdateSubsidiaryResponse, -): string { - return JSON.stringify( - UpdateSubsidiaryResponse$outboundSchema.parse(updateSubsidiaryResponse), - ); -} - export function updateSubsidiaryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatesupplierresponse.ts b/src/models/components/updatesupplierresponse.ts index 8708604b5..fe3cd2c98 100644 --- a/src/models/components/updatesupplierresponse.ts +++ b/src/models/components/updatesupplierresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Supplier updated @@ -68,58 +63,6 @@ export const UpdateSupplierResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateSupplierResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateSupplierResponse$outboundSchema: z.ZodType< - UpdateSupplierResponse$Outbound, - z.ZodTypeDef, - UpdateSupplierResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateSupplierResponse$ { - /** @deprecated use `UpdateSupplierResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateSupplierResponse$inboundSchema; - /** @deprecated use `UpdateSupplierResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateSupplierResponse$outboundSchema; - /** @deprecated use `UpdateSupplierResponse$Outbound` instead. */ - export type Outbound = UpdateSupplierResponse$Outbound; -} - -export function updateSupplierResponseToJSON( - updateSupplierResponse: UpdateSupplierResponse, -): string { - return JSON.stringify( - UpdateSupplierResponse$outboundSchema.parse(updateSupplierResponse), - ); -} - export function updateSupplierResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatetaxrateresponse.ts b/src/models/components/updatetaxrateresponse.ts index f1b64d990..a75d937ea 100644 --- a/src/models/components/updatetaxrateresponse.ts +++ b/src/models/components/updatetaxrateresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TaxRate updated @@ -68,58 +63,6 @@ export const UpdateTaxRateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateTaxRateResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateTaxRateResponse$outboundSchema: z.ZodType< - UpdateTaxRateResponse$Outbound, - z.ZodTypeDef, - UpdateTaxRateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTaxRateResponse$ { - /** @deprecated use `UpdateTaxRateResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTaxRateResponse$inboundSchema; - /** @deprecated use `UpdateTaxRateResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTaxRateResponse$outboundSchema; - /** @deprecated use `UpdateTaxRateResponse$Outbound` instead. */ - export type Outbound = UpdateTaxRateResponse$Outbound; -} - -export function updateTaxRateResponseToJSON( - updateTaxRateResponse: UpdateTaxRateResponse, -): string { - return JSON.stringify( - UpdateTaxRateResponse$outboundSchema.parse(updateTaxRateResponse), - ); -} - export function updateTaxRateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateticketresponse.ts b/src/models/components/updateticketresponse.ts index f98170797..e039e1d1a 100644 --- a/src/models/components/updateticketresponse.ts +++ b/src/models/components/updateticketresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Update a Ticket @@ -68,58 +63,6 @@ export const UpdateTicketResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateTicketResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateTicketResponse$outboundSchema: z.ZodType< - UpdateTicketResponse$Outbound, - z.ZodTypeDef, - UpdateTicketResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTicketResponse$ { - /** @deprecated use `UpdateTicketResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTicketResponse$inboundSchema; - /** @deprecated use `UpdateTicketResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTicketResponse$outboundSchema; - /** @deprecated use `UpdateTicketResponse$Outbound` instead. */ - export type Outbound = UpdateTicketResponse$Outbound; -} - -export function updateTicketResponseToJSON( - updateTicketResponse: UpdateTicketResponse, -): string { - return JSON.stringify( - UpdateTicketResponse$outboundSchema.parse(updateTicketResponse), - ); -} - export function updateTicketResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatetimeoffrequestresponse.ts b/src/models/components/updatetimeoffrequestresponse.ts index d1829895b..821148fde 100644 --- a/src/models/components/updatetimeoffrequestresponse.ts +++ b/src/models/components/updatetimeoffrequestresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * TimeOffRequests @@ -68,60 +63,6 @@ export const UpdateTimeOffRequestResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateTimeOffRequestResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateTimeOffRequestResponse$outboundSchema: z.ZodType< - UpdateTimeOffRequestResponse$Outbound, - z.ZodTypeDef, - UpdateTimeOffRequestResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTimeOffRequestResponse$ { - /** @deprecated use `UpdateTimeOffRequestResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTimeOffRequestResponse$inboundSchema; - /** @deprecated use `UpdateTimeOffRequestResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTimeOffRequestResponse$outboundSchema; - /** @deprecated use `UpdateTimeOffRequestResponse$Outbound` instead. */ - export type Outbound = UpdateTimeOffRequestResponse$Outbound; -} - -export function updateTimeOffRequestResponseToJSON( - updateTimeOffRequestResponse: UpdateTimeOffRequestResponse, -): string { - return JSON.stringify( - UpdateTimeOffRequestResponse$outboundSchema.parse( - updateTimeOffRequestResponse, - ), - ); -} - export function updateTimeOffRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatetrackingcategoryresponse.ts b/src/models/components/updatetrackingcategoryresponse.ts index 1454a4c36..490a30bf3 100644 --- a/src/models/components/updatetrackingcategoryresponse.ts +++ b/src/models/components/updatetrackingcategoryresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Tracking category updated @@ -68,60 +63,6 @@ export const UpdateTrackingCategoryResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateTrackingCategoryResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateTrackingCategoryResponse$outboundSchema: z.ZodType< - UpdateTrackingCategoryResponse$Outbound, - z.ZodTypeDef, - UpdateTrackingCategoryResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateTrackingCategoryResponse$ { - /** @deprecated use `UpdateTrackingCategoryResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateTrackingCategoryResponse$inboundSchema; - /** @deprecated use `UpdateTrackingCategoryResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateTrackingCategoryResponse$outboundSchema; - /** @deprecated use `UpdateTrackingCategoryResponse$Outbound` instead. */ - export type Outbound = UpdateTrackingCategoryResponse$Outbound; -} - -export function updateTrackingCategoryResponseToJSON( - updateTrackingCategoryResponse: UpdateTrackingCategoryResponse, -): string { - return JSON.stringify( - UpdateTrackingCategoryResponse$outboundSchema.parse( - updateTrackingCategoryResponse, - ), - ); -} - export function updateTrackingCategoryResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateuploadsessionresponse.ts b/src/models/components/updateuploadsessionresponse.ts index 40986dfdf..3120a3fe9 100644 --- a/src/models/components/updateuploadsessionresponse.ts +++ b/src/models/components/updateuploadsessionresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * UploadSessions @@ -68,60 +63,6 @@ export const UpdateUploadSessionResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateUploadSessionResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateUploadSessionResponse$outboundSchema: z.ZodType< - UpdateUploadSessionResponse$Outbound, - z.ZodTypeDef, - UpdateUploadSessionResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateUploadSessionResponse$ { - /** @deprecated use `UpdateUploadSessionResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateUploadSessionResponse$inboundSchema; - /** @deprecated use `UpdateUploadSessionResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateUploadSessionResponse$outboundSchema; - /** @deprecated use `UpdateUploadSessionResponse$Outbound` instead. */ - export type Outbound = UpdateUploadSessionResponse$Outbound; -} - -export function updateUploadSessionResponseToJSON( - updateUploadSessionResponse: UpdateUploadSessionResponse, -): string { - return JSON.stringify( - UpdateUploadSessionResponse$outboundSchema.parse( - updateUploadSessionResponse, - ), - ); -} - export function updateUploadSessionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateuserresponse.ts b/src/models/components/updateuserresponse.ts index 4ef8311b0..9d6d4368b 100644 --- a/src/models/components/updateuserresponse.ts +++ b/src/models/components/updateuserresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedId, - UnifiedId$inboundSchema, - UnifiedId$Outbound, - UnifiedId$outboundSchema, -} from "./unifiedid.js"; +import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * User updated @@ -68,58 +63,6 @@ export const UpdateUserResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateUserResponse$Outbound = { - status_code: number; - status: string; - service: string; - resource: string; - operation: string; - data: UnifiedId$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateUserResponse$outboundSchema: z.ZodType< - UpdateUserResponse$Outbound, - z.ZodTypeDef, - UpdateUserResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - service: z.string(), - resource: z.string(), - operation: z.string(), - data: UnifiedId$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateUserResponse$ { - /** @deprecated use `UpdateUserResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateUserResponse$inboundSchema; - /** @deprecated use `UpdateUserResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateUserResponse$outboundSchema; - /** @deprecated use `UpdateUserResponse$Outbound` instead. */ - export type Outbound = UpdateUserResponse$Outbound; -} - -export function updateUserResponseToJSON( - updateUserResponse: UpdateUserResponse, -): string { - return JSON.stringify( - UpdateUserResponse$outboundSchema.parse(updateUserResponse), - ); -} - export function updateUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updatewebhookrequest.ts b/src/models/components/updatewebhookrequest.ts index 35a249fd0..fa4132da1 100644 --- a/src/models/components/updatewebhookrequest.ts +++ b/src/models/components/updatewebhookrequest.ts @@ -4,17 +4,9 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Status, - Status$inboundSchema, - Status$outboundSchema, -} from "./status.js"; +import { Status, Status$outboundSchema } from "./status.js"; import { WebhookEventType, - WebhookEventType$inboundSchema, WebhookEventType$outboundSchema, } from "./webhookeventtype.js"; @@ -37,22 +29,6 @@ export type UpdateWebhookRequest = { events?: Array | undefined; }; -/** @internal */ -export const UpdateWebhookRequest$inboundSchema: z.ZodType< - UpdateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - description: z.nullable(z.string()).optional(), - status: Status$inboundSchema.optional(), - delivery_url: z.string().optional(), - events: z.array(WebhookEventType$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "delivery_url": "deliveryUrl", - }); -}); - /** @internal */ export type UpdateWebhookRequest$Outbound = { description?: string | null | undefined; @@ -77,19 +53,6 @@ export const UpdateWebhookRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWebhookRequest$ { - /** @deprecated use `UpdateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateWebhookRequest$inboundSchema; - /** @deprecated use `UpdateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateWebhookRequest$outboundSchema; - /** @deprecated use `UpdateWebhookRequest$Outbound` instead. */ - export type Outbound = UpdateWebhookRequest$Outbound; -} - export function updateWebhookRequestToJSON( updateWebhookRequest: UpdateWebhookRequest, ): string { @@ -97,13 +60,3 @@ export function updateWebhookRequestToJSON( UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), ); } - -export function updateWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateWebhookRequest' from JSON`, - ); -} diff --git a/src/models/components/updatewebhookresponse.ts b/src/models/components/updatewebhookresponse.ts index 1f9686c0b..55d9cb482 100644 --- a/src/models/components/updatewebhookresponse.ts +++ b/src/models/components/updatewebhookresponse.ts @@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Webhook, - Webhook$inboundSchema, - Webhook$Outbound, - Webhook$outboundSchema, -} from "./webhook.js"; +import { Webhook, Webhook$inboundSchema } from "./webhook.js"; /** * Webhooks @@ -50,52 +45,6 @@ export const UpdateWebhookResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UpdateWebhookResponse$Outbound = { - status_code: number; - status: string; - data: Webhook$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const UpdateWebhookResponse$outboundSchema: z.ZodType< - UpdateWebhookResponse$Outbound, - z.ZodTypeDef, - UpdateWebhookResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: Webhook$outboundSchema, - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWebhookResponse$ { - /** @deprecated use `UpdateWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateWebhookResponse$inboundSchema; - /** @deprecated use `UpdateWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateWebhookResponse$outboundSchema; - /** @deprecated use `UpdateWebhookResponse$Outbound` instead. */ - export type Outbound = UpdateWebhookResponse$Outbound; -} - -export function updateWebhookResponseToJSON( - updateWebhookResponse: UpdateWebhookResponse, -): string { - return JSON.stringify( - UpdateWebhookResponse$outboundSchema.parse(updateWebhookResponse), - ); -} - export function updateWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/uploadsession.ts b/src/models/components/uploadsession.ts index c2d3cddae..8fdaac30d 100644 --- a/src/models/components/uploadsession.ts +++ b/src/models/components/uploadsession.ts @@ -55,54 +55,6 @@ export const UploadSession$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type UploadSession$Outbound = { - id?: string | undefined; - success?: boolean | undefined; - part_size?: number | undefined; - parallel_upload_supported?: boolean | undefined; - uploaded_byte_range?: string | undefined; - expires_at?: string | null | undefined; -}; - -/** @internal */ -export const UploadSession$outboundSchema: z.ZodType< - UploadSession$Outbound, - z.ZodTypeDef, - UploadSession -> = z.object({ - id: z.string().optional(), - success: z.boolean().optional(), - partSize: z.number().optional(), - parallelUploadSupported: z.boolean().optional(), - uploadedByteRange: z.string().optional(), - expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - partSize: "part_size", - parallelUploadSupported: "parallel_upload_supported", - uploadedByteRange: "uploaded_byte_range", - expiresAt: "expires_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UploadSession$ { - /** @deprecated use `UploadSession$inboundSchema` instead. */ - export const inboundSchema = UploadSession$inboundSchema; - /** @deprecated use `UploadSession$outboundSchema` instead. */ - export const outboundSchema = UploadSession$outboundSchema; - /** @deprecated use `UploadSession$Outbound` instead. */ - export type Outbound = UploadSession$Outbound; -} - -export function uploadSessionToJSON(uploadSession: UploadSession): string { - return JSON.stringify(UploadSession$outboundSchema.parse(uploadSession)); -} - export function uploadSessionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/user.ts b/src/models/components/user.ts index c5c246b13..be2cbb7ea 100644 --- a/src/models/components/user.ts +++ b/src/models/components/user.ts @@ -7,30 +7,13 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Address, - Address$inboundSchema, - Address$Outbound, - Address$outboundSchema, -} from "./address.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; +import { Address, Address$inboundSchema } from "./address.js"; +import { Email, Email$inboundSchema } from "./email.js"; import { PassThroughBody, PassThroughBody$inboundSchema, - PassThroughBody$Outbound, - PassThroughBody$outboundSchema, } from "./passthroughbody.js"; -import { - PhoneNumber, - PhoneNumber$inboundSchema, - PhoneNumber$Outbound, - PhoneNumber$outboundSchema, -} from "./phonenumber.js"; +import { PhoneNumber, PhoneNumber$inboundSchema } from "./phonenumber.js"; export type User = { /** @@ -151,87 +134,6 @@ export const User$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type User$Outbound = { - id?: string | undefined; - parent_id?: string | null | undefined; - username?: string | null | undefined; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - title?: string | null | undefined; - division?: string | null | undefined; - department?: string | null | undefined; - company_name?: string | null | undefined; - employee_number?: string | null | undefined; - description?: string | null | undefined; - image?: string | null | undefined; - language?: string | null | undefined; - status?: string | null | undefined; - addresses?: Array | undefined; - phone_numbers?: Array | undefined; - emails: Array; - custom_mappings?: { [k: string]: any } | null | undefined; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; - pass_through?: Array | undefined; -}; - -/** @internal */ -export const User$outboundSchema: z.ZodType = - z.object({ - id: z.string().optional(), - parentId: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - firstName: z.nullable(z.string()).optional(), - lastName: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - division: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - companyName: z.nullable(z.string()).optional(), - employeeNumber: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - addresses: z.array(Address$outboundSchema).optional(), - phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(), - emails: z.array(Email$outboundSchema), - customMappings: z.nullable(z.record(z.any())).optional(), - updatedAt: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.string()).optional(), - passThrough: z.array(PassThroughBody$outboundSchema).optional(), - }).transform((v) => { - return remap$(v, { - parentId: "parent_id", - firstName: "first_name", - lastName: "last_name", - companyName: "company_name", - employeeNumber: "employee_number", - phoneNumbers: "phone_numbers", - customMappings: "custom_mappings", - updatedAt: "updated_at", - createdAt: "created_at", - passThrough: "pass_through", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - -export function userToJSON(user: User): string { - return JSON.stringify(User$outboundSchema.parse(user)); -} - export function userFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/userinput.ts b/src/models/components/userinput.ts index 363f95746..2c0d2a667 100644 --- a/src/models/components/userinput.ts +++ b/src/models/components/userinput.ts @@ -4,30 +4,19 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, - Address$inboundSchema, Address$Outbound, Address$outboundSchema, } from "./address.js"; -import { - Email, - Email$inboundSchema, - Email$Outbound, - Email$outboundSchema, -} from "./email.js"; +import { Email, Email$Outbound, Email$outboundSchema } from "./email.js"; import { PassThroughBody, - PassThroughBody$inboundSchema, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; import { PhoneNumber, - PhoneNumber$inboundSchema, PhoneNumber$Outbound, PhoneNumber$outboundSchema, } from "./phonenumber.js"; @@ -100,42 +89,6 @@ export type UserInput = { passThrough?: Array | undefined; }; -/** @internal */ -export const UserInput$inboundSchema: z.ZodType< - UserInput, - z.ZodTypeDef, - unknown -> = z.object({ - parent_id: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - title: z.nullable(z.string()).optional(), - division: z.nullable(z.string()).optional(), - department: z.nullable(z.string()).optional(), - company_name: z.nullable(z.string()).optional(), - employee_number: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - image: z.nullable(z.string()).optional(), - language: z.nullable(z.string()).optional(), - status: z.nullable(z.string()).optional(), - password: z.nullable(z.string()).optional(), - addresses: z.array(Address$inboundSchema).optional(), - phone_numbers: z.array(PhoneNumber$inboundSchema).optional(), - emails: z.array(Email$inboundSchema), - pass_through: z.array(PassThroughBody$inboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - "parent_id": "parentId", - "first_name": "firstName", - "last_name": "lastName", - "company_name": "companyName", - "employee_number": "employeeNumber", - "phone_numbers": "phoneNumbers", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type UserInput$Outbound = { parent_id?: string | null | undefined; @@ -194,29 +147,6 @@ export const UserInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserInput$ { - /** @deprecated use `UserInput$inboundSchema` instead. */ - export const inboundSchema = UserInput$inboundSchema; - /** @deprecated use `UserInput$outboundSchema` instead. */ - export const outboundSchema = UserInput$outboundSchema; - /** @deprecated use `UserInput$Outbound` instead. */ - export type Outbound = UserInput$Outbound; -} - export function userInputToJSON(userInput: UserInput): string { return JSON.stringify(UserInput$outboundSchema.parse(userInput)); } - -export function userInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UserInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserInput' from JSON`, - ); -} diff --git a/src/models/components/validateconnectionstateresponse.ts b/src/models/components/validateconnectionstateresponse.ts index 486d1b6ba..df646e88f 100644 --- a/src/models/components/validateconnectionstateresponse.ts +++ b/src/models/components/validateconnectionstateresponse.ts @@ -10,7 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConnectionState, ConnectionState$inboundSchema, - ConnectionState$outboundSchema, } from "./connectionstate.js"; export type ValidateConnectionStateResponseData = { @@ -53,47 +52,6 @@ export const ValidateConnectionStateResponseData$inboundSchema: z.ZodType< state: ConnectionState$inboundSchema.optional(), }); -/** @internal */ -export type ValidateConnectionStateResponseData$Outbound = { - id?: string | undefined; - state?: string | undefined; -}; - -/** @internal */ -export const ValidateConnectionStateResponseData$outboundSchema: z.ZodType< - ValidateConnectionStateResponseData$Outbound, - z.ZodTypeDef, - ValidateConnectionStateResponseData -> = z.object({ - id: z.string().optional(), - state: ConnectionState$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidateConnectionStateResponseData$ { - /** @deprecated use `ValidateConnectionStateResponseData$inboundSchema` instead. */ - export const inboundSchema = - ValidateConnectionStateResponseData$inboundSchema; - /** @deprecated use `ValidateConnectionStateResponseData$outboundSchema` instead. */ - export const outboundSchema = - ValidateConnectionStateResponseData$outboundSchema; - /** @deprecated use `ValidateConnectionStateResponseData$Outbound` instead. */ - export type Outbound = ValidateConnectionStateResponseData$Outbound; -} - -export function validateConnectionStateResponseDataToJSON( - validateConnectionStateResponseData: ValidateConnectionStateResponseData, -): string { - return JSON.stringify( - ValidateConnectionStateResponseData$outboundSchema.parse( - validateConnectionStateResponseData, - ), - ); -} - export function validateConnectionStateResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -122,54 +80,6 @@ export const ValidateConnectionStateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ValidateConnectionStateResponse$Outbound = { - status_code: number; - status: string; - data: ValidateConnectionStateResponseData$Outbound; - _raw?: { [k: string]: any } | null | undefined; -}; - -/** @internal */ -export const ValidateConnectionStateResponse$outboundSchema: z.ZodType< - ValidateConnectionStateResponse$Outbound, - z.ZodTypeDef, - ValidateConnectionStateResponse -> = z.object({ - statusCode: z.number().int(), - status: z.string(), - data: z.lazy(() => ValidateConnectionStateResponseData$outboundSchema), - raw: z.nullable(z.record(z.any())).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - raw: "_raw", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidateConnectionStateResponse$ { - /** @deprecated use `ValidateConnectionStateResponse$inboundSchema` instead. */ - export const inboundSchema = ValidateConnectionStateResponse$inboundSchema; - /** @deprecated use `ValidateConnectionStateResponse$outboundSchema` instead. */ - export const outboundSchema = ValidateConnectionStateResponse$outboundSchema; - /** @deprecated use `ValidateConnectionStateResponse$Outbound` instead. */ - export type Outbound = ValidateConnectionStateResponse$Outbound; -} - -export function validateConnectionStateResponseToJSON( - validateConnectionStateResponse: ValidateConnectionStateResponse, -): string { - return JSON.stringify( - ValidateConnectionStateResponse$outboundSchema.parse( - validateConnectionStateResponse, - ), - ); -} - export function validateConnectionStateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/webhook.ts b/src/models/components/webhook.ts index c1ac2a5e7..67ebe919a 100644 --- a/src/models/components/webhook.ts +++ b/src/models/components/webhook.ts @@ -8,20 +8,11 @@ import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Status, - Status$inboundSchema, - Status$outboundSchema, -} from "./status.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { Status, Status$inboundSchema } from "./status.js"; +import { UnifiedApiId, UnifiedApiId$inboundSchema } from "./unifiedapiid.js"; import { WebhookEventType, WebhookEventType$inboundSchema, - WebhookEventType$outboundSchema, } from "./webhookeventtype.js"; /** @@ -83,22 +74,6 @@ export const DisabledReason$inboundSchema: z.ZodNativeEnum< typeof DisabledReason > = z.nativeEnum(DisabledReason); -/** @internal */ -export const DisabledReason$outboundSchema: z.ZodNativeEnum< - typeof DisabledReason -> = DisabledReason$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DisabledReason$ { - /** @deprecated use `DisabledReason$inboundSchema` instead. */ - export const inboundSchema = DisabledReason$inboundSchema; - /** @deprecated use `DisabledReason$outboundSchema` instead. */ - export const outboundSchema = DisabledReason$outboundSchema; -} - /** @internal */ export const Webhook$inboundSchema: z.ZodType = z.object({ @@ -127,64 +102,6 @@ export const Webhook$inboundSchema: z.ZodType = }); }); -/** @internal */ -export type Webhook$Outbound = { - id?: string | undefined; - description?: string | null | undefined; - unified_api: string; - status: string; - disabled_reason?: string | undefined; - delivery_url: string; - execute_base_url: string; - events: Array; - updated_at?: string | null | undefined; - created_at?: string | null | undefined; -}; - -/** @internal */ -export const Webhook$outboundSchema: z.ZodType< - Webhook$Outbound, - z.ZodTypeDef, - Webhook -> = z.object({ - id: z.string().optional(), - description: z.nullable(z.string()).optional(), - unifiedApi: UnifiedApiId$outboundSchema, - status: Status$outboundSchema, - disabledReason: DisabledReason$outboundSchema.optional(), - deliveryUrl: z.string(), - executeBaseUrl: z.string(), - events: z.array(WebhookEventType$outboundSchema), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - unifiedApi: "unified_api", - disabledReason: "disabled_reason", - deliveryUrl: "delivery_url", - executeBaseUrl: "execute_base_url", - updatedAt: "updated_at", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Webhook$ { - /** @deprecated use `Webhook$inboundSchema` instead. */ - export const inboundSchema = Webhook$inboundSchema; - /** @deprecated use `Webhook$outboundSchema` instead. */ - export const outboundSchema = Webhook$outboundSchema; - /** @deprecated use `Webhook$Outbound` instead. */ - export type Outbound = Webhook$Outbound; -} - -export function webhookToJSON(webhook: Webhook): string { - return JSON.stringify(Webhook$outboundSchema.parse(webhook)); -} - export function webhookFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/webhookeventlog.ts b/src/models/components/webhookeventlog.ts index 7fb3bca02..faf86dfd1 100644 --- a/src/models/components/webhookeventlog.ts +++ b/src/models/components/webhookeventlog.ts @@ -7,11 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UnifiedApiId, - UnifiedApiId$inboundSchema, - UnifiedApiId$outboundSchema, -} from "./unifiedapiid.js"; +import { UnifiedApiId, UnifiedApiId$inboundSchema } from "./unifiedapiid.js"; /** * Apideck service provider associated with event. @@ -124,43 +120,6 @@ export const WebhookEventLogService$inboundSchema: z.ZodType< name: z.string(), }); -/** @internal */ -export type WebhookEventLogService$Outbound = { - id: string; - name: string; -}; - -/** @internal */ -export const WebhookEventLogService$outboundSchema: z.ZodType< - WebhookEventLogService$Outbound, - z.ZodTypeDef, - WebhookEventLogService -> = z.object({ - id: z.string(), - name: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogService$ { - /** @deprecated use `WebhookEventLogService$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogService$inboundSchema; - /** @deprecated use `WebhookEventLogService$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogService$outboundSchema; - /** @deprecated use `WebhookEventLogService$Outbound` instead. */ - export type Outbound = WebhookEventLogService$Outbound; -} - -export function webhookEventLogServiceToJSON( - webhookEventLogService: WebhookEventLogService, -): string { - return JSON.stringify( - WebhookEventLogService$outboundSchema.parse(webhookEventLogService), - ); -} - export function webhookEventLogServiceFromJSON( jsonString: string, ): SafeParseResult { @@ -188,48 +147,6 @@ export const Attempts$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type Attempts$Outbound = { - timestamp?: string | undefined; - execution_attempt?: number | undefined; - status_code?: number | undefined; - success?: boolean | undefined; -}; - -/** @internal */ -export const Attempts$outboundSchema: z.ZodType< - Attempts$Outbound, - z.ZodTypeDef, - Attempts -> = z.object({ - timestamp: z.string().optional(), - executionAttempt: z.number().optional(), - statusCode: z.number().int().optional(), - success: z.boolean().optional(), -}).transform((v) => { - return remap$(v, { - executionAttempt: "execution_attempt", - statusCode: "status_code", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Attempts$ { - /** @deprecated use `Attempts$inboundSchema` instead. */ - export const inboundSchema = Attempts$inboundSchema; - /** @deprecated use `Attempts$outboundSchema` instead. */ - export const outboundSchema = Attempts$outboundSchema; - /** @deprecated use `Attempts$Outbound` instead. */ - export type Outbound = Attempts$Outbound; -} - -export function attemptsToJSON(attempts: Attempts): string { - return JSON.stringify(Attempts$outboundSchema.parse(attempts)); -} - export function attemptsFromJSON( jsonString: string, ): SafeParseResult { @@ -279,85 +196,6 @@ export const WebhookEventLog$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookEventLog$Outbound = { - id?: string | undefined; - status_code?: number | undefined; - success?: boolean | undefined; - application_id?: string | undefined; - consumer_id?: string | undefined; - unified_api?: string | undefined; - service?: WebhookEventLogService$Outbound | undefined; - endpoint?: string | undefined; - event_type?: string | undefined; - execution_attempt?: number | undefined; - http_method?: string | undefined; - timestamp?: string | undefined; - entity_type?: string | undefined; - request_body?: string | undefined; - response_body?: string | undefined; - retry_scheduled?: boolean | undefined; - attempts?: Array | undefined; -}; - -/** @internal */ -export const WebhookEventLog$outboundSchema: z.ZodType< - WebhookEventLog$Outbound, - z.ZodTypeDef, - WebhookEventLog -> = z.object({ - id: z.string().optional(), - statusCode: z.number().int().optional(), - success: z.boolean().optional(), - applicationId: z.string().optional(), - consumerId: z.string().optional(), - unifiedApi: UnifiedApiId$outboundSchema.optional(), - service: z.lazy(() => WebhookEventLogService$outboundSchema).optional(), - endpoint: z.string().optional(), - eventType: z.string().optional(), - executionAttempt: z.number().optional(), - httpMethod: z.string().optional(), - timestamp: z.string().optional(), - entityType: z.string().optional(), - requestBody: z.string().optional(), - responseBody: z.string().optional(), - retryScheduled: z.boolean().optional(), - attempts: z.array(z.lazy(() => Attempts$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - statusCode: "status_code", - applicationId: "application_id", - consumerId: "consumer_id", - unifiedApi: "unified_api", - eventType: "event_type", - executionAttempt: "execution_attempt", - httpMethod: "http_method", - entityType: "entity_type", - requestBody: "request_body", - responseBody: "response_body", - retryScheduled: "retry_scheduled", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLog$ { - /** @deprecated use `WebhookEventLog$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLog$inboundSchema; - /** @deprecated use `WebhookEventLog$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLog$outboundSchema; - /** @deprecated use `WebhookEventLog$Outbound` instead. */ - export type Outbound = WebhookEventLog$Outbound; -} - -export function webhookEventLogToJSON( - webhookEventLog: WebhookEventLog, -): string { - return JSON.stringify(WebhookEventLog$outboundSchema.parse(webhookEventLog)); -} - export function webhookEventLogFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/webhookeventlogsfilter.ts b/src/models/components/webhookeventlogsfilter.ts index 19bd3f450..664036449 100644 --- a/src/models/components/webhookeventlogsfilter.ts +++ b/src/models/components/webhookeventlogsfilter.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type WebhookEventLogsFilterService = { id?: string | undefined; @@ -20,15 +17,6 @@ export type WebhookEventLogsFilter = { eventType?: string | null | undefined; }; -/** @internal */ -export const WebhookEventLogsFilterService$inboundSchema: z.ZodType< - WebhookEventLogsFilterService, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string().optional(), -}); - /** @internal */ export type WebhookEventLogsFilterService$Outbound = { id?: string | undefined; @@ -43,19 +31,6 @@ export const WebhookEventLogsFilterService$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogsFilterService$ { - /** @deprecated use `WebhookEventLogsFilterService$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogsFilterService$inboundSchema; - /** @deprecated use `WebhookEventLogsFilterService$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogsFilterService$outboundSchema; - /** @deprecated use `WebhookEventLogsFilterService$Outbound` instead. */ - export type Outbound = WebhookEventLogsFilterService$Outbound; -} - export function webhookEventLogsFilterServiceToJSON( webhookEventLogsFilterService: WebhookEventLogsFilterService, ): string { @@ -66,37 +41,6 @@ export function webhookEventLogsFilterServiceToJSON( ); } -export function webhookEventLogsFilterServiceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookEventLogsFilterService$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookEventLogsFilterService' from JSON`, - ); -} - -/** @internal */ -export const WebhookEventLogsFilter$inboundSchema: z.ZodType< - WebhookEventLogsFilter, - z.ZodTypeDef, - unknown -> = z.object({ - exclude_apis: z.nullable(z.string()).optional(), - service: z.nullable(z.lazy(() => WebhookEventLogsFilterService$inboundSchema)) - .optional(), - consumer_id: z.nullable(z.string()).optional(), - entity_type: z.nullable(z.string()).optional(), - event_type: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "exclude_apis": "excludeApis", - "consumer_id": "consumerId", - "entity_type": "entityType", - "event_type": "eventType", - }); -}); - /** @internal */ export type WebhookEventLogsFilter$Outbound = { exclude_apis?: string | null | undefined; @@ -128,19 +72,6 @@ export const WebhookEventLogsFilter$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogsFilter$ { - /** @deprecated use `WebhookEventLogsFilter$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogsFilter$inboundSchema; - /** @deprecated use `WebhookEventLogsFilter$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogsFilter$outboundSchema; - /** @deprecated use `WebhookEventLogsFilter$Outbound` instead. */ - export type Outbound = WebhookEventLogsFilter$Outbound; -} - export function webhookEventLogsFilterToJSON( webhookEventLogsFilter: WebhookEventLogsFilter, ): string { @@ -148,13 +79,3 @@ export function webhookEventLogsFilterToJSON( WebhookEventLogsFilter$outboundSchema.parse(webhookEventLogsFilter), ); } - -export function webhookEventLogsFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookEventLogsFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookEventLogsFilter' from JSON`, - ); -} diff --git a/src/models/components/webhookeventtype.ts b/src/models/components/webhookeventtype.ts index 55ee765ce..ad887fa9e 100644 --- a/src/models/components/webhookeventtype.ts +++ b/src/models/components/webhookeventtype.ts @@ -140,19 +140,7 @@ export type WebhookEventType = ClosedEnum; export const WebhookEventType$inboundSchema: z.ZodNativeEnum< typeof WebhookEventType > = z.nativeEnum(WebhookEventType); - /** @internal */ export const WebhookEventType$outboundSchema: z.ZodNativeEnum< typeof WebhookEventType > = WebhookEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventType$ { - /** @deprecated use `WebhookEventType$inboundSchema` instead. */ - export const inboundSchema = WebhookEventType$inboundSchema; - /** @deprecated use `WebhookEventType$outboundSchema` instead. */ - export const outboundSchema = WebhookEventType$outboundSchema; -} diff --git a/src/models/components/webhooksubscription.ts b/src/models/components/webhooksubscription.ts index ff6871277..7e64cd69d 100644 --- a/src/models/components/webhooksubscription.ts +++ b/src/models/components/webhooksubscription.ts @@ -52,57 +52,6 @@ export const WebhookSubscription$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookSubscription$Outbound = { - downstream_id?: string | undefined; - unify_event_types?: Array | undefined; - downstream_event_types?: Array | undefined; - execute_url?: string | undefined; - created_at?: string | undefined; -}; - -/** @internal */ -export const WebhookSubscription$outboundSchema: z.ZodType< - WebhookSubscription$Outbound, - z.ZodTypeDef, - WebhookSubscription -> = z.object({ - downstreamId: z.string().optional(), - unifyEventTypes: z.array(z.string()).optional(), - downstreamEventTypes: z.array(z.string()).optional(), - executeUrl: z.string().optional(), - createdAt: z.string().optional(), -}).transform((v) => { - return remap$(v, { - downstreamId: "downstream_id", - unifyEventTypes: "unify_event_types", - downstreamEventTypes: "downstream_event_types", - executeUrl: "execute_url", - createdAt: "created_at", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookSubscription$ { - /** @deprecated use `WebhookSubscription$inboundSchema` instead. */ - export const inboundSchema = WebhookSubscription$inboundSchema; - /** @deprecated use `WebhookSubscription$outboundSchema` instead. */ - export const outboundSchema = WebhookSubscription$outboundSchema; - /** @deprecated use `WebhookSubscription$Outbound` instead. */ - export type Outbound = WebhookSubscription$Outbound; -} - -export function webhookSubscriptionToJSON( - webhookSubscription: WebhookSubscription, -): string { - return JSON.stringify( - WebhookSubscription$outboundSchema.parse(webhookSubscription), - ); -} - export function webhookSubscriptionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/webhooksupport.ts b/src/models/components/webhooksupport.ts index c6e9da311..d7481de23 100644 --- a/src/models/components/webhooksupport.ts +++ b/src/models/components/webhooksupport.ts @@ -123,81 +123,20 @@ export const Mode$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Mode, ); -/** @internal */ -export const Mode$outboundSchema: z.ZodNativeEnum = - Mode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Mode$ { - /** @deprecated use `Mode$inboundSchema` instead. */ - export const inboundSchema = Mode$inboundSchema; - /** @deprecated use `Mode$outboundSchema` instead. */ - export const outboundSchema = Mode$outboundSchema; -} - /** @internal */ export const SubscriptionLevel$inboundSchema: z.ZodNativeEnum< typeof SubscriptionLevel > = z.nativeEnum(SubscriptionLevel); -/** @internal */ -export const SubscriptionLevel$outboundSchema: z.ZodNativeEnum< - typeof SubscriptionLevel -> = SubscriptionLevel$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubscriptionLevel$ { - /** @deprecated use `SubscriptionLevel$inboundSchema` instead. */ - export const inboundSchema = SubscriptionLevel$inboundSchema; - /** @deprecated use `SubscriptionLevel$outboundSchema` instead. */ - export const outboundSchema = SubscriptionLevel$outboundSchema; -} - /** @internal */ export const ManagedVia$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ManagedVia); -/** @internal */ -export const ManagedVia$outboundSchema: z.ZodNativeEnum = - ManagedVia$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ManagedVia$ { - /** @deprecated use `ManagedVia$inboundSchema` instead. */ - export const inboundSchema = ManagedVia$inboundSchema; - /** @deprecated use `ManagedVia$outboundSchema` instead. */ - export const outboundSchema = ManagedVia$outboundSchema; -} - /** @internal */ export const Unit$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Unit, ); -/** @internal */ -export const Unit$outboundSchema: z.ZodNativeEnum = - Unit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Unit$ { - /** @deprecated use `Unit$inboundSchema` instead. */ - export const inboundSchema = Unit$inboundSchema; - /** @deprecated use `Unit$outboundSchema` instead. */ - export const outboundSchema = Unit$outboundSchema; -} - /** @internal */ export const RequestRate$inboundSchema: z.ZodType< RequestRate, @@ -209,41 +148,6 @@ export const RequestRate$inboundSchema: z.ZodType< unit: Unit$inboundSchema, }); -/** @internal */ -export type RequestRate$Outbound = { - rate: number; - size: number; - unit: string; -}; - -/** @internal */ -export const RequestRate$outboundSchema: z.ZodType< - RequestRate$Outbound, - z.ZodTypeDef, - RequestRate -> = z.object({ - rate: z.number().int(), - size: z.number().int(), - unit: Unit$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestRate$ { - /** @deprecated use `RequestRate$inboundSchema` instead. */ - export const inboundSchema = RequestRate$inboundSchema; - /** @deprecated use `RequestRate$outboundSchema` instead. */ - export const outboundSchema = RequestRate$outboundSchema; - /** @deprecated use `RequestRate$Outbound` instead. */ - export type Outbound = RequestRate$Outbound; -} - -export function requestRateToJSON(requestRate: RequestRate): string { - return JSON.stringify(RequestRate$outboundSchema.parse(requestRate)); -} - export function requestRateFromJSON( jsonString: string, ): SafeParseResult { @@ -263,41 +167,6 @@ export const WebhookSupportResources$inboundSchema: z.ZodType< events: z.array(z.string()).optional(), }); -/** @internal */ -export type WebhookSupportResources$Outbound = { - events?: Array | undefined; -}; - -/** @internal */ -export const WebhookSupportResources$outboundSchema: z.ZodType< - WebhookSupportResources$Outbound, - z.ZodTypeDef, - WebhookSupportResources -> = z.object({ - events: z.array(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookSupportResources$ { - /** @deprecated use `WebhookSupportResources$inboundSchema` instead. */ - export const inboundSchema = WebhookSupportResources$inboundSchema; - /** @deprecated use `WebhookSupportResources$outboundSchema` instead. */ - export const outboundSchema = WebhookSupportResources$outboundSchema; - /** @deprecated use `WebhookSupportResources$Outbound` instead. */ - export type Outbound = WebhookSupportResources$Outbound; -} - -export function webhookSupportResourcesToJSON( - webhookSupportResources: WebhookSupportResources, -): string { - return JSON.stringify( - WebhookSupportResources$outboundSchema.parse(webhookSupportResources), - ); -} - export function webhookSupportResourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -323,46 +192,6 @@ export const VirtualWebhooks$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VirtualWebhooks$Outbound = { - request_rate: RequestRate$Outbound; - resources?: { [k: string]: WebhookSupportResources$Outbound } | undefined; -}; - -/** @internal */ -export const VirtualWebhooks$outboundSchema: z.ZodType< - VirtualWebhooks$Outbound, - z.ZodTypeDef, - VirtualWebhooks -> = z.object({ - requestRate: z.lazy(() => RequestRate$outboundSchema), - resources: z.record(z.lazy(() => WebhookSupportResources$outboundSchema)) - .optional(), -}).transform((v) => { - return remap$(v, { - requestRate: "request_rate", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VirtualWebhooks$ { - /** @deprecated use `VirtualWebhooks$inboundSchema` instead. */ - export const inboundSchema = VirtualWebhooks$inboundSchema; - /** @deprecated use `VirtualWebhooks$outboundSchema` instead. */ - export const outboundSchema = VirtualWebhooks$outboundSchema; - /** @deprecated use `VirtualWebhooks$Outbound` instead. */ - export type Outbound = VirtualWebhooks$Outbound; -} - -export function virtualWebhooksToJSON( - virtualWebhooks: VirtualWebhooks, -): string { - return JSON.stringify(VirtualWebhooks$outboundSchema.parse(virtualWebhooks)); -} - export function virtualWebhooksFromJSON( jsonString: string, ): SafeParseResult { @@ -391,49 +220,6 @@ export const WebhookSupport$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookSupport$Outbound = { - mode?: string | undefined; - subscription_level?: string | undefined; - managed_via?: string | undefined; - virtual_webhooks?: VirtualWebhooks$Outbound | undefined; -}; - -/** @internal */ -export const WebhookSupport$outboundSchema: z.ZodType< - WebhookSupport$Outbound, - z.ZodTypeDef, - WebhookSupport -> = z.object({ - mode: Mode$outboundSchema.optional(), - subscriptionLevel: SubscriptionLevel$outboundSchema.optional(), - managedVia: ManagedVia$outboundSchema.optional(), - virtualWebhooks: z.lazy(() => VirtualWebhooks$outboundSchema).optional(), -}).transform((v) => { - return remap$(v, { - subscriptionLevel: "subscription_level", - managedVia: "managed_via", - virtualWebhooks: "virtual_webhooks", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookSupport$ { - /** @deprecated use `WebhookSupport$inboundSchema` instead. */ - export const inboundSchema = WebhookSupport$inboundSchema; - /** @deprecated use `WebhookSupport$outboundSchema` instead. */ - export const outboundSchema = WebhookSupport$outboundSchema; - /** @deprecated use `WebhookSupport$Outbound` instead. */ - export type Outbound = WebhookSupport$Outbound; -} - -export function webhookSupportToJSON(webhookSupport: WebhookSupport): string { - return JSON.stringify(WebhookSupport$outboundSchema.parse(webhookSupport)); -} - export function webhookSupportFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/website.ts b/src/models/components/website.ts index b4b5e4825..0359279c5 100644 --- a/src/models/components/website.ts +++ b/src/models/components/website.ts @@ -41,22 +41,10 @@ export type Website = { /** @internal */ export const WebsiteType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(WebsiteType); - /** @internal */ export const WebsiteType$outboundSchema: z.ZodNativeEnum = WebsiteType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebsiteType$ { - /** @deprecated use `WebsiteType$inboundSchema` instead. */ - export const inboundSchema = WebsiteType$inboundSchema; - /** @deprecated use `WebsiteType$outboundSchema` instead. */ - export const outboundSchema = WebsiteType$outboundSchema; -} - /** @internal */ export const Website$inboundSchema: z.ZodType = z.object({ @@ -64,7 +52,6 @@ export const Website$inboundSchema: z.ZodType = url: z.string(), type: z.nullable(WebsiteType$inboundSchema).optional(), }); - /** @internal */ export type Website$Outbound = { id?: string | null | undefined; @@ -83,23 +70,9 @@ export const Website$outboundSchema: z.ZodType< type: z.nullable(WebsiteType$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Website$ { - /** @deprecated use `Website$inboundSchema` instead. */ - export const inboundSchema = Website$inboundSchema; - /** @deprecated use `Website$outboundSchema` instead. */ - export const outboundSchema = Website$outboundSchema; - /** @deprecated use `Website$Outbound` instead. */ - export type Outbound = Website$Outbound; -} - export function websiteToJSON(website: Website): string { return JSON.stringify(Website$outboundSchema.parse(website)); } - export function websiteFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/errors/badrequestresponse.ts b/src/models/errors/badrequestresponse.ts index 97c9fcd2d..5a5160ca0 100644 --- a/src/models/errors/badrequestresponse.ts +++ b/src/models/errors/badrequestresponse.ts @@ -93,33 +93,6 @@ export class BadRequestResponse extends ApideckError { export const Detail$inboundSchema: z.ZodType = z .union([z.string(), z.record(z.any())]); -/** @internal */ -export type Detail$Outbound = string | { [k: string]: any }; - -/** @internal */ -export const Detail$outboundSchema: z.ZodType< - Detail$Outbound, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.record(z.any())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Detail$ { - /** @deprecated use `Detail$inboundSchema` instead. */ - export const inboundSchema = Detail$inboundSchema; - /** @deprecated use `Detail$outboundSchema` instead. */ - export const outboundSchema = Detail$outboundSchema; - /** @deprecated use `Detail$Outbound` instead. */ - export type Outbound = Detail$Outbound; -} - -export function detailToJSON(detail: Detail): string { - return JSON.stringify(Detail$outboundSchema.parse(detail)); -} - export function detailFromJSON( jsonString: string, ): SafeParseResult { @@ -158,49 +131,3 @@ export const BadRequestResponse$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type BadRequestResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | { [k: string]: any } | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const BadRequestResponse$outboundSchema: z.ZodType< - BadRequestResponse$Outbound, - z.ZodTypeDef, - BadRequestResponse -> = z.instanceof(BadRequestResponse) - .transform(v => v.data$) - .pipe( - z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.union([z.string(), z.record(z.any())]).optional(), - ref: z.string().optional(), - }).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); - }), - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestResponse$ { - /** @deprecated use `BadRequestResponse$inboundSchema` instead. */ - export const inboundSchema = BadRequestResponse$inboundSchema; - /** @deprecated use `BadRequestResponse$outboundSchema` instead. */ - export const outboundSchema = BadRequestResponse$outboundSchema; - /** @deprecated use `BadRequestResponse$Outbound` instead. */ - export type Outbound = BadRequestResponse$Outbound; -} diff --git a/src/models/errors/notfoundresponse.ts b/src/models/errors/notfoundresponse.ts index ed98f2762..1b7b90e1f 100644 --- a/src/models/errors/notfoundresponse.ts +++ b/src/models/errors/notfoundresponse.ts @@ -96,37 +96,6 @@ export const NotFoundResponseDetail$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.record(z.any())]); -/** @internal */ -export type NotFoundResponseDetail$Outbound = string | { [k: string]: any }; - -/** @internal */ -export const NotFoundResponseDetail$outboundSchema: z.ZodType< - NotFoundResponseDetail$Outbound, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.record(z.any())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundResponseDetail$ { - /** @deprecated use `NotFoundResponseDetail$inboundSchema` instead. */ - export const inboundSchema = NotFoundResponseDetail$inboundSchema; - /** @deprecated use `NotFoundResponseDetail$outboundSchema` instead. */ - export const outboundSchema = NotFoundResponseDetail$outboundSchema; - /** @deprecated use `NotFoundResponseDetail$Outbound` instead. */ - export type Outbound = NotFoundResponseDetail$Outbound; -} - -export function notFoundResponseDetailToJSON( - notFoundResponseDetail: NotFoundResponseDetail, -): string { - return JSON.stringify( - NotFoundResponseDetail$outboundSchema.parse(notFoundResponseDetail), - ); -} - export function notFoundResponseDetailFromJSON( jsonString: string, ): SafeParseResult { @@ -165,49 +134,3 @@ export const NotFoundResponse$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type NotFoundResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | { [k: string]: any } | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const NotFoundResponse$outboundSchema: z.ZodType< - NotFoundResponse$Outbound, - z.ZodTypeDef, - NotFoundResponse -> = z.instanceof(NotFoundResponse) - .transform(v => v.data$) - .pipe( - z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.union([z.string(), z.record(z.any())]).optional(), - ref: z.string().optional(), - }).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); - }), - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundResponse$ { - /** @deprecated use `NotFoundResponse$inboundSchema` instead. */ - export const inboundSchema = NotFoundResponse$inboundSchema; - /** @deprecated use `NotFoundResponse$outboundSchema` instead. */ - export const outboundSchema = NotFoundResponse$outboundSchema; - /** @deprecated use `NotFoundResponse$Outbound` instead. */ - export type Outbound = NotFoundResponse$Outbound; -} diff --git a/src/models/errors/paymentrequiredresponse.ts b/src/models/errors/paymentrequiredresponse.ts index c84cf0590..7a12d3543 100644 --- a/src/models/errors/paymentrequiredresponse.ts +++ b/src/models/errors/paymentrequiredresponse.ts @@ -109,49 +109,3 @@ export const PaymentRequiredResponse$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type PaymentRequiredResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const PaymentRequiredResponse$outboundSchema: z.ZodType< - PaymentRequiredResponse$Outbound, - z.ZodTypeDef, - PaymentRequiredResponse -> = z.instanceof(PaymentRequiredResponse) - .transform(v => v.data$) - .pipe( - z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.string().optional(), - ref: z.string().optional(), - }).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); - }), - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaymentRequiredResponse$ { - /** @deprecated use `PaymentRequiredResponse$inboundSchema` instead. */ - export const inboundSchema = PaymentRequiredResponse$inboundSchema; - /** @deprecated use `PaymentRequiredResponse$outboundSchema` instead. */ - export const outboundSchema = PaymentRequiredResponse$outboundSchema; - /** @deprecated use `PaymentRequiredResponse$Outbound` instead. */ - export type Outbound = PaymentRequiredResponse$Outbound; -} diff --git a/src/models/errors/unauthorizedresponse.ts b/src/models/errors/unauthorizedresponse.ts index 75c71792d..b905ae70a 100644 --- a/src/models/errors/unauthorizedresponse.ts +++ b/src/models/errors/unauthorizedresponse.ts @@ -159,33 +159,6 @@ export const RequestT$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type RequestT$Outbound = {}; - -/** @internal */ -export const RequestT$outboundSchema: z.ZodType< - RequestT$Outbound, - z.ZodTypeDef, - RequestT -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestT$ { - /** @deprecated use `RequestT$inboundSchema` instead. */ - export const inboundSchema = RequestT$inboundSchema; - /** @deprecated use `RequestT$outboundSchema` instead. */ - export const outboundSchema = RequestT$outboundSchema; - /** @deprecated use `RequestT$Outbound` instead. */ - export type Outbound = RequestT$Outbound; -} - -export function requestToJSON(requestT: RequestT): string { - return JSON.stringify(RequestT$outboundSchema.parse(requestT)); -} - export function requestFromJSON( jsonString: string, ): SafeParseResult { @@ -203,33 +176,6 @@ export const ResponseT$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type ResponseT$Outbound = {}; - -/** @internal */ -export const ResponseT$outboundSchema: z.ZodType< - ResponseT$Outbound, - z.ZodTypeDef, - ResponseT -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResponseT$ { - /** @deprecated use `ResponseT$inboundSchema` instead. */ - export const inboundSchema = ResponseT$inboundSchema; - /** @deprecated use `ResponseT$outboundSchema` instead. */ - export const outboundSchema = ResponseT$outboundSchema; - /** @deprecated use `ResponseT$Outbound` instead. */ - export type Outbound = ResponseT$Outbound; -} - -export function responseToJSON(responseT: ResponseT): string { - return JSON.stringify(ResponseT$outboundSchema.parse(responseT)); -} - export function responseFromJSON( jsonString: string, ): SafeParseResult { @@ -258,55 +204,6 @@ export const Debug$inboundSchema: z.ZodType = z }); }); -/** @internal */ -export type Debug$Outbound = { - request?: RequestT$Outbound | undefined; - response?: ResponseT$Outbound | undefined; - message?: string | undefined; - code?: string | undefined; - credentials_expire_at_ms?: number | undefined; - retry_after_ms?: number | undefined; - cooldown_remaining_ms?: number | undefined; -}; - -/** @internal */ -export const Debug$outboundSchema: z.ZodType< - Debug$Outbound, - z.ZodTypeDef, - Debug -> = z.object({ - request: z.lazy(() => RequestT$outboundSchema).optional(), - response: z.lazy(() => ResponseT$outboundSchema).optional(), - message: z.string().optional(), - code: z.string().optional(), - credentialsExpireAtMs: z.number().optional(), - retryAfterMs: z.number().optional(), - cooldownRemainingMs: z.number().optional(), -}).transform((v) => { - return remap$(v, { - credentialsExpireAtMs: "credentials_expire_at_ms", - retryAfterMs: "retry_after_ms", - cooldownRemainingMs: "cooldown_remaining_ms", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Debug$ { - /** @deprecated use `Debug$inboundSchema` instead. */ - export const inboundSchema = Debug$inboundSchema; - /** @deprecated use `Debug$outboundSchema` instead. */ - export const outboundSchema = Debug$outboundSchema; - /** @deprecated use `Debug$Outbound` instead. */ - export type Outbound = Debug$Outbound; -} - -export function debugToJSON(debug: Debug): string { - return JSON.stringify(Debug$outboundSchema.parse(debug)); -} - export function debugFromJSON( jsonString: string, ): SafeParseResult { @@ -329,47 +226,6 @@ export const Two$inboundSchema: z.ZodType = true, ); -/** @internal */ -export type Two$Outbound = { - type?: string | undefined; - message?: string | undefined; - debug?: Debug$Outbound | undefined; - [additionalProperties: string]: unknown; -}; - -/** @internal */ -export const Two$outboundSchema: z.ZodType = z - .object({ - type: z.string().optional(), - message: z.string().optional(), - debug: z.lazy(() => Debug$outboundSchema).optional(), - additionalProperties: z.record(z.any()).optional(), - }).transform((v) => { - return { - ...v.additionalProperties, - ...remap$(v, { - additionalProperties: null, - }), - }; - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Two$ { - /** @deprecated use `Two$inboundSchema` instead. */ - export const inboundSchema = Two$inboundSchema; - /** @deprecated use `Two$outboundSchema` instead. */ - export const outboundSchema = Two$outboundSchema; - /** @deprecated use `Two$Outbound` instead. */ - export type Outbound = Two$Outbound; -} - -export function twoToJSON(two: Two): string { - return JSON.stringify(Two$outboundSchema.parse(two)); -} - export function twoFromJSON( jsonString: string, ): SafeParseResult { @@ -387,37 +243,6 @@ export const UnauthorizedResponseDetail$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.lazy(() => Two$inboundSchema)]); -/** @internal */ -export type UnauthorizedResponseDetail$Outbound = string | Two$Outbound; - -/** @internal */ -export const UnauthorizedResponseDetail$outboundSchema: z.ZodType< - UnauthorizedResponseDetail$Outbound, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.lazy(() => Two$outboundSchema)]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedResponseDetail$ { - /** @deprecated use `UnauthorizedResponseDetail$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedResponseDetail$inboundSchema; - /** @deprecated use `UnauthorizedResponseDetail$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedResponseDetail$outboundSchema; - /** @deprecated use `UnauthorizedResponseDetail$Outbound` instead. */ - export type Outbound = UnauthorizedResponseDetail$Outbound; -} - -export function unauthorizedResponseDetailToJSON( - unauthorizedResponseDetail: UnauthorizedResponseDetail, -): string { - return JSON.stringify( - UnauthorizedResponseDetail$outboundSchema.parse(unauthorizedResponseDetail), - ); -} - export function unauthorizedResponseDetailFromJSON( jsonString: string, ): SafeParseResult { @@ -456,50 +281,3 @@ export const UnauthorizedResponse$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type UnauthorizedResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | Two$Outbound | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const UnauthorizedResponse$outboundSchema: z.ZodType< - UnauthorizedResponse$Outbound, - z.ZodTypeDef, - UnauthorizedResponse -> = z.instanceof(UnauthorizedResponse) - .transform(v => v.data$) - .pipe( - z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.union([z.string(), z.lazy(() => Two$outboundSchema)]) - .optional(), - ref: z.string().optional(), - }).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); - }), - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedResponse$ { - /** @deprecated use `UnauthorizedResponse$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedResponse$inboundSchema; - /** @deprecated use `UnauthorizedResponse$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedResponse$outboundSchema; - /** @deprecated use `UnauthorizedResponse$Outbound` instead. */ - export type Outbound = UnauthorizedResponse$Outbound; -} diff --git a/src/models/errors/unprocessableresponse.ts b/src/models/errors/unprocessableresponse.ts index 3d02d0107..9827fd5b3 100644 --- a/src/models/errors/unprocessableresponse.ts +++ b/src/models/errors/unprocessableresponse.ts @@ -96,41 +96,6 @@ export const UnprocessableResponseDetail$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.record(z.any())]); -/** @internal */ -export type UnprocessableResponseDetail$Outbound = string | { - [k: string]: any; -}; - -/** @internal */ -export const UnprocessableResponseDetail$outboundSchema: z.ZodType< - UnprocessableResponseDetail$Outbound, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.record(z.any())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableResponseDetail$ { - /** @deprecated use `UnprocessableResponseDetail$inboundSchema` instead. */ - export const inboundSchema = UnprocessableResponseDetail$inboundSchema; - /** @deprecated use `UnprocessableResponseDetail$outboundSchema` instead. */ - export const outboundSchema = UnprocessableResponseDetail$outboundSchema; - /** @deprecated use `UnprocessableResponseDetail$Outbound` instead. */ - export type Outbound = UnprocessableResponseDetail$Outbound; -} - -export function unprocessableResponseDetailToJSON( - unprocessableResponseDetail: UnprocessableResponseDetail, -): string { - return JSON.stringify( - UnprocessableResponseDetail$outboundSchema.parse( - unprocessableResponseDetail, - ), - ); -} - export function unprocessableResponseDetailFromJSON( jsonString: string, ): SafeParseResult { @@ -169,49 +134,3 @@ export const UnprocessableResponse$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type UnprocessableResponse$Outbound = { - status_code?: number | undefined; - error?: string | undefined; - type_name?: string | undefined; - message?: string | undefined; - detail?: string | { [k: string]: any } | undefined; - ref?: string | undefined; -}; - -/** @internal */ -export const UnprocessableResponse$outboundSchema: z.ZodType< - UnprocessableResponse$Outbound, - z.ZodTypeDef, - UnprocessableResponse -> = z.instanceof(UnprocessableResponse) - .transform(v => v.data$) - .pipe( - z.object({ - statusCode: z.number().optional(), - error: z.string().optional(), - typeName: z.string().optional(), - message: z.string().optional(), - detail: z.union([z.string(), z.record(z.any())]).optional(), - ref: z.string().optional(), - }).transform((v) => { - return remap$(v, { - statusCode: "status_code", - typeName: "type_name", - }); - }), - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableResponse$ { - /** @deprecated use `UnprocessableResponse$inboundSchema` instead. */ - export const inboundSchema = UnprocessableResponse$inboundSchema; - /** @deprecated use `UnprocessableResponse$outboundSchema` instead. */ - export const outboundSchema = UnprocessableResponse$outboundSchema; - /** @deprecated use `UnprocessableResponse$Outbound` instead. */ - export type Outbound = UnprocessableResponse$Outbound; -} diff --git a/src/models/operations/accountingagedcreditorsone.ts b/src/models/operations/accountingagedcreditorsone.ts index f2b9847c8..caaf781b9 100644 --- a/src/models/operations/accountingagedcreditorsone.ts +++ b/src/models/operations/accountingagedcreditorsone.ts @@ -63,85 +63,6 @@ export type AccountingAgedCreditorsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAgedCreditorsOneGlobals$inboundSchema: z.ZodType< - AccountingAgedCreditorsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAgedCreditorsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAgedCreditorsOneGlobals$outboundSchema: z.ZodType< - AccountingAgedCreditorsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingAgedCreditorsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedCreditorsOneGlobals$ { - /** @deprecated use `AccountingAgedCreditorsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedCreditorsOneGlobals$inboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingAgedCreditorsOneGlobals$outboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingAgedCreditorsOneGlobals$Outbound; -} - -export function accountingAgedCreditorsOneGlobalsToJSON( - accountingAgedCreditorsOneGlobals: AccountingAgedCreditorsOneGlobals, -): string { - return JSON.stringify( - AccountingAgedCreditorsOneGlobals$outboundSchema.parse( - accountingAgedCreditorsOneGlobals, - ), - ); -} - -export function accountingAgedCreditorsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAgedCreditorsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAgedCreditorsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAgedCreditorsOneRequest$inboundSchema: z.ZodType< - AccountingAgedCreditorsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - filter: components.AgedReportFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingAgedCreditorsOneRequest$Outbound = { raw: boolean; @@ -172,20 +93,6 @@ export const AccountingAgedCreditorsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedCreditorsOneRequest$ { - /** @deprecated use `AccountingAgedCreditorsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedCreditorsOneRequest$inboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingAgedCreditorsOneRequest$outboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneRequest$Outbound` instead. */ - export type Outbound = AccountingAgedCreditorsOneRequest$Outbound; -} - export function accountingAgedCreditorsOneRequestToJSON( accountingAgedCreditorsOneRequest: AccountingAgedCreditorsOneRequest, ): string { @@ -196,16 +103,6 @@ export function accountingAgedCreditorsOneRequestToJSON( ); } -export function accountingAgedCreditorsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAgedCreditorsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAgedCreditorsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAgedCreditorsOneResponse$inboundSchema: z.ZodType< AccountingAgedCreditorsOneResponse, @@ -225,60 +122,6 @@ export const AccountingAgedCreditorsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAgedCreditorsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAgedCreditorsResponse?: - | components.GetAgedCreditorsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAgedCreditorsOneResponse$outboundSchema: z.ZodType< - AccountingAgedCreditorsOneResponse$Outbound, - z.ZodTypeDef, - AccountingAgedCreditorsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAgedCreditorsResponse: components.GetAgedCreditorsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAgedCreditorsResponse: "GetAgedCreditorsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedCreditorsOneResponse$ { - /** @deprecated use `AccountingAgedCreditorsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedCreditorsOneResponse$inboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingAgedCreditorsOneResponse$outboundSchema; - /** @deprecated use `AccountingAgedCreditorsOneResponse$Outbound` instead. */ - export type Outbound = AccountingAgedCreditorsOneResponse$Outbound; -} - -export function accountingAgedCreditorsOneResponseToJSON( - accountingAgedCreditorsOneResponse: AccountingAgedCreditorsOneResponse, -): string { - return JSON.stringify( - AccountingAgedCreditorsOneResponse$outboundSchema.parse( - accountingAgedCreditorsOneResponse, - ), - ); -} - export function accountingAgedCreditorsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingageddebtorsone.ts b/src/models/operations/accountingageddebtorsone.ts index b290e6dbf..6dedd710d 100644 --- a/src/models/operations/accountingageddebtorsone.ts +++ b/src/models/operations/accountingageddebtorsone.ts @@ -63,84 +63,6 @@ export type AccountingAgedDebtorsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAgedDebtorsOneGlobals$inboundSchema: z.ZodType< - AccountingAgedDebtorsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAgedDebtorsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAgedDebtorsOneGlobals$outboundSchema: z.ZodType< - AccountingAgedDebtorsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingAgedDebtorsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedDebtorsOneGlobals$ { - /** @deprecated use `AccountingAgedDebtorsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedDebtorsOneGlobals$inboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingAgedDebtorsOneGlobals$outboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingAgedDebtorsOneGlobals$Outbound; -} - -export function accountingAgedDebtorsOneGlobalsToJSON( - accountingAgedDebtorsOneGlobals: AccountingAgedDebtorsOneGlobals, -): string { - return JSON.stringify( - AccountingAgedDebtorsOneGlobals$outboundSchema.parse( - accountingAgedDebtorsOneGlobals, - ), - ); -} - -export function accountingAgedDebtorsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAgedDebtorsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAgedDebtorsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAgedDebtorsOneRequest$inboundSchema: z.ZodType< - AccountingAgedDebtorsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - filter: components.AgedReportFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingAgedDebtorsOneRequest$Outbound = { raw: boolean; @@ -171,19 +93,6 @@ export const AccountingAgedDebtorsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedDebtorsOneRequest$ { - /** @deprecated use `AccountingAgedDebtorsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedDebtorsOneRequest$inboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingAgedDebtorsOneRequest$outboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneRequest$Outbound` instead. */ - export type Outbound = AccountingAgedDebtorsOneRequest$Outbound; -} - export function accountingAgedDebtorsOneRequestToJSON( accountingAgedDebtorsOneRequest: AccountingAgedDebtorsOneRequest, ): string { @@ -194,16 +103,6 @@ export function accountingAgedDebtorsOneRequestToJSON( ); } -export function accountingAgedDebtorsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAgedDebtorsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAgedDebtorsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAgedDebtorsOneResponse$inboundSchema: z.ZodType< AccountingAgedDebtorsOneResponse, @@ -223,59 +122,6 @@ export const AccountingAgedDebtorsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAgedDebtorsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAgedDebtorsResponse?: - | components.GetAgedDebtorsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAgedDebtorsOneResponse$outboundSchema: z.ZodType< - AccountingAgedDebtorsOneResponse$Outbound, - z.ZodTypeDef, - AccountingAgedDebtorsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAgedDebtorsResponse: components.GetAgedDebtorsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAgedDebtorsResponse: "GetAgedDebtorsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAgedDebtorsOneResponse$ { - /** @deprecated use `AccountingAgedDebtorsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingAgedDebtorsOneResponse$inboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingAgedDebtorsOneResponse$outboundSchema; - /** @deprecated use `AccountingAgedDebtorsOneResponse$Outbound` instead. */ - export type Outbound = AccountingAgedDebtorsOneResponse$Outbound; -} - -export function accountingAgedDebtorsOneResponseToJSON( - accountingAgedDebtorsOneResponse: AccountingAgedDebtorsOneResponse, -): string { - return JSON.stringify( - AccountingAgedDebtorsOneResponse$outboundSchema.parse( - accountingAgedDebtorsOneResponse, - ), - ); -} - export function accountingAgedDebtorsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingattachmentsall.ts b/src/models/operations/accountingattachmentsall.ts index caf440146..ba8459174 100644 --- a/src/models/operations/accountingattachmentsall.ts +++ b/src/models/operations/accountingattachmentsall.ts @@ -71,87 +71,6 @@ export type AccountingAttachmentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAttachmentsAllGlobals$inboundSchema: z.ZodType< - AccountingAttachmentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAttachmentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsAllGlobals$outboundSchema: z.ZodType< - AccountingAttachmentsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingAttachmentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsAllGlobals$ { - /** @deprecated use `AccountingAttachmentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsAllGlobals$inboundSchema; - /** @deprecated use `AccountingAttachmentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsAllGlobals$outboundSchema; - /** @deprecated use `AccountingAttachmentsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingAttachmentsAllGlobals$Outbound; -} - -export function accountingAttachmentsAllGlobalsToJSON( - accountingAttachmentsAllGlobals: AccountingAttachmentsAllGlobals, -): string { - return JSON.stringify( - AccountingAttachmentsAllGlobals$outboundSchema.parse( - accountingAttachmentsAllGlobals, - ), - ); -} - -export function accountingAttachmentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAttachmentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAttachmentsAllRequest$inboundSchema: z.ZodType< - AccountingAttachmentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - reference_type: components.AttachmentReferenceType$inboundSchema, - reference_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "reference_type": "referenceType", - "reference_id": "referenceId", - }); -}); - /** @internal */ export type AccountingAttachmentsAllRequest$Outbound = { reference_type: string; @@ -187,19 +106,6 @@ export const AccountingAttachmentsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsAllRequest$ { - /** @deprecated use `AccountingAttachmentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsAllRequest$inboundSchema; - /** @deprecated use `AccountingAttachmentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsAllRequest$outboundSchema; - /** @deprecated use `AccountingAttachmentsAllRequest$Outbound` instead. */ - export type Outbound = AccountingAttachmentsAllRequest$Outbound; -} - export function accountingAttachmentsAllRequestToJSON( accountingAttachmentsAllRequest: AccountingAttachmentsAllRequest, ): string { @@ -210,16 +116,6 @@ export function accountingAttachmentsAllRequestToJSON( ); } -export function accountingAttachmentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAttachmentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAttachmentsAllResponse$inboundSchema: z.ZodType< AccountingAttachmentsAllResponse, @@ -239,59 +135,6 @@ export const AccountingAttachmentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAttachmentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAttachmentsResponse?: - | components.GetAttachmentsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsAllResponse$outboundSchema: z.ZodType< - AccountingAttachmentsAllResponse$Outbound, - z.ZodTypeDef, - AccountingAttachmentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAttachmentsResponse: components.GetAttachmentsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAttachmentsResponse: "GetAttachmentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsAllResponse$ { - /** @deprecated use `AccountingAttachmentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsAllResponse$inboundSchema; - /** @deprecated use `AccountingAttachmentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsAllResponse$outboundSchema; - /** @deprecated use `AccountingAttachmentsAllResponse$Outbound` instead. */ - export type Outbound = AccountingAttachmentsAllResponse$Outbound; -} - -export function accountingAttachmentsAllResponseToJSON( - accountingAttachmentsAllResponse: AccountingAttachmentsAllResponse, -): string { - return JSON.stringify( - AccountingAttachmentsAllResponse$outboundSchema.parse( - accountingAttachmentsAllResponse, - ), - ); -} - export function accountingAttachmentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingattachmentsdelete.ts b/src/models/operations/accountingattachmentsdelete.ts index 784b46de9..3677c73aa 100644 --- a/src/models/operations/accountingattachmentsdelete.ts +++ b/src/models/operations/accountingattachmentsdelete.ts @@ -63,87 +63,6 @@ export type AccountingAttachmentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAttachmentsDeleteGlobals$inboundSchema: z.ZodType< - AccountingAttachmentsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAttachmentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsDeleteGlobals$outboundSchema: z.ZodType< - AccountingAttachmentsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingAttachmentsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDeleteGlobals$ { - /** @deprecated use `AccountingAttachmentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDeleteGlobals$Outbound; -} - -export function accountingAttachmentsDeleteGlobalsToJSON( - accountingAttachmentsDeleteGlobals: AccountingAttachmentsDeleteGlobals, -): string { - return JSON.stringify( - AccountingAttachmentsDeleteGlobals$outboundSchema.parse( - accountingAttachmentsDeleteGlobals, - ), - ); -} - -export function accountingAttachmentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAttachmentsDeleteRequest$inboundSchema: z.ZodType< - AccountingAttachmentsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - reference_type: components.AttachmentReferenceType$inboundSchema, - reference_id: z.string(), - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}).transform((v) => { - return remap$(v, { - "reference_type": "referenceType", - "reference_id": "referenceId", - }); -}); - /** @internal */ export type AccountingAttachmentsDeleteRequest$Outbound = { reference_type: string; @@ -175,20 +94,6 @@ export const AccountingAttachmentsDeleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDeleteRequest$ { - /** @deprecated use `AccountingAttachmentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDeleteRequest$Outbound; -} - export function accountingAttachmentsDeleteRequestToJSON( accountingAttachmentsDeleteRequest: AccountingAttachmentsDeleteRequest, ): string { @@ -199,17 +104,6 @@ export function accountingAttachmentsDeleteRequestToJSON( ); } -export function accountingAttachmentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAttachmentsDeleteResponse$inboundSchema: z.ZodType< AccountingAttachmentsDeleteResponse, @@ -229,61 +123,6 @@ export const AccountingAttachmentsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAttachmentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteAttachmentResponse?: - | components.DeleteAttachmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsDeleteResponse$outboundSchema: z.ZodType< - AccountingAttachmentsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingAttachmentsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteAttachmentResponse: components.DeleteAttachmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteAttachmentResponse: "DeleteAttachmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDeleteResponse$ { - /** @deprecated use `AccountingAttachmentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingAttachmentsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingAttachmentsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDeleteResponse$Outbound; -} - -export function accountingAttachmentsDeleteResponseToJSON( - accountingAttachmentsDeleteResponse: AccountingAttachmentsDeleteResponse, -): string { - return JSON.stringify( - AccountingAttachmentsDeleteResponse$outboundSchema.parse( - accountingAttachmentsDeleteResponse, - ), - ); -} - export function accountingAttachmentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingattachmentsdownload.ts b/src/models/operations/accountingattachmentsdownload.ts index ec674b476..fc33c18c8 100644 --- a/src/models/operations/accountingattachmentsdownload.ts +++ b/src/models/operations/accountingattachmentsdownload.ts @@ -63,88 +63,6 @@ export type AccountingAttachmentsDownloadResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAttachmentsDownloadGlobals$inboundSchema: z.ZodType< - AccountingAttachmentsDownloadGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAttachmentsDownloadGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsDownloadGlobals$outboundSchema: z.ZodType< - AccountingAttachmentsDownloadGlobals$Outbound, - z.ZodTypeDef, - AccountingAttachmentsDownloadGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDownloadGlobals$ { - /** @deprecated use `AccountingAttachmentsDownloadGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingAttachmentsDownloadGlobals$inboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDownloadGlobals$outboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadGlobals$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDownloadGlobals$Outbound; -} - -export function accountingAttachmentsDownloadGlobalsToJSON( - accountingAttachmentsDownloadGlobals: AccountingAttachmentsDownloadGlobals, -): string { - return JSON.stringify( - AccountingAttachmentsDownloadGlobals$outboundSchema.parse( - accountingAttachmentsDownloadGlobals, - ), - ); -} - -export function accountingAttachmentsDownloadGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsDownloadGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsDownloadGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAttachmentsDownloadRequest$inboundSchema: z.ZodType< - AccountingAttachmentsDownloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - reference_type: components.AttachmentReferenceType$inboundSchema, - reference_id: z.string(), - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "reference_type": "referenceType", - "reference_id": "referenceId", - }); -}); - /** @internal */ export type AccountingAttachmentsDownloadRequest$Outbound = { reference_type: string; @@ -176,21 +94,6 @@ export const AccountingAttachmentsDownloadRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDownloadRequest$ { - /** @deprecated use `AccountingAttachmentsDownloadRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingAttachmentsDownloadRequest$inboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDownloadRequest$outboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadRequest$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDownloadRequest$Outbound; -} - export function accountingAttachmentsDownloadRequestToJSON( accountingAttachmentsDownloadRequest: AccountingAttachmentsDownloadRequest, ): string { @@ -201,17 +104,6 @@ export function accountingAttachmentsDownloadRequestToJSON( ); } -export function accountingAttachmentsDownloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsDownloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsDownloadRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAttachmentsDownloadResponse$inboundSchema: z.ZodType< AccountingAttachmentsDownloadResponse, @@ -231,59 +123,6 @@ export const AccountingAttachmentsDownloadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAttachmentsDownloadResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAttachmentDownloadResponse?: ReadableStream | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsDownloadResponse$outboundSchema: z.ZodType< - AccountingAttachmentsDownloadResponse$Outbound, - z.ZodTypeDef, - AccountingAttachmentsDownloadResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAttachmentDownloadResponse: z.instanceof(ReadableStream) - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAttachmentDownloadResponse: "GetAttachmentDownloadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsDownloadResponse$ { - /** @deprecated use `AccountingAttachmentsDownloadResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingAttachmentsDownloadResponse$inboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsDownloadResponse$outboundSchema; - /** @deprecated use `AccountingAttachmentsDownloadResponse$Outbound` instead. */ - export type Outbound = AccountingAttachmentsDownloadResponse$Outbound; -} - -export function accountingAttachmentsDownloadResponseToJSON( - accountingAttachmentsDownloadResponse: AccountingAttachmentsDownloadResponse, -): string { - return JSON.stringify( - AccountingAttachmentsDownloadResponse$outboundSchema.parse( - accountingAttachmentsDownloadResponse, - ), - ); -} - export function accountingAttachmentsDownloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingattachmentsone.ts b/src/models/operations/accountingattachmentsone.ts index 3ecde722d..1849e7852 100644 --- a/src/models/operations/accountingattachmentsone.ts +++ b/src/models/operations/accountingattachmentsone.ts @@ -67,86 +67,6 @@ export type AccountingAttachmentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAttachmentsOneGlobals$inboundSchema: z.ZodType< - AccountingAttachmentsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAttachmentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsOneGlobals$outboundSchema: z.ZodType< - AccountingAttachmentsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingAttachmentsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsOneGlobals$ { - /** @deprecated use `AccountingAttachmentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsOneGlobals$inboundSchema; - /** @deprecated use `AccountingAttachmentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsOneGlobals$outboundSchema; - /** @deprecated use `AccountingAttachmentsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingAttachmentsOneGlobals$Outbound; -} - -export function accountingAttachmentsOneGlobalsToJSON( - accountingAttachmentsOneGlobals: AccountingAttachmentsOneGlobals, -): string { - return JSON.stringify( - AccountingAttachmentsOneGlobals$outboundSchema.parse( - accountingAttachmentsOneGlobals, - ), - ); -} - -export function accountingAttachmentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAttachmentsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAttachmentsOneRequest$inboundSchema: z.ZodType< - AccountingAttachmentsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - reference_type: components.AttachmentReferenceType$inboundSchema, - reference_id: z.string(), - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "reference_type": "referenceType", - "reference_id": "referenceId", - }); -}); - /** @internal */ export type AccountingAttachmentsOneRequest$Outbound = { reference_type: string; @@ -180,19 +100,6 @@ export const AccountingAttachmentsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsOneRequest$ { - /** @deprecated use `AccountingAttachmentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsOneRequest$inboundSchema; - /** @deprecated use `AccountingAttachmentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsOneRequest$outboundSchema; - /** @deprecated use `AccountingAttachmentsOneRequest$Outbound` instead. */ - export type Outbound = AccountingAttachmentsOneRequest$Outbound; -} - export function accountingAttachmentsOneRequestToJSON( accountingAttachmentsOneRequest: AccountingAttachmentsOneRequest, ): string { @@ -203,16 +110,6 @@ export function accountingAttachmentsOneRequestToJSON( ); } -export function accountingAttachmentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingAttachmentsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAttachmentsOneResponse$inboundSchema: z.ZodType< AccountingAttachmentsOneResponse, @@ -232,57 +129,6 @@ export const AccountingAttachmentsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAttachmentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAttachmentResponse?: components.GetAttachmentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsOneResponse$outboundSchema: z.ZodType< - AccountingAttachmentsOneResponse$Outbound, - z.ZodTypeDef, - AccountingAttachmentsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAttachmentResponse: components.GetAttachmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAttachmentResponse: "GetAttachmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsOneResponse$ { - /** @deprecated use `AccountingAttachmentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsOneResponse$inboundSchema; - /** @deprecated use `AccountingAttachmentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingAttachmentsOneResponse$outboundSchema; - /** @deprecated use `AccountingAttachmentsOneResponse$Outbound` instead. */ - export type Outbound = AccountingAttachmentsOneResponse$Outbound; -} - -export function accountingAttachmentsOneResponseToJSON( - accountingAttachmentsOneResponse: AccountingAttachmentsOneResponse, -): string { - return JSON.stringify( - AccountingAttachmentsOneResponse$outboundSchema.parse( - accountingAttachmentsOneResponse, - ), - ); -} - export function accountingAttachmentsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingattachmentsupload.ts b/src/models/operations/accountingattachmentsupload.ts index 919450f7c..1c40f1d09 100644 --- a/src/models/operations/accountingattachmentsupload.ts +++ b/src/models/operations/accountingattachmentsupload.ts @@ -68,95 +68,6 @@ export type AccountingAttachmentsUploadResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingAttachmentsUploadGlobals$inboundSchema: z.ZodType< - AccountingAttachmentsUploadGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingAttachmentsUploadGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsUploadGlobals$outboundSchema: z.ZodType< - AccountingAttachmentsUploadGlobals$Outbound, - z.ZodTypeDef, - AccountingAttachmentsUploadGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsUploadGlobals$ { - /** @deprecated use `AccountingAttachmentsUploadGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsUploadGlobals$inboundSchema; - /** @deprecated use `AccountingAttachmentsUploadGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsUploadGlobals$outboundSchema; - /** @deprecated use `AccountingAttachmentsUploadGlobals$Outbound` instead. */ - export type Outbound = AccountingAttachmentsUploadGlobals$Outbound; -} - -export function accountingAttachmentsUploadGlobalsToJSON( - accountingAttachmentsUploadGlobals: AccountingAttachmentsUploadGlobals, -): string { - return JSON.stringify( - AccountingAttachmentsUploadGlobals$outboundSchema.parse( - accountingAttachmentsUploadGlobals, - ), - ); -} - -export function accountingAttachmentsUploadGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsUploadGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsUploadGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingAttachmentsUploadRequest$inboundSchema: z.ZodType< - AccountingAttachmentsUploadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - reference_type: components.AttachmentReferenceType$inboundSchema, - reference_id: z.string(), - raw: z.boolean().default(false), - "x-apideck-metadata": z.string().optional(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - RequestBody: z.union([ - z.instanceof(ReadableStream), - z.instanceof(Blob), - z.instanceof(ArrayBuffer), - z.instanceof(Uint8Array), - ]), -}).transform((v) => { - return remap$(v, { - "reference_type": "referenceType", - "reference_id": "referenceId", - "x-apideck-metadata": "xApideckMetadata", - "RequestBody": "requestBody", - }); -}); - /** @internal */ export type AccountingAttachmentsUploadRequest$Outbound = { reference_type: string; @@ -197,20 +108,6 @@ export const AccountingAttachmentsUploadRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsUploadRequest$ { - /** @deprecated use `AccountingAttachmentsUploadRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingAttachmentsUploadRequest$inboundSchema; - /** @deprecated use `AccountingAttachmentsUploadRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsUploadRequest$outboundSchema; - /** @deprecated use `AccountingAttachmentsUploadRequest$Outbound` instead. */ - export type Outbound = AccountingAttachmentsUploadRequest$Outbound; -} - export function accountingAttachmentsUploadRequestToJSON( accountingAttachmentsUploadRequest: AccountingAttachmentsUploadRequest, ): string { @@ -221,17 +118,6 @@ export function accountingAttachmentsUploadRequestToJSON( ); } -export function accountingAttachmentsUploadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingAttachmentsUploadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingAttachmentsUploadRequest' from JSON`, - ); -} - /** @internal */ export const AccountingAttachmentsUploadResponse$inboundSchema: z.ZodType< AccountingAttachmentsUploadResponse, @@ -251,61 +137,6 @@ export const AccountingAttachmentsUploadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingAttachmentsUploadResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateAttachmentResponse?: - | components.CreateAttachmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingAttachmentsUploadResponse$outboundSchema: z.ZodType< - AccountingAttachmentsUploadResponse$Outbound, - z.ZodTypeDef, - AccountingAttachmentsUploadResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createAttachmentResponse: components.CreateAttachmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createAttachmentResponse: "CreateAttachmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingAttachmentsUploadResponse$ { - /** @deprecated use `AccountingAttachmentsUploadResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingAttachmentsUploadResponse$inboundSchema; - /** @deprecated use `AccountingAttachmentsUploadResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingAttachmentsUploadResponse$outboundSchema; - /** @deprecated use `AccountingAttachmentsUploadResponse$Outbound` instead. */ - export type Outbound = AccountingAttachmentsUploadResponse$Outbound; -} - -export function accountingAttachmentsUploadResponseToJSON( - accountingAttachmentsUploadResponse: AccountingAttachmentsUploadResponse, -): string { - return JSON.stringify( - AccountingAttachmentsUploadResponse$outboundSchema.parse( - accountingAttachmentsUploadResponse, - ), - ); -} - export function accountingAttachmentsUploadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbalancesheetone.ts b/src/models/operations/accountingbalancesheetone.ts index e4f4989d6..165ac984a 100644 --- a/src/models/operations/accountingbalancesheetone.ts +++ b/src/models/operations/accountingbalancesheetone.ts @@ -59,83 +59,6 @@ export type AccountingBalanceSheetOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBalanceSheetOneGlobals$inboundSchema: z.ZodType< - AccountingBalanceSheetOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBalanceSheetOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBalanceSheetOneGlobals$outboundSchema: z.ZodType< - AccountingBalanceSheetOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBalanceSheetOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBalanceSheetOneGlobals$ { - /** @deprecated use `AccountingBalanceSheetOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBalanceSheetOneGlobals$inboundSchema; - /** @deprecated use `AccountingBalanceSheetOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBalanceSheetOneGlobals$outboundSchema; - /** @deprecated use `AccountingBalanceSheetOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBalanceSheetOneGlobals$Outbound; -} - -export function accountingBalanceSheetOneGlobalsToJSON( - accountingBalanceSheetOneGlobals: AccountingBalanceSheetOneGlobals, -): string { - return JSON.stringify( - AccountingBalanceSheetOneGlobals$outboundSchema.parse( - accountingBalanceSheetOneGlobals, - ), - ); -} - -export function accountingBalanceSheetOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBalanceSheetOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBalanceSheetOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBalanceSheetOneRequest$inboundSchema: z.ZodType< - AccountingBalanceSheetOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - pass_through: z.record(z.any()).optional(), - filter: components.BalanceSheetFilter$inboundSchema.optional(), - raw: z.boolean().default(false), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBalanceSheetOneRequest$Outbound = { consumerId?: string | undefined; @@ -164,19 +87,6 @@ export const AccountingBalanceSheetOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBalanceSheetOneRequest$ { - /** @deprecated use `AccountingBalanceSheetOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBalanceSheetOneRequest$inboundSchema; - /** @deprecated use `AccountingBalanceSheetOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBalanceSheetOneRequest$outboundSchema; - /** @deprecated use `AccountingBalanceSheetOneRequest$Outbound` instead. */ - export type Outbound = AccountingBalanceSheetOneRequest$Outbound; -} - export function accountingBalanceSheetOneRequestToJSON( accountingBalanceSheetOneRequest: AccountingBalanceSheetOneRequest, ): string { @@ -187,16 +97,6 @@ export function accountingBalanceSheetOneRequestToJSON( ); } -export function accountingBalanceSheetOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBalanceSheetOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBalanceSheetOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBalanceSheetOneResponse$inboundSchema: z.ZodType< AccountingBalanceSheetOneResponse, @@ -216,60 +116,6 @@ export const AccountingBalanceSheetOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBalanceSheetOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBalanceSheetResponse?: - | components.GetBalanceSheetResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBalanceSheetOneResponse$outboundSchema: z.ZodType< - AccountingBalanceSheetOneResponse$Outbound, - z.ZodTypeDef, - AccountingBalanceSheetOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBalanceSheetResponse: components.GetBalanceSheetResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBalanceSheetResponse: "GetBalanceSheetResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBalanceSheetOneResponse$ { - /** @deprecated use `AccountingBalanceSheetOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBalanceSheetOneResponse$inboundSchema; - /** @deprecated use `AccountingBalanceSheetOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBalanceSheetOneResponse$outboundSchema; - /** @deprecated use `AccountingBalanceSheetOneResponse$Outbound` instead. */ - export type Outbound = AccountingBalanceSheetOneResponse$Outbound; -} - -export function accountingBalanceSheetOneResponseToJSON( - accountingBalanceSheetOneResponse: AccountingBalanceSheetOneResponse, -): string { - return JSON.stringify( - AccountingBalanceSheetOneResponse$outboundSchema.parse( - accountingBalanceSheetOneResponse, - ), - ); -} - export function accountingBalanceSheetOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankaccountsadd.ts b/src/models/operations/accountingbankaccountsadd.ts index d2e69be73..1576cb112 100644 --- a/src/models/operations/accountingbankaccountsadd.ts +++ b/src/models/operations/accountingbankaccountsadd.ts @@ -52,82 +52,6 @@ export type AccountingBankAccountsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankAccountsAddGlobals$inboundSchema: z.ZodType< - AccountingBankAccountsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankAccountsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsAddGlobals$outboundSchema: z.ZodType< - AccountingBankAccountsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingBankAccountsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAddGlobals$ { - /** @deprecated use `AccountingBankAccountsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAddGlobals$inboundSchema; - /** @deprecated use `AccountingBankAccountsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsAddGlobals$outboundSchema; - /** @deprecated use `AccountingBankAccountsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAddGlobals$Outbound; -} - -export function accountingBankAccountsAddGlobalsToJSON( - accountingBankAccountsAddGlobals: AccountingBankAccountsAddGlobals, -): string { - return JSON.stringify( - AccountingBankAccountsAddGlobals$outboundSchema.parse( - accountingBankAccountsAddGlobals, - ), - ); -} - -export function accountingBankAccountsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankAccountsAddRequest$inboundSchema: z.ZodType< - AccountingBankAccountsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - AccountingBankAccount: components.AccountingBankAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingBankAccount": "accountingBankAccount", - }); -}); - /** @internal */ export type AccountingBankAccountsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingBankAccountsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAddRequest$ { - /** @deprecated use `AccountingBankAccountsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAddRequest$inboundSchema; - /** @deprecated use `AccountingBankAccountsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsAddRequest$outboundSchema; - /** @deprecated use `AccountingBankAccountsAddRequest$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAddRequest$Outbound; -} - export function accountingBankAccountsAddRequestToJSON( accountingBankAccountsAddRequest: AccountingBankAccountsAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingBankAccountsAddRequestToJSON( ); } -export function accountingBankAccountsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankAccountsAddResponse$inboundSchema: z.ZodType< AccountingBankAccountsAddResponse, @@ -206,60 +107,6 @@ export const AccountingBankAccountsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccountsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateBankAccountResponse?: - | components.CreateBankAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsAddResponse$outboundSchema: z.ZodType< - AccountingBankAccountsAddResponse$Outbound, - z.ZodTypeDef, - AccountingBankAccountsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createBankAccountResponse: components.CreateBankAccountResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createBankAccountResponse: "CreateBankAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAddResponse$ { - /** @deprecated use `AccountingBankAccountsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAddResponse$inboundSchema; - /** @deprecated use `AccountingBankAccountsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsAddResponse$outboundSchema; - /** @deprecated use `AccountingBankAccountsAddResponse$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAddResponse$Outbound; -} - -export function accountingBankAccountsAddResponseToJSON( - accountingBankAccountsAddResponse: AccountingBankAccountsAddResponse, -): string { - return JSON.stringify( - AccountingBankAccountsAddResponse$outboundSchema.parse( - accountingBankAccountsAddResponse, - ), - ); -} - export function accountingBankAccountsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankaccountsall.ts b/src/models/operations/accountingbankaccountsall.ts index a6ccaeeeb..fa0a60d14 100644 --- a/src/models/operations/accountingbankaccountsall.ts +++ b/src/models/operations/accountingbankaccountsall.ts @@ -75,87 +75,6 @@ export type AccountingBankAccountsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankAccountsAllGlobals$inboundSchema: z.ZodType< - AccountingBankAccountsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankAccountsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsAllGlobals$outboundSchema: z.ZodType< - AccountingBankAccountsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingBankAccountsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAllGlobals$ { - /** @deprecated use `AccountingBankAccountsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAllGlobals$inboundSchema; - /** @deprecated use `AccountingBankAccountsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsAllGlobals$outboundSchema; - /** @deprecated use `AccountingBankAccountsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAllGlobals$Outbound; -} - -export function accountingBankAccountsAllGlobalsToJSON( - accountingBankAccountsAllGlobals: AccountingBankAccountsAllGlobals, -): string { - return JSON.stringify( - AccountingBankAccountsAllGlobals$outboundSchema.parse( - accountingBankAccountsAllGlobals, - ), - ); -} - -export function accountingBankAccountsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankAccountsAllRequest$inboundSchema: z.ZodType< - AccountingBankAccountsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.BankAccountsFilter$inboundSchema.optional(), - sort: components.BankAccountsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBankAccountsAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingBankAccountsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAllRequest$ { - /** @deprecated use `AccountingBankAccountsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAllRequest$inboundSchema; - /** @deprecated use `AccountingBankAccountsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsAllRequest$outboundSchema; - /** @deprecated use `AccountingBankAccountsAllRequest$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAllRequest$Outbound; -} - export function accountingBankAccountsAllRequestToJSON( accountingBankAccountsAllRequest: AccountingBankAccountsAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingBankAccountsAllRequestToJSON( ); } -export function accountingBankAccountsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankAccountsAllResponse$inboundSchema: z.ZodType< AccountingBankAccountsAllResponse, @@ -244,60 +140,6 @@ export const AccountingBankAccountsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccountsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankAccountsResponse?: - | components.GetBankAccountsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsAllResponse$outboundSchema: z.ZodType< - AccountingBankAccountsAllResponse$Outbound, - z.ZodTypeDef, - AccountingBankAccountsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankAccountsResponse: components.GetBankAccountsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankAccountsResponse: "GetBankAccountsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsAllResponse$ { - /** @deprecated use `AccountingBankAccountsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsAllResponse$inboundSchema; - /** @deprecated use `AccountingBankAccountsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsAllResponse$outboundSchema; - /** @deprecated use `AccountingBankAccountsAllResponse$Outbound` instead. */ - export type Outbound = AccountingBankAccountsAllResponse$Outbound; -} - -export function accountingBankAccountsAllResponseToJSON( - accountingBankAccountsAllResponse: AccountingBankAccountsAllResponse, -): string { - return JSON.stringify( - AccountingBankAccountsAllResponse$outboundSchema.parse( - accountingBankAccountsAllResponse, - ), - ); -} - export function accountingBankAccountsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankaccountsdelete.ts b/src/models/operations/accountingbankaccountsdelete.ts index e7d0263c9..3940d7fad 100644 --- a/src/models/operations/accountingbankaccountsdelete.ts +++ b/src/models/operations/accountingbankaccountsdelete.ts @@ -55,81 +55,6 @@ export type AccountingBankAccountsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankAccountsDeleteGlobals$inboundSchema: z.ZodType< - AccountingBankAccountsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankAccountsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsDeleteGlobals$outboundSchema: z.ZodType< - AccountingBankAccountsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingBankAccountsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsDeleteGlobals$ { - /** @deprecated use `AccountingBankAccountsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingBankAccountsDeleteGlobals$Outbound; -} - -export function accountingBankAccountsDeleteGlobalsToJSON( - accountingBankAccountsDeleteGlobals: AccountingBankAccountsDeleteGlobals, -): string { - return JSON.stringify( - AccountingBankAccountsDeleteGlobals$outboundSchema.parse( - accountingBankAccountsDeleteGlobals, - ), - ); -} - -export function accountingBankAccountsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankAccountsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankAccountsDeleteRequest$inboundSchema: z.ZodType< - AccountingBankAccountsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingBankAccountsDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const AccountingBankAccountsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsDeleteRequest$ { - /** @deprecated use `AccountingBankAccountsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingBankAccountsDeleteRequest$Outbound; -} - export function accountingBankAccountsDeleteRequestToJSON( accountingBankAccountsDeleteRequest: AccountingBankAccountsDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function accountingBankAccountsDeleteRequestToJSON( ); } -export function accountingBankAccountsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankAccountsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankAccountsDeleteResponse$inboundSchema: z.ZodType< AccountingBankAccountsDeleteResponse, @@ -207,61 +106,6 @@ export const AccountingBankAccountsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccountsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteBankAccountResponse?: - | components.DeleteBankAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsDeleteResponse$outboundSchema: z.ZodType< - AccountingBankAccountsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingBankAccountsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteBankAccountResponse: components.DeleteBankAccountResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteBankAccountResponse: "DeleteBankAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsDeleteResponse$ { - /** @deprecated use `AccountingBankAccountsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingBankAccountsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingBankAccountsDeleteResponse$Outbound; -} - -export function accountingBankAccountsDeleteResponseToJSON( - accountingBankAccountsDeleteResponse: AccountingBankAccountsDeleteResponse, -): string { - return JSON.stringify( - AccountingBankAccountsDeleteResponse$outboundSchema.parse( - accountingBankAccountsDeleteResponse, - ), - ); -} - export function accountingBankAccountsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankaccountsone.ts b/src/models/operations/accountingbankaccountsone.ts index 4fac1bf09..a9fd5ec0c 100644 --- a/src/models/operations/accountingbankaccountsone.ts +++ b/src/models/operations/accountingbankaccountsone.ts @@ -59,79 +59,6 @@ export type AccountingBankAccountsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankAccountsOneGlobals$inboundSchema: z.ZodType< - AccountingBankAccountsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankAccountsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsOneGlobals$outboundSchema: z.ZodType< - AccountingBankAccountsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBankAccountsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsOneGlobals$ { - /** @deprecated use `AccountingBankAccountsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsOneGlobals$inboundSchema; - /** @deprecated use `AccountingBankAccountsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsOneGlobals$outboundSchema; - /** @deprecated use `AccountingBankAccountsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBankAccountsOneGlobals$Outbound; -} - -export function accountingBankAccountsOneGlobalsToJSON( - accountingBankAccountsOneGlobals: AccountingBankAccountsOneGlobals, -): string { - return JSON.stringify( - AccountingBankAccountsOneGlobals$outboundSchema.parse( - accountingBankAccountsOneGlobals, - ), - ); -} - -export function accountingBankAccountsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankAccountsOneRequest$inboundSchema: z.ZodType< - AccountingBankAccountsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingBankAccountsOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingBankAccountsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsOneRequest$ { - /** @deprecated use `AccountingBankAccountsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsOneRequest$inboundSchema; - /** @deprecated use `AccountingBankAccountsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBankAccountsOneRequest$outboundSchema; - /** @deprecated use `AccountingBankAccountsOneRequest$Outbound` instead. */ - export type Outbound = AccountingBankAccountsOneRequest$Outbound; -} - export function accountingBankAccountsOneRequestToJSON( accountingBankAccountsOneRequest: AccountingBankAccountsOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingBankAccountsOneRequestToJSON( ); } -export function accountingBankAccountsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBankAccountsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankAccountsOneResponse$inboundSchema: z.ZodType< AccountingBankAccountsOneResponse, @@ -208,60 +112,6 @@ export const AccountingBankAccountsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccountsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankAccountResponse?: - | components.GetBankAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsOneResponse$outboundSchema: z.ZodType< - AccountingBankAccountsOneResponse$Outbound, - z.ZodTypeDef, - AccountingBankAccountsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankAccountResponse: components.GetBankAccountResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankAccountResponse: "GetBankAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsOneResponse$ { - /** @deprecated use `AccountingBankAccountsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBankAccountsOneResponse$inboundSchema; - /** @deprecated use `AccountingBankAccountsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsOneResponse$outboundSchema; - /** @deprecated use `AccountingBankAccountsOneResponse$Outbound` instead. */ - export type Outbound = AccountingBankAccountsOneResponse$Outbound; -} - -export function accountingBankAccountsOneResponseToJSON( - accountingBankAccountsOneResponse: AccountingBankAccountsOneResponse, -): string { - return JSON.stringify( - AccountingBankAccountsOneResponse$outboundSchema.parse( - accountingBankAccountsOneResponse, - ), - ); -} - export function accountingBankAccountsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankaccountsupdate.ts b/src/models/operations/accountingbankaccountsupdate.ts index 841de88d4..ef9da23fc 100644 --- a/src/models/operations/accountingbankaccountsupdate.ts +++ b/src/models/operations/accountingbankaccountsupdate.ts @@ -56,86 +56,6 @@ export type AccountingBankAccountsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankAccountsUpdateGlobals$inboundSchema: z.ZodType< - AccountingBankAccountsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankAccountsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsUpdateGlobals$outboundSchema: z.ZodType< - AccountingBankAccountsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingBankAccountsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsUpdateGlobals$ { - /** @deprecated use `AccountingBankAccountsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingBankAccountsUpdateGlobals$Outbound; -} - -export function accountingBankAccountsUpdateGlobalsToJSON( - accountingBankAccountsUpdateGlobals: AccountingBankAccountsUpdateGlobals, -): string { - return JSON.stringify( - AccountingBankAccountsUpdateGlobals$outboundSchema.parse( - accountingBankAccountsUpdateGlobals, - ), - ); -} - -export function accountingBankAccountsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankAccountsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankAccountsUpdateRequest$inboundSchema: z.ZodType< - AccountingBankAccountsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - AccountingBankAccount: components.AccountingBankAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingBankAccount": "accountingBankAccount", - }); -}); - /** @internal */ export type AccountingBankAccountsUpdateRequest$Outbound = { id: string; @@ -164,21 +84,6 @@ export const AccountingBankAccountsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsUpdateRequest$ { - /** @deprecated use `AccountingBankAccountsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingBankAccountsUpdateRequest$Outbound; -} - export function accountingBankAccountsUpdateRequestToJSON( accountingBankAccountsUpdateRequest: AccountingBankAccountsUpdateRequest, ): string { @@ -189,17 +94,6 @@ export function accountingBankAccountsUpdateRequestToJSON( ); } -export function accountingBankAccountsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankAccountsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankAccountsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankAccountsUpdateResponse$inboundSchema: z.ZodType< AccountingBankAccountsUpdateResponse, @@ -219,61 +113,6 @@ export const AccountingBankAccountsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankAccountsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateBankAccountResponse?: - | components.UpdateBankAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankAccountsUpdateResponse$outboundSchema: z.ZodType< - AccountingBankAccountsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingBankAccountsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateBankAccountResponse: components.UpdateBankAccountResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateBankAccountResponse: "UpdateBankAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankAccountsUpdateResponse$ { - /** @deprecated use `AccountingBankAccountsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankAccountsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankAccountsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingBankAccountsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingBankAccountsUpdateResponse$Outbound; -} - -export function accountingBankAccountsUpdateResponseToJSON( - accountingBankAccountsUpdateResponse: AccountingBankAccountsUpdateResponse, -): string { - return JSON.stringify( - AccountingBankAccountsUpdateResponse$outboundSchema.parse( - accountingBankAccountsUpdateResponse, - ), - ); -} - export function accountingBankAccountsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankfeedaccountsadd.ts b/src/models/operations/accountingbankfeedaccountsadd.ts index afb088bcb..585688c0c 100644 --- a/src/models/operations/accountingbankfeedaccountsadd.ts +++ b/src/models/operations/accountingbankfeedaccountsadd.ts @@ -54,85 +54,6 @@ export type AccountingBankFeedAccountsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedAccountsAddGlobals$inboundSchema: z.ZodType< - AccountingBankFeedAccountsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedAccountsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsAddGlobals$outboundSchema: z.ZodType< - AccountingBankFeedAccountsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAddGlobals$ { - /** @deprecated use `AccountingBankFeedAccountsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAddGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAddGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAddGlobals$Outbound; -} - -export function accountingBankFeedAccountsAddGlobalsToJSON( - accountingBankFeedAccountsAddGlobals: AccountingBankFeedAccountsAddGlobals, -): string { - return JSON.stringify( - AccountingBankFeedAccountsAddGlobals$outboundSchema.parse( - accountingBankFeedAccountsAddGlobals, - ), - ); -} - -export function accountingBankFeedAccountsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedAccountsAddRequest$inboundSchema: z.ZodType< - AccountingBankFeedAccountsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - BankFeedAccount: components.BankFeedAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BankFeedAccount": "bankFeedAccount", - }); -}); - /** @internal */ export type AccountingBankFeedAccountsAddRequest$Outbound = { raw: boolean; @@ -159,21 +80,6 @@ export const AccountingBankFeedAccountsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAddRequest$ { - /** @deprecated use `AccountingBankFeedAccountsAddRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAddRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAddRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAddRequest$Outbound; -} - export function accountingBankFeedAccountsAddRequestToJSON( accountingBankFeedAccountsAddRequest: AccountingBankFeedAccountsAddRequest, ): string { @@ -184,17 +90,6 @@ export function accountingBankFeedAccountsAddRequestToJSON( ); } -export function accountingBankFeedAccountsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedAccountsAddResponse$inboundSchema: z.ZodType< AccountingBankFeedAccountsAddResponse, @@ -214,61 +109,6 @@ export const AccountingBankFeedAccountsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedAccountsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateBankFeedAccountResponse?: - | components.CreateBankFeedAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsAddResponse$outboundSchema: z.ZodType< - AccountingBankFeedAccountsAddResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createBankFeedAccountResponse: components - .CreateBankFeedAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createBankFeedAccountResponse: "CreateBankFeedAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAddResponse$ { - /** @deprecated use `AccountingBankFeedAccountsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAddResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAddResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAddResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAddResponse$Outbound; -} - -export function accountingBankFeedAccountsAddResponseToJSON( - accountingBankFeedAccountsAddResponse: AccountingBankFeedAccountsAddResponse, -): string { - return JSON.stringify( - AccountingBankFeedAccountsAddResponse$outboundSchema.parse( - accountingBankFeedAccountsAddResponse, - ), - ); -} - export function accountingBankFeedAccountsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankfeedaccountsall.ts b/src/models/operations/accountingbankfeedaccountsall.ts index fd17d525f..fc2792fa1 100644 --- a/src/models/operations/accountingbankfeedaccountsall.ts +++ b/src/models/operations/accountingbankfeedaccountsall.ts @@ -69,88 +69,6 @@ export type AccountingBankFeedAccountsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedAccountsAllGlobals$inboundSchema: z.ZodType< - AccountingBankFeedAccountsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedAccountsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsAllGlobals$outboundSchema: z.ZodType< - AccountingBankFeedAccountsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAllGlobals$ { - /** @deprecated use `AccountingBankFeedAccountsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAllGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAllGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAllGlobals$Outbound; -} - -export function accountingBankFeedAccountsAllGlobalsToJSON( - accountingBankFeedAccountsAllGlobals: AccountingBankFeedAccountsAllGlobals, -): string { - return JSON.stringify( - AccountingBankFeedAccountsAllGlobals$outboundSchema.parse( - accountingBankFeedAccountsAllGlobals, - ), - ); -} - -export function accountingBankFeedAccountsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedAccountsAllRequest$inboundSchema: z.ZodType< - AccountingBankFeedAccountsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBankFeedAccountsAllRequest$Outbound = { raw: boolean; @@ -183,21 +101,6 @@ export const AccountingBankFeedAccountsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAllRequest$ { - /** @deprecated use `AccountingBankFeedAccountsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAllRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAllRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAllRequest$Outbound; -} - export function accountingBankFeedAccountsAllRequestToJSON( accountingBankFeedAccountsAllRequest: AccountingBankFeedAccountsAllRequest, ): string { @@ -208,17 +111,6 @@ export function accountingBankFeedAccountsAllRequestToJSON( ); } -export function accountingBankFeedAccountsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedAccountsAllResponse$inboundSchema: z.ZodType< AccountingBankFeedAccountsAllResponse, @@ -238,61 +130,6 @@ export const AccountingBankFeedAccountsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedAccountsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankFeedAccountsResponse?: - | components.GetBankFeedAccountsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsAllResponse$outboundSchema: z.ZodType< - AccountingBankFeedAccountsAllResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankFeedAccountsResponse: components - .GetBankFeedAccountsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankFeedAccountsResponse: "GetBankFeedAccountsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsAllResponse$ { - /** @deprecated use `AccountingBankFeedAccountsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsAllResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsAllResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsAllResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsAllResponse$Outbound; -} - -export function accountingBankFeedAccountsAllResponseToJSON( - accountingBankFeedAccountsAllResponse: AccountingBankFeedAccountsAllResponse, -): string { - return JSON.stringify( - AccountingBankFeedAccountsAllResponse$outboundSchema.parse( - accountingBankFeedAccountsAllResponse, - ), - ); -} - export function accountingBankFeedAccountsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankfeedaccountsdelete.ts b/src/models/operations/accountingbankfeedaccountsdelete.ts index 7223a1eb6..0b524ecd2 100644 --- a/src/models/operations/accountingbankfeedaccountsdelete.ts +++ b/src/models/operations/accountingbankfeedaccountsdelete.ts @@ -57,87 +57,6 @@ export type AccountingBankFeedAccountsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedAccountsDeleteGlobals$inboundSchema: z.ZodType< - AccountingBankFeedAccountsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedAccountsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsDeleteGlobals$outboundSchema: z.ZodType< - AccountingBankFeedAccountsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsDeleteGlobals$ { - /** @deprecated use `AccountingBankFeedAccountsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsDeleteGlobals$Outbound; -} - -export function accountingBankFeedAccountsDeleteGlobalsToJSON( - accountingBankFeedAccountsDeleteGlobals: - AccountingBankFeedAccountsDeleteGlobals, -): string { - return JSON.stringify( - AccountingBankFeedAccountsDeleteGlobals$outboundSchema.parse( - accountingBankFeedAccountsDeleteGlobals, - ), - ); -} - -export function accountingBankFeedAccountsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedAccountsDeleteGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsDeleteGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedAccountsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedAccountsDeleteRequest$inboundSchema: z.ZodType< - AccountingBankFeedAccountsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingBankFeedAccountsDeleteRequest$Outbound = { id: string; @@ -160,21 +79,6 @@ export const AccountingBankFeedAccountsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsDeleteRequest$ { - /** @deprecated use `AccountingBankFeedAccountsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsDeleteRequest$Outbound; -} - export function accountingBankFeedAccountsDeleteRequestToJSON( accountingBankFeedAccountsDeleteRequest: AccountingBankFeedAccountsDeleteRequest, @@ -186,22 +90,6 @@ export function accountingBankFeedAccountsDeleteRequestToJSON( ); } -export function accountingBankFeedAccountsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedAccountsDeleteRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsDeleteRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedAccountsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedAccountsDeleteResponse$inboundSchema: z.ZodType< AccountingBankFeedAccountsDeleteResponse, @@ -221,62 +109,6 @@ export const AccountingBankFeedAccountsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedAccountsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteBankFeedAccountResponse?: - | components.DeleteBankFeedAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsDeleteResponse$outboundSchema: z.ZodType< - AccountingBankFeedAccountsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteBankFeedAccountResponse: components - .DeleteBankFeedAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteBankFeedAccountResponse: "DeleteBankFeedAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsDeleteResponse$ { - /** @deprecated use `AccountingBankFeedAccountsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsDeleteResponse$Outbound; -} - -export function accountingBankFeedAccountsDeleteResponseToJSON( - accountingBankFeedAccountsDeleteResponse: - AccountingBankFeedAccountsDeleteResponse, -): string { - return JSON.stringify( - AccountingBankFeedAccountsDeleteResponse$outboundSchema.parse( - accountingBankFeedAccountsDeleteResponse, - ), - ); -} - export function accountingBankFeedAccountsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedaccountsone.ts b/src/models/operations/accountingbankfeedaccountsone.ts index 6205c64ea..d8fa11fb8 100644 --- a/src/models/operations/accountingbankfeedaccountsone.ts +++ b/src/models/operations/accountingbankfeedaccountsone.ts @@ -61,82 +61,6 @@ export type AccountingBankFeedAccountsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedAccountsOneGlobals$inboundSchema: z.ZodType< - AccountingBankFeedAccountsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedAccountsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsOneGlobals$outboundSchema: z.ZodType< - AccountingBankFeedAccountsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsOneGlobals$ { - /** @deprecated use `AccountingBankFeedAccountsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsOneGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsOneGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsOneGlobals$Outbound; -} - -export function accountingBankFeedAccountsOneGlobalsToJSON( - accountingBankFeedAccountsOneGlobals: AccountingBankFeedAccountsOneGlobals, -): string { - return JSON.stringify( - AccountingBankFeedAccountsOneGlobals$outboundSchema.parse( - accountingBankFeedAccountsOneGlobals, - ), - ); -} - -export function accountingBankFeedAccountsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedAccountsOneRequest$inboundSchema: z.ZodType< - AccountingBankFeedAccountsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingBankFeedAccountsOneRequest$Outbound = { id: string; @@ -161,21 +85,6 @@ export const AccountingBankFeedAccountsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsOneRequest$ { - /** @deprecated use `AccountingBankFeedAccountsOneRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsOneRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsOneRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsOneRequest$Outbound; -} - export function accountingBankFeedAccountsOneRequestToJSON( accountingBankFeedAccountsOneRequest: AccountingBankFeedAccountsOneRequest, ): string { @@ -186,17 +95,6 @@ export function accountingBankFeedAccountsOneRequestToJSON( ); } -export function accountingBankFeedAccountsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedAccountsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedAccountsOneResponse$inboundSchema: z.ZodType< AccountingBankFeedAccountsOneResponse, @@ -216,61 +114,6 @@ export const AccountingBankFeedAccountsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedAccountsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankFeedAccountResponse?: - | components.GetBankFeedAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsOneResponse$outboundSchema: z.ZodType< - AccountingBankFeedAccountsOneResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankFeedAccountResponse: components - .GetBankFeedAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankFeedAccountResponse: "GetBankFeedAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsOneResponse$ { - /** @deprecated use `AccountingBankFeedAccountsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsOneResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsOneResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsOneResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsOneResponse$Outbound; -} - -export function accountingBankFeedAccountsOneResponseToJSON( - accountingBankFeedAccountsOneResponse: AccountingBankFeedAccountsOneResponse, -): string { - return JSON.stringify( - AccountingBankFeedAccountsOneResponse$outboundSchema.parse( - accountingBankFeedAccountsOneResponse, - ), - ); -} - export function accountingBankFeedAccountsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbankfeedaccountsupdate.ts b/src/models/operations/accountingbankfeedaccountsupdate.ts index 0a7fd2662..a10eae648 100644 --- a/src/models/operations/accountingbankfeedaccountsupdate.ts +++ b/src/models/operations/accountingbankfeedaccountsupdate.ts @@ -58,92 +58,6 @@ export type AccountingBankFeedAccountsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedAccountsUpdateGlobals$inboundSchema: z.ZodType< - AccountingBankFeedAccountsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedAccountsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsUpdateGlobals$outboundSchema: z.ZodType< - AccountingBankFeedAccountsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsUpdateGlobals$ { - /** @deprecated use `AccountingBankFeedAccountsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsUpdateGlobals$Outbound; -} - -export function accountingBankFeedAccountsUpdateGlobalsToJSON( - accountingBankFeedAccountsUpdateGlobals: - AccountingBankFeedAccountsUpdateGlobals, -): string { - return JSON.stringify( - AccountingBankFeedAccountsUpdateGlobals$outboundSchema.parse( - accountingBankFeedAccountsUpdateGlobals, - ), - ); -} - -export function accountingBankFeedAccountsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedAccountsUpdateGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsUpdateGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedAccountsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedAccountsUpdateRequest$inboundSchema: z.ZodType< - AccountingBankFeedAccountsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - BankFeedAccount: components.BankFeedAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BankFeedAccount": "bankFeedAccount", - }); -}); - /** @internal */ export type AccountingBankFeedAccountsUpdateRequest$Outbound = { id: string; @@ -172,21 +86,6 @@ export const AccountingBankFeedAccountsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsUpdateRequest$ { - /** @deprecated use `AccountingBankFeedAccountsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsUpdateRequest$Outbound; -} - export function accountingBankFeedAccountsUpdateRequestToJSON( accountingBankFeedAccountsUpdateRequest: AccountingBankFeedAccountsUpdateRequest, @@ -198,22 +97,6 @@ export function accountingBankFeedAccountsUpdateRequestToJSON( ); } -export function accountingBankFeedAccountsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedAccountsUpdateRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedAccountsUpdateRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedAccountsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedAccountsUpdateResponse$inboundSchema: z.ZodType< AccountingBankFeedAccountsUpdateResponse, @@ -233,62 +116,6 @@ export const AccountingBankFeedAccountsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedAccountsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateBankFeedAccountResponse?: - | components.UpdateBankFeedAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedAccountsUpdateResponse$outboundSchema: z.ZodType< - AccountingBankFeedAccountsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedAccountsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateBankFeedAccountResponse: components - .UpdateBankFeedAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateBankFeedAccountResponse: "UpdateBankFeedAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedAccountsUpdateResponse$ { - /** @deprecated use `AccountingBankFeedAccountsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedAccountsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedAccountsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedAccountsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedAccountsUpdateResponse$Outbound; -} - -export function accountingBankFeedAccountsUpdateResponseToJSON( - accountingBankFeedAccountsUpdateResponse: - AccountingBankFeedAccountsUpdateResponse, -): string { - return JSON.stringify( - AccountingBankFeedAccountsUpdateResponse$outboundSchema.parse( - accountingBankFeedAccountsUpdateResponse, - ), - ); -} - export function accountingBankFeedAccountsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedstatementsadd.ts b/src/models/operations/accountingbankfeedstatementsadd.ts index d8ae0764d..acbb86b67 100644 --- a/src/models/operations/accountingbankfeedstatementsadd.ts +++ b/src/models/operations/accountingbankfeedstatementsadd.ts @@ -54,86 +54,6 @@ export type AccountingBankFeedStatementsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedStatementsAddGlobals$inboundSchema: z.ZodType< - AccountingBankFeedStatementsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedStatementsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsAddGlobals$outboundSchema: z.ZodType< - AccountingBankFeedStatementsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAddGlobals$ { - /** @deprecated use `AccountingBankFeedStatementsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAddGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAddGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAddGlobals$Outbound; -} - -export function accountingBankFeedStatementsAddGlobalsToJSON( - accountingBankFeedStatementsAddGlobals: - AccountingBankFeedStatementsAddGlobals, -): string { - return JSON.stringify( - AccountingBankFeedStatementsAddGlobals$outboundSchema.parse( - accountingBankFeedStatementsAddGlobals, - ), - ); -} - -export function accountingBankFeedStatementsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedStatementsAddRequest$inboundSchema: z.ZodType< - AccountingBankFeedStatementsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - BankFeedStatement: components.BankFeedStatementInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BankFeedStatement": "bankFeedStatement", - }); -}); - /** @internal */ export type AccountingBankFeedStatementsAddRequest$Outbound = { raw: boolean; @@ -160,21 +80,6 @@ export const AccountingBankFeedStatementsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAddRequest$ { - /** @deprecated use `AccountingBankFeedStatementsAddRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAddRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAddRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAddRequest$Outbound; -} - export function accountingBankFeedStatementsAddRequestToJSON( accountingBankFeedStatementsAddRequest: AccountingBankFeedStatementsAddRequest, @@ -186,17 +91,6 @@ export function accountingBankFeedStatementsAddRequestToJSON( ); } -export function accountingBankFeedStatementsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedStatementsAddResponse$inboundSchema: z.ZodType< AccountingBankFeedStatementsAddResponse, @@ -216,62 +110,6 @@ export const AccountingBankFeedStatementsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedStatementsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateBankFeedStatementResponse?: - | components.CreateBankFeedStatementResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsAddResponse$outboundSchema: z.ZodType< - AccountingBankFeedStatementsAddResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createBankFeedStatementResponse: components - .CreateBankFeedStatementResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createBankFeedStatementResponse: "CreateBankFeedStatementResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAddResponse$ { - /** @deprecated use `AccountingBankFeedStatementsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAddResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAddResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAddResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAddResponse$Outbound; -} - -export function accountingBankFeedStatementsAddResponseToJSON( - accountingBankFeedStatementsAddResponse: - AccountingBankFeedStatementsAddResponse, -): string { - return JSON.stringify( - AccountingBankFeedStatementsAddResponse$outboundSchema.parse( - accountingBankFeedStatementsAddResponse, - ), - ); -} - export function accountingBankFeedStatementsAddResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedstatementsall.ts b/src/models/operations/accountingbankfeedstatementsall.ts index 7caaea07c..676f117a8 100644 --- a/src/models/operations/accountingbankfeedstatementsall.ts +++ b/src/models/operations/accountingbankfeedstatementsall.ts @@ -69,89 +69,6 @@ export type AccountingBankFeedStatementsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedStatementsAllGlobals$inboundSchema: z.ZodType< - AccountingBankFeedStatementsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedStatementsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsAllGlobals$outboundSchema: z.ZodType< - AccountingBankFeedStatementsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAllGlobals$ { - /** @deprecated use `AccountingBankFeedStatementsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAllGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAllGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAllGlobals$Outbound; -} - -export function accountingBankFeedStatementsAllGlobalsToJSON( - accountingBankFeedStatementsAllGlobals: - AccountingBankFeedStatementsAllGlobals, -): string { - return JSON.stringify( - AccountingBankFeedStatementsAllGlobals$outboundSchema.parse( - accountingBankFeedStatementsAllGlobals, - ), - ); -} - -export function accountingBankFeedStatementsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedStatementsAllRequest$inboundSchema: z.ZodType< - AccountingBankFeedStatementsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBankFeedStatementsAllRequest$Outbound = { raw: boolean; @@ -184,21 +101,6 @@ export const AccountingBankFeedStatementsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAllRequest$ { - /** @deprecated use `AccountingBankFeedStatementsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAllRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAllRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAllRequest$Outbound; -} - export function accountingBankFeedStatementsAllRequestToJSON( accountingBankFeedStatementsAllRequest: AccountingBankFeedStatementsAllRequest, @@ -210,17 +112,6 @@ export function accountingBankFeedStatementsAllRequestToJSON( ); } -export function accountingBankFeedStatementsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedStatementsAllResponse$inboundSchema: z.ZodType< AccountingBankFeedStatementsAllResponse, @@ -240,62 +131,6 @@ export const AccountingBankFeedStatementsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedStatementsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankFeedStatementsResponse?: - | components.GetBankFeedStatementsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsAllResponse$outboundSchema: z.ZodType< - AccountingBankFeedStatementsAllResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankFeedStatementsResponse: components - .GetBankFeedStatementsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankFeedStatementsResponse: "GetBankFeedStatementsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsAllResponse$ { - /** @deprecated use `AccountingBankFeedStatementsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsAllResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsAllResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsAllResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsAllResponse$Outbound; -} - -export function accountingBankFeedStatementsAllResponseToJSON( - accountingBankFeedStatementsAllResponse: - AccountingBankFeedStatementsAllResponse, -): string { - return JSON.stringify( - AccountingBankFeedStatementsAllResponse$outboundSchema.parse( - accountingBankFeedStatementsAllResponse, - ), - ); -} - export function accountingBankFeedStatementsAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedstatementsdelete.ts b/src/models/operations/accountingbankfeedstatementsdelete.ts index 747cdba70..1d98278aa 100644 --- a/src/models/operations/accountingbankfeedstatementsdelete.ts +++ b/src/models/operations/accountingbankfeedstatementsdelete.ts @@ -57,88 +57,6 @@ export type AccountingBankFeedStatementsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedStatementsDeleteGlobals$inboundSchema: z.ZodType< - AccountingBankFeedStatementsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedStatementsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsDeleteGlobals$outboundSchema: - z.ZodType< - AccountingBankFeedStatementsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsDeleteGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsDeleteGlobals$ { - /** @deprecated use `AccountingBankFeedStatementsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsDeleteGlobals$Outbound; -} - -export function accountingBankFeedStatementsDeleteGlobalsToJSON( - accountingBankFeedStatementsDeleteGlobals: - AccountingBankFeedStatementsDeleteGlobals, -): string { - return JSON.stringify( - AccountingBankFeedStatementsDeleteGlobals$outboundSchema.parse( - accountingBankFeedStatementsDeleteGlobals, - ), - ); -} - -export function accountingBankFeedStatementsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedStatementsDeleteGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsDeleteGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedStatementsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedStatementsDeleteRequest$inboundSchema: z.ZodType< - AccountingBankFeedStatementsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingBankFeedStatementsDeleteRequest$Outbound = { id: string; @@ -162,21 +80,6 @@ export const AccountingBankFeedStatementsDeleteRequest$outboundSchema: raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsDeleteRequest$ { - /** @deprecated use `AccountingBankFeedStatementsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsDeleteRequest$Outbound; -} - export function accountingBankFeedStatementsDeleteRequestToJSON( accountingBankFeedStatementsDeleteRequest: AccountingBankFeedStatementsDeleteRequest, @@ -188,22 +91,6 @@ export function accountingBankFeedStatementsDeleteRequestToJSON( ); } -export function accountingBankFeedStatementsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedStatementsDeleteRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsDeleteRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedStatementsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedStatementsDeleteResponse$inboundSchema: z.ZodType = @@ -221,63 +108,6 @@ export const AccountingBankFeedStatementsDeleteResponse$inboundSchema: }); }); -/** @internal */ -export type AccountingBankFeedStatementsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteBankFeedStatementResponse?: - | components.DeleteBankFeedStatementResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsDeleteResponse$outboundSchema: - z.ZodType< - AccountingBankFeedStatementsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsDeleteResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteBankFeedStatementResponse: components - .DeleteBankFeedStatementResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteBankFeedStatementResponse: "DeleteBankFeedStatementResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsDeleteResponse$ { - /** @deprecated use `AccountingBankFeedStatementsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsDeleteResponse$Outbound; -} - -export function accountingBankFeedStatementsDeleteResponseToJSON( - accountingBankFeedStatementsDeleteResponse: - AccountingBankFeedStatementsDeleteResponse, -): string { - return JSON.stringify( - AccountingBankFeedStatementsDeleteResponse$outboundSchema.parse( - accountingBankFeedStatementsDeleteResponse, - ), - ); -} - export function accountingBankFeedStatementsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedstatementsone.ts b/src/models/operations/accountingbankfeedstatementsone.ts index e25b02cb2..3fd7fba38 100644 --- a/src/models/operations/accountingbankfeedstatementsone.ts +++ b/src/models/operations/accountingbankfeedstatementsone.ts @@ -61,83 +61,6 @@ export type AccountingBankFeedStatementsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedStatementsOneGlobals$inboundSchema: z.ZodType< - AccountingBankFeedStatementsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedStatementsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsOneGlobals$outboundSchema: z.ZodType< - AccountingBankFeedStatementsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsOneGlobals$ { - /** @deprecated use `AccountingBankFeedStatementsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsOneGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsOneGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsOneGlobals$Outbound; -} - -export function accountingBankFeedStatementsOneGlobalsToJSON( - accountingBankFeedStatementsOneGlobals: - AccountingBankFeedStatementsOneGlobals, -): string { - return JSON.stringify( - AccountingBankFeedStatementsOneGlobals$outboundSchema.parse( - accountingBankFeedStatementsOneGlobals, - ), - ); -} - -export function accountingBankFeedStatementsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedStatementsOneRequest$inboundSchema: z.ZodType< - AccountingBankFeedStatementsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingBankFeedStatementsOneRequest$Outbound = { id: string; @@ -162,21 +85,6 @@ export const AccountingBankFeedStatementsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsOneRequest$ { - /** @deprecated use `AccountingBankFeedStatementsOneRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsOneRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsOneRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsOneRequest$Outbound; -} - export function accountingBankFeedStatementsOneRequestToJSON( accountingBankFeedStatementsOneRequest: AccountingBankFeedStatementsOneRequest, @@ -188,17 +96,6 @@ export function accountingBankFeedStatementsOneRequestToJSON( ); } -export function accountingBankFeedStatementsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBankFeedStatementsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedStatementsOneResponse$inboundSchema: z.ZodType< AccountingBankFeedStatementsOneResponse, @@ -218,62 +115,6 @@ export const AccountingBankFeedStatementsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBankFeedStatementsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBankFeedStatementResponse?: - | components.GetBankFeedStatementResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsOneResponse$outboundSchema: z.ZodType< - AccountingBankFeedStatementsOneResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBankFeedStatementResponse: components - .GetBankFeedStatementResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBankFeedStatementResponse: "GetBankFeedStatementResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsOneResponse$ { - /** @deprecated use `AccountingBankFeedStatementsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsOneResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsOneResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsOneResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsOneResponse$Outbound; -} - -export function accountingBankFeedStatementsOneResponseToJSON( - accountingBankFeedStatementsOneResponse: - AccountingBankFeedStatementsOneResponse, -): string { - return JSON.stringify( - AccountingBankFeedStatementsOneResponse$outboundSchema.parse( - accountingBankFeedStatementsOneResponse, - ), - ); -} - export function accountingBankFeedStatementsOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbankfeedstatementsupdate.ts b/src/models/operations/accountingbankfeedstatementsupdate.ts index 5161d98ae..57a8b2d6b 100644 --- a/src/models/operations/accountingbankfeedstatementsupdate.ts +++ b/src/models/operations/accountingbankfeedstatementsupdate.ts @@ -58,93 +58,6 @@ export type AccountingBankFeedStatementsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBankFeedStatementsUpdateGlobals$inboundSchema: z.ZodType< - AccountingBankFeedStatementsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBankFeedStatementsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsUpdateGlobals$outboundSchema: - z.ZodType< - AccountingBankFeedStatementsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsUpdateGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsUpdateGlobals$ { - /** @deprecated use `AccountingBankFeedStatementsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsUpdateGlobals$Outbound; -} - -export function accountingBankFeedStatementsUpdateGlobalsToJSON( - accountingBankFeedStatementsUpdateGlobals: - AccountingBankFeedStatementsUpdateGlobals, -): string { - return JSON.stringify( - AccountingBankFeedStatementsUpdateGlobals$outboundSchema.parse( - accountingBankFeedStatementsUpdateGlobals, - ), - ); -} - -export function accountingBankFeedStatementsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedStatementsUpdateGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsUpdateGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedStatementsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBankFeedStatementsUpdateRequest$inboundSchema: z.ZodType< - AccountingBankFeedStatementsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - BankFeedStatement: components.BankFeedStatementInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BankFeedStatement": "bankFeedStatement", - }); -}); - /** @internal */ export type AccountingBankFeedStatementsUpdateRequest$Outbound = { id: string; @@ -174,21 +87,6 @@ export const AccountingBankFeedStatementsUpdateRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsUpdateRequest$ { - /** @deprecated use `AccountingBankFeedStatementsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsUpdateRequest$Outbound; -} - export function accountingBankFeedStatementsUpdateRequestToJSON( accountingBankFeedStatementsUpdateRequest: AccountingBankFeedStatementsUpdateRequest, @@ -200,22 +98,6 @@ export function accountingBankFeedStatementsUpdateRequestToJSON( ); } -export function accountingBankFeedStatementsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingBankFeedStatementsUpdateRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingBankFeedStatementsUpdateRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingBankFeedStatementsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBankFeedStatementsUpdateResponse$inboundSchema: z.ZodType = @@ -233,63 +115,6 @@ export const AccountingBankFeedStatementsUpdateResponse$inboundSchema: }); }); -/** @internal */ -export type AccountingBankFeedStatementsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateBankFeedStatementResponse?: - | components.UpdateBankFeedStatementResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBankFeedStatementsUpdateResponse$outboundSchema: - z.ZodType< - AccountingBankFeedStatementsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingBankFeedStatementsUpdateResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateBankFeedStatementResponse: components - .UpdateBankFeedStatementResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateBankFeedStatementResponse: "UpdateBankFeedStatementResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBankFeedStatementsUpdateResponse$ { - /** @deprecated use `AccountingBankFeedStatementsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBankFeedStatementsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBankFeedStatementsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingBankFeedStatementsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingBankFeedStatementsUpdateResponse$Outbound; -} - -export function accountingBankFeedStatementsUpdateResponseToJSON( - accountingBankFeedStatementsUpdateResponse: - AccountingBankFeedStatementsUpdateResponse, -): string { - return JSON.stringify( - AccountingBankFeedStatementsUpdateResponse$outboundSchema.parse( - accountingBankFeedStatementsUpdateResponse, - ), - ); -} - export function accountingBankFeedStatementsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingbillpaymentsadd.ts b/src/models/operations/accountingbillpaymentsadd.ts index 18ad36903..4d1768230 100644 --- a/src/models/operations/accountingbillpaymentsadd.ts +++ b/src/models/operations/accountingbillpaymentsadd.ts @@ -52,82 +52,6 @@ export type AccountingBillPaymentsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillPaymentsAddGlobals$inboundSchema: z.ZodType< - AccountingBillPaymentsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillPaymentsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsAddGlobals$outboundSchema: z.ZodType< - AccountingBillPaymentsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAddGlobals$ { - /** @deprecated use `AccountingBillPaymentsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAddGlobals$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsAddGlobals$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAddGlobals$Outbound; -} - -export function accountingBillPaymentsAddGlobalsToJSON( - accountingBillPaymentsAddGlobals: AccountingBillPaymentsAddGlobals, -): string { - return JSON.stringify( - AccountingBillPaymentsAddGlobals$outboundSchema.parse( - accountingBillPaymentsAddGlobals, - ), - ); -} - -export function accountingBillPaymentsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillPaymentsAddRequest$inboundSchema: z.ZodType< - AccountingBillPaymentsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - BillPayment: components.BillPaymentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BillPayment": "billPayment", - }); -}); - /** @internal */ export type AccountingBillPaymentsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingBillPaymentsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAddRequest$ { - /** @deprecated use `AccountingBillPaymentsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAddRequest$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsAddRequest$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAddRequest$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAddRequest$Outbound; -} - export function accountingBillPaymentsAddRequestToJSON( accountingBillPaymentsAddRequest: AccountingBillPaymentsAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingBillPaymentsAddRequestToJSON( ); } -export function accountingBillPaymentsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillPaymentsAddResponse$inboundSchema: z.ZodType< AccountingBillPaymentsAddResponse, @@ -206,60 +107,6 @@ export const AccountingBillPaymentsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillPaymentsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateBillPaymentResponse?: - | components.CreateBillPaymentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsAddResponse$outboundSchema: z.ZodType< - AccountingBillPaymentsAddResponse$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createBillPaymentResponse: components.CreateBillPaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createBillPaymentResponse: "CreateBillPaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAddResponse$ { - /** @deprecated use `AccountingBillPaymentsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAddResponse$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsAddResponse$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAddResponse$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAddResponse$Outbound; -} - -export function accountingBillPaymentsAddResponseToJSON( - accountingBillPaymentsAddResponse: AccountingBillPaymentsAddResponse, -): string { - return JSON.stringify( - AccountingBillPaymentsAddResponse$outboundSchema.parse( - accountingBillPaymentsAddResponse, - ), - ); -} - export function accountingBillPaymentsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillpaymentsall.ts b/src/models/operations/accountingbillpaymentsall.ts index 5b02676b4..74d6102ab 100644 --- a/src/models/operations/accountingbillpaymentsall.ts +++ b/src/models/operations/accountingbillpaymentsall.ts @@ -75,87 +75,6 @@ export type AccountingBillPaymentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillPaymentsAllGlobals$inboundSchema: z.ZodType< - AccountingBillPaymentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillPaymentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsAllGlobals$outboundSchema: z.ZodType< - AccountingBillPaymentsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAllGlobals$ { - /** @deprecated use `AccountingBillPaymentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAllGlobals$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsAllGlobals$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAllGlobals$Outbound; -} - -export function accountingBillPaymentsAllGlobalsToJSON( - accountingBillPaymentsAllGlobals: AccountingBillPaymentsAllGlobals, -): string { - return JSON.stringify( - AccountingBillPaymentsAllGlobals$outboundSchema.parse( - accountingBillPaymentsAllGlobals, - ), - ); -} - -export function accountingBillPaymentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillPaymentsAllRequest$inboundSchema: z.ZodType< - AccountingBillPaymentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.PaymentsFilter$inboundSchema.optional(), - sort: components.PaymentsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBillPaymentsAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingBillPaymentsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAllRequest$ { - /** @deprecated use `AccountingBillPaymentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAllRequest$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsAllRequest$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAllRequest$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAllRequest$Outbound; -} - export function accountingBillPaymentsAllRequestToJSON( accountingBillPaymentsAllRequest: AccountingBillPaymentsAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingBillPaymentsAllRequestToJSON( ); } -export function accountingBillPaymentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillPaymentsAllResponse$inboundSchema: z.ZodType< AccountingBillPaymentsAllResponse, @@ -244,60 +140,6 @@ export const AccountingBillPaymentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillPaymentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBillPaymentsResponse?: - | components.GetBillPaymentsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsAllResponse$outboundSchema: z.ZodType< - AccountingBillPaymentsAllResponse$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBillPaymentsResponse: components.GetBillPaymentsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBillPaymentsResponse: "GetBillPaymentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsAllResponse$ { - /** @deprecated use `AccountingBillPaymentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsAllResponse$inboundSchema; - /** @deprecated use `AccountingBillPaymentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsAllResponse$outboundSchema; - /** @deprecated use `AccountingBillPaymentsAllResponse$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsAllResponse$Outbound; -} - -export function accountingBillPaymentsAllResponseToJSON( - accountingBillPaymentsAllResponse: AccountingBillPaymentsAllResponse, -): string { - return JSON.stringify( - AccountingBillPaymentsAllResponse$outboundSchema.parse( - accountingBillPaymentsAllResponse, - ), - ); -} - export function accountingBillPaymentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillpaymentsdelete.ts b/src/models/operations/accountingbillpaymentsdelete.ts index 43ad4c473..4e9c261ca 100644 --- a/src/models/operations/accountingbillpaymentsdelete.ts +++ b/src/models/operations/accountingbillpaymentsdelete.ts @@ -55,81 +55,6 @@ export type AccountingBillPaymentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillPaymentsDeleteGlobals$inboundSchema: z.ZodType< - AccountingBillPaymentsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillPaymentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsDeleteGlobals$outboundSchema: z.ZodType< - AccountingBillPaymentsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsDeleteGlobals$ { - /** @deprecated use `AccountingBillPaymentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsDeleteGlobals$Outbound; -} - -export function accountingBillPaymentsDeleteGlobalsToJSON( - accountingBillPaymentsDeleteGlobals: AccountingBillPaymentsDeleteGlobals, -): string { - return JSON.stringify( - AccountingBillPaymentsDeleteGlobals$outboundSchema.parse( - accountingBillPaymentsDeleteGlobals, - ), - ); -} - -export function accountingBillPaymentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBillPaymentsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillPaymentsDeleteRequest$inboundSchema: z.ZodType< - AccountingBillPaymentsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingBillPaymentsDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const AccountingBillPaymentsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsDeleteRequest$ { - /** @deprecated use `AccountingBillPaymentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsDeleteRequest$Outbound; -} - export function accountingBillPaymentsDeleteRequestToJSON( accountingBillPaymentsDeleteRequest: AccountingBillPaymentsDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function accountingBillPaymentsDeleteRequestToJSON( ); } -export function accountingBillPaymentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBillPaymentsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillPaymentsDeleteResponse$inboundSchema: z.ZodType< AccountingBillPaymentsDeleteResponse, @@ -207,61 +106,6 @@ export const AccountingBillPaymentsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillPaymentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteBillPaymentResponse?: - | components.DeleteBillPaymentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsDeleteResponse$outboundSchema: z.ZodType< - AccountingBillPaymentsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteBillPaymentResponse: components.DeleteBillPaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteBillPaymentResponse: "DeleteBillPaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsDeleteResponse$ { - /** @deprecated use `AccountingBillPaymentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingBillPaymentsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsDeleteResponse$Outbound; -} - -export function accountingBillPaymentsDeleteResponseToJSON( - accountingBillPaymentsDeleteResponse: AccountingBillPaymentsDeleteResponse, -): string { - return JSON.stringify( - AccountingBillPaymentsDeleteResponse$outboundSchema.parse( - accountingBillPaymentsDeleteResponse, - ), - ); -} - export function accountingBillPaymentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillpaymentsone.ts b/src/models/operations/accountingbillpaymentsone.ts index ba678131c..6329cddb2 100644 --- a/src/models/operations/accountingbillpaymentsone.ts +++ b/src/models/operations/accountingbillpaymentsone.ts @@ -59,79 +59,6 @@ export type AccountingBillPaymentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillPaymentsOneGlobals$inboundSchema: z.ZodType< - AccountingBillPaymentsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillPaymentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsOneGlobals$outboundSchema: z.ZodType< - AccountingBillPaymentsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsOneGlobals$ { - /** @deprecated use `AccountingBillPaymentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsOneGlobals$inboundSchema; - /** @deprecated use `AccountingBillPaymentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsOneGlobals$outboundSchema; - /** @deprecated use `AccountingBillPaymentsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsOneGlobals$Outbound; -} - -export function accountingBillPaymentsOneGlobalsToJSON( - accountingBillPaymentsOneGlobals: AccountingBillPaymentsOneGlobals, -): string { - return JSON.stringify( - AccountingBillPaymentsOneGlobals$outboundSchema.parse( - accountingBillPaymentsOneGlobals, - ), - ); -} - -export function accountingBillPaymentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillPaymentsOneRequest$inboundSchema: z.ZodType< - AccountingBillPaymentsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingBillPaymentsOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingBillPaymentsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsOneRequest$ { - /** @deprecated use `AccountingBillPaymentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsOneRequest$inboundSchema; - /** @deprecated use `AccountingBillPaymentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillPaymentsOneRequest$outboundSchema; - /** @deprecated use `AccountingBillPaymentsOneRequest$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsOneRequest$Outbound; -} - export function accountingBillPaymentsOneRequestToJSON( accountingBillPaymentsOneRequest: AccountingBillPaymentsOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingBillPaymentsOneRequestToJSON( ); } -export function accountingBillPaymentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillPaymentsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillPaymentsOneResponse$inboundSchema: z.ZodType< AccountingBillPaymentsOneResponse, @@ -208,60 +112,6 @@ export const AccountingBillPaymentsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillPaymentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBillPaymentResponse?: - | components.GetBillPaymentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsOneResponse$outboundSchema: z.ZodType< - AccountingBillPaymentsOneResponse$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBillPaymentResponse: components.GetBillPaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBillPaymentResponse: "GetBillPaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsOneResponse$ { - /** @deprecated use `AccountingBillPaymentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillPaymentsOneResponse$inboundSchema; - /** @deprecated use `AccountingBillPaymentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsOneResponse$outboundSchema; - /** @deprecated use `AccountingBillPaymentsOneResponse$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsOneResponse$Outbound; -} - -export function accountingBillPaymentsOneResponseToJSON( - accountingBillPaymentsOneResponse: AccountingBillPaymentsOneResponse, -): string { - return JSON.stringify( - AccountingBillPaymentsOneResponse$outboundSchema.parse( - accountingBillPaymentsOneResponse, - ), - ); -} - export function accountingBillPaymentsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillpaymentsupdate.ts b/src/models/operations/accountingbillpaymentsupdate.ts index ad8d598ee..b6c99d58f 100644 --- a/src/models/operations/accountingbillpaymentsupdate.ts +++ b/src/models/operations/accountingbillpaymentsupdate.ts @@ -56,86 +56,6 @@ export type AccountingBillPaymentsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillPaymentsUpdateGlobals$inboundSchema: z.ZodType< - AccountingBillPaymentsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillPaymentsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsUpdateGlobals$outboundSchema: z.ZodType< - AccountingBillPaymentsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsUpdateGlobals$ { - /** @deprecated use `AccountingBillPaymentsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsUpdateGlobals$Outbound; -} - -export function accountingBillPaymentsUpdateGlobalsToJSON( - accountingBillPaymentsUpdateGlobals: AccountingBillPaymentsUpdateGlobals, -): string { - return JSON.stringify( - AccountingBillPaymentsUpdateGlobals$outboundSchema.parse( - accountingBillPaymentsUpdateGlobals, - ), - ); -} - -export function accountingBillPaymentsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBillPaymentsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillPaymentsUpdateRequest$inboundSchema: z.ZodType< - AccountingBillPaymentsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - BillPayment: components.BillPaymentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "BillPayment": "billPayment", - }); -}); - /** @internal */ export type AccountingBillPaymentsUpdateRequest$Outbound = { id: string; @@ -164,21 +84,6 @@ export const AccountingBillPaymentsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsUpdateRequest$ { - /** @deprecated use `AccountingBillPaymentsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsUpdateRequest$Outbound; -} - export function accountingBillPaymentsUpdateRequestToJSON( accountingBillPaymentsUpdateRequest: AccountingBillPaymentsUpdateRequest, ): string { @@ -189,17 +94,6 @@ export function accountingBillPaymentsUpdateRequestToJSON( ); } -export function accountingBillPaymentsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingBillPaymentsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillPaymentsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillPaymentsUpdateResponse$inboundSchema: z.ZodType< AccountingBillPaymentsUpdateResponse, @@ -219,61 +113,6 @@ export const AccountingBillPaymentsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillPaymentsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateBillPaymentResponse?: - | components.UpdateBillPaymentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillPaymentsUpdateResponse$outboundSchema: z.ZodType< - AccountingBillPaymentsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingBillPaymentsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateBillPaymentResponse: components.UpdateBillPaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateBillPaymentResponse: "UpdateBillPaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillPaymentsUpdateResponse$ { - /** @deprecated use `AccountingBillPaymentsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingBillPaymentsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingBillPaymentsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingBillPaymentsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingBillPaymentsUpdateResponse$Outbound; -} - -export function accountingBillPaymentsUpdateResponseToJSON( - accountingBillPaymentsUpdateResponse: AccountingBillPaymentsUpdateResponse, -): string { - return JSON.stringify( - AccountingBillPaymentsUpdateResponse$outboundSchema.parse( - accountingBillPaymentsUpdateResponse, - ), - ); -} - export function accountingBillPaymentsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillsadd.ts b/src/models/operations/accountingbillsadd.ts index ed0d4d051..88116d02d 100644 --- a/src/models/operations/accountingbillsadd.ts +++ b/src/models/operations/accountingbillsadd.ts @@ -52,80 +52,6 @@ export type AccountingBillsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillsAddGlobals$inboundSchema: z.ZodType< - AccountingBillsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillsAddGlobals$outboundSchema: z.ZodType< - AccountingBillsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingBillsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAddGlobals$ { - /** @deprecated use `AccountingBillsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAddGlobals$inboundSchema; - /** @deprecated use `AccountingBillsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAddGlobals$outboundSchema; - /** @deprecated use `AccountingBillsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingBillsAddGlobals$Outbound; -} - -export function accountingBillsAddGlobalsToJSON( - accountingBillsAddGlobals: AccountingBillsAddGlobals, -): string { - return JSON.stringify( - AccountingBillsAddGlobals$outboundSchema.parse(accountingBillsAddGlobals), - ); -} - -export function accountingBillsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillsAddRequest$inboundSchema: z.ZodType< - AccountingBillsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Bill: components.BillInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Bill": "bill", - }); -}); - /** @internal */ export type AccountingBillsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const AccountingBillsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAddRequest$ { - /** @deprecated use `AccountingBillsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAddRequest$inboundSchema; - /** @deprecated use `AccountingBillsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAddRequest$outboundSchema; - /** @deprecated use `AccountingBillsAddRequest$Outbound` instead. */ - export type Outbound = AccountingBillsAddRequest$Outbound; -} - export function accountingBillsAddRequestToJSON( accountingBillsAddRequest: AccountingBillsAddRequest, ): string { @@ -173,16 +86,6 @@ export function accountingBillsAddRequestToJSON( ); } -export function accountingBillsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillsAddResponse$inboundSchema: z.ZodType< AccountingBillsAddResponse, @@ -201,54 +104,6 @@ export const AccountingBillsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateBillResponse?: components.CreateBillResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillsAddResponse$outboundSchema: z.ZodType< - AccountingBillsAddResponse$Outbound, - z.ZodTypeDef, - AccountingBillsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createBillResponse: components.CreateBillResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createBillResponse: "CreateBillResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAddResponse$ { - /** @deprecated use `AccountingBillsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAddResponse$inboundSchema; - /** @deprecated use `AccountingBillsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAddResponse$outboundSchema; - /** @deprecated use `AccountingBillsAddResponse$Outbound` instead. */ - export type Outbound = AccountingBillsAddResponse$Outbound; -} - -export function accountingBillsAddResponseToJSON( - accountingBillsAddResponse: AccountingBillsAddResponse, -): string { - return JSON.stringify( - AccountingBillsAddResponse$outboundSchema.parse(accountingBillsAddResponse), - ); -} - export function accountingBillsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillsall.ts b/src/models/operations/accountingbillsall.ts index 8ddc1b3ec..f45d1a816 100644 --- a/src/models/operations/accountingbillsall.ts +++ b/src/models/operations/accountingbillsall.ts @@ -75,85 +75,6 @@ export type AccountingBillsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillsAllGlobals$inboundSchema: z.ZodType< - AccountingBillsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillsAllGlobals$outboundSchema: z.ZodType< - AccountingBillsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingBillsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAllGlobals$ { - /** @deprecated use `AccountingBillsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAllGlobals$inboundSchema; - /** @deprecated use `AccountingBillsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAllGlobals$outboundSchema; - /** @deprecated use `AccountingBillsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingBillsAllGlobals$Outbound; -} - -export function accountingBillsAllGlobalsToJSON( - accountingBillsAllGlobals: AccountingBillsAllGlobals, -): string { - return JSON.stringify( - AccountingBillsAllGlobals$outboundSchema.parse(accountingBillsAllGlobals), - ); -} - -export function accountingBillsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillsAllRequest$inboundSchema: z.ZodType< - AccountingBillsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.BillsFilter$inboundSchema.optional(), - sort: components.BillsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingBillsAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const AccountingBillsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAllRequest$ { - /** @deprecated use `AccountingBillsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAllRequest$inboundSchema; - /** @deprecated use `AccountingBillsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAllRequest$outboundSchema; - /** @deprecated use `AccountingBillsAllRequest$Outbound` instead. */ - export type Outbound = AccountingBillsAllRequest$Outbound; -} - export function accountingBillsAllRequestToJSON( accountingBillsAllRequest: AccountingBillsAllRequest, ): string { @@ -211,16 +119,6 @@ export function accountingBillsAllRequestToJSON( ); } -export function accountingBillsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillsAllResponse$inboundSchema: z.ZodType< AccountingBillsAllResponse, @@ -239,54 +137,6 @@ export const AccountingBillsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBillsResponse?: components.GetBillsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillsAllResponse$outboundSchema: z.ZodType< - AccountingBillsAllResponse$Outbound, - z.ZodTypeDef, - AccountingBillsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBillsResponse: components.GetBillsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBillsResponse: "GetBillsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsAllResponse$ { - /** @deprecated use `AccountingBillsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsAllResponse$inboundSchema; - /** @deprecated use `AccountingBillsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsAllResponse$outboundSchema; - /** @deprecated use `AccountingBillsAllResponse$Outbound` instead. */ - export type Outbound = AccountingBillsAllResponse$Outbound; -} - -export function accountingBillsAllResponseToJSON( - accountingBillsAllResponse: AccountingBillsAllResponse, -): string { - return JSON.stringify( - AccountingBillsAllResponse$outboundSchema.parse(accountingBillsAllResponse), - ); -} - export function accountingBillsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillsdelete.ts b/src/models/operations/accountingbillsdelete.ts index 581189a76..be47e3b9e 100644 --- a/src/models/operations/accountingbillsdelete.ts +++ b/src/models/operations/accountingbillsdelete.ts @@ -55,78 +55,6 @@ export type AccountingBillsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillsDeleteGlobals$inboundSchema: z.ZodType< - AccountingBillsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillsDeleteGlobals$outboundSchema: z.ZodType< - AccountingBillsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingBillsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsDeleteGlobals$ { - /** @deprecated use `AccountingBillsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingBillsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingBillsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingBillsDeleteGlobals$Outbound; -} - -export function accountingBillsDeleteGlobalsToJSON( - accountingBillsDeleteGlobals: AccountingBillsDeleteGlobals, -): string { - return JSON.stringify( - AccountingBillsDeleteGlobals$outboundSchema.parse( - accountingBillsDeleteGlobals, - ), - ); -} - -export function accountingBillsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillsDeleteRequest$inboundSchema: z.ZodType< - AccountingBillsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingBillsDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingBillsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsDeleteRequest$ { - /** @deprecated use `AccountingBillsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingBillsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingBillsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingBillsDeleteRequest$Outbound; -} - export function accountingBillsDeleteRequestToJSON( accountingBillsDeleteRequest: AccountingBillsDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingBillsDeleteRequestToJSON( ); } -export function accountingBillsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillsDeleteResponse$inboundSchema: z.ZodType< AccountingBillsDeleteResponse, @@ -200,56 +105,6 @@ export const AccountingBillsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteBillResponse?: components.DeleteBillResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillsDeleteResponse$outboundSchema: z.ZodType< - AccountingBillsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingBillsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteBillResponse: components.DeleteBillResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteBillResponse: "DeleteBillResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsDeleteResponse$ { - /** @deprecated use `AccountingBillsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingBillsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingBillsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingBillsDeleteResponse$Outbound; -} - -export function accountingBillsDeleteResponseToJSON( - accountingBillsDeleteResponse: AccountingBillsDeleteResponse, -): string { - return JSON.stringify( - AccountingBillsDeleteResponse$outboundSchema.parse( - accountingBillsDeleteResponse, - ), - ); -} - export function accountingBillsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillsone.ts b/src/models/operations/accountingbillsone.ts index f28c37ce9..64fa410a4 100644 --- a/src/models/operations/accountingbillsone.ts +++ b/src/models/operations/accountingbillsone.ts @@ -59,77 +59,6 @@ export type AccountingBillsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillsOneGlobals$inboundSchema: z.ZodType< - AccountingBillsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillsOneGlobals$outboundSchema: z.ZodType< - AccountingBillsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingBillsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsOneGlobals$ { - /** @deprecated use `AccountingBillsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsOneGlobals$inboundSchema; - /** @deprecated use `AccountingBillsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsOneGlobals$outboundSchema; - /** @deprecated use `AccountingBillsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingBillsOneGlobals$Outbound; -} - -export function accountingBillsOneGlobalsToJSON( - accountingBillsOneGlobals: AccountingBillsOneGlobals, -): string { - return JSON.stringify( - AccountingBillsOneGlobals$outboundSchema.parse(accountingBillsOneGlobals), - ); -} - -export function accountingBillsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillsOneRequest$inboundSchema: z.ZodType< - AccountingBillsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingBillsOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const AccountingBillsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsOneRequest$ { - /** @deprecated use `AccountingBillsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsOneRequest$inboundSchema; - /** @deprecated use `AccountingBillsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsOneRequest$outboundSchema; - /** @deprecated use `AccountingBillsOneRequest$Outbound` instead. */ - export type Outbound = AccountingBillsOneRequest$Outbound; -} - export function accountingBillsOneRequestToJSON( accountingBillsOneRequest: AccountingBillsOneRequest, ): string { @@ -175,16 +91,6 @@ export function accountingBillsOneRequestToJSON( ); } -export function accountingBillsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillsOneResponse$inboundSchema: z.ZodType< AccountingBillsOneResponse, @@ -203,54 +109,6 @@ export const AccountingBillsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetBillResponse?: components.GetBillResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillsOneResponse$outboundSchema: z.ZodType< - AccountingBillsOneResponse$Outbound, - z.ZodTypeDef, - AccountingBillsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getBillResponse: components.GetBillResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getBillResponse: "GetBillResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsOneResponse$ { - /** @deprecated use `AccountingBillsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsOneResponse$inboundSchema; - /** @deprecated use `AccountingBillsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsOneResponse$outboundSchema; - /** @deprecated use `AccountingBillsOneResponse$Outbound` instead. */ - export type Outbound = AccountingBillsOneResponse$Outbound; -} - -export function accountingBillsOneResponseToJSON( - accountingBillsOneResponse: AccountingBillsOneResponse, -): string { - return JSON.stringify( - AccountingBillsOneResponse$outboundSchema.parse(accountingBillsOneResponse), - ); -} - export function accountingBillsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingbillsupdate.ts b/src/models/operations/accountingbillsupdate.ts index 42c9612d3..b5c22b77e 100644 --- a/src/models/operations/accountingbillsupdate.ts +++ b/src/models/operations/accountingbillsupdate.ts @@ -56,83 +56,6 @@ export type AccountingBillsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingBillsUpdateGlobals$inboundSchema: z.ZodType< - AccountingBillsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingBillsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingBillsUpdateGlobals$outboundSchema: z.ZodType< - AccountingBillsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingBillsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsUpdateGlobals$ { - /** @deprecated use `AccountingBillsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingBillsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingBillsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingBillsUpdateGlobals$Outbound; -} - -export function accountingBillsUpdateGlobalsToJSON( - accountingBillsUpdateGlobals: AccountingBillsUpdateGlobals, -): string { - return JSON.stringify( - AccountingBillsUpdateGlobals$outboundSchema.parse( - accountingBillsUpdateGlobals, - ), - ); -} - -export function accountingBillsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingBillsUpdateRequest$inboundSchema: z.ZodType< - AccountingBillsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Bill: components.BillInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Bill": "bill", - }); -}); - /** @internal */ export type AccountingBillsUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingBillsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsUpdateRequest$ { - /** @deprecated use `AccountingBillsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingBillsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingBillsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingBillsUpdateRequest$Outbound; -} - export function accountingBillsUpdateRequestToJSON( accountingBillsUpdateRequest: AccountingBillsUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingBillsUpdateRequestToJSON( ); } -export function accountingBillsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingBillsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingBillsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingBillsUpdateResponse$inboundSchema: z.ZodType< AccountingBillsUpdateResponse, @@ -212,56 +112,6 @@ export const AccountingBillsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingBillsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateBillResponse?: components.UpdateBillResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingBillsUpdateResponse$outboundSchema: z.ZodType< - AccountingBillsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingBillsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateBillResponse: components.UpdateBillResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateBillResponse: "UpdateBillResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingBillsUpdateResponse$ { - /** @deprecated use `AccountingBillsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingBillsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingBillsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingBillsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingBillsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingBillsUpdateResponse$Outbound; -} - -export function accountingBillsUpdateResponseToJSON( - accountingBillsUpdateResponse: AccountingBillsUpdateResponse, -): string { - return JSON.stringify( - AccountingBillsUpdateResponse$outboundSchema.parse( - accountingBillsUpdateResponse, - ), - ); -} - export function accountingBillsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcategoriesall.ts b/src/models/operations/accountingcategoriesall.ts index f6d8031cf..cddcca378 100644 --- a/src/models/operations/accountingcategoriesall.ts +++ b/src/models/operations/accountingcategoriesall.ts @@ -67,81 +67,6 @@ export type AccountingCategoriesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCategoriesAllGlobals$inboundSchema: z.ZodType< - AccountingCategoriesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCategoriesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCategoriesAllGlobals$outboundSchema: z.ZodType< - AccountingCategoriesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingCategoriesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesAllGlobals$ { - /** @deprecated use `AccountingCategoriesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesAllGlobals$inboundSchema; - /** @deprecated use `AccountingCategoriesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesAllGlobals$outboundSchema; - /** @deprecated use `AccountingCategoriesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingCategoriesAllGlobals$Outbound; -} - -export function accountingCategoriesAllGlobalsToJSON( - accountingCategoriesAllGlobals: AccountingCategoriesAllGlobals, -): string { - return JSON.stringify( - AccountingCategoriesAllGlobals$outboundSchema.parse( - accountingCategoriesAllGlobals, - ), - ); -} - -export function accountingCategoriesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCategoriesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCategoriesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCategoriesAllRequest$inboundSchema: z.ZodType< - AccountingCategoriesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), - filter: components.CategoriesFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingCategoriesAllRequest$Outbound = { raw: boolean; @@ -170,19 +95,6 @@ export const AccountingCategoriesAllRequest$outboundSchema: z.ZodType< filter: components.CategoriesFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesAllRequest$ { - /** @deprecated use `AccountingCategoriesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesAllRequest$inboundSchema; - /** @deprecated use `AccountingCategoriesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesAllRequest$outboundSchema; - /** @deprecated use `AccountingCategoriesAllRequest$Outbound` instead. */ - export type Outbound = AccountingCategoriesAllRequest$Outbound; -} - export function accountingCategoriesAllRequestToJSON( accountingCategoriesAllRequest: AccountingCategoriesAllRequest, ): string { @@ -193,16 +105,6 @@ export function accountingCategoriesAllRequestToJSON( ); } -export function accountingCategoriesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCategoriesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCategoriesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCategoriesAllResponse$inboundSchema: z.ZodType< AccountingCategoriesAllResponse, @@ -222,57 +124,6 @@ export const AccountingCategoriesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCategoriesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCategoriesResponse?: components.GetCategoriesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCategoriesAllResponse$outboundSchema: z.ZodType< - AccountingCategoriesAllResponse$Outbound, - z.ZodTypeDef, - AccountingCategoriesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCategoriesResponse: components.GetCategoriesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCategoriesResponse: "GetCategoriesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesAllResponse$ { - /** @deprecated use `AccountingCategoriesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesAllResponse$inboundSchema; - /** @deprecated use `AccountingCategoriesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesAllResponse$outboundSchema; - /** @deprecated use `AccountingCategoriesAllResponse$Outbound` instead. */ - export type Outbound = AccountingCategoriesAllResponse$Outbound; -} - -export function accountingCategoriesAllResponseToJSON( - accountingCategoriesAllResponse: AccountingCategoriesAllResponse, -): string { - return JSON.stringify( - AccountingCategoriesAllResponse$outboundSchema.parse( - accountingCategoriesAllResponse, - ), - ); -} - export function accountingCategoriesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcategoriesone.ts b/src/models/operations/accountingcategoriesone.ts index 249fb3df1..71d59e75d 100644 --- a/src/models/operations/accountingcategoriesone.ts +++ b/src/models/operations/accountingcategoriesone.ts @@ -63,80 +63,6 @@ export type AccountingCategoriesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCategoriesOneGlobals$inboundSchema: z.ZodType< - AccountingCategoriesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCategoriesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCategoriesOneGlobals$outboundSchema: z.ZodType< - AccountingCategoriesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingCategoriesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesOneGlobals$ { - /** @deprecated use `AccountingCategoriesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesOneGlobals$inboundSchema; - /** @deprecated use `AccountingCategoriesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesOneGlobals$outboundSchema; - /** @deprecated use `AccountingCategoriesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingCategoriesOneGlobals$Outbound; -} - -export function accountingCategoriesOneGlobalsToJSON( - accountingCategoriesOneGlobals: AccountingCategoriesOneGlobals, -): string { - return JSON.stringify( - AccountingCategoriesOneGlobals$outboundSchema.parse( - accountingCategoriesOneGlobals, - ), - ); -} - -export function accountingCategoriesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCategoriesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCategoriesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCategoriesOneRequest$inboundSchema: z.ZodType< - AccountingCategoriesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - filter: components.CategoriesFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingCategoriesOneRequest$Outbound = { id: string; @@ -163,19 +89,6 @@ export const AccountingCategoriesOneRequest$outboundSchema: z.ZodType< filter: components.CategoriesFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesOneRequest$ { - /** @deprecated use `AccountingCategoriesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesOneRequest$inboundSchema; - /** @deprecated use `AccountingCategoriesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesOneRequest$outboundSchema; - /** @deprecated use `AccountingCategoriesOneRequest$Outbound` instead. */ - export type Outbound = AccountingCategoriesOneRequest$Outbound; -} - export function accountingCategoriesOneRequestToJSON( accountingCategoriesOneRequest: AccountingCategoriesOneRequest, ): string { @@ -186,16 +99,6 @@ export function accountingCategoriesOneRequestToJSON( ); } -export function accountingCategoriesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCategoriesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCategoriesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCategoriesOneResponse$inboundSchema: z.ZodType< AccountingCategoriesOneResponse, @@ -214,56 +117,6 @@ export const AccountingCategoriesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCategoriesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCategoryResponse?: components.GetCategoryResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCategoriesOneResponse$outboundSchema: z.ZodType< - AccountingCategoriesOneResponse$Outbound, - z.ZodTypeDef, - AccountingCategoriesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCategoryResponse: components.GetCategoryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCategoryResponse: "GetCategoryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCategoriesOneResponse$ { - /** @deprecated use `AccountingCategoriesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCategoriesOneResponse$inboundSchema; - /** @deprecated use `AccountingCategoriesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCategoriesOneResponse$outboundSchema; - /** @deprecated use `AccountingCategoriesOneResponse$Outbound` instead. */ - export type Outbound = AccountingCategoriesOneResponse$Outbound; -} - -export function accountingCategoriesOneResponseToJSON( - accountingCategoriesOneResponse: AccountingCategoriesOneResponse, -): string { - return JSON.stringify( - AccountingCategoriesOneResponse$outboundSchema.parse( - accountingCategoriesOneResponse, - ), - ); -} - export function accountingCategoriesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcompanyinfoone.ts b/src/models/operations/accountingcompanyinfoone.ts index 20556a0af..c0898654d 100644 --- a/src/models/operations/accountingcompanyinfoone.ts +++ b/src/models/operations/accountingcompanyinfoone.ts @@ -55,78 +55,6 @@ export type AccountingCompanyInfoOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCompanyInfoOneGlobals$inboundSchema: z.ZodType< - AccountingCompanyInfoOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCompanyInfoOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCompanyInfoOneGlobals$outboundSchema: z.ZodType< - AccountingCompanyInfoOneGlobals$Outbound, - z.ZodTypeDef, - AccountingCompanyInfoOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCompanyInfoOneGlobals$ { - /** @deprecated use `AccountingCompanyInfoOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCompanyInfoOneGlobals$inboundSchema; - /** @deprecated use `AccountingCompanyInfoOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCompanyInfoOneGlobals$outboundSchema; - /** @deprecated use `AccountingCompanyInfoOneGlobals$Outbound` instead. */ - export type Outbound = AccountingCompanyInfoOneGlobals$Outbound; -} - -export function accountingCompanyInfoOneGlobalsToJSON( - accountingCompanyInfoOneGlobals: AccountingCompanyInfoOneGlobals, -): string { - return JSON.stringify( - AccountingCompanyInfoOneGlobals$outboundSchema.parse( - accountingCompanyInfoOneGlobals, - ), - ); -} - -export function accountingCompanyInfoOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCompanyInfoOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCompanyInfoOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCompanyInfoOneRequest$inboundSchema: z.ZodType< - AccountingCompanyInfoOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingCompanyInfoOneRequest$Outbound = { raw: boolean; @@ -149,19 +77,6 @@ export const AccountingCompanyInfoOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCompanyInfoOneRequest$ { - /** @deprecated use `AccountingCompanyInfoOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCompanyInfoOneRequest$inboundSchema; - /** @deprecated use `AccountingCompanyInfoOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCompanyInfoOneRequest$outboundSchema; - /** @deprecated use `AccountingCompanyInfoOneRequest$Outbound` instead. */ - export type Outbound = AccountingCompanyInfoOneRequest$Outbound; -} - export function accountingCompanyInfoOneRequestToJSON( accountingCompanyInfoOneRequest: AccountingCompanyInfoOneRequest, ): string { @@ -172,16 +87,6 @@ export function accountingCompanyInfoOneRequestToJSON( ); } -export function accountingCompanyInfoOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCompanyInfoOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCompanyInfoOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCompanyInfoOneResponse$inboundSchema: z.ZodType< AccountingCompanyInfoOneResponse, @@ -201,59 +106,6 @@ export const AccountingCompanyInfoOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCompanyInfoOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCompanyInfoResponse?: - | components.GetCompanyInfoResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCompanyInfoOneResponse$outboundSchema: z.ZodType< - AccountingCompanyInfoOneResponse$Outbound, - z.ZodTypeDef, - AccountingCompanyInfoOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCompanyInfoResponse: components.GetCompanyInfoResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCompanyInfoResponse: "GetCompanyInfoResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCompanyInfoOneResponse$ { - /** @deprecated use `AccountingCompanyInfoOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCompanyInfoOneResponse$inboundSchema; - /** @deprecated use `AccountingCompanyInfoOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCompanyInfoOneResponse$outboundSchema; - /** @deprecated use `AccountingCompanyInfoOneResponse$Outbound` instead. */ - export type Outbound = AccountingCompanyInfoOneResponse$Outbound; -} - -export function accountingCompanyInfoOneResponseToJSON( - accountingCompanyInfoOneResponse: AccountingCompanyInfoOneResponse, -): string { - return JSON.stringify( - AccountingCompanyInfoOneResponse$outboundSchema.parse( - accountingCompanyInfoOneResponse, - ), - ); -} - export function accountingCompanyInfoOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcreditnotesadd.ts b/src/models/operations/accountingcreditnotesadd.ts index f1184b679..4b82df70b 100644 --- a/src/models/operations/accountingcreditnotesadd.ts +++ b/src/models/operations/accountingcreditnotesadd.ts @@ -52,82 +52,6 @@ export type AccountingCreditNotesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCreditNotesAddGlobals$inboundSchema: z.ZodType< - AccountingCreditNotesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCreditNotesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesAddGlobals$outboundSchema: z.ZodType< - AccountingCreditNotesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingCreditNotesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAddGlobals$ { - /** @deprecated use `AccountingCreditNotesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAddGlobals$inboundSchema; - /** @deprecated use `AccountingCreditNotesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAddGlobals$outboundSchema; - /** @deprecated use `AccountingCreditNotesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAddGlobals$Outbound; -} - -export function accountingCreditNotesAddGlobalsToJSON( - accountingCreditNotesAddGlobals: AccountingCreditNotesAddGlobals, -): string { - return JSON.stringify( - AccountingCreditNotesAddGlobals$outboundSchema.parse( - accountingCreditNotesAddGlobals, - ), - ); -} - -export function accountingCreditNotesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCreditNotesAddRequest$inboundSchema: z.ZodType< - AccountingCreditNotesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - CreditNote: components.CreditNoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreditNote": "creditNote", - }); -}); - /** @internal */ export type AccountingCreditNotesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingCreditNotesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAddRequest$ { - /** @deprecated use `AccountingCreditNotesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAddRequest$inboundSchema; - /** @deprecated use `AccountingCreditNotesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAddRequest$outboundSchema; - /** @deprecated use `AccountingCreditNotesAddRequest$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAddRequest$Outbound; -} - export function accountingCreditNotesAddRequestToJSON( accountingCreditNotesAddRequest: AccountingCreditNotesAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingCreditNotesAddRequestToJSON( ); } -export function accountingCreditNotesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCreditNotesAddResponse$inboundSchema: z.ZodType< AccountingCreditNotesAddResponse, @@ -206,59 +107,6 @@ export const AccountingCreditNotesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCreditNotesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCreditNoteResponse?: - | components.CreateCreditNoteResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesAddResponse$outboundSchema: z.ZodType< - AccountingCreditNotesAddResponse$Outbound, - z.ZodTypeDef, - AccountingCreditNotesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCreditNoteResponse: components.CreateCreditNoteResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCreditNoteResponse: "CreateCreditNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAddResponse$ { - /** @deprecated use `AccountingCreditNotesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAddResponse$inboundSchema; - /** @deprecated use `AccountingCreditNotesAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAddResponse$outboundSchema; - /** @deprecated use `AccountingCreditNotesAddResponse$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAddResponse$Outbound; -} - -export function accountingCreditNotesAddResponseToJSON( - accountingCreditNotesAddResponse: AccountingCreditNotesAddResponse, -): string { - return JSON.stringify( - AccountingCreditNotesAddResponse$outboundSchema.parse( - accountingCreditNotesAddResponse, - ), - ); -} - export function accountingCreditNotesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcreditnotesall.ts b/src/models/operations/accountingcreditnotesall.ts index 782fc19f4..d835d28d5 100644 --- a/src/models/operations/accountingcreditnotesall.ts +++ b/src/models/operations/accountingcreditnotesall.ts @@ -75,87 +75,6 @@ export type AccountingCreditNotesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCreditNotesAllGlobals$inboundSchema: z.ZodType< - AccountingCreditNotesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCreditNotesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesAllGlobals$outboundSchema: z.ZodType< - AccountingCreditNotesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingCreditNotesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAllGlobals$ { - /** @deprecated use `AccountingCreditNotesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAllGlobals$inboundSchema; - /** @deprecated use `AccountingCreditNotesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAllGlobals$outboundSchema; - /** @deprecated use `AccountingCreditNotesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAllGlobals$Outbound; -} - -export function accountingCreditNotesAllGlobalsToJSON( - accountingCreditNotesAllGlobals: AccountingCreditNotesAllGlobals, -): string { - return JSON.stringify( - AccountingCreditNotesAllGlobals$outboundSchema.parse( - accountingCreditNotesAllGlobals, - ), - ); -} - -export function accountingCreditNotesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCreditNotesAllRequest$inboundSchema: z.ZodType< - AccountingCreditNotesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.CreditNotesFilter$inboundSchema.optional(), - sort: components.CreditNotesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingCreditNotesAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingCreditNotesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAllRequest$ { - /** @deprecated use `AccountingCreditNotesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAllRequest$inboundSchema; - /** @deprecated use `AccountingCreditNotesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAllRequest$outboundSchema; - /** @deprecated use `AccountingCreditNotesAllRequest$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAllRequest$Outbound; -} - export function accountingCreditNotesAllRequestToJSON( accountingCreditNotesAllRequest: AccountingCreditNotesAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingCreditNotesAllRequestToJSON( ); } -export function accountingCreditNotesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCreditNotesAllResponse$inboundSchema: z.ZodType< AccountingCreditNotesAllResponse, @@ -244,59 +140,6 @@ export const AccountingCreditNotesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCreditNotesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCreditNotesResponse?: - | components.GetCreditNotesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesAllResponse$outboundSchema: z.ZodType< - AccountingCreditNotesAllResponse$Outbound, - z.ZodTypeDef, - AccountingCreditNotesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCreditNotesResponse: components.GetCreditNotesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCreditNotesResponse: "GetCreditNotesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesAllResponse$ { - /** @deprecated use `AccountingCreditNotesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesAllResponse$inboundSchema; - /** @deprecated use `AccountingCreditNotesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesAllResponse$outboundSchema; - /** @deprecated use `AccountingCreditNotesAllResponse$Outbound` instead. */ - export type Outbound = AccountingCreditNotesAllResponse$Outbound; -} - -export function accountingCreditNotesAllResponseToJSON( - accountingCreditNotesAllResponse: AccountingCreditNotesAllResponse, -): string { - return JSON.stringify( - AccountingCreditNotesAllResponse$outboundSchema.parse( - accountingCreditNotesAllResponse, - ), - ); -} - export function accountingCreditNotesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcreditnotesdelete.ts b/src/models/operations/accountingcreditnotesdelete.ts index 4ebc3b1ad..bc2f88400 100644 --- a/src/models/operations/accountingcreditnotesdelete.ts +++ b/src/models/operations/accountingcreditnotesdelete.ts @@ -55,80 +55,6 @@ export type AccountingCreditNotesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCreditNotesDeleteGlobals$inboundSchema: z.ZodType< - AccountingCreditNotesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCreditNotesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesDeleteGlobals$outboundSchema: z.ZodType< - AccountingCreditNotesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingCreditNotesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesDeleteGlobals$ { - /** @deprecated use `AccountingCreditNotesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingCreditNotesDeleteGlobals$Outbound; -} - -export function accountingCreditNotesDeleteGlobalsToJSON( - accountingCreditNotesDeleteGlobals: AccountingCreditNotesDeleteGlobals, -): string { - return JSON.stringify( - AccountingCreditNotesDeleteGlobals$outboundSchema.parse( - accountingCreditNotesDeleteGlobals, - ), - ); -} - -export function accountingCreditNotesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingCreditNotesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCreditNotesDeleteRequest$inboundSchema: z.ZodType< - AccountingCreditNotesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingCreditNotesDeleteRequest$Outbound = { id: string; @@ -151,20 +77,6 @@ export const AccountingCreditNotesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesDeleteRequest$ { - /** @deprecated use `AccountingCreditNotesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingCreditNotesDeleteRequest$Outbound; -} - export function accountingCreditNotesDeleteRequestToJSON( accountingCreditNotesDeleteRequest: AccountingCreditNotesDeleteRequest, ): string { @@ -175,17 +87,6 @@ export function accountingCreditNotesDeleteRequestToJSON( ); } -export function accountingCreditNotesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingCreditNotesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCreditNotesDeleteResponse$inboundSchema: z.ZodType< AccountingCreditNotesDeleteResponse, @@ -205,61 +106,6 @@ export const AccountingCreditNotesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCreditNotesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCreditNoteResponse?: - | components.DeleteCreditNoteResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesDeleteResponse$outboundSchema: z.ZodType< - AccountingCreditNotesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingCreditNotesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCreditNoteResponse: components.DeleteCreditNoteResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCreditNoteResponse: "DeleteCreditNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesDeleteResponse$ { - /** @deprecated use `AccountingCreditNotesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingCreditNotesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingCreditNotesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingCreditNotesDeleteResponse$Outbound; -} - -export function accountingCreditNotesDeleteResponseToJSON( - accountingCreditNotesDeleteResponse: AccountingCreditNotesDeleteResponse, -): string { - return JSON.stringify( - AccountingCreditNotesDeleteResponse$outboundSchema.parse( - accountingCreditNotesDeleteResponse, - ), - ); -} - export function accountingCreditNotesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcreditnotesone.ts b/src/models/operations/accountingcreditnotesone.ts index d4668bbca..61d0b16cb 100644 --- a/src/models/operations/accountingcreditnotesone.ts +++ b/src/models/operations/accountingcreditnotesone.ts @@ -59,79 +59,6 @@ export type AccountingCreditNotesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCreditNotesOneGlobals$inboundSchema: z.ZodType< - AccountingCreditNotesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCreditNotesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesOneGlobals$outboundSchema: z.ZodType< - AccountingCreditNotesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingCreditNotesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesOneGlobals$ { - /** @deprecated use `AccountingCreditNotesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesOneGlobals$inboundSchema; - /** @deprecated use `AccountingCreditNotesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesOneGlobals$outboundSchema; - /** @deprecated use `AccountingCreditNotesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingCreditNotesOneGlobals$Outbound; -} - -export function accountingCreditNotesOneGlobalsToJSON( - accountingCreditNotesOneGlobals: AccountingCreditNotesOneGlobals, -): string { - return JSON.stringify( - AccountingCreditNotesOneGlobals$outboundSchema.parse( - accountingCreditNotesOneGlobals, - ), - ); -} - -export function accountingCreditNotesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCreditNotesOneRequest$inboundSchema: z.ZodType< - AccountingCreditNotesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingCreditNotesOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingCreditNotesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesOneRequest$ { - /** @deprecated use `AccountingCreditNotesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesOneRequest$inboundSchema; - /** @deprecated use `AccountingCreditNotesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesOneRequest$outboundSchema; - /** @deprecated use `AccountingCreditNotesOneRequest$Outbound` instead. */ - export type Outbound = AccountingCreditNotesOneRequest$Outbound; -} - export function accountingCreditNotesOneRequestToJSON( accountingCreditNotesOneRequest: AccountingCreditNotesOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingCreditNotesOneRequestToJSON( ); } -export function accountingCreditNotesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCreditNotesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCreditNotesOneResponse$inboundSchema: z.ZodType< AccountingCreditNotesOneResponse, @@ -208,57 +112,6 @@ export const AccountingCreditNotesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCreditNotesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCreditNoteResponse?: components.GetCreditNoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesOneResponse$outboundSchema: z.ZodType< - AccountingCreditNotesOneResponse$Outbound, - z.ZodTypeDef, - AccountingCreditNotesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCreditNoteResponse: components.GetCreditNoteResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCreditNoteResponse: "GetCreditNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesOneResponse$ { - /** @deprecated use `AccountingCreditNotesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesOneResponse$inboundSchema; - /** @deprecated use `AccountingCreditNotesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCreditNotesOneResponse$outboundSchema; - /** @deprecated use `AccountingCreditNotesOneResponse$Outbound` instead. */ - export type Outbound = AccountingCreditNotesOneResponse$Outbound; -} - -export function accountingCreditNotesOneResponseToJSON( - accountingCreditNotesOneResponse: AccountingCreditNotesOneResponse, -): string { - return JSON.stringify( - AccountingCreditNotesOneResponse$outboundSchema.parse( - accountingCreditNotesOneResponse, - ), - ); -} - export function accountingCreditNotesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcreditnotesupdate.ts b/src/models/operations/accountingcreditnotesupdate.ts index aed43ee80..841aed7df 100644 --- a/src/models/operations/accountingcreditnotesupdate.ts +++ b/src/models/operations/accountingcreditnotesupdate.ts @@ -56,85 +56,6 @@ export type AccountingCreditNotesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCreditNotesUpdateGlobals$inboundSchema: z.ZodType< - AccountingCreditNotesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCreditNotesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesUpdateGlobals$outboundSchema: z.ZodType< - AccountingCreditNotesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingCreditNotesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesUpdateGlobals$ { - /** @deprecated use `AccountingCreditNotesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingCreditNotesUpdateGlobals$Outbound; -} - -export function accountingCreditNotesUpdateGlobalsToJSON( - accountingCreditNotesUpdateGlobals: AccountingCreditNotesUpdateGlobals, -): string { - return JSON.stringify( - AccountingCreditNotesUpdateGlobals$outboundSchema.parse( - accountingCreditNotesUpdateGlobals, - ), - ); -} - -export function accountingCreditNotesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingCreditNotesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCreditNotesUpdateRequest$inboundSchema: z.ZodType< - AccountingCreditNotesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - CreditNote: components.CreditNoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreditNote": "creditNote", - }); -}); - /** @internal */ export type AccountingCreditNotesUpdateRequest$Outbound = { id: string; @@ -163,20 +84,6 @@ export const AccountingCreditNotesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesUpdateRequest$ { - /** @deprecated use `AccountingCreditNotesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCreditNotesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingCreditNotesUpdateRequest$Outbound; -} - export function accountingCreditNotesUpdateRequestToJSON( accountingCreditNotesUpdateRequest: AccountingCreditNotesUpdateRequest, ): string { @@ -187,17 +94,6 @@ export function accountingCreditNotesUpdateRequestToJSON( ); } -export function accountingCreditNotesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingCreditNotesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCreditNotesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCreditNotesUpdateResponse$inboundSchema: z.ZodType< AccountingCreditNotesUpdateResponse, @@ -217,61 +113,6 @@ export const AccountingCreditNotesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCreditNotesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCreditNoteResponse?: - | components.UpdateCreditNoteResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCreditNotesUpdateResponse$outboundSchema: z.ZodType< - AccountingCreditNotesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingCreditNotesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCreditNoteResponse: components.UpdateCreditNoteResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCreditNoteResponse: "UpdateCreditNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCreditNotesUpdateResponse$ { - /** @deprecated use `AccountingCreditNotesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingCreditNotesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingCreditNotesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingCreditNotesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingCreditNotesUpdateResponse$Outbound; -} - -export function accountingCreditNotesUpdateResponseToJSON( - accountingCreditNotesUpdateResponse: AccountingCreditNotesUpdateResponse, -): string { - return JSON.stringify( - AccountingCreditNotesUpdateResponse$outboundSchema.parse( - accountingCreditNotesUpdateResponse, - ), - ); -} - export function accountingCreditNotesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcustomersadd.ts b/src/models/operations/accountingcustomersadd.ts index 54a6e0cc9..c93241b5e 100644 --- a/src/models/operations/accountingcustomersadd.ts +++ b/src/models/operations/accountingcustomersadd.ts @@ -52,82 +52,6 @@ export type AccountingCustomersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCustomersAddGlobals$inboundSchema: z.ZodType< - AccountingCustomersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCustomersAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCustomersAddGlobals$outboundSchema: z.ZodType< - AccountingCustomersAddGlobals$Outbound, - z.ZodTypeDef, - AccountingCustomersAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAddGlobals$ { - /** @deprecated use `AccountingCustomersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAddGlobals$inboundSchema; - /** @deprecated use `AccountingCustomersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAddGlobals$outboundSchema; - /** @deprecated use `AccountingCustomersAddGlobals$Outbound` instead. */ - export type Outbound = AccountingCustomersAddGlobals$Outbound; -} - -export function accountingCustomersAddGlobalsToJSON( - accountingCustomersAddGlobals: AccountingCustomersAddGlobals, -): string { - return JSON.stringify( - AccountingCustomersAddGlobals$outboundSchema.parse( - accountingCustomersAddGlobals, - ), - ); -} - -export function accountingCustomersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCustomersAddRequest$inboundSchema: z.ZodType< - AccountingCustomersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Customer: components.CustomerInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Customer": "customer", - }); -}); - /** @internal */ export type AccountingCustomersAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingCustomersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAddRequest$ { - /** @deprecated use `AccountingCustomersAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAddRequest$inboundSchema; - /** @deprecated use `AccountingCustomersAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAddRequest$outboundSchema; - /** @deprecated use `AccountingCustomersAddRequest$Outbound` instead. */ - export type Outbound = AccountingCustomersAddRequest$Outbound; -} - export function accountingCustomersAddRequestToJSON( accountingCustomersAddRequest: AccountingCustomersAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingCustomersAddRequestToJSON( ); } -export function accountingCustomersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCustomersAddResponse$inboundSchema: z.ZodType< AccountingCustomersAddResponse, @@ -206,59 +107,6 @@ export const AccountingCustomersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCustomersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCustomerResponse?: - | components.CreateCustomerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCustomersAddResponse$outboundSchema: z.ZodType< - AccountingCustomersAddResponse$Outbound, - z.ZodTypeDef, - AccountingCustomersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCustomerResponse: components.CreateCustomerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCustomerResponse: "CreateCustomerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAddResponse$ { - /** @deprecated use `AccountingCustomersAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAddResponse$inboundSchema; - /** @deprecated use `AccountingCustomersAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAddResponse$outboundSchema; - /** @deprecated use `AccountingCustomersAddResponse$Outbound` instead. */ - export type Outbound = AccountingCustomersAddResponse$Outbound; -} - -export function accountingCustomersAddResponseToJSON( - accountingCustomersAddResponse: AccountingCustomersAddResponse, -): string { - return JSON.stringify( - AccountingCustomersAddResponse$outboundSchema.parse( - accountingCustomersAddResponse, - ), - ); -} - export function accountingCustomersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcustomersall.ts b/src/models/operations/accountingcustomersall.ts index f83b6a2df..ed439cfab 100644 --- a/src/models/operations/accountingcustomersall.ts +++ b/src/models/operations/accountingcustomersall.ts @@ -75,87 +75,6 @@ export type AccountingCustomersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCustomersAllGlobals$inboundSchema: z.ZodType< - AccountingCustomersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCustomersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCustomersAllGlobals$outboundSchema: z.ZodType< - AccountingCustomersAllGlobals$Outbound, - z.ZodTypeDef, - AccountingCustomersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAllGlobals$ { - /** @deprecated use `AccountingCustomersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAllGlobals$inboundSchema; - /** @deprecated use `AccountingCustomersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAllGlobals$outboundSchema; - /** @deprecated use `AccountingCustomersAllGlobals$Outbound` instead. */ - export type Outbound = AccountingCustomersAllGlobals$Outbound; -} - -export function accountingCustomersAllGlobalsToJSON( - accountingCustomersAllGlobals: AccountingCustomersAllGlobals, -): string { - return JSON.stringify( - AccountingCustomersAllGlobals$outboundSchema.parse( - accountingCustomersAllGlobals, - ), - ); -} - -export function accountingCustomersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCustomersAllRequest$inboundSchema: z.ZodType< - AccountingCustomersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.CustomersFilter$inboundSchema.optional(), - sort: components.CustomersSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingCustomersAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingCustomersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAllRequest$ { - /** @deprecated use `AccountingCustomersAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAllRequest$inboundSchema; - /** @deprecated use `AccountingCustomersAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAllRequest$outboundSchema; - /** @deprecated use `AccountingCustomersAllRequest$Outbound` instead. */ - export type Outbound = AccountingCustomersAllRequest$Outbound; -} - export function accountingCustomersAllRequestToJSON( accountingCustomersAllRequest: AccountingCustomersAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingCustomersAllRequestToJSON( ); } -export function accountingCustomersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCustomersAllResponse$inboundSchema: z.ZodType< AccountingCustomersAllResponse, @@ -244,57 +140,6 @@ export const AccountingCustomersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCustomersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomersResponse?: components.GetCustomersResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCustomersAllResponse$outboundSchema: z.ZodType< - AccountingCustomersAllResponse$Outbound, - z.ZodTypeDef, - AccountingCustomersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomersResponse: components.GetCustomersResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomersResponse: "GetCustomersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersAllResponse$ { - /** @deprecated use `AccountingCustomersAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersAllResponse$inboundSchema; - /** @deprecated use `AccountingCustomersAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersAllResponse$outboundSchema; - /** @deprecated use `AccountingCustomersAllResponse$Outbound` instead. */ - export type Outbound = AccountingCustomersAllResponse$Outbound; -} - -export function accountingCustomersAllResponseToJSON( - accountingCustomersAllResponse: AccountingCustomersAllResponse, -): string { - return JSON.stringify( - AccountingCustomersAllResponse$outboundSchema.parse( - accountingCustomersAllResponse, - ), - ); -} - export function accountingCustomersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcustomersdelete.ts b/src/models/operations/accountingcustomersdelete.ts index a5ddbfb74..e1ce26a2b 100644 --- a/src/models/operations/accountingcustomersdelete.ts +++ b/src/models/operations/accountingcustomersdelete.ts @@ -55,78 +55,6 @@ export type AccountingCustomersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCustomersDeleteGlobals$inboundSchema: z.ZodType< - AccountingCustomersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCustomersDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCustomersDeleteGlobals$outboundSchema: z.ZodType< - AccountingCustomersDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingCustomersDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersDeleteGlobals$ { - /** @deprecated use `AccountingCustomersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingCustomersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingCustomersDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingCustomersDeleteGlobals$Outbound; -} - -export function accountingCustomersDeleteGlobalsToJSON( - accountingCustomersDeleteGlobals: AccountingCustomersDeleteGlobals, -): string { - return JSON.stringify( - AccountingCustomersDeleteGlobals$outboundSchema.parse( - accountingCustomersDeleteGlobals, - ), - ); -} - -export function accountingCustomersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCustomersDeleteRequest$inboundSchema: z.ZodType< - AccountingCustomersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingCustomersDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingCustomersDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersDeleteRequest$ { - /** @deprecated use `AccountingCustomersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersDeleteRequest$inboundSchema; - /** @deprecated use `AccountingCustomersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersDeleteRequest$outboundSchema; - /** @deprecated use `AccountingCustomersDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingCustomersDeleteRequest$Outbound; -} - export function accountingCustomersDeleteRequestToJSON( accountingCustomersDeleteRequest: AccountingCustomersDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingCustomersDeleteRequestToJSON( ); } -export function accountingCustomersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCustomersDeleteResponse$inboundSchema: z.ZodType< AccountingCustomersDeleteResponse, @@ -201,60 +106,6 @@ export const AccountingCustomersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCustomersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCustomerResponse?: - | components.DeleteCustomerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCustomersDeleteResponse$outboundSchema: z.ZodType< - AccountingCustomersDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingCustomersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCustomerResponse: components.DeleteCustomerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCustomerResponse: "DeleteCustomerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersDeleteResponse$ { - /** @deprecated use `AccountingCustomersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersDeleteResponse$inboundSchema; - /** @deprecated use `AccountingCustomersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingCustomersDeleteResponse$outboundSchema; - /** @deprecated use `AccountingCustomersDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingCustomersDeleteResponse$Outbound; -} - -export function accountingCustomersDeleteResponseToJSON( - accountingCustomersDeleteResponse: AccountingCustomersDeleteResponse, -): string { - return JSON.stringify( - AccountingCustomersDeleteResponse$outboundSchema.parse( - accountingCustomersDeleteResponse, - ), - ); -} - export function accountingCustomersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcustomersone.ts b/src/models/operations/accountingcustomersone.ts index e5720c8ae..7b3131c88 100644 --- a/src/models/operations/accountingcustomersone.ts +++ b/src/models/operations/accountingcustomersone.ts @@ -59,79 +59,6 @@ export type AccountingCustomersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCustomersOneGlobals$inboundSchema: z.ZodType< - AccountingCustomersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCustomersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCustomersOneGlobals$outboundSchema: z.ZodType< - AccountingCustomersOneGlobals$Outbound, - z.ZodTypeDef, - AccountingCustomersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersOneGlobals$ { - /** @deprecated use `AccountingCustomersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersOneGlobals$inboundSchema; - /** @deprecated use `AccountingCustomersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersOneGlobals$outboundSchema; - /** @deprecated use `AccountingCustomersOneGlobals$Outbound` instead. */ - export type Outbound = AccountingCustomersOneGlobals$Outbound; -} - -export function accountingCustomersOneGlobalsToJSON( - accountingCustomersOneGlobals: AccountingCustomersOneGlobals, -): string { - return JSON.stringify( - AccountingCustomersOneGlobals$outboundSchema.parse( - accountingCustomersOneGlobals, - ), - ); -} - -export function accountingCustomersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCustomersOneRequest$inboundSchema: z.ZodType< - AccountingCustomersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingCustomersOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingCustomersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersOneRequest$ { - /** @deprecated use `AccountingCustomersOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersOneRequest$inboundSchema; - /** @deprecated use `AccountingCustomersOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersOneRequest$outboundSchema; - /** @deprecated use `AccountingCustomersOneRequest$Outbound` instead. */ - export type Outbound = AccountingCustomersOneRequest$Outbound; -} - export function accountingCustomersOneRequestToJSON( accountingCustomersOneRequest: AccountingCustomersOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingCustomersOneRequestToJSON( ); } -export function accountingCustomersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCustomersOneResponse$inboundSchema: z.ZodType< AccountingCustomersOneResponse, @@ -207,56 +111,6 @@ export const AccountingCustomersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCustomersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomerResponse?: components.GetCustomerResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCustomersOneResponse$outboundSchema: z.ZodType< - AccountingCustomersOneResponse$Outbound, - z.ZodTypeDef, - AccountingCustomersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomerResponse: components.GetCustomerResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomerResponse: "GetCustomerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersOneResponse$ { - /** @deprecated use `AccountingCustomersOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersOneResponse$inboundSchema; - /** @deprecated use `AccountingCustomersOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersOneResponse$outboundSchema; - /** @deprecated use `AccountingCustomersOneResponse$Outbound` instead. */ - export type Outbound = AccountingCustomersOneResponse$Outbound; -} - -export function accountingCustomersOneResponseToJSON( - accountingCustomersOneResponse: AccountingCustomersOneResponse, -): string { - return JSON.stringify( - AccountingCustomersOneResponse$outboundSchema.parse( - accountingCustomersOneResponse, - ), - ); -} - export function accountingCustomersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingcustomersupdate.ts b/src/models/operations/accountingcustomersupdate.ts index ab45d6b6b..0aa30347d 100644 --- a/src/models/operations/accountingcustomersupdate.ts +++ b/src/models/operations/accountingcustomersupdate.ts @@ -56,83 +56,6 @@ export type AccountingCustomersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingCustomersUpdateGlobals$inboundSchema: z.ZodType< - AccountingCustomersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingCustomersUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingCustomersUpdateGlobals$outboundSchema: z.ZodType< - AccountingCustomersUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingCustomersUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersUpdateGlobals$ { - /** @deprecated use `AccountingCustomersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingCustomersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingCustomersUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingCustomersUpdateGlobals$Outbound; -} - -export function accountingCustomersUpdateGlobalsToJSON( - accountingCustomersUpdateGlobals: AccountingCustomersUpdateGlobals, -): string { - return JSON.stringify( - AccountingCustomersUpdateGlobals$outboundSchema.parse( - accountingCustomersUpdateGlobals, - ), - ); -} - -export function accountingCustomersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingCustomersUpdateRequest$inboundSchema: z.ZodType< - AccountingCustomersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Customer: components.CustomerInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Customer": "customer", - }); -}); - /** @internal */ export type AccountingCustomersUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingCustomersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersUpdateRequest$ { - /** @deprecated use `AccountingCustomersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersUpdateRequest$inboundSchema; - /** @deprecated use `AccountingCustomersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingCustomersUpdateRequest$outboundSchema; - /** @deprecated use `AccountingCustomersUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingCustomersUpdateRequest$Outbound; -} - export function accountingCustomersUpdateRequestToJSON( accountingCustomersUpdateRequest: AccountingCustomersUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingCustomersUpdateRequestToJSON( ); } -export function accountingCustomersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingCustomersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingCustomersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingCustomersUpdateResponse$inboundSchema: z.ZodType< AccountingCustomersUpdateResponse, @@ -213,60 +113,6 @@ export const AccountingCustomersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingCustomersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCustomerResponse?: - | components.UpdateCustomerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingCustomersUpdateResponse$outboundSchema: z.ZodType< - AccountingCustomersUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingCustomersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCustomerResponse: components.UpdateCustomerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCustomerResponse: "UpdateCustomerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingCustomersUpdateResponse$ { - /** @deprecated use `AccountingCustomersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingCustomersUpdateResponse$inboundSchema; - /** @deprecated use `AccountingCustomersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingCustomersUpdateResponse$outboundSchema; - /** @deprecated use `AccountingCustomersUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingCustomersUpdateResponse$Outbound; -} - -export function accountingCustomersUpdateResponseToJSON( - accountingCustomersUpdateResponse: AccountingCustomersUpdateResponse, -): string { - return JSON.stringify( - AccountingCustomersUpdateResponse$outboundSchema.parse( - accountingCustomersUpdateResponse, - ), - ); -} - export function accountingCustomersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingdepartmentsadd.ts b/src/models/operations/accountingdepartmentsadd.ts index e292a6818..59d18c935 100644 --- a/src/models/operations/accountingdepartmentsadd.ts +++ b/src/models/operations/accountingdepartmentsadd.ts @@ -54,82 +54,6 @@ export type AccountingDepartmentsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingDepartmentsAddGlobals$inboundSchema: z.ZodType< - AccountingDepartmentsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingDepartmentsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsAddGlobals$outboundSchema: z.ZodType< - AccountingDepartmentsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingDepartmentsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAddGlobals$ { - /** @deprecated use `AccountingDepartmentsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAddGlobals$inboundSchema; - /** @deprecated use `AccountingDepartmentsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAddGlobals$outboundSchema; - /** @deprecated use `AccountingDepartmentsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAddGlobals$Outbound; -} - -export function accountingDepartmentsAddGlobalsToJSON( - accountingDepartmentsAddGlobals: AccountingDepartmentsAddGlobals, -): string { - return JSON.stringify( - AccountingDepartmentsAddGlobals$outboundSchema.parse( - accountingDepartmentsAddGlobals, - ), - ); -} - -export function accountingDepartmentsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingDepartmentsAddRequest$inboundSchema: z.ZodType< - AccountingDepartmentsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - AccountingDepartment: components.AccountingDepartmentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingDepartment": "accountingDepartment", - }); -}); - /** @internal */ export type AccountingDepartmentsAddRequest$Outbound = { raw: boolean; @@ -156,19 +80,6 @@ export const AccountingDepartmentsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAddRequest$ { - /** @deprecated use `AccountingDepartmentsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAddRequest$inboundSchema; - /** @deprecated use `AccountingDepartmentsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAddRequest$outboundSchema; - /** @deprecated use `AccountingDepartmentsAddRequest$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAddRequest$Outbound; -} - export function accountingDepartmentsAddRequestToJSON( accountingDepartmentsAddRequest: AccountingDepartmentsAddRequest, ): string { @@ -179,16 +90,6 @@ export function accountingDepartmentsAddRequestToJSON( ); } -export function accountingDepartmentsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingDepartmentsAddResponse$inboundSchema: z.ZodType< AccountingDepartmentsAddResponse, @@ -208,59 +109,6 @@ export const AccountingDepartmentsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartmentsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateAccountingDepartmentResponse?: - | components.CreateAccountingDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsAddResponse$outboundSchema: z.ZodType< - AccountingDepartmentsAddResponse$Outbound, - z.ZodTypeDef, - AccountingDepartmentsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createAccountingDepartmentResponse: components - .CreateAccountingDepartmentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createAccountingDepartmentResponse: "CreateAccountingDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAddResponse$ { - /** @deprecated use `AccountingDepartmentsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAddResponse$inboundSchema; - /** @deprecated use `AccountingDepartmentsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAddResponse$outboundSchema; - /** @deprecated use `AccountingDepartmentsAddResponse$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAddResponse$Outbound; -} - -export function accountingDepartmentsAddResponseToJSON( - accountingDepartmentsAddResponse: AccountingDepartmentsAddResponse, -): string { - return JSON.stringify( - AccountingDepartmentsAddResponse$outboundSchema.parse( - accountingDepartmentsAddResponse, - ), - ); -} - export function accountingDepartmentsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingdepartmentsall.ts b/src/models/operations/accountingdepartmentsall.ts index ff471694c..76a014179 100644 --- a/src/models/operations/accountingdepartmentsall.ts +++ b/src/models/operations/accountingdepartmentsall.ts @@ -69,81 +69,6 @@ export type AccountingDepartmentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingDepartmentsAllGlobals$inboundSchema: z.ZodType< - AccountingDepartmentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingDepartmentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsAllGlobals$outboundSchema: z.ZodType< - AccountingDepartmentsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingDepartmentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAllGlobals$ { - /** @deprecated use `AccountingDepartmentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAllGlobals$inboundSchema; - /** @deprecated use `AccountingDepartmentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAllGlobals$outboundSchema; - /** @deprecated use `AccountingDepartmentsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAllGlobals$Outbound; -} - -export function accountingDepartmentsAllGlobalsToJSON( - accountingDepartmentsAllGlobals: AccountingDepartmentsAllGlobals, -): string { - return JSON.stringify( - AccountingDepartmentsAllGlobals$outboundSchema.parse( - accountingDepartmentsAllGlobals, - ), - ); -} - -export function accountingDepartmentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingDepartmentsAllRequest$inboundSchema: z.ZodType< - AccountingDepartmentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), - filter: components.AccountingDepartmentsFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingDepartmentsAllRequest$Outbound = { raw: boolean; @@ -172,19 +97,6 @@ export const AccountingDepartmentsAllRequest$outboundSchema: z.ZodType< filter: components.AccountingDepartmentsFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAllRequest$ { - /** @deprecated use `AccountingDepartmentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAllRequest$inboundSchema; - /** @deprecated use `AccountingDepartmentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAllRequest$outboundSchema; - /** @deprecated use `AccountingDepartmentsAllRequest$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAllRequest$Outbound; -} - export function accountingDepartmentsAllRequestToJSON( accountingDepartmentsAllRequest: AccountingDepartmentsAllRequest, ): string { @@ -195,16 +107,6 @@ export function accountingDepartmentsAllRequestToJSON( ); } -export function accountingDepartmentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingDepartmentsAllResponse$inboundSchema: z.ZodType< AccountingDepartmentsAllResponse, @@ -224,59 +126,6 @@ export const AccountingDepartmentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartmentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAccountingDepartmentsResponse?: - | components.GetAccountingDepartmentsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsAllResponse$outboundSchema: z.ZodType< - AccountingDepartmentsAllResponse$Outbound, - z.ZodTypeDef, - AccountingDepartmentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAccountingDepartmentsResponse: components - .GetAccountingDepartmentsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAccountingDepartmentsResponse: "GetAccountingDepartmentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsAllResponse$ { - /** @deprecated use `AccountingDepartmentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsAllResponse$inboundSchema; - /** @deprecated use `AccountingDepartmentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsAllResponse$outboundSchema; - /** @deprecated use `AccountingDepartmentsAllResponse$Outbound` instead. */ - export type Outbound = AccountingDepartmentsAllResponse$Outbound; -} - -export function accountingDepartmentsAllResponseToJSON( - accountingDepartmentsAllResponse: AccountingDepartmentsAllResponse, -): string { - return JSON.stringify( - AccountingDepartmentsAllResponse$outboundSchema.parse( - accountingDepartmentsAllResponse, - ), - ); -} - export function accountingDepartmentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingdepartmentsdelete.ts b/src/models/operations/accountingdepartmentsdelete.ts index 14dd7d30e..9e65dc826 100644 --- a/src/models/operations/accountingdepartmentsdelete.ts +++ b/src/models/operations/accountingdepartmentsdelete.ts @@ -57,80 +57,6 @@ export type AccountingDepartmentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingDepartmentsDeleteGlobals$inboundSchema: z.ZodType< - AccountingDepartmentsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingDepartmentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsDeleteGlobals$outboundSchema: z.ZodType< - AccountingDepartmentsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingDepartmentsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsDeleteGlobals$ { - /** @deprecated use `AccountingDepartmentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingDepartmentsDeleteGlobals$Outbound; -} - -export function accountingDepartmentsDeleteGlobalsToJSON( - accountingDepartmentsDeleteGlobals: AccountingDepartmentsDeleteGlobals, -): string { - return JSON.stringify( - AccountingDepartmentsDeleteGlobals$outboundSchema.parse( - accountingDepartmentsDeleteGlobals, - ), - ); -} - -export function accountingDepartmentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingDepartmentsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingDepartmentsDeleteRequest$inboundSchema: z.ZodType< - AccountingDepartmentsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingDepartmentsDeleteRequest$Outbound = { id: string; @@ -153,20 +79,6 @@ export const AccountingDepartmentsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsDeleteRequest$ { - /** @deprecated use `AccountingDepartmentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingDepartmentsDeleteRequest$Outbound; -} - export function accountingDepartmentsDeleteRequestToJSON( accountingDepartmentsDeleteRequest: AccountingDepartmentsDeleteRequest, ): string { @@ -177,17 +89,6 @@ export function accountingDepartmentsDeleteRequestToJSON( ); } -export function accountingDepartmentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingDepartmentsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingDepartmentsDeleteResponse$inboundSchema: z.ZodType< AccountingDepartmentsDeleteResponse, @@ -207,61 +108,6 @@ export const AccountingDepartmentsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartmentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteAccountingDepartmentResponse?: - | components.DeleteAccountingDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsDeleteResponse$outboundSchema: z.ZodType< - AccountingDepartmentsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingDepartmentsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteAccountingDepartmentResponse: components - .DeleteAccountingDepartmentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteAccountingDepartmentResponse: "DeleteAccountingDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsDeleteResponse$ { - /** @deprecated use `AccountingDepartmentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingDepartmentsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingDepartmentsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingDepartmentsDeleteResponse$Outbound; -} - -export function accountingDepartmentsDeleteResponseToJSON( - accountingDepartmentsDeleteResponse: AccountingDepartmentsDeleteResponse, -): string { - return JSON.stringify( - AccountingDepartmentsDeleteResponse$outboundSchema.parse( - accountingDepartmentsDeleteResponse, - ), - ); -} - export function accountingDepartmentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingdepartmentsone.ts b/src/models/operations/accountingdepartmentsone.ts index eed80662f..057518483 100644 --- a/src/models/operations/accountingdepartmentsone.ts +++ b/src/models/operations/accountingdepartmentsone.ts @@ -61,79 +61,6 @@ export type AccountingDepartmentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingDepartmentsOneGlobals$inboundSchema: z.ZodType< - AccountingDepartmentsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingDepartmentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsOneGlobals$outboundSchema: z.ZodType< - AccountingDepartmentsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingDepartmentsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsOneGlobals$ { - /** @deprecated use `AccountingDepartmentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsOneGlobals$inboundSchema; - /** @deprecated use `AccountingDepartmentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsOneGlobals$outboundSchema; - /** @deprecated use `AccountingDepartmentsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingDepartmentsOneGlobals$Outbound; -} - -export function accountingDepartmentsOneGlobalsToJSON( - accountingDepartmentsOneGlobals: AccountingDepartmentsOneGlobals, -): string { - return JSON.stringify( - AccountingDepartmentsOneGlobals$outboundSchema.parse( - accountingDepartmentsOneGlobals, - ), - ); -} - -export function accountingDepartmentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingDepartmentsOneRequest$inboundSchema: z.ZodType< - AccountingDepartmentsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingDepartmentsOneRequest$Outbound = { id: string; @@ -158,19 +85,6 @@ export const AccountingDepartmentsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsOneRequest$ { - /** @deprecated use `AccountingDepartmentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsOneRequest$inboundSchema; - /** @deprecated use `AccountingDepartmentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsOneRequest$outboundSchema; - /** @deprecated use `AccountingDepartmentsOneRequest$Outbound` instead. */ - export type Outbound = AccountingDepartmentsOneRequest$Outbound; -} - export function accountingDepartmentsOneRequestToJSON( accountingDepartmentsOneRequest: AccountingDepartmentsOneRequest, ): string { @@ -181,16 +95,6 @@ export function accountingDepartmentsOneRequestToJSON( ); } -export function accountingDepartmentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingDepartmentsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingDepartmentsOneResponse$inboundSchema: z.ZodType< AccountingDepartmentsOneResponse, @@ -210,59 +114,6 @@ export const AccountingDepartmentsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartmentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAccountingDepartmentResponse?: - | components.GetAccountingDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsOneResponse$outboundSchema: z.ZodType< - AccountingDepartmentsOneResponse$Outbound, - z.ZodTypeDef, - AccountingDepartmentsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAccountingDepartmentResponse: components - .GetAccountingDepartmentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAccountingDepartmentResponse: "GetAccountingDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsOneResponse$ { - /** @deprecated use `AccountingDepartmentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsOneResponse$inboundSchema; - /** @deprecated use `AccountingDepartmentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingDepartmentsOneResponse$outboundSchema; - /** @deprecated use `AccountingDepartmentsOneResponse$Outbound` instead. */ - export type Outbound = AccountingDepartmentsOneResponse$Outbound; -} - -export function accountingDepartmentsOneResponseToJSON( - accountingDepartmentsOneResponse: AccountingDepartmentsOneResponse, -): string { - return JSON.stringify( - AccountingDepartmentsOneResponse$outboundSchema.parse( - accountingDepartmentsOneResponse, - ), - ); -} - export function accountingDepartmentsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingdepartmentsupdate.ts b/src/models/operations/accountingdepartmentsupdate.ts index 5fc1018aa..6be1bb892 100644 --- a/src/models/operations/accountingdepartmentsupdate.ts +++ b/src/models/operations/accountingdepartmentsupdate.ts @@ -58,85 +58,6 @@ export type AccountingDepartmentsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingDepartmentsUpdateGlobals$inboundSchema: z.ZodType< - AccountingDepartmentsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingDepartmentsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsUpdateGlobals$outboundSchema: z.ZodType< - AccountingDepartmentsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingDepartmentsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsUpdateGlobals$ { - /** @deprecated use `AccountingDepartmentsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingDepartmentsUpdateGlobals$Outbound; -} - -export function accountingDepartmentsUpdateGlobalsToJSON( - accountingDepartmentsUpdateGlobals: AccountingDepartmentsUpdateGlobals, -): string { - return JSON.stringify( - AccountingDepartmentsUpdateGlobals$outboundSchema.parse( - accountingDepartmentsUpdateGlobals, - ), - ); -} - -export function accountingDepartmentsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingDepartmentsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingDepartmentsUpdateRequest$inboundSchema: z.ZodType< - AccountingDepartmentsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - AccountingDepartment: components.AccountingDepartmentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingDepartment": "accountingDepartment", - }); -}); - /** @internal */ export type AccountingDepartmentsUpdateRequest$Outbound = { id: string; @@ -165,20 +86,6 @@ export const AccountingDepartmentsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsUpdateRequest$ { - /** @deprecated use `AccountingDepartmentsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingDepartmentsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingDepartmentsUpdateRequest$Outbound; -} - export function accountingDepartmentsUpdateRequestToJSON( accountingDepartmentsUpdateRequest: AccountingDepartmentsUpdateRequest, ): string { @@ -189,17 +96,6 @@ export function accountingDepartmentsUpdateRequestToJSON( ); } -export function accountingDepartmentsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingDepartmentsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingDepartmentsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingDepartmentsUpdateResponse$inboundSchema: z.ZodType< AccountingDepartmentsUpdateResponse, @@ -219,61 +115,6 @@ export const AccountingDepartmentsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingDepartmentsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateAccountingDepartmentResponse?: - | components.UpdateAccountingDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingDepartmentsUpdateResponse$outboundSchema: z.ZodType< - AccountingDepartmentsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingDepartmentsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateAccountingDepartmentResponse: components - .UpdateAccountingDepartmentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateAccountingDepartmentResponse: "UpdateAccountingDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingDepartmentsUpdateResponse$ { - /** @deprecated use `AccountingDepartmentsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingDepartmentsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingDepartmentsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingDepartmentsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingDepartmentsUpdateResponse$Outbound; -} - -export function accountingDepartmentsUpdateResponseToJSON( - accountingDepartmentsUpdateResponse: AccountingDepartmentsUpdateResponse, -): string { - return JSON.stringify( - AccountingDepartmentsUpdateResponse$outboundSchema.parse( - accountingDepartmentsUpdateResponse, - ), - ); -} - export function accountingDepartmentsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingexpensesadd.ts b/src/models/operations/accountingexpensesadd.ts index f32e8727d..3eb620f44 100644 --- a/src/models/operations/accountingexpensesadd.ts +++ b/src/models/operations/accountingexpensesadd.ts @@ -52,82 +52,6 @@ export type AccountingExpensesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingExpensesAddGlobals$inboundSchema: z.ZodType< - AccountingExpensesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingExpensesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingExpensesAddGlobals$outboundSchema: z.ZodType< - AccountingExpensesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingExpensesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAddGlobals$ { - /** @deprecated use `AccountingExpensesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAddGlobals$inboundSchema; - /** @deprecated use `AccountingExpensesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAddGlobals$outboundSchema; - /** @deprecated use `AccountingExpensesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingExpensesAddGlobals$Outbound; -} - -export function accountingExpensesAddGlobalsToJSON( - accountingExpensesAddGlobals: AccountingExpensesAddGlobals, -): string { - return JSON.stringify( - AccountingExpensesAddGlobals$outboundSchema.parse( - accountingExpensesAddGlobals, - ), - ); -} - -export function accountingExpensesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingExpensesAddRequest$inboundSchema: z.ZodType< - AccountingExpensesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Expense: components.ExpenseInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Expense": "expense", - }); -}); - /** @internal */ export type AccountingExpensesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingExpensesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAddRequest$ { - /** @deprecated use `AccountingExpensesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAddRequest$inboundSchema; - /** @deprecated use `AccountingExpensesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAddRequest$outboundSchema; - /** @deprecated use `AccountingExpensesAddRequest$Outbound` instead. */ - export type Outbound = AccountingExpensesAddRequest$Outbound; -} - export function accountingExpensesAddRequestToJSON( accountingExpensesAddRequest: AccountingExpensesAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingExpensesAddRequestToJSON( ); } -export function accountingExpensesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingExpensesAddResponse$inboundSchema: z.ZodType< AccountingExpensesAddResponse, @@ -206,57 +107,6 @@ export const AccountingExpensesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingExpensesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateExpenseResponse?: components.CreateExpenseResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingExpensesAddResponse$outboundSchema: z.ZodType< - AccountingExpensesAddResponse$Outbound, - z.ZodTypeDef, - AccountingExpensesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createExpenseResponse: components.CreateExpenseResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createExpenseResponse: "CreateExpenseResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAddResponse$ { - /** @deprecated use `AccountingExpensesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAddResponse$inboundSchema; - /** @deprecated use `AccountingExpensesAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAddResponse$outboundSchema; - /** @deprecated use `AccountingExpensesAddResponse$Outbound` instead. */ - export type Outbound = AccountingExpensesAddResponse$Outbound; -} - -export function accountingExpensesAddResponseToJSON( - accountingExpensesAddResponse: AccountingExpensesAddResponse, -): string { - return JSON.stringify( - AccountingExpensesAddResponse$outboundSchema.parse( - accountingExpensesAddResponse, - ), - ); -} - export function accountingExpensesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingexpensesall.ts b/src/models/operations/accountingexpensesall.ts index 432e0217e..f7565d0c8 100644 --- a/src/models/operations/accountingexpensesall.ts +++ b/src/models/operations/accountingexpensesall.ts @@ -63,80 +63,6 @@ export type AccountingExpensesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingExpensesAllGlobals$inboundSchema: z.ZodType< - AccountingExpensesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingExpensesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingExpensesAllGlobals$outboundSchema: z.ZodType< - AccountingExpensesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingExpensesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAllGlobals$ { - /** @deprecated use `AccountingExpensesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAllGlobals$inboundSchema; - /** @deprecated use `AccountingExpensesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAllGlobals$outboundSchema; - /** @deprecated use `AccountingExpensesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingExpensesAllGlobals$Outbound; -} - -export function accountingExpensesAllGlobalsToJSON( - accountingExpensesAllGlobals: AccountingExpensesAllGlobals, -): string { - return JSON.stringify( - AccountingExpensesAllGlobals$outboundSchema.parse( - accountingExpensesAllGlobals, - ), - ); -} - -export function accountingExpensesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingExpensesAllRequest$inboundSchema: z.ZodType< - AccountingExpensesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ExpensesFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingExpensesAllRequest$Outbound = { raw: boolean; @@ -163,19 +89,6 @@ export const AccountingExpensesAllRequest$outboundSchema: z.ZodType< filter: components.ExpensesFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAllRequest$ { - /** @deprecated use `AccountingExpensesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAllRequest$inboundSchema; - /** @deprecated use `AccountingExpensesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAllRequest$outboundSchema; - /** @deprecated use `AccountingExpensesAllRequest$Outbound` instead. */ - export type Outbound = AccountingExpensesAllRequest$Outbound; -} - export function accountingExpensesAllRequestToJSON( accountingExpensesAllRequest: AccountingExpensesAllRequest, ): string { @@ -186,16 +99,6 @@ export function accountingExpensesAllRequestToJSON( ); } -export function accountingExpensesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingExpensesAllResponse$inboundSchema: z.ZodType< AccountingExpensesAllResponse, @@ -214,56 +117,6 @@ export const AccountingExpensesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingExpensesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetExpensesResponse?: components.GetExpensesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingExpensesAllResponse$outboundSchema: z.ZodType< - AccountingExpensesAllResponse$Outbound, - z.ZodTypeDef, - AccountingExpensesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getExpensesResponse: components.GetExpensesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getExpensesResponse: "GetExpensesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesAllResponse$ { - /** @deprecated use `AccountingExpensesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesAllResponse$inboundSchema; - /** @deprecated use `AccountingExpensesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesAllResponse$outboundSchema; - /** @deprecated use `AccountingExpensesAllResponse$Outbound` instead. */ - export type Outbound = AccountingExpensesAllResponse$Outbound; -} - -export function accountingExpensesAllResponseToJSON( - accountingExpensesAllResponse: AccountingExpensesAllResponse, -): string { - return JSON.stringify( - AccountingExpensesAllResponse$outboundSchema.parse( - accountingExpensesAllResponse, - ), - ); -} - export function accountingExpensesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingexpensesdelete.ts b/src/models/operations/accountingexpensesdelete.ts index a45984198..74cc4ba4f 100644 --- a/src/models/operations/accountingexpensesdelete.ts +++ b/src/models/operations/accountingexpensesdelete.ts @@ -55,78 +55,6 @@ export type AccountingExpensesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingExpensesDeleteGlobals$inboundSchema: z.ZodType< - AccountingExpensesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingExpensesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingExpensesDeleteGlobals$outboundSchema: z.ZodType< - AccountingExpensesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingExpensesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesDeleteGlobals$ { - /** @deprecated use `AccountingExpensesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingExpensesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingExpensesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingExpensesDeleteGlobals$Outbound; -} - -export function accountingExpensesDeleteGlobalsToJSON( - accountingExpensesDeleteGlobals: AccountingExpensesDeleteGlobals, -): string { - return JSON.stringify( - AccountingExpensesDeleteGlobals$outboundSchema.parse( - accountingExpensesDeleteGlobals, - ), - ); -} - -export function accountingExpensesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingExpensesDeleteRequest$inboundSchema: z.ZodType< - AccountingExpensesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingExpensesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingExpensesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesDeleteRequest$ { - /** @deprecated use `AccountingExpensesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingExpensesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingExpensesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingExpensesDeleteRequest$Outbound; -} - export function accountingExpensesDeleteRequestToJSON( accountingExpensesDeleteRequest: AccountingExpensesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingExpensesDeleteRequestToJSON( ); } -export function accountingExpensesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingExpensesDeleteResponse$inboundSchema: z.ZodType< AccountingExpensesDeleteResponse, @@ -201,57 +106,6 @@ export const AccountingExpensesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingExpensesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteExpenseResponse?: components.DeleteExpenseResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingExpensesDeleteResponse$outboundSchema: z.ZodType< - AccountingExpensesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingExpensesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteExpenseResponse: components.DeleteExpenseResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteExpenseResponse: "DeleteExpenseResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesDeleteResponse$ { - /** @deprecated use `AccountingExpensesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingExpensesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingExpensesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingExpensesDeleteResponse$Outbound; -} - -export function accountingExpensesDeleteResponseToJSON( - accountingExpensesDeleteResponse: AccountingExpensesDeleteResponse, -): string { - return JSON.stringify( - AccountingExpensesDeleteResponse$outboundSchema.parse( - accountingExpensesDeleteResponse, - ), - ); -} - export function accountingExpensesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingexpensesone.ts b/src/models/operations/accountingexpensesone.ts index 02a92d275..0e43fa7c2 100644 --- a/src/models/operations/accountingexpensesone.ts +++ b/src/models/operations/accountingexpensesone.ts @@ -55,78 +55,6 @@ export type AccountingExpensesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingExpensesOneGlobals$inboundSchema: z.ZodType< - AccountingExpensesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingExpensesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingExpensesOneGlobals$outboundSchema: z.ZodType< - AccountingExpensesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingExpensesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesOneGlobals$ { - /** @deprecated use `AccountingExpensesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesOneGlobals$inboundSchema; - /** @deprecated use `AccountingExpensesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesOneGlobals$outboundSchema; - /** @deprecated use `AccountingExpensesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingExpensesOneGlobals$Outbound; -} - -export function accountingExpensesOneGlobalsToJSON( - accountingExpensesOneGlobals: AccountingExpensesOneGlobals, -): string { - return JSON.stringify( - AccountingExpensesOneGlobals$outboundSchema.parse( - accountingExpensesOneGlobals, - ), - ); -} - -export function accountingExpensesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingExpensesOneRequest$inboundSchema: z.ZodType< - AccountingExpensesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingExpensesOneRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingExpensesOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesOneRequest$ { - /** @deprecated use `AccountingExpensesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesOneRequest$inboundSchema; - /** @deprecated use `AccountingExpensesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesOneRequest$outboundSchema; - /** @deprecated use `AccountingExpensesOneRequest$Outbound` instead. */ - export type Outbound = AccountingExpensesOneRequest$Outbound; -} - export function accountingExpensesOneRequestToJSON( accountingExpensesOneRequest: AccountingExpensesOneRequest, ): string { @@ -172,16 +87,6 @@ export function accountingExpensesOneRequestToJSON( ); } -export function accountingExpensesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingExpensesOneResponse$inboundSchema: z.ZodType< AccountingExpensesOneResponse, @@ -200,56 +105,6 @@ export const AccountingExpensesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingExpensesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetExpenseResponse?: components.GetExpenseResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingExpensesOneResponse$outboundSchema: z.ZodType< - AccountingExpensesOneResponse$Outbound, - z.ZodTypeDef, - AccountingExpensesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getExpenseResponse: components.GetExpenseResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getExpenseResponse: "GetExpenseResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesOneResponse$ { - /** @deprecated use `AccountingExpensesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesOneResponse$inboundSchema; - /** @deprecated use `AccountingExpensesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesOneResponse$outboundSchema; - /** @deprecated use `AccountingExpensesOneResponse$Outbound` instead. */ - export type Outbound = AccountingExpensesOneResponse$Outbound; -} - -export function accountingExpensesOneResponseToJSON( - accountingExpensesOneResponse: AccountingExpensesOneResponse, -): string { - return JSON.stringify( - AccountingExpensesOneResponse$outboundSchema.parse( - accountingExpensesOneResponse, - ), - ); -} - export function accountingExpensesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingexpensesupdate.ts b/src/models/operations/accountingexpensesupdate.ts index 2b33257cb..06d532f58 100644 --- a/src/models/operations/accountingexpensesupdate.ts +++ b/src/models/operations/accountingexpensesupdate.ts @@ -56,83 +56,6 @@ export type AccountingExpensesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingExpensesUpdateGlobals$inboundSchema: z.ZodType< - AccountingExpensesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingExpensesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingExpensesUpdateGlobals$outboundSchema: z.ZodType< - AccountingExpensesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingExpensesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesUpdateGlobals$ { - /** @deprecated use `AccountingExpensesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingExpensesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingExpensesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingExpensesUpdateGlobals$Outbound; -} - -export function accountingExpensesUpdateGlobalsToJSON( - accountingExpensesUpdateGlobals: AccountingExpensesUpdateGlobals, -): string { - return JSON.stringify( - AccountingExpensesUpdateGlobals$outboundSchema.parse( - accountingExpensesUpdateGlobals, - ), - ); -} - -export function accountingExpensesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingExpensesUpdateRequest$inboundSchema: z.ZodType< - AccountingExpensesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Expense: components.ExpenseInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Expense": "expense", - }); -}); - /** @internal */ export type AccountingExpensesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingExpensesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesUpdateRequest$ { - /** @deprecated use `AccountingExpensesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingExpensesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingExpensesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingExpensesUpdateRequest$Outbound; -} - export function accountingExpensesUpdateRequestToJSON( accountingExpensesUpdateRequest: AccountingExpensesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingExpensesUpdateRequestToJSON( ); } -export function accountingExpensesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingExpensesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingExpensesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingExpensesUpdateResponse$inboundSchema: z.ZodType< AccountingExpensesUpdateResponse, @@ -213,57 +113,6 @@ export const AccountingExpensesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingExpensesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateExpenseResponse?: components.UpdateExpenseResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingExpensesUpdateResponse$outboundSchema: z.ZodType< - AccountingExpensesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingExpensesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateExpenseResponse: components.UpdateExpenseResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateExpenseResponse: "UpdateExpenseResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingExpensesUpdateResponse$ { - /** @deprecated use `AccountingExpensesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingExpensesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingExpensesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingExpensesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingExpensesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingExpensesUpdateResponse$Outbound; -} - -export function accountingExpensesUpdateResponseToJSON( - accountingExpensesUpdateResponse: AccountingExpensesUpdateResponse, -): string { - return JSON.stringify( - AccountingExpensesUpdateResponse$outboundSchema.parse( - accountingExpensesUpdateResponse, - ), - ); -} - export function accountingExpensesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoiceitemsadd.ts b/src/models/operations/accountinginvoiceitemsadd.ts index 49ece463e..069604acb 100644 --- a/src/models/operations/accountinginvoiceitemsadd.ts +++ b/src/models/operations/accountinginvoiceitemsadd.ts @@ -52,82 +52,6 @@ export type AccountingInvoiceItemsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoiceItemsAddGlobals$inboundSchema: z.ZodType< - AccountingInvoiceItemsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoiceItemsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsAddGlobals$outboundSchema: z.ZodType< - AccountingInvoiceItemsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAddGlobals$ { - /** @deprecated use `AccountingInvoiceItemsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAddGlobals$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsAddGlobals$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAddGlobals$Outbound; -} - -export function accountingInvoiceItemsAddGlobalsToJSON( - accountingInvoiceItemsAddGlobals: AccountingInvoiceItemsAddGlobals, -): string { - return JSON.stringify( - AccountingInvoiceItemsAddGlobals$outboundSchema.parse( - accountingInvoiceItemsAddGlobals, - ), - ); -} - -export function accountingInvoiceItemsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoiceItemsAddRequest$inboundSchema: z.ZodType< - AccountingInvoiceItemsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - InvoiceItem: components.InvoiceItemInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "InvoiceItem": "invoiceItem", - }); -}); - /** @internal */ export type AccountingInvoiceItemsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingInvoiceItemsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAddRequest$ { - /** @deprecated use `AccountingInvoiceItemsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAddRequest$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsAddRequest$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddRequest$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAddRequest$Outbound; -} - export function accountingInvoiceItemsAddRequestToJSON( accountingInvoiceItemsAddRequest: AccountingInvoiceItemsAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingInvoiceItemsAddRequestToJSON( ); } -export function accountingInvoiceItemsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoiceItemsAddResponse$inboundSchema: z.ZodType< AccountingInvoiceItemsAddResponse, @@ -206,60 +107,6 @@ export const AccountingInvoiceItemsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoiceItemsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateInvoiceItemResponse?: - | components.CreateInvoiceItemResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsAddResponse$outboundSchema: z.ZodType< - AccountingInvoiceItemsAddResponse$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createInvoiceItemResponse: components.CreateInvoiceItemResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createInvoiceItemResponse: "CreateInvoiceItemResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAddResponse$ { - /** @deprecated use `AccountingInvoiceItemsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAddResponse$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsAddResponse$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAddResponse$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAddResponse$Outbound; -} - -export function accountingInvoiceItemsAddResponseToJSON( - accountingInvoiceItemsAddResponse: AccountingInvoiceItemsAddResponse, -): string { - return JSON.stringify( - AccountingInvoiceItemsAddResponse$outboundSchema.parse( - accountingInvoiceItemsAddResponse, - ), - ); -} - export function accountingInvoiceItemsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoiceitemsall.ts b/src/models/operations/accountinginvoiceitemsall.ts index d9c2196e9..c214e094a 100644 --- a/src/models/operations/accountinginvoiceitemsall.ts +++ b/src/models/operations/accountinginvoiceitemsall.ts @@ -75,87 +75,6 @@ export type AccountingInvoiceItemsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoiceItemsAllGlobals$inboundSchema: z.ZodType< - AccountingInvoiceItemsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoiceItemsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsAllGlobals$outboundSchema: z.ZodType< - AccountingInvoiceItemsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAllGlobals$ { - /** @deprecated use `AccountingInvoiceItemsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAllGlobals$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsAllGlobals$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAllGlobals$Outbound; -} - -export function accountingInvoiceItemsAllGlobalsToJSON( - accountingInvoiceItemsAllGlobals: AccountingInvoiceItemsAllGlobals, -): string { - return JSON.stringify( - AccountingInvoiceItemsAllGlobals$outboundSchema.parse( - accountingInvoiceItemsAllGlobals, - ), - ); -} - -export function accountingInvoiceItemsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoiceItemsAllRequest$inboundSchema: z.ZodType< - AccountingInvoiceItemsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.InvoiceItemsFilter$inboundSchema.optional(), - sort: components.InvoiceItemsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingInvoiceItemsAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingInvoiceItemsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAllRequest$ { - /** @deprecated use `AccountingInvoiceItemsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAllRequest$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsAllRequest$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllRequest$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAllRequest$Outbound; -} - export function accountingInvoiceItemsAllRequestToJSON( accountingInvoiceItemsAllRequest: AccountingInvoiceItemsAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingInvoiceItemsAllRequestToJSON( ); } -export function accountingInvoiceItemsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoiceItemsAllResponse$inboundSchema: z.ZodType< AccountingInvoiceItemsAllResponse, @@ -244,60 +140,6 @@ export const AccountingInvoiceItemsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoiceItemsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetInvoiceItemsResponse?: - | components.GetInvoiceItemsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsAllResponse$outboundSchema: z.ZodType< - AccountingInvoiceItemsAllResponse$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getInvoiceItemsResponse: components.GetInvoiceItemsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getInvoiceItemsResponse: "GetInvoiceItemsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsAllResponse$ { - /** @deprecated use `AccountingInvoiceItemsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsAllResponse$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsAllResponse$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsAllResponse$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsAllResponse$Outbound; -} - -export function accountingInvoiceItemsAllResponseToJSON( - accountingInvoiceItemsAllResponse: AccountingInvoiceItemsAllResponse, -): string { - return JSON.stringify( - AccountingInvoiceItemsAllResponse$outboundSchema.parse( - accountingInvoiceItemsAllResponse, - ), - ); -} - export function accountingInvoiceItemsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoiceitemsdelete.ts b/src/models/operations/accountinginvoiceitemsdelete.ts index 45327fdef..179fcd754 100644 --- a/src/models/operations/accountinginvoiceitemsdelete.ts +++ b/src/models/operations/accountinginvoiceitemsdelete.ts @@ -55,81 +55,6 @@ export type AccountingInvoiceItemsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoiceItemsDeleteGlobals$inboundSchema: z.ZodType< - AccountingInvoiceItemsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoiceItemsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsDeleteGlobals$outboundSchema: z.ZodType< - AccountingInvoiceItemsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsDeleteGlobals$ { - /** @deprecated use `AccountingInvoiceItemsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsDeleteGlobals$Outbound; -} - -export function accountingInvoiceItemsDeleteGlobalsToJSON( - accountingInvoiceItemsDeleteGlobals: AccountingInvoiceItemsDeleteGlobals, -): string { - return JSON.stringify( - AccountingInvoiceItemsDeleteGlobals$outboundSchema.parse( - accountingInvoiceItemsDeleteGlobals, - ), - ); -} - -export function accountingInvoiceItemsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingInvoiceItemsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoiceItemsDeleteRequest$inboundSchema: z.ZodType< - AccountingInvoiceItemsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingInvoiceItemsDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const AccountingInvoiceItemsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsDeleteRequest$ { - /** @deprecated use `AccountingInvoiceItemsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsDeleteRequest$Outbound; -} - export function accountingInvoiceItemsDeleteRequestToJSON( accountingInvoiceItemsDeleteRequest: AccountingInvoiceItemsDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function accountingInvoiceItemsDeleteRequestToJSON( ); } -export function accountingInvoiceItemsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingInvoiceItemsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoiceItemsDeleteResponse$inboundSchema: z.ZodType< AccountingInvoiceItemsDeleteResponse, @@ -207,59 +106,6 @@ export const AccountingInvoiceItemsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoiceItemsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteTaxRateResponse?: components.DeleteTaxRateResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsDeleteResponse$outboundSchema: z.ZodType< - AccountingInvoiceItemsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteTaxRateResponse: components.DeleteTaxRateResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteTaxRateResponse: "DeleteTaxRateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsDeleteResponse$ { - /** @deprecated use `AccountingInvoiceItemsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsDeleteResponse$Outbound; -} - -export function accountingInvoiceItemsDeleteResponseToJSON( - accountingInvoiceItemsDeleteResponse: AccountingInvoiceItemsDeleteResponse, -): string { - return JSON.stringify( - AccountingInvoiceItemsDeleteResponse$outboundSchema.parse( - accountingInvoiceItemsDeleteResponse, - ), - ); -} - export function accountingInvoiceItemsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoiceitemsone.ts b/src/models/operations/accountinginvoiceitemsone.ts index 755c4f9b2..192059f2a 100644 --- a/src/models/operations/accountinginvoiceitemsone.ts +++ b/src/models/operations/accountinginvoiceitemsone.ts @@ -63,80 +63,6 @@ export type AccountingInvoiceItemsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoiceItemsOneGlobals$inboundSchema: z.ZodType< - AccountingInvoiceItemsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoiceItemsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsOneGlobals$outboundSchema: z.ZodType< - AccountingInvoiceItemsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsOneGlobals$ { - /** @deprecated use `AccountingInvoiceItemsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsOneGlobals$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsOneGlobals$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsOneGlobals$Outbound; -} - -export function accountingInvoiceItemsOneGlobalsToJSON( - accountingInvoiceItemsOneGlobals: AccountingInvoiceItemsOneGlobals, -): string { - return JSON.stringify( - AccountingInvoiceItemsOneGlobals$outboundSchema.parse( - accountingInvoiceItemsOneGlobals, - ), - ); -} - -export function accountingInvoiceItemsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoiceItemsOneRequest$inboundSchema: z.ZodType< - AccountingInvoiceItemsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - filter: components.InvoiceItemFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingInvoiceItemsOneRequest$Outbound = { id: string; @@ -163,19 +89,6 @@ export const AccountingInvoiceItemsOneRequest$outboundSchema: z.ZodType< filter: components.InvoiceItemFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsOneRequest$ { - /** @deprecated use `AccountingInvoiceItemsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsOneRequest$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoiceItemsOneRequest$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneRequest$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsOneRequest$Outbound; -} - export function accountingInvoiceItemsOneRequestToJSON( accountingInvoiceItemsOneRequest: AccountingInvoiceItemsOneRequest, ): string { @@ -186,16 +99,6 @@ export function accountingInvoiceItemsOneRequestToJSON( ); } -export function accountingInvoiceItemsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoiceItemsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoiceItemsOneResponse$inboundSchema: z.ZodType< AccountingInvoiceItemsOneResponse, @@ -215,60 +118,6 @@ export const AccountingInvoiceItemsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoiceItemsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetInvoiceItemResponse?: - | components.GetInvoiceItemResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsOneResponse$outboundSchema: z.ZodType< - AccountingInvoiceItemsOneResponse$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getInvoiceItemResponse: components.GetInvoiceItemResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getInvoiceItemResponse: "GetInvoiceItemResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsOneResponse$ { - /** @deprecated use `AccountingInvoiceItemsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoiceItemsOneResponse$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsOneResponse$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsOneResponse$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsOneResponse$Outbound; -} - -export function accountingInvoiceItemsOneResponseToJSON( - accountingInvoiceItemsOneResponse: AccountingInvoiceItemsOneResponse, -): string { - return JSON.stringify( - AccountingInvoiceItemsOneResponse$outboundSchema.parse( - accountingInvoiceItemsOneResponse, - ), - ); -} - export function accountingInvoiceItemsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoiceitemsupdate.ts b/src/models/operations/accountinginvoiceitemsupdate.ts index f7c38b6c9..4c31a535c 100644 --- a/src/models/operations/accountinginvoiceitemsupdate.ts +++ b/src/models/operations/accountinginvoiceitemsupdate.ts @@ -58,86 +58,6 @@ export type AccountingInvoiceItemsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoiceItemsUpdateGlobals$inboundSchema: z.ZodType< - AccountingInvoiceItemsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoiceItemsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsUpdateGlobals$outboundSchema: z.ZodType< - AccountingInvoiceItemsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsUpdateGlobals$ { - /** @deprecated use `AccountingInvoiceItemsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsUpdateGlobals$Outbound; -} - -export function accountingInvoiceItemsUpdateGlobalsToJSON( - accountingInvoiceItemsUpdateGlobals: AccountingInvoiceItemsUpdateGlobals, -): string { - return JSON.stringify( - AccountingInvoiceItemsUpdateGlobals$outboundSchema.parse( - accountingInvoiceItemsUpdateGlobals, - ), - ); -} - -export function accountingInvoiceItemsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingInvoiceItemsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoiceItemsUpdateRequest$inboundSchema: z.ZodType< - AccountingInvoiceItemsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - InvoiceItem: components.InvoiceItemInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "InvoiceItem": "invoiceItem", - }); -}); - /** @internal */ export type AccountingInvoiceItemsUpdateRequest$Outbound = { id: string; @@ -166,21 +86,6 @@ export const AccountingInvoiceItemsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsUpdateRequest$ { - /** @deprecated use `AccountingInvoiceItemsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsUpdateRequest$Outbound; -} - export function accountingInvoiceItemsUpdateRequestToJSON( accountingInvoiceItemsUpdateRequest: AccountingInvoiceItemsUpdateRequest, ): string { @@ -191,17 +96,6 @@ export function accountingInvoiceItemsUpdateRequestToJSON( ); } -export function accountingInvoiceItemsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingInvoiceItemsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoiceItemsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoiceItemsUpdateResponse$inboundSchema: z.ZodType< AccountingInvoiceItemsUpdateResponse, @@ -221,61 +115,6 @@ export const AccountingInvoiceItemsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoiceItemsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateInvoiceItemsResponse?: - | components.UpdateInvoiceItemsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoiceItemsUpdateResponse$outboundSchema: z.ZodType< - AccountingInvoiceItemsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingInvoiceItemsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateInvoiceItemsResponse: components - .UpdateInvoiceItemsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateInvoiceItemsResponse: "UpdateInvoiceItemsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoiceItemsUpdateResponse$ { - /** @deprecated use `AccountingInvoiceItemsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingInvoiceItemsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingInvoiceItemsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingInvoiceItemsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingInvoiceItemsUpdateResponse$Outbound; -} - -export function accountingInvoiceItemsUpdateResponseToJSON( - accountingInvoiceItemsUpdateResponse: AccountingInvoiceItemsUpdateResponse, -): string { - return JSON.stringify( - AccountingInvoiceItemsUpdateResponse$outboundSchema.parse( - accountingInvoiceItemsUpdateResponse, - ), - ); -} - export function accountingInvoiceItemsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoicesadd.ts b/src/models/operations/accountinginvoicesadd.ts index 79f62a081..b464decf2 100644 --- a/src/models/operations/accountinginvoicesadd.ts +++ b/src/models/operations/accountinginvoicesadd.ts @@ -52,82 +52,6 @@ export type AccountingInvoicesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoicesAddGlobals$inboundSchema: z.ZodType< - AccountingInvoicesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoicesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoicesAddGlobals$outboundSchema: z.ZodType< - AccountingInvoicesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoicesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAddGlobals$ { - /** @deprecated use `AccountingInvoicesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAddGlobals$inboundSchema; - /** @deprecated use `AccountingInvoicesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAddGlobals$outboundSchema; - /** @deprecated use `AccountingInvoicesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoicesAddGlobals$Outbound; -} - -export function accountingInvoicesAddGlobalsToJSON( - accountingInvoicesAddGlobals: AccountingInvoicesAddGlobals, -): string { - return JSON.stringify( - AccountingInvoicesAddGlobals$outboundSchema.parse( - accountingInvoicesAddGlobals, - ), - ); -} - -export function accountingInvoicesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoicesAddRequest$inboundSchema: z.ZodType< - AccountingInvoicesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Invoice: components.InvoiceInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Invoice": "invoice", - }); -}); - /** @internal */ export type AccountingInvoicesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingInvoicesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAddRequest$ { - /** @deprecated use `AccountingInvoicesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAddRequest$inboundSchema; - /** @deprecated use `AccountingInvoicesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAddRequest$outboundSchema; - /** @deprecated use `AccountingInvoicesAddRequest$Outbound` instead. */ - export type Outbound = AccountingInvoicesAddRequest$Outbound; -} - export function accountingInvoicesAddRequestToJSON( accountingInvoicesAddRequest: AccountingInvoicesAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingInvoicesAddRequestToJSON( ); } -export function accountingInvoicesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoicesAddResponse$inboundSchema: z.ZodType< AccountingInvoicesAddResponse, @@ -206,57 +107,6 @@ export const AccountingInvoicesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoicesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateInvoiceResponse?: components.CreateInvoiceResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoicesAddResponse$outboundSchema: z.ZodType< - AccountingInvoicesAddResponse$Outbound, - z.ZodTypeDef, - AccountingInvoicesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createInvoiceResponse: components.CreateInvoiceResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createInvoiceResponse: "CreateInvoiceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAddResponse$ { - /** @deprecated use `AccountingInvoicesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAddResponse$inboundSchema; - /** @deprecated use `AccountingInvoicesAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAddResponse$outboundSchema; - /** @deprecated use `AccountingInvoicesAddResponse$Outbound` instead. */ - export type Outbound = AccountingInvoicesAddResponse$Outbound; -} - -export function accountingInvoicesAddResponseToJSON( - accountingInvoicesAddResponse: AccountingInvoicesAddResponse, -): string { - return JSON.stringify( - AccountingInvoicesAddResponse$outboundSchema.parse( - accountingInvoicesAddResponse, - ), - ); -} - export function accountingInvoicesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoicesall.ts b/src/models/operations/accountinginvoicesall.ts index ec220eca0..7b39af96b 100644 --- a/src/models/operations/accountinginvoicesall.ts +++ b/src/models/operations/accountinginvoicesall.ts @@ -75,87 +75,6 @@ export type AccountingInvoicesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoicesAllGlobals$inboundSchema: z.ZodType< - AccountingInvoicesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoicesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoicesAllGlobals$outboundSchema: z.ZodType< - AccountingInvoicesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoicesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAllGlobals$ { - /** @deprecated use `AccountingInvoicesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAllGlobals$inboundSchema; - /** @deprecated use `AccountingInvoicesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAllGlobals$outboundSchema; - /** @deprecated use `AccountingInvoicesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoicesAllGlobals$Outbound; -} - -export function accountingInvoicesAllGlobalsToJSON( - accountingInvoicesAllGlobals: AccountingInvoicesAllGlobals, -): string { - return JSON.stringify( - AccountingInvoicesAllGlobals$outboundSchema.parse( - accountingInvoicesAllGlobals, - ), - ); -} - -export function accountingInvoicesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoicesAllRequest$inboundSchema: z.ZodType< - AccountingInvoicesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.InvoicesFilter$inboundSchema.optional(), - sort: components.InvoicesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingInvoicesAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingInvoicesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAllRequest$ { - /** @deprecated use `AccountingInvoicesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAllRequest$inboundSchema; - /** @deprecated use `AccountingInvoicesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAllRequest$outboundSchema; - /** @deprecated use `AccountingInvoicesAllRequest$Outbound` instead. */ - export type Outbound = AccountingInvoicesAllRequest$Outbound; -} - export function accountingInvoicesAllRequestToJSON( accountingInvoicesAllRequest: AccountingInvoicesAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingInvoicesAllRequestToJSON( ); } -export function accountingInvoicesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoicesAllResponse$inboundSchema: z.ZodType< AccountingInvoicesAllResponse, @@ -243,56 +139,6 @@ export const AccountingInvoicesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoicesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetInvoicesResponse?: components.GetInvoicesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoicesAllResponse$outboundSchema: z.ZodType< - AccountingInvoicesAllResponse$Outbound, - z.ZodTypeDef, - AccountingInvoicesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getInvoicesResponse: components.GetInvoicesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getInvoicesResponse: "GetInvoicesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesAllResponse$ { - /** @deprecated use `AccountingInvoicesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesAllResponse$inboundSchema; - /** @deprecated use `AccountingInvoicesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesAllResponse$outboundSchema; - /** @deprecated use `AccountingInvoicesAllResponse$Outbound` instead. */ - export type Outbound = AccountingInvoicesAllResponse$Outbound; -} - -export function accountingInvoicesAllResponseToJSON( - accountingInvoicesAllResponse: AccountingInvoicesAllResponse, -): string { - return JSON.stringify( - AccountingInvoicesAllResponse$outboundSchema.parse( - accountingInvoicesAllResponse, - ), - ); -} - export function accountingInvoicesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoicesdelete.ts b/src/models/operations/accountinginvoicesdelete.ts index db64cd36a..943eb13de 100644 --- a/src/models/operations/accountinginvoicesdelete.ts +++ b/src/models/operations/accountinginvoicesdelete.ts @@ -55,78 +55,6 @@ export type AccountingInvoicesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoicesDeleteGlobals$inboundSchema: z.ZodType< - AccountingInvoicesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoicesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoicesDeleteGlobals$outboundSchema: z.ZodType< - AccountingInvoicesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoicesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesDeleteGlobals$ { - /** @deprecated use `AccountingInvoicesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingInvoicesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingInvoicesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoicesDeleteGlobals$Outbound; -} - -export function accountingInvoicesDeleteGlobalsToJSON( - accountingInvoicesDeleteGlobals: AccountingInvoicesDeleteGlobals, -): string { - return JSON.stringify( - AccountingInvoicesDeleteGlobals$outboundSchema.parse( - accountingInvoicesDeleteGlobals, - ), - ); -} - -export function accountingInvoicesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoicesDeleteRequest$inboundSchema: z.ZodType< - AccountingInvoicesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingInvoicesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingInvoicesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesDeleteRequest$ { - /** @deprecated use `AccountingInvoicesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingInvoicesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingInvoicesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingInvoicesDeleteRequest$Outbound; -} - export function accountingInvoicesDeleteRequestToJSON( accountingInvoicesDeleteRequest: AccountingInvoicesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingInvoicesDeleteRequestToJSON( ); } -export function accountingInvoicesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoicesDeleteResponse$inboundSchema: z.ZodType< AccountingInvoicesDeleteResponse, @@ -201,57 +106,6 @@ export const AccountingInvoicesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoicesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteInvoiceResponse?: components.DeleteInvoiceResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoicesDeleteResponse$outboundSchema: z.ZodType< - AccountingInvoicesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingInvoicesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteInvoiceResponse: components.DeleteInvoiceResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteInvoiceResponse: "DeleteInvoiceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesDeleteResponse$ { - /** @deprecated use `AccountingInvoicesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingInvoicesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingInvoicesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingInvoicesDeleteResponse$Outbound; -} - -export function accountingInvoicesDeleteResponseToJSON( - accountingInvoicesDeleteResponse: AccountingInvoicesDeleteResponse, -): string { - return JSON.stringify( - AccountingInvoicesDeleteResponse$outboundSchema.parse( - accountingInvoicesDeleteResponse, - ), - ); -} - export function accountingInvoicesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoicesone.ts b/src/models/operations/accountinginvoicesone.ts index c80c2c541..7e6315be4 100644 --- a/src/models/operations/accountinginvoicesone.ts +++ b/src/models/operations/accountinginvoicesone.ts @@ -59,79 +59,6 @@ export type AccountingInvoicesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoicesOneGlobals$inboundSchema: z.ZodType< - AccountingInvoicesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoicesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoicesOneGlobals$outboundSchema: z.ZodType< - AccountingInvoicesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoicesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesOneGlobals$ { - /** @deprecated use `AccountingInvoicesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesOneGlobals$inboundSchema; - /** @deprecated use `AccountingInvoicesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesOneGlobals$outboundSchema; - /** @deprecated use `AccountingInvoicesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoicesOneGlobals$Outbound; -} - -export function accountingInvoicesOneGlobalsToJSON( - accountingInvoicesOneGlobals: AccountingInvoicesOneGlobals, -): string { - return JSON.stringify( - AccountingInvoicesOneGlobals$outboundSchema.parse( - accountingInvoicesOneGlobals, - ), - ); -} - -export function accountingInvoicesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoicesOneRequest$inboundSchema: z.ZodType< - AccountingInvoicesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingInvoicesOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingInvoicesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesOneRequest$ { - /** @deprecated use `AccountingInvoicesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesOneRequest$inboundSchema; - /** @deprecated use `AccountingInvoicesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesOneRequest$outboundSchema; - /** @deprecated use `AccountingInvoicesOneRequest$Outbound` instead. */ - export type Outbound = AccountingInvoicesOneRequest$Outbound; -} - export function accountingInvoicesOneRequestToJSON( accountingInvoicesOneRequest: AccountingInvoicesOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingInvoicesOneRequestToJSON( ); } -export function accountingInvoicesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoicesOneResponse$inboundSchema: z.ZodType< AccountingInvoicesOneResponse, @@ -207,56 +111,6 @@ export const AccountingInvoicesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoicesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetInvoiceResponse?: components.GetInvoiceResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoicesOneResponse$outboundSchema: z.ZodType< - AccountingInvoicesOneResponse$Outbound, - z.ZodTypeDef, - AccountingInvoicesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getInvoiceResponse: components.GetInvoiceResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getInvoiceResponse: "GetInvoiceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesOneResponse$ { - /** @deprecated use `AccountingInvoicesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesOneResponse$inboundSchema; - /** @deprecated use `AccountingInvoicesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesOneResponse$outboundSchema; - /** @deprecated use `AccountingInvoicesOneResponse$Outbound` instead. */ - export type Outbound = AccountingInvoicesOneResponse$Outbound; -} - -export function accountingInvoicesOneResponseToJSON( - accountingInvoicesOneResponse: AccountingInvoicesOneResponse, -): string { - return JSON.stringify( - AccountingInvoicesOneResponse$outboundSchema.parse( - accountingInvoicesOneResponse, - ), - ); -} - export function accountingInvoicesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinginvoicesupdate.ts b/src/models/operations/accountinginvoicesupdate.ts index c26f30eeb..b99acc981 100644 --- a/src/models/operations/accountinginvoicesupdate.ts +++ b/src/models/operations/accountinginvoicesupdate.ts @@ -56,83 +56,6 @@ export type AccountingInvoicesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingInvoicesUpdateGlobals$inboundSchema: z.ZodType< - AccountingInvoicesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingInvoicesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingInvoicesUpdateGlobals$outboundSchema: z.ZodType< - AccountingInvoicesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingInvoicesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesUpdateGlobals$ { - /** @deprecated use `AccountingInvoicesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingInvoicesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingInvoicesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingInvoicesUpdateGlobals$Outbound; -} - -export function accountingInvoicesUpdateGlobalsToJSON( - accountingInvoicesUpdateGlobals: AccountingInvoicesUpdateGlobals, -): string { - return JSON.stringify( - AccountingInvoicesUpdateGlobals$outboundSchema.parse( - accountingInvoicesUpdateGlobals, - ), - ); -} - -export function accountingInvoicesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingInvoicesUpdateRequest$inboundSchema: z.ZodType< - AccountingInvoicesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Invoice: components.InvoiceInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Invoice": "invoice", - }); -}); - /** @internal */ export type AccountingInvoicesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingInvoicesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesUpdateRequest$ { - /** @deprecated use `AccountingInvoicesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingInvoicesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingInvoicesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingInvoicesUpdateRequest$Outbound; -} - export function accountingInvoicesUpdateRequestToJSON( accountingInvoicesUpdateRequest: AccountingInvoicesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingInvoicesUpdateRequestToJSON( ); } -export function accountingInvoicesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingInvoicesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingInvoicesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingInvoicesUpdateResponse$inboundSchema: z.ZodType< AccountingInvoicesUpdateResponse, @@ -213,57 +113,6 @@ export const AccountingInvoicesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingInvoicesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateInvoiceResponse?: components.UpdateInvoiceResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingInvoicesUpdateResponse$outboundSchema: z.ZodType< - AccountingInvoicesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingInvoicesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateInvoiceResponse: components.UpdateInvoiceResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateInvoiceResponse: "UpdateInvoiceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingInvoicesUpdateResponse$ { - /** @deprecated use `AccountingInvoicesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingInvoicesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingInvoicesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingInvoicesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingInvoicesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingInvoicesUpdateResponse$Outbound; -} - -export function accountingInvoicesUpdateResponseToJSON( - accountingInvoicesUpdateResponse: AccountingInvoicesUpdateResponse, -): string { - return JSON.stringify( - AccountingInvoicesUpdateResponse$outboundSchema.parse( - accountingInvoicesUpdateResponse, - ), - ); -} - export function accountingInvoicesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingjournalentriesadd.ts b/src/models/operations/accountingjournalentriesadd.ts index 0a39346fa..f757a64c4 100644 --- a/src/models/operations/accountingjournalentriesadd.ts +++ b/src/models/operations/accountingjournalentriesadd.ts @@ -54,84 +54,6 @@ export type AccountingJournalEntriesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingJournalEntriesAddGlobals$inboundSchema: z.ZodType< - AccountingJournalEntriesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingJournalEntriesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesAddGlobals$outboundSchema: z.ZodType< - AccountingJournalEntriesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAddGlobals$ { - /** @deprecated use `AccountingJournalEntriesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesAddGlobals$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAddGlobals$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAddGlobals$Outbound; -} - -export function accountingJournalEntriesAddGlobalsToJSON( - accountingJournalEntriesAddGlobals: AccountingJournalEntriesAddGlobals, -): string { - return JSON.stringify( - AccountingJournalEntriesAddGlobals$outboundSchema.parse( - accountingJournalEntriesAddGlobals, - ), - ); -} - -export function accountingJournalEntriesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingJournalEntriesAddRequest$inboundSchema: z.ZodType< - AccountingJournalEntriesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - JournalEntry: components.JournalEntryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "JournalEntry": "journalEntry", - }); -}); - /** @internal */ export type AccountingJournalEntriesAddRequest$Outbound = { raw: boolean; @@ -158,20 +80,6 @@ export const AccountingJournalEntriesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAddRequest$ { - /** @deprecated use `AccountingJournalEntriesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesAddRequest$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAddRequest$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAddRequest$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAddRequest$Outbound; -} - export function accountingJournalEntriesAddRequestToJSON( accountingJournalEntriesAddRequest: AccountingJournalEntriesAddRequest, ): string { @@ -182,17 +90,6 @@ export function accountingJournalEntriesAddRequestToJSON( ); } -export function accountingJournalEntriesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingJournalEntriesAddResponse$inboundSchema: z.ZodType< AccountingJournalEntriesAddResponse, @@ -212,61 +109,6 @@ export const AccountingJournalEntriesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingJournalEntriesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateJournalEntryResponse?: - | components.CreateJournalEntryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesAddResponse$outboundSchema: z.ZodType< - AccountingJournalEntriesAddResponse$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createJournalEntryResponse: components - .CreateJournalEntryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createJournalEntryResponse: "CreateJournalEntryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAddResponse$ { - /** @deprecated use `AccountingJournalEntriesAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesAddResponse$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAddResponse$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAddResponse$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAddResponse$Outbound; -} - -export function accountingJournalEntriesAddResponseToJSON( - accountingJournalEntriesAddResponse: AccountingJournalEntriesAddResponse, -): string { - return JSON.stringify( - AccountingJournalEntriesAddResponse$outboundSchema.parse( - accountingJournalEntriesAddResponse, - ), - ); -} - export function accountingJournalEntriesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingjournalentriesall.ts b/src/models/operations/accountingjournalentriesall.ts index 570ed12c5..c3b826514 100644 --- a/src/models/operations/accountingjournalentriesall.ts +++ b/src/models/operations/accountingjournalentriesall.ts @@ -75,89 +75,6 @@ export type AccountingJournalEntriesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingJournalEntriesAllGlobals$inboundSchema: z.ZodType< - AccountingJournalEntriesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingJournalEntriesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesAllGlobals$outboundSchema: z.ZodType< - AccountingJournalEntriesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAllGlobals$ { - /** @deprecated use `AccountingJournalEntriesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesAllGlobals$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAllGlobals$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAllGlobals$Outbound; -} - -export function accountingJournalEntriesAllGlobalsToJSON( - accountingJournalEntriesAllGlobals: AccountingJournalEntriesAllGlobals, -): string { - return JSON.stringify( - AccountingJournalEntriesAllGlobals$outboundSchema.parse( - accountingJournalEntriesAllGlobals, - ), - ); -} - -export function accountingJournalEntriesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingJournalEntriesAllRequest$inboundSchema: z.ZodType< - AccountingJournalEntriesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.JournalEntriesFilter$inboundSchema.optional(), - sort: components.JournalEntriesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingJournalEntriesAllRequest$Outbound = { raw: boolean; @@ -194,20 +111,6 @@ export const AccountingJournalEntriesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAllRequest$ { - /** @deprecated use `AccountingJournalEntriesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesAllRequest$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAllRequest$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAllRequest$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAllRequest$Outbound; -} - export function accountingJournalEntriesAllRequestToJSON( accountingJournalEntriesAllRequest: AccountingJournalEntriesAllRequest, ): string { @@ -218,17 +121,6 @@ export function accountingJournalEntriesAllRequestToJSON( ); } -export function accountingJournalEntriesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingJournalEntriesAllResponse$inboundSchema: z.ZodType< AccountingJournalEntriesAllResponse, @@ -248,61 +140,6 @@ export const AccountingJournalEntriesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingJournalEntriesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetJournalEntriesResponse?: - | components.GetJournalEntriesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesAllResponse$outboundSchema: z.ZodType< - AccountingJournalEntriesAllResponse$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getJournalEntriesResponse: components.GetJournalEntriesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getJournalEntriesResponse: "GetJournalEntriesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesAllResponse$ { - /** @deprecated use `AccountingJournalEntriesAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesAllResponse$inboundSchema; - /** @deprecated use `AccountingJournalEntriesAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesAllResponse$outboundSchema; - /** @deprecated use `AccountingJournalEntriesAllResponse$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesAllResponse$Outbound; -} - -export function accountingJournalEntriesAllResponseToJSON( - accountingJournalEntriesAllResponse: AccountingJournalEntriesAllResponse, -): string { - return JSON.stringify( - AccountingJournalEntriesAllResponse$outboundSchema.parse( - accountingJournalEntriesAllResponse, - ), - ); -} - export function accountingJournalEntriesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingjournalentriesdelete.ts b/src/models/operations/accountingjournalentriesdelete.ts index a0a7859d9..0fe51bcae 100644 --- a/src/models/operations/accountingjournalentriesdelete.ts +++ b/src/models/operations/accountingjournalentriesdelete.ts @@ -57,81 +57,6 @@ export type AccountingJournalEntriesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingJournalEntriesDeleteGlobals$inboundSchema: z.ZodType< - AccountingJournalEntriesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingJournalEntriesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesDeleteGlobals$outboundSchema: z.ZodType< - AccountingJournalEntriesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesDeleteGlobals$ { - /** @deprecated use `AccountingJournalEntriesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesDeleteGlobals$Outbound; -} - -export function accountingJournalEntriesDeleteGlobalsToJSON( - accountingJournalEntriesDeleteGlobals: AccountingJournalEntriesDeleteGlobals, -): string { - return JSON.stringify( - AccountingJournalEntriesDeleteGlobals$outboundSchema.parse( - accountingJournalEntriesDeleteGlobals, - ), - ); -} - -export function accountingJournalEntriesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingJournalEntriesDeleteRequest$inboundSchema: z.ZodType< - AccountingJournalEntriesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingJournalEntriesDeleteRequest$Outbound = { id: string; @@ -154,21 +79,6 @@ export const AccountingJournalEntriesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesDeleteRequest$ { - /** @deprecated use `AccountingJournalEntriesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesDeleteRequest$Outbound; -} - export function accountingJournalEntriesDeleteRequestToJSON( accountingJournalEntriesDeleteRequest: AccountingJournalEntriesDeleteRequest, ): string { @@ -179,17 +89,6 @@ export function accountingJournalEntriesDeleteRequestToJSON( ); } -export function accountingJournalEntriesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingJournalEntriesDeleteResponse$inboundSchema: z.ZodType< AccountingJournalEntriesDeleteResponse, @@ -209,62 +108,6 @@ export const AccountingJournalEntriesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingJournalEntriesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteJournalEntryResponse?: - | components.DeleteJournalEntryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesDeleteResponse$outboundSchema: z.ZodType< - AccountingJournalEntriesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteJournalEntryResponse: components - .DeleteJournalEntryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteJournalEntryResponse: "DeleteJournalEntryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesDeleteResponse$ { - /** @deprecated use `AccountingJournalEntriesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingJournalEntriesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesDeleteResponse$Outbound; -} - -export function accountingJournalEntriesDeleteResponseToJSON( - accountingJournalEntriesDeleteResponse: - AccountingJournalEntriesDeleteResponse, -): string { - return JSON.stringify( - AccountingJournalEntriesDeleteResponse$outboundSchema.parse( - accountingJournalEntriesDeleteResponse, - ), - ); -} - export function accountingJournalEntriesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingjournalentriesone.ts b/src/models/operations/accountingjournalentriesone.ts index bd690c204..52ca082c6 100644 --- a/src/models/operations/accountingjournalentriesone.ts +++ b/src/models/operations/accountingjournalentriesone.ts @@ -59,81 +59,6 @@ export type AccountingJournalEntriesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingJournalEntriesOneGlobals$inboundSchema: z.ZodType< - AccountingJournalEntriesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingJournalEntriesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesOneGlobals$outboundSchema: z.ZodType< - AccountingJournalEntriesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesOneGlobals$ { - /** @deprecated use `AccountingJournalEntriesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesOneGlobals$inboundSchema; - /** @deprecated use `AccountingJournalEntriesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesOneGlobals$outboundSchema; - /** @deprecated use `AccountingJournalEntriesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesOneGlobals$Outbound; -} - -export function accountingJournalEntriesOneGlobalsToJSON( - accountingJournalEntriesOneGlobals: AccountingJournalEntriesOneGlobals, -): string { - return JSON.stringify( - AccountingJournalEntriesOneGlobals$outboundSchema.parse( - accountingJournalEntriesOneGlobals, - ), - ); -} - -export function accountingJournalEntriesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingJournalEntriesOneRequest$inboundSchema: z.ZodType< - AccountingJournalEntriesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingJournalEntriesOneRequest$Outbound = { id: string; @@ -158,20 +83,6 @@ export const AccountingJournalEntriesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesOneRequest$ { - /** @deprecated use `AccountingJournalEntriesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingJournalEntriesOneRequest$inboundSchema; - /** @deprecated use `AccountingJournalEntriesOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesOneRequest$outboundSchema; - /** @deprecated use `AccountingJournalEntriesOneRequest$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesOneRequest$Outbound; -} - export function accountingJournalEntriesOneRequestToJSON( accountingJournalEntriesOneRequest: AccountingJournalEntriesOneRequest, ): string { @@ -182,17 +93,6 @@ export function accountingJournalEntriesOneRequestToJSON( ); } -export function accountingJournalEntriesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingJournalEntriesOneResponse$inboundSchema: z.ZodType< AccountingJournalEntriesOneResponse, @@ -212,61 +112,6 @@ export const AccountingJournalEntriesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingJournalEntriesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetJournalEntryResponse?: - | components.GetJournalEntryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesOneResponse$outboundSchema: z.ZodType< - AccountingJournalEntriesOneResponse$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getJournalEntryResponse: components.GetJournalEntryResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getJournalEntryResponse: "GetJournalEntryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesOneResponse$ { - /** @deprecated use `AccountingJournalEntriesOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesOneResponse$inboundSchema; - /** @deprecated use `AccountingJournalEntriesOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesOneResponse$outboundSchema; - /** @deprecated use `AccountingJournalEntriesOneResponse$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesOneResponse$Outbound; -} - -export function accountingJournalEntriesOneResponseToJSON( - accountingJournalEntriesOneResponse: AccountingJournalEntriesOneResponse, -): string { - return JSON.stringify( - AccountingJournalEntriesOneResponse$outboundSchema.parse( - accountingJournalEntriesOneResponse, - ), - ); -} - export function accountingJournalEntriesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingjournalentriesupdate.ts b/src/models/operations/accountingjournalentriesupdate.ts index 8b5da4f32..f3b7cd29c 100644 --- a/src/models/operations/accountingjournalentriesupdate.ts +++ b/src/models/operations/accountingjournalentriesupdate.ts @@ -58,86 +58,6 @@ export type AccountingJournalEntriesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingJournalEntriesUpdateGlobals$inboundSchema: z.ZodType< - AccountingJournalEntriesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingJournalEntriesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesUpdateGlobals$outboundSchema: z.ZodType< - AccountingJournalEntriesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesUpdateGlobals$ { - /** @deprecated use `AccountingJournalEntriesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesUpdateGlobals$Outbound; -} - -export function accountingJournalEntriesUpdateGlobalsToJSON( - accountingJournalEntriesUpdateGlobals: AccountingJournalEntriesUpdateGlobals, -): string { - return JSON.stringify( - AccountingJournalEntriesUpdateGlobals$outboundSchema.parse( - accountingJournalEntriesUpdateGlobals, - ), - ); -} - -export function accountingJournalEntriesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingJournalEntriesUpdateRequest$inboundSchema: z.ZodType< - AccountingJournalEntriesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - JournalEntry: components.JournalEntryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "JournalEntry": "journalEntry", - }); -}); - /** @internal */ export type AccountingJournalEntriesUpdateRequest$Outbound = { id: string; @@ -166,21 +86,6 @@ export const AccountingJournalEntriesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesUpdateRequest$ { - /** @deprecated use `AccountingJournalEntriesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesUpdateRequest$Outbound; -} - export function accountingJournalEntriesUpdateRequestToJSON( accountingJournalEntriesUpdateRequest: AccountingJournalEntriesUpdateRequest, ): string { @@ -191,17 +96,6 @@ export function accountingJournalEntriesUpdateRequestToJSON( ); } -export function accountingJournalEntriesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingJournalEntriesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingJournalEntriesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingJournalEntriesUpdateResponse$inboundSchema: z.ZodType< AccountingJournalEntriesUpdateResponse, @@ -221,62 +115,6 @@ export const AccountingJournalEntriesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingJournalEntriesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateJournalEntryResponse?: - | components.UpdateJournalEntryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingJournalEntriesUpdateResponse$outboundSchema: z.ZodType< - AccountingJournalEntriesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingJournalEntriesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateJournalEntryResponse: components - .UpdateJournalEntryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateJournalEntryResponse: "UpdateJournalEntryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingJournalEntriesUpdateResponse$ { - /** @deprecated use `AccountingJournalEntriesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingJournalEntriesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingJournalEntriesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingJournalEntriesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingJournalEntriesUpdateResponse$Outbound; -} - -export function accountingJournalEntriesUpdateResponseToJSON( - accountingJournalEntriesUpdateResponse: - AccountingJournalEntriesUpdateResponse, -): string { - return JSON.stringify( - AccountingJournalEntriesUpdateResponse$outboundSchema.parse( - accountingJournalEntriesUpdateResponse, - ), - ); -} - export function accountingJournalEntriesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingledgeraccountsadd.ts b/src/models/operations/accountingledgeraccountsadd.ts index f32a89e08..9487c4cd0 100644 --- a/src/models/operations/accountingledgeraccountsadd.ts +++ b/src/models/operations/accountingledgeraccountsadd.ts @@ -54,84 +54,6 @@ export type AccountingLedgerAccountsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLedgerAccountsAddGlobals$inboundSchema: z.ZodType< - AccountingLedgerAccountsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLedgerAccountsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsAddGlobals$outboundSchema: z.ZodType< - AccountingLedgerAccountsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAddGlobals$ { - /** @deprecated use `AccountingLedgerAccountsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsAddGlobals$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAddGlobals$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAddGlobals$Outbound; -} - -export function accountingLedgerAccountsAddGlobalsToJSON( - accountingLedgerAccountsAddGlobals: AccountingLedgerAccountsAddGlobals, -): string { - return JSON.stringify( - AccountingLedgerAccountsAddGlobals$outboundSchema.parse( - accountingLedgerAccountsAddGlobals, - ), - ); -} - -export function accountingLedgerAccountsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLedgerAccountsAddRequest$inboundSchema: z.ZodType< - AccountingLedgerAccountsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - LedgerAccount: components.LedgerAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "LedgerAccount": "ledgerAccount", - }); -}); - /** @internal */ export type AccountingLedgerAccountsAddRequest$Outbound = { raw: boolean; @@ -158,20 +80,6 @@ export const AccountingLedgerAccountsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAddRequest$ { - /** @deprecated use `AccountingLedgerAccountsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsAddRequest$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAddRequest$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddRequest$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAddRequest$Outbound; -} - export function accountingLedgerAccountsAddRequestToJSON( accountingLedgerAccountsAddRequest: AccountingLedgerAccountsAddRequest, ): string { @@ -182,17 +90,6 @@ export function accountingLedgerAccountsAddRequestToJSON( ); } -export function accountingLedgerAccountsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLedgerAccountsAddResponse$inboundSchema: z.ZodType< AccountingLedgerAccountsAddResponse, @@ -212,61 +109,6 @@ export const AccountingLedgerAccountsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLedgerAccountsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateLedgerAccountResponse?: - | components.CreateLedgerAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsAddResponse$outboundSchema: z.ZodType< - AccountingLedgerAccountsAddResponse$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createLedgerAccountResponse: components - .CreateLedgerAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createLedgerAccountResponse: "CreateLedgerAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAddResponse$ { - /** @deprecated use `AccountingLedgerAccountsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsAddResponse$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAddResponse$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAddResponse$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAddResponse$Outbound; -} - -export function accountingLedgerAccountsAddResponseToJSON( - accountingLedgerAccountsAddResponse: AccountingLedgerAccountsAddResponse, -): string { - return JSON.stringify( - AccountingLedgerAccountsAddResponse$outboundSchema.parse( - accountingLedgerAccountsAddResponse, - ), - ); -} - export function accountingLedgerAccountsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingledgeraccountsall.ts b/src/models/operations/accountingledgeraccountsall.ts index 3c5506942..df56fad3a 100644 --- a/src/models/operations/accountingledgeraccountsall.ts +++ b/src/models/operations/accountingledgeraccountsall.ts @@ -75,89 +75,6 @@ export type AccountingLedgerAccountsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLedgerAccountsAllGlobals$inboundSchema: z.ZodType< - AccountingLedgerAccountsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLedgerAccountsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsAllGlobals$outboundSchema: z.ZodType< - AccountingLedgerAccountsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAllGlobals$ { - /** @deprecated use `AccountingLedgerAccountsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsAllGlobals$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAllGlobals$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAllGlobals$Outbound; -} - -export function accountingLedgerAccountsAllGlobalsToJSON( - accountingLedgerAccountsAllGlobals: AccountingLedgerAccountsAllGlobals, -): string { - return JSON.stringify( - AccountingLedgerAccountsAllGlobals$outboundSchema.parse( - accountingLedgerAccountsAllGlobals, - ), - ); -} - -export function accountingLedgerAccountsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLedgerAccountsAllRequest$inboundSchema: z.ZodType< - AccountingLedgerAccountsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.LedgerAccountsFilter$inboundSchema.optional(), - sort: components.LedgerAccountsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingLedgerAccountsAllRequest$Outbound = { raw: boolean; @@ -194,20 +111,6 @@ export const AccountingLedgerAccountsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAllRequest$ { - /** @deprecated use `AccountingLedgerAccountsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsAllRequest$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAllRequest$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllRequest$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAllRequest$Outbound; -} - export function accountingLedgerAccountsAllRequestToJSON( accountingLedgerAccountsAllRequest: AccountingLedgerAccountsAllRequest, ): string { @@ -218,17 +121,6 @@ export function accountingLedgerAccountsAllRequestToJSON( ); } -export function accountingLedgerAccountsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLedgerAccountsAllResponse$inboundSchema: z.ZodType< AccountingLedgerAccountsAllResponse, @@ -248,61 +140,6 @@ export const AccountingLedgerAccountsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLedgerAccountsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetLedgerAccountsResponse?: - | components.GetLedgerAccountsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsAllResponse$outboundSchema: z.ZodType< - AccountingLedgerAccountsAllResponse$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getLedgerAccountsResponse: components.GetLedgerAccountsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getLedgerAccountsResponse: "GetLedgerAccountsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsAllResponse$ { - /** @deprecated use `AccountingLedgerAccountsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsAllResponse$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsAllResponse$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsAllResponse$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsAllResponse$Outbound; -} - -export function accountingLedgerAccountsAllResponseToJSON( - accountingLedgerAccountsAllResponse: AccountingLedgerAccountsAllResponse, -): string { - return JSON.stringify( - AccountingLedgerAccountsAllResponse$outboundSchema.parse( - accountingLedgerAccountsAllResponse, - ), - ); -} - export function accountingLedgerAccountsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingledgeraccountsdelete.ts b/src/models/operations/accountingledgeraccountsdelete.ts index ea5b25d68..da69ad0fc 100644 --- a/src/models/operations/accountingledgeraccountsdelete.ts +++ b/src/models/operations/accountingledgeraccountsdelete.ts @@ -57,81 +57,6 @@ export type AccountingLedgerAccountsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLedgerAccountsDeleteGlobals$inboundSchema: z.ZodType< - AccountingLedgerAccountsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLedgerAccountsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsDeleteGlobals$outboundSchema: z.ZodType< - AccountingLedgerAccountsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsDeleteGlobals$ { - /** @deprecated use `AccountingLedgerAccountsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsDeleteGlobals$Outbound; -} - -export function accountingLedgerAccountsDeleteGlobalsToJSON( - accountingLedgerAccountsDeleteGlobals: AccountingLedgerAccountsDeleteGlobals, -): string { - return JSON.stringify( - AccountingLedgerAccountsDeleteGlobals$outboundSchema.parse( - accountingLedgerAccountsDeleteGlobals, - ), - ); -} - -export function accountingLedgerAccountsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLedgerAccountsDeleteRequest$inboundSchema: z.ZodType< - AccountingLedgerAccountsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingLedgerAccountsDeleteRequest$Outbound = { id: string; @@ -154,21 +79,6 @@ export const AccountingLedgerAccountsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsDeleteRequest$ { - /** @deprecated use `AccountingLedgerAccountsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsDeleteRequest$Outbound; -} - export function accountingLedgerAccountsDeleteRequestToJSON( accountingLedgerAccountsDeleteRequest: AccountingLedgerAccountsDeleteRequest, ): string { @@ -179,17 +89,6 @@ export function accountingLedgerAccountsDeleteRequestToJSON( ); } -export function accountingLedgerAccountsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLedgerAccountsDeleteResponse$inboundSchema: z.ZodType< AccountingLedgerAccountsDeleteResponse, @@ -209,62 +108,6 @@ export const AccountingLedgerAccountsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLedgerAccountsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteLedgerAccountResponse?: - | components.DeleteLedgerAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsDeleteResponse$outboundSchema: z.ZodType< - AccountingLedgerAccountsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteLedgerAccountResponse: components - .DeleteLedgerAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteLedgerAccountResponse: "DeleteLedgerAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsDeleteResponse$ { - /** @deprecated use `AccountingLedgerAccountsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsDeleteResponse$Outbound; -} - -export function accountingLedgerAccountsDeleteResponseToJSON( - accountingLedgerAccountsDeleteResponse: - AccountingLedgerAccountsDeleteResponse, -): string { - return JSON.stringify( - AccountingLedgerAccountsDeleteResponse$outboundSchema.parse( - accountingLedgerAccountsDeleteResponse, - ), - ); -} - export function accountingLedgerAccountsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingledgeraccountsone.ts b/src/models/operations/accountingledgeraccountsone.ts index 8828d0ec3..2c1ed3f3f 100644 --- a/src/models/operations/accountingledgeraccountsone.ts +++ b/src/models/operations/accountingledgeraccountsone.ts @@ -59,81 +59,6 @@ export type AccountingLedgerAccountsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLedgerAccountsOneGlobals$inboundSchema: z.ZodType< - AccountingLedgerAccountsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLedgerAccountsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsOneGlobals$outboundSchema: z.ZodType< - AccountingLedgerAccountsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsOneGlobals$ { - /** @deprecated use `AccountingLedgerAccountsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsOneGlobals$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsOneGlobals$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsOneGlobals$Outbound; -} - -export function accountingLedgerAccountsOneGlobalsToJSON( - accountingLedgerAccountsOneGlobals: AccountingLedgerAccountsOneGlobals, -): string { - return JSON.stringify( - AccountingLedgerAccountsOneGlobals$outboundSchema.parse( - accountingLedgerAccountsOneGlobals, - ), - ); -} - -export function accountingLedgerAccountsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLedgerAccountsOneRequest$inboundSchema: z.ZodType< - AccountingLedgerAccountsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingLedgerAccountsOneRequest$Outbound = { id: string; @@ -158,20 +83,6 @@ export const AccountingLedgerAccountsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsOneRequest$ { - /** @deprecated use `AccountingLedgerAccountsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLedgerAccountsOneRequest$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsOneRequest$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneRequest$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsOneRequest$Outbound; -} - export function accountingLedgerAccountsOneRequestToJSON( accountingLedgerAccountsOneRequest: AccountingLedgerAccountsOneRequest, ): string { @@ -182,17 +93,6 @@ export function accountingLedgerAccountsOneRequestToJSON( ); } -export function accountingLedgerAccountsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLedgerAccountsOneResponse$inboundSchema: z.ZodType< AccountingLedgerAccountsOneResponse, @@ -212,61 +112,6 @@ export const AccountingLedgerAccountsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLedgerAccountsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetLedgerAccountResponse?: - | components.GetLedgerAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsOneResponse$outboundSchema: z.ZodType< - AccountingLedgerAccountsOneResponse$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getLedgerAccountResponse: components.GetLedgerAccountResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getLedgerAccountResponse: "GetLedgerAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsOneResponse$ { - /** @deprecated use `AccountingLedgerAccountsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsOneResponse$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsOneResponse$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsOneResponse$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsOneResponse$Outbound; -} - -export function accountingLedgerAccountsOneResponseToJSON( - accountingLedgerAccountsOneResponse: AccountingLedgerAccountsOneResponse, -): string { - return JSON.stringify( - AccountingLedgerAccountsOneResponse$outboundSchema.parse( - accountingLedgerAccountsOneResponse, - ), - ); -} - export function accountingLedgerAccountsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingledgeraccountsupdate.ts b/src/models/operations/accountingledgeraccountsupdate.ts index 02e7aadbf..a4fac20e1 100644 --- a/src/models/operations/accountingledgeraccountsupdate.ts +++ b/src/models/operations/accountingledgeraccountsupdate.ts @@ -58,86 +58,6 @@ export type AccountingLedgerAccountsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLedgerAccountsUpdateGlobals$inboundSchema: z.ZodType< - AccountingLedgerAccountsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLedgerAccountsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsUpdateGlobals$outboundSchema: z.ZodType< - AccountingLedgerAccountsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsUpdateGlobals$ { - /** @deprecated use `AccountingLedgerAccountsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsUpdateGlobals$Outbound; -} - -export function accountingLedgerAccountsUpdateGlobalsToJSON( - accountingLedgerAccountsUpdateGlobals: AccountingLedgerAccountsUpdateGlobals, -): string { - return JSON.stringify( - AccountingLedgerAccountsUpdateGlobals$outboundSchema.parse( - accountingLedgerAccountsUpdateGlobals, - ), - ); -} - -export function accountingLedgerAccountsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLedgerAccountsUpdateRequest$inboundSchema: z.ZodType< - AccountingLedgerAccountsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - LedgerAccount: components.LedgerAccountInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "LedgerAccount": "ledgerAccount", - }); -}); - /** @internal */ export type AccountingLedgerAccountsUpdateRequest$Outbound = { id: string; @@ -166,21 +86,6 @@ export const AccountingLedgerAccountsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsUpdateRequest$ { - /** @deprecated use `AccountingLedgerAccountsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsUpdateRequest$Outbound; -} - export function accountingLedgerAccountsUpdateRequestToJSON( accountingLedgerAccountsUpdateRequest: AccountingLedgerAccountsUpdateRequest, ): string { @@ -191,17 +96,6 @@ export function accountingLedgerAccountsUpdateRequestToJSON( ); } -export function accountingLedgerAccountsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingLedgerAccountsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLedgerAccountsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLedgerAccountsUpdateResponse$inboundSchema: z.ZodType< AccountingLedgerAccountsUpdateResponse, @@ -221,62 +115,6 @@ export const AccountingLedgerAccountsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLedgerAccountsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateLedgerAccountResponse?: - | components.UpdateLedgerAccountResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLedgerAccountsUpdateResponse$outboundSchema: z.ZodType< - AccountingLedgerAccountsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingLedgerAccountsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateLedgerAccountResponse: components - .UpdateLedgerAccountResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateLedgerAccountResponse: "UpdateLedgerAccountResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLedgerAccountsUpdateResponse$ { - /** @deprecated use `AccountingLedgerAccountsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingLedgerAccountsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLedgerAccountsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingLedgerAccountsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingLedgerAccountsUpdateResponse$Outbound; -} - -export function accountingLedgerAccountsUpdateResponseToJSON( - accountingLedgerAccountsUpdateResponse: - AccountingLedgerAccountsUpdateResponse, -): string { - return JSON.stringify( - AccountingLedgerAccountsUpdateResponse$outboundSchema.parse( - accountingLedgerAccountsUpdateResponse, - ), - ); -} - export function accountingLedgerAccountsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinglocationsadd.ts b/src/models/operations/accountinglocationsadd.ts index b760e41fa..b7eb96413 100644 --- a/src/models/operations/accountinglocationsadd.ts +++ b/src/models/operations/accountinglocationsadd.ts @@ -54,82 +54,6 @@ export type AccountingLocationsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLocationsAddGlobals$inboundSchema: z.ZodType< - AccountingLocationsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLocationsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLocationsAddGlobals$outboundSchema: z.ZodType< - AccountingLocationsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingLocationsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAddGlobals$ { - /** @deprecated use `AccountingLocationsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAddGlobals$inboundSchema; - /** @deprecated use `AccountingLocationsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAddGlobals$outboundSchema; - /** @deprecated use `AccountingLocationsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingLocationsAddGlobals$Outbound; -} - -export function accountingLocationsAddGlobalsToJSON( - accountingLocationsAddGlobals: AccountingLocationsAddGlobals, -): string { - return JSON.stringify( - AccountingLocationsAddGlobals$outboundSchema.parse( - accountingLocationsAddGlobals, - ), - ); -} - -export function accountingLocationsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLocationsAddRequest$inboundSchema: z.ZodType< - AccountingLocationsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - AccountingLocation: components.AccountingLocationInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingLocation": "accountingLocation", - }); -}); - /** @internal */ export type AccountingLocationsAddRequest$Outbound = { raw: boolean; @@ -156,19 +80,6 @@ export const AccountingLocationsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAddRequest$ { - /** @deprecated use `AccountingLocationsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAddRequest$inboundSchema; - /** @deprecated use `AccountingLocationsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAddRequest$outboundSchema; - /** @deprecated use `AccountingLocationsAddRequest$Outbound` instead. */ - export type Outbound = AccountingLocationsAddRequest$Outbound; -} - export function accountingLocationsAddRequestToJSON( accountingLocationsAddRequest: AccountingLocationsAddRequest, ): string { @@ -179,16 +90,6 @@ export function accountingLocationsAddRequestToJSON( ); } -export function accountingLocationsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLocationsAddResponse$inboundSchema: z.ZodType< AccountingLocationsAddResponse, @@ -208,59 +109,6 @@ export const AccountingLocationsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocationsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateAccountingLocationResponse?: - | components.CreateAccountingLocationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLocationsAddResponse$outboundSchema: z.ZodType< - AccountingLocationsAddResponse$Outbound, - z.ZodTypeDef, - AccountingLocationsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createAccountingLocationResponse: components - .CreateAccountingLocationResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createAccountingLocationResponse: "CreateAccountingLocationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAddResponse$ { - /** @deprecated use `AccountingLocationsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAddResponse$inboundSchema; - /** @deprecated use `AccountingLocationsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAddResponse$outboundSchema; - /** @deprecated use `AccountingLocationsAddResponse$Outbound` instead. */ - export type Outbound = AccountingLocationsAddResponse$Outbound; -} - -export function accountingLocationsAddResponseToJSON( - accountingLocationsAddResponse: AccountingLocationsAddResponse, -): string { - return JSON.stringify( - AccountingLocationsAddResponse$outboundSchema.parse( - accountingLocationsAddResponse, - ), - ); -} - export function accountingLocationsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinglocationsall.ts b/src/models/operations/accountinglocationsall.ts index ff86d8298..69dfec47f 100644 --- a/src/models/operations/accountinglocationsall.ts +++ b/src/models/operations/accountinglocationsall.ts @@ -69,81 +69,6 @@ export type AccountingLocationsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLocationsAllGlobals$inboundSchema: z.ZodType< - AccountingLocationsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLocationsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLocationsAllGlobals$outboundSchema: z.ZodType< - AccountingLocationsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingLocationsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAllGlobals$ { - /** @deprecated use `AccountingLocationsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAllGlobals$inboundSchema; - /** @deprecated use `AccountingLocationsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAllGlobals$outboundSchema; - /** @deprecated use `AccountingLocationsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingLocationsAllGlobals$Outbound; -} - -export function accountingLocationsAllGlobalsToJSON( - accountingLocationsAllGlobals: AccountingLocationsAllGlobals, -): string { - return JSON.stringify( - AccountingLocationsAllGlobals$outboundSchema.parse( - accountingLocationsAllGlobals, - ), - ); -} - -export function accountingLocationsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLocationsAllRequest$inboundSchema: z.ZodType< - AccountingLocationsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), - filter: components.AccountingLocationsFilter$inboundSchema.optional(), -}); - /** @internal */ export type AccountingLocationsAllRequest$Outbound = { raw: boolean; @@ -172,19 +97,6 @@ export const AccountingLocationsAllRequest$outboundSchema: z.ZodType< filter: components.AccountingLocationsFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAllRequest$ { - /** @deprecated use `AccountingLocationsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAllRequest$inboundSchema; - /** @deprecated use `AccountingLocationsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAllRequest$outboundSchema; - /** @deprecated use `AccountingLocationsAllRequest$Outbound` instead. */ - export type Outbound = AccountingLocationsAllRequest$Outbound; -} - export function accountingLocationsAllRequestToJSON( accountingLocationsAllRequest: AccountingLocationsAllRequest, ): string { @@ -195,16 +107,6 @@ export function accountingLocationsAllRequestToJSON( ); } -export function accountingLocationsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLocationsAllResponse$inboundSchema: z.ZodType< AccountingLocationsAllResponse, @@ -224,59 +126,6 @@ export const AccountingLocationsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocationsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAccountingLocationsResponse?: - | components.GetAccountingLocationsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLocationsAllResponse$outboundSchema: z.ZodType< - AccountingLocationsAllResponse$Outbound, - z.ZodTypeDef, - AccountingLocationsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAccountingLocationsResponse: components - .GetAccountingLocationsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAccountingLocationsResponse: "GetAccountingLocationsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsAllResponse$ { - /** @deprecated use `AccountingLocationsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsAllResponse$inboundSchema; - /** @deprecated use `AccountingLocationsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsAllResponse$outboundSchema; - /** @deprecated use `AccountingLocationsAllResponse$Outbound` instead. */ - export type Outbound = AccountingLocationsAllResponse$Outbound; -} - -export function accountingLocationsAllResponseToJSON( - accountingLocationsAllResponse: AccountingLocationsAllResponse, -): string { - return JSON.stringify( - AccountingLocationsAllResponse$outboundSchema.parse( - accountingLocationsAllResponse, - ), - ); -} - export function accountingLocationsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinglocationsdelete.ts b/src/models/operations/accountinglocationsdelete.ts index bfaf60ffd..72e54576a 100644 --- a/src/models/operations/accountinglocationsdelete.ts +++ b/src/models/operations/accountinglocationsdelete.ts @@ -57,78 +57,6 @@ export type AccountingLocationsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLocationsDeleteGlobals$inboundSchema: z.ZodType< - AccountingLocationsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLocationsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLocationsDeleteGlobals$outboundSchema: z.ZodType< - AccountingLocationsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingLocationsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsDeleteGlobals$ { - /** @deprecated use `AccountingLocationsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingLocationsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingLocationsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingLocationsDeleteGlobals$Outbound; -} - -export function accountingLocationsDeleteGlobalsToJSON( - accountingLocationsDeleteGlobals: AccountingLocationsDeleteGlobals, -): string { - return JSON.stringify( - AccountingLocationsDeleteGlobals$outboundSchema.parse( - accountingLocationsDeleteGlobals, - ), - ); -} - -export function accountingLocationsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLocationsDeleteRequest$inboundSchema: z.ZodType< - AccountingLocationsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingLocationsDeleteRequest$Outbound = { id: string; @@ -151,19 +79,6 @@ export const AccountingLocationsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsDeleteRequest$ { - /** @deprecated use `AccountingLocationsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingLocationsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingLocationsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingLocationsDeleteRequest$Outbound; -} - export function accountingLocationsDeleteRequestToJSON( accountingLocationsDeleteRequest: AccountingLocationsDeleteRequest, ): string { @@ -174,16 +89,6 @@ export function accountingLocationsDeleteRequestToJSON( ); } -export function accountingLocationsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLocationsDeleteResponse$inboundSchema: z.ZodType< AccountingLocationsDeleteResponse, @@ -203,60 +108,6 @@ export const AccountingLocationsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocationsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteAccountingLocationResponse?: - | components.DeleteAccountingLocationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLocationsDeleteResponse$outboundSchema: z.ZodType< - AccountingLocationsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingLocationsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteAccountingLocationResponse: components - .DeleteAccountingLocationResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteAccountingLocationResponse: "DeleteAccountingLocationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsDeleteResponse$ { - /** @deprecated use `AccountingLocationsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingLocationsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLocationsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingLocationsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingLocationsDeleteResponse$Outbound; -} - -export function accountingLocationsDeleteResponseToJSON( - accountingLocationsDeleteResponse: AccountingLocationsDeleteResponse, -): string { - return JSON.stringify( - AccountingLocationsDeleteResponse$outboundSchema.parse( - accountingLocationsDeleteResponse, - ), - ); -} - export function accountingLocationsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinglocationsone.ts b/src/models/operations/accountinglocationsone.ts index dafab85bd..d728182df 100644 --- a/src/models/operations/accountinglocationsone.ts +++ b/src/models/operations/accountinglocationsone.ts @@ -61,79 +61,6 @@ export type AccountingLocationsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLocationsOneGlobals$inboundSchema: z.ZodType< - AccountingLocationsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLocationsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLocationsOneGlobals$outboundSchema: z.ZodType< - AccountingLocationsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingLocationsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsOneGlobals$ { - /** @deprecated use `AccountingLocationsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsOneGlobals$inboundSchema; - /** @deprecated use `AccountingLocationsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsOneGlobals$outboundSchema; - /** @deprecated use `AccountingLocationsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingLocationsOneGlobals$Outbound; -} - -export function accountingLocationsOneGlobalsToJSON( - accountingLocationsOneGlobals: AccountingLocationsOneGlobals, -): string { - return JSON.stringify( - AccountingLocationsOneGlobals$outboundSchema.parse( - accountingLocationsOneGlobals, - ), - ); -} - -export function accountingLocationsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLocationsOneRequest$inboundSchema: z.ZodType< - AccountingLocationsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingLocationsOneRequest$Outbound = { id: string; @@ -158,19 +85,6 @@ export const AccountingLocationsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsOneRequest$ { - /** @deprecated use `AccountingLocationsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsOneRequest$inboundSchema; - /** @deprecated use `AccountingLocationsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsOneRequest$outboundSchema; - /** @deprecated use `AccountingLocationsOneRequest$Outbound` instead. */ - export type Outbound = AccountingLocationsOneRequest$Outbound; -} - export function accountingLocationsOneRequestToJSON( accountingLocationsOneRequest: AccountingLocationsOneRequest, ): string { @@ -181,16 +95,6 @@ export function accountingLocationsOneRequestToJSON( ); } -export function accountingLocationsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLocationsOneResponse$inboundSchema: z.ZodType< AccountingLocationsOneResponse, @@ -210,59 +114,6 @@ export const AccountingLocationsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocationsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetAccountingLocationResponse?: - | components.GetAccountingLocationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLocationsOneResponse$outboundSchema: z.ZodType< - AccountingLocationsOneResponse$Outbound, - z.ZodTypeDef, - AccountingLocationsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getAccountingLocationResponse: components - .GetAccountingLocationResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getAccountingLocationResponse: "GetAccountingLocationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsOneResponse$ { - /** @deprecated use `AccountingLocationsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsOneResponse$inboundSchema; - /** @deprecated use `AccountingLocationsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsOneResponse$outboundSchema; - /** @deprecated use `AccountingLocationsOneResponse$Outbound` instead. */ - export type Outbound = AccountingLocationsOneResponse$Outbound; -} - -export function accountingLocationsOneResponseToJSON( - accountingLocationsOneResponse: AccountingLocationsOneResponse, -): string { - return JSON.stringify( - AccountingLocationsOneResponse$outboundSchema.parse( - accountingLocationsOneResponse, - ), - ); -} - export function accountingLocationsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountinglocationsupdate.ts b/src/models/operations/accountinglocationsupdate.ts index fd4e5d0a4..141b28bdd 100644 --- a/src/models/operations/accountinglocationsupdate.ts +++ b/src/models/operations/accountinglocationsupdate.ts @@ -58,83 +58,6 @@ export type AccountingLocationsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingLocationsUpdateGlobals$inboundSchema: z.ZodType< - AccountingLocationsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingLocationsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingLocationsUpdateGlobals$outboundSchema: z.ZodType< - AccountingLocationsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingLocationsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsUpdateGlobals$ { - /** @deprecated use `AccountingLocationsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingLocationsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingLocationsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingLocationsUpdateGlobals$Outbound; -} - -export function accountingLocationsUpdateGlobalsToJSON( - accountingLocationsUpdateGlobals: AccountingLocationsUpdateGlobals, -): string { - return JSON.stringify( - AccountingLocationsUpdateGlobals$outboundSchema.parse( - accountingLocationsUpdateGlobals, - ), - ); -} - -export function accountingLocationsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingLocationsUpdateRequest$inboundSchema: z.ZodType< - AccountingLocationsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - AccountingLocation: components.AccountingLocationInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AccountingLocation": "accountingLocation", - }); -}); - /** @internal */ export type AccountingLocationsUpdateRequest$Outbound = { id: string; @@ -163,19 +86,6 @@ export const AccountingLocationsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsUpdateRequest$ { - /** @deprecated use `AccountingLocationsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingLocationsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingLocationsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingLocationsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingLocationsUpdateRequest$Outbound; -} - export function accountingLocationsUpdateRequestToJSON( accountingLocationsUpdateRequest: AccountingLocationsUpdateRequest, ): string { @@ -186,16 +96,6 @@ export function accountingLocationsUpdateRequestToJSON( ); } -export function accountingLocationsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingLocationsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingLocationsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingLocationsUpdateResponse$inboundSchema: z.ZodType< AccountingLocationsUpdateResponse, @@ -215,60 +115,6 @@ export const AccountingLocationsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingLocationsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateAccountingLocationResponse?: - | components.UpdateAccountingLocationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingLocationsUpdateResponse$outboundSchema: z.ZodType< - AccountingLocationsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingLocationsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateAccountingLocationResponse: components - .UpdateAccountingLocationResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateAccountingLocationResponse: "UpdateAccountingLocationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingLocationsUpdateResponse$ { - /** @deprecated use `AccountingLocationsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingLocationsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingLocationsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingLocationsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingLocationsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingLocationsUpdateResponse$Outbound; -} - -export function accountingLocationsUpdateResponseToJSON( - accountingLocationsUpdateResponse: AccountingLocationsUpdateResponse, -): string { - return JSON.stringify( - AccountingLocationsUpdateResponse$outboundSchema.parse( - accountingLocationsUpdateResponse, - ), - ); -} - export function accountingLocationsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpaymentsadd.ts b/src/models/operations/accountingpaymentsadd.ts index 0f8459e6a..4fed9ecb0 100644 --- a/src/models/operations/accountingpaymentsadd.ts +++ b/src/models/operations/accountingpaymentsadd.ts @@ -52,82 +52,6 @@ export type AccountingPaymentsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPaymentsAddGlobals$inboundSchema: z.ZodType< - AccountingPaymentsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPaymentsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPaymentsAddGlobals$outboundSchema: z.ZodType< - AccountingPaymentsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingPaymentsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAddGlobals$ { - /** @deprecated use `AccountingPaymentsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAddGlobals$inboundSchema; - /** @deprecated use `AccountingPaymentsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAddGlobals$outboundSchema; - /** @deprecated use `AccountingPaymentsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingPaymentsAddGlobals$Outbound; -} - -export function accountingPaymentsAddGlobalsToJSON( - accountingPaymentsAddGlobals: AccountingPaymentsAddGlobals, -): string { - return JSON.stringify( - AccountingPaymentsAddGlobals$outboundSchema.parse( - accountingPaymentsAddGlobals, - ), - ); -} - -export function accountingPaymentsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPaymentsAddRequest$inboundSchema: z.ZodType< - AccountingPaymentsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Payment: components.PaymentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Payment": "payment", - }); -}); - /** @internal */ export type AccountingPaymentsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingPaymentsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAddRequest$ { - /** @deprecated use `AccountingPaymentsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAddRequest$inboundSchema; - /** @deprecated use `AccountingPaymentsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAddRequest$outboundSchema; - /** @deprecated use `AccountingPaymentsAddRequest$Outbound` instead. */ - export type Outbound = AccountingPaymentsAddRequest$Outbound; -} - export function accountingPaymentsAddRequestToJSON( accountingPaymentsAddRequest: AccountingPaymentsAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingPaymentsAddRequestToJSON( ); } -export function accountingPaymentsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPaymentsAddResponse$inboundSchema: z.ZodType< AccountingPaymentsAddResponse, @@ -206,57 +107,6 @@ export const AccountingPaymentsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPaymentsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreatePaymentResponse?: components.CreatePaymentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPaymentsAddResponse$outboundSchema: z.ZodType< - AccountingPaymentsAddResponse$Outbound, - z.ZodTypeDef, - AccountingPaymentsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createPaymentResponse: components.CreatePaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createPaymentResponse: "CreatePaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAddResponse$ { - /** @deprecated use `AccountingPaymentsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAddResponse$inboundSchema; - /** @deprecated use `AccountingPaymentsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAddResponse$outboundSchema; - /** @deprecated use `AccountingPaymentsAddResponse$Outbound` instead. */ - export type Outbound = AccountingPaymentsAddResponse$Outbound; -} - -export function accountingPaymentsAddResponseToJSON( - accountingPaymentsAddResponse: AccountingPaymentsAddResponse, -): string { - return JSON.stringify( - AccountingPaymentsAddResponse$outboundSchema.parse( - accountingPaymentsAddResponse, - ), - ); -} - export function accountingPaymentsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpaymentsall.ts b/src/models/operations/accountingpaymentsall.ts index e31f29293..a0d481db7 100644 --- a/src/models/operations/accountingpaymentsall.ts +++ b/src/models/operations/accountingpaymentsall.ts @@ -75,87 +75,6 @@ export type AccountingPaymentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPaymentsAllGlobals$inboundSchema: z.ZodType< - AccountingPaymentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPaymentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPaymentsAllGlobals$outboundSchema: z.ZodType< - AccountingPaymentsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingPaymentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAllGlobals$ { - /** @deprecated use `AccountingPaymentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAllGlobals$inboundSchema; - /** @deprecated use `AccountingPaymentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAllGlobals$outboundSchema; - /** @deprecated use `AccountingPaymentsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingPaymentsAllGlobals$Outbound; -} - -export function accountingPaymentsAllGlobalsToJSON( - accountingPaymentsAllGlobals: AccountingPaymentsAllGlobals, -): string { - return JSON.stringify( - AccountingPaymentsAllGlobals$outboundSchema.parse( - accountingPaymentsAllGlobals, - ), - ); -} - -export function accountingPaymentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPaymentsAllRequest$inboundSchema: z.ZodType< - AccountingPaymentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.PaymentsFilter$inboundSchema.optional(), - sort: components.PaymentsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingPaymentsAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingPaymentsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAllRequest$ { - /** @deprecated use `AccountingPaymentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAllRequest$inboundSchema; - /** @deprecated use `AccountingPaymentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAllRequest$outboundSchema; - /** @deprecated use `AccountingPaymentsAllRequest$Outbound` instead. */ - export type Outbound = AccountingPaymentsAllRequest$Outbound; -} - export function accountingPaymentsAllRequestToJSON( accountingPaymentsAllRequest: AccountingPaymentsAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingPaymentsAllRequestToJSON( ); } -export function accountingPaymentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPaymentsAllResponse$inboundSchema: z.ZodType< AccountingPaymentsAllResponse, @@ -243,56 +139,6 @@ export const AccountingPaymentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPaymentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPaymentsResponse?: components.GetPaymentsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPaymentsAllResponse$outboundSchema: z.ZodType< - AccountingPaymentsAllResponse$Outbound, - z.ZodTypeDef, - AccountingPaymentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPaymentsResponse: components.GetPaymentsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPaymentsResponse: "GetPaymentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsAllResponse$ { - /** @deprecated use `AccountingPaymentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsAllResponse$inboundSchema; - /** @deprecated use `AccountingPaymentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsAllResponse$outboundSchema; - /** @deprecated use `AccountingPaymentsAllResponse$Outbound` instead. */ - export type Outbound = AccountingPaymentsAllResponse$Outbound; -} - -export function accountingPaymentsAllResponseToJSON( - accountingPaymentsAllResponse: AccountingPaymentsAllResponse, -): string { - return JSON.stringify( - AccountingPaymentsAllResponse$outboundSchema.parse( - accountingPaymentsAllResponse, - ), - ); -} - export function accountingPaymentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpaymentsdelete.ts b/src/models/operations/accountingpaymentsdelete.ts index fbb827882..4849b47b4 100644 --- a/src/models/operations/accountingpaymentsdelete.ts +++ b/src/models/operations/accountingpaymentsdelete.ts @@ -55,78 +55,6 @@ export type AccountingPaymentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPaymentsDeleteGlobals$inboundSchema: z.ZodType< - AccountingPaymentsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPaymentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPaymentsDeleteGlobals$outboundSchema: z.ZodType< - AccountingPaymentsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingPaymentsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsDeleteGlobals$ { - /** @deprecated use `AccountingPaymentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingPaymentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingPaymentsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingPaymentsDeleteGlobals$Outbound; -} - -export function accountingPaymentsDeleteGlobalsToJSON( - accountingPaymentsDeleteGlobals: AccountingPaymentsDeleteGlobals, -): string { - return JSON.stringify( - AccountingPaymentsDeleteGlobals$outboundSchema.parse( - accountingPaymentsDeleteGlobals, - ), - ); -} - -export function accountingPaymentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPaymentsDeleteRequest$inboundSchema: z.ZodType< - AccountingPaymentsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingPaymentsDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingPaymentsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsDeleteRequest$ { - /** @deprecated use `AccountingPaymentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingPaymentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingPaymentsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingPaymentsDeleteRequest$Outbound; -} - export function accountingPaymentsDeleteRequestToJSON( accountingPaymentsDeleteRequest: AccountingPaymentsDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingPaymentsDeleteRequestToJSON( ); } -export function accountingPaymentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPaymentsDeleteResponse$inboundSchema: z.ZodType< AccountingPaymentsDeleteResponse, @@ -201,57 +106,6 @@ export const AccountingPaymentsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPaymentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeletePaymentResponse?: components.DeletePaymentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPaymentsDeleteResponse$outboundSchema: z.ZodType< - AccountingPaymentsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingPaymentsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deletePaymentResponse: components.DeletePaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deletePaymentResponse: "DeletePaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsDeleteResponse$ { - /** @deprecated use `AccountingPaymentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingPaymentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingPaymentsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingPaymentsDeleteResponse$Outbound; -} - -export function accountingPaymentsDeleteResponseToJSON( - accountingPaymentsDeleteResponse: AccountingPaymentsDeleteResponse, -): string { - return JSON.stringify( - AccountingPaymentsDeleteResponse$outboundSchema.parse( - accountingPaymentsDeleteResponse, - ), - ); -} - export function accountingPaymentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpaymentsone.ts b/src/models/operations/accountingpaymentsone.ts index f207242dd..34dc48c9b 100644 --- a/src/models/operations/accountingpaymentsone.ts +++ b/src/models/operations/accountingpaymentsone.ts @@ -59,79 +59,6 @@ export type AccountingPaymentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPaymentsOneGlobals$inboundSchema: z.ZodType< - AccountingPaymentsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPaymentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPaymentsOneGlobals$outboundSchema: z.ZodType< - AccountingPaymentsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingPaymentsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsOneGlobals$ { - /** @deprecated use `AccountingPaymentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsOneGlobals$inboundSchema; - /** @deprecated use `AccountingPaymentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsOneGlobals$outboundSchema; - /** @deprecated use `AccountingPaymentsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingPaymentsOneGlobals$Outbound; -} - -export function accountingPaymentsOneGlobalsToJSON( - accountingPaymentsOneGlobals: AccountingPaymentsOneGlobals, -): string { - return JSON.stringify( - AccountingPaymentsOneGlobals$outboundSchema.parse( - accountingPaymentsOneGlobals, - ), - ); -} - -export function accountingPaymentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPaymentsOneRequest$inboundSchema: z.ZodType< - AccountingPaymentsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingPaymentsOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingPaymentsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsOneRequest$ { - /** @deprecated use `AccountingPaymentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsOneRequest$inboundSchema; - /** @deprecated use `AccountingPaymentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsOneRequest$outboundSchema; - /** @deprecated use `AccountingPaymentsOneRequest$Outbound` instead. */ - export type Outbound = AccountingPaymentsOneRequest$Outbound; -} - export function accountingPaymentsOneRequestToJSON( accountingPaymentsOneRequest: AccountingPaymentsOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingPaymentsOneRequestToJSON( ); } -export function accountingPaymentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPaymentsOneResponse$inboundSchema: z.ZodType< AccountingPaymentsOneResponse, @@ -207,56 +111,6 @@ export const AccountingPaymentsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPaymentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPaymentResponse?: components.GetPaymentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPaymentsOneResponse$outboundSchema: z.ZodType< - AccountingPaymentsOneResponse$Outbound, - z.ZodTypeDef, - AccountingPaymentsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPaymentResponse: components.GetPaymentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPaymentResponse: "GetPaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsOneResponse$ { - /** @deprecated use `AccountingPaymentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsOneResponse$inboundSchema; - /** @deprecated use `AccountingPaymentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsOneResponse$outboundSchema; - /** @deprecated use `AccountingPaymentsOneResponse$Outbound` instead. */ - export type Outbound = AccountingPaymentsOneResponse$Outbound; -} - -export function accountingPaymentsOneResponseToJSON( - accountingPaymentsOneResponse: AccountingPaymentsOneResponse, -): string { - return JSON.stringify( - AccountingPaymentsOneResponse$outboundSchema.parse( - accountingPaymentsOneResponse, - ), - ); -} - export function accountingPaymentsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpaymentsupdate.ts b/src/models/operations/accountingpaymentsupdate.ts index 108044e7e..e8be8db5e 100644 --- a/src/models/operations/accountingpaymentsupdate.ts +++ b/src/models/operations/accountingpaymentsupdate.ts @@ -56,83 +56,6 @@ export type AccountingPaymentsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPaymentsUpdateGlobals$inboundSchema: z.ZodType< - AccountingPaymentsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPaymentsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPaymentsUpdateGlobals$outboundSchema: z.ZodType< - AccountingPaymentsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingPaymentsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsUpdateGlobals$ { - /** @deprecated use `AccountingPaymentsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingPaymentsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingPaymentsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingPaymentsUpdateGlobals$Outbound; -} - -export function accountingPaymentsUpdateGlobalsToJSON( - accountingPaymentsUpdateGlobals: AccountingPaymentsUpdateGlobals, -): string { - return JSON.stringify( - AccountingPaymentsUpdateGlobals$outboundSchema.parse( - accountingPaymentsUpdateGlobals, - ), - ); -} - -export function accountingPaymentsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPaymentsUpdateRequest$inboundSchema: z.ZodType< - AccountingPaymentsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Payment: components.PaymentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Payment": "payment", - }); -}); - /** @internal */ export type AccountingPaymentsUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingPaymentsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsUpdateRequest$ { - /** @deprecated use `AccountingPaymentsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingPaymentsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingPaymentsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingPaymentsUpdateRequest$Outbound; -} - export function accountingPaymentsUpdateRequestToJSON( accountingPaymentsUpdateRequest: AccountingPaymentsUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingPaymentsUpdateRequestToJSON( ); } -export function accountingPaymentsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingPaymentsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPaymentsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPaymentsUpdateResponse$inboundSchema: z.ZodType< AccountingPaymentsUpdateResponse, @@ -213,57 +113,6 @@ export const AccountingPaymentsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPaymentsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdatePaymentResponse?: components.UpdatePaymentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPaymentsUpdateResponse$outboundSchema: z.ZodType< - AccountingPaymentsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingPaymentsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updatePaymentResponse: components.UpdatePaymentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updatePaymentResponse: "UpdatePaymentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPaymentsUpdateResponse$ { - /** @deprecated use `AccountingPaymentsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingPaymentsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingPaymentsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingPaymentsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingPaymentsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingPaymentsUpdateResponse$Outbound; -} - -export function accountingPaymentsUpdateResponseToJSON( - accountingPaymentsUpdateResponse: AccountingPaymentsUpdateResponse, -): string { - return JSON.stringify( - AccountingPaymentsUpdateResponse$outboundSchema.parse( - accountingPaymentsUpdateResponse, - ), - ); -} - export function accountingPaymentsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprofitandlossone.ts b/src/models/operations/accountingprofitandlossone.ts index cdfa7abf5..e096712bb 100644 --- a/src/models/operations/accountingprofitandlossone.ts +++ b/src/models/operations/accountingprofitandlossone.ts @@ -63,85 +63,6 @@ export type AccountingProfitAndLossOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProfitAndLossOneGlobals$inboundSchema: z.ZodType< - AccountingProfitAndLossOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProfitAndLossOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProfitAndLossOneGlobals$outboundSchema: z.ZodType< - AccountingProfitAndLossOneGlobals$Outbound, - z.ZodTypeDef, - AccountingProfitAndLossOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProfitAndLossOneGlobals$ { - /** @deprecated use `AccountingProfitAndLossOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProfitAndLossOneGlobals$inboundSchema; - /** @deprecated use `AccountingProfitAndLossOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingProfitAndLossOneGlobals$outboundSchema; - /** @deprecated use `AccountingProfitAndLossOneGlobals$Outbound` instead. */ - export type Outbound = AccountingProfitAndLossOneGlobals$Outbound; -} - -export function accountingProfitAndLossOneGlobalsToJSON( - accountingProfitAndLossOneGlobals: AccountingProfitAndLossOneGlobals, -): string { - return JSON.stringify( - AccountingProfitAndLossOneGlobals$outboundSchema.parse( - accountingProfitAndLossOneGlobals, - ), - ); -} - -export function accountingProfitAndLossOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProfitAndLossOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProfitAndLossOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProfitAndLossOneRequest$inboundSchema: z.ZodType< - AccountingProfitAndLossOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - filter: components.ProfitAndLossFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingProfitAndLossOneRequest$Outbound = { raw: boolean; @@ -172,20 +93,6 @@ export const AccountingProfitAndLossOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProfitAndLossOneRequest$ { - /** @deprecated use `AccountingProfitAndLossOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProfitAndLossOneRequest$inboundSchema; - /** @deprecated use `AccountingProfitAndLossOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingProfitAndLossOneRequest$outboundSchema; - /** @deprecated use `AccountingProfitAndLossOneRequest$Outbound` instead. */ - export type Outbound = AccountingProfitAndLossOneRequest$Outbound; -} - export function accountingProfitAndLossOneRequestToJSON( accountingProfitAndLossOneRequest: AccountingProfitAndLossOneRequest, ): string { @@ -196,16 +103,6 @@ export function accountingProfitAndLossOneRequestToJSON( ); } -export function accountingProfitAndLossOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProfitAndLossOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProfitAndLossOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProfitAndLossOneResponse$inboundSchema: z.ZodType< AccountingProfitAndLossOneResponse, @@ -225,60 +122,6 @@ export const AccountingProfitAndLossOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProfitAndLossOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetProfitAndLossResponse?: - | components.GetProfitAndLossResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProfitAndLossOneResponse$outboundSchema: z.ZodType< - AccountingProfitAndLossOneResponse$Outbound, - z.ZodTypeDef, - AccountingProfitAndLossOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getProfitAndLossResponse: components.GetProfitAndLossResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getProfitAndLossResponse: "GetProfitAndLossResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProfitAndLossOneResponse$ { - /** @deprecated use `AccountingProfitAndLossOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProfitAndLossOneResponse$inboundSchema; - /** @deprecated use `AccountingProfitAndLossOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingProfitAndLossOneResponse$outboundSchema; - /** @deprecated use `AccountingProfitAndLossOneResponse$Outbound` instead. */ - export type Outbound = AccountingProfitAndLossOneResponse$Outbound; -} - -export function accountingProfitAndLossOneResponseToJSON( - accountingProfitAndLossOneResponse: AccountingProfitAndLossOneResponse, -): string { - return JSON.stringify( - AccountingProfitAndLossOneResponse$outboundSchema.parse( - accountingProfitAndLossOneResponse, - ), - ); -} - export function accountingProfitAndLossOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprojectsadd.ts b/src/models/operations/accountingprojectsadd.ts index fbe56a561..c52d76d8c 100644 --- a/src/models/operations/accountingprojectsadd.ts +++ b/src/models/operations/accountingprojectsadd.ts @@ -52,82 +52,6 @@ export type AccountingProjectsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProjectsAddGlobals$inboundSchema: z.ZodType< - AccountingProjectsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProjectsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProjectsAddGlobals$outboundSchema: z.ZodType< - AccountingProjectsAddGlobals$Outbound, - z.ZodTypeDef, - AccountingProjectsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAddGlobals$ { - /** @deprecated use `AccountingProjectsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAddGlobals$inboundSchema; - /** @deprecated use `AccountingProjectsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAddGlobals$outboundSchema; - /** @deprecated use `AccountingProjectsAddGlobals$Outbound` instead. */ - export type Outbound = AccountingProjectsAddGlobals$Outbound; -} - -export function accountingProjectsAddGlobalsToJSON( - accountingProjectsAddGlobals: AccountingProjectsAddGlobals, -): string { - return JSON.stringify( - AccountingProjectsAddGlobals$outboundSchema.parse( - accountingProjectsAddGlobals, - ), - ); -} - -export function accountingProjectsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProjectsAddRequest$inboundSchema: z.ZodType< - AccountingProjectsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Project: components.ProjectInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Project": "project", - }); -}); - /** @internal */ export type AccountingProjectsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingProjectsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAddRequest$ { - /** @deprecated use `AccountingProjectsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAddRequest$inboundSchema; - /** @deprecated use `AccountingProjectsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAddRequest$outboundSchema; - /** @deprecated use `AccountingProjectsAddRequest$Outbound` instead. */ - export type Outbound = AccountingProjectsAddRequest$Outbound; -} - export function accountingProjectsAddRequestToJSON( accountingProjectsAddRequest: AccountingProjectsAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingProjectsAddRequestToJSON( ); } -export function accountingProjectsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProjectsAddResponse$inboundSchema: z.ZodType< AccountingProjectsAddResponse, @@ -206,57 +107,6 @@ export const AccountingProjectsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProjectsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateProjectResponse?: components.CreateProjectResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProjectsAddResponse$outboundSchema: z.ZodType< - AccountingProjectsAddResponse$Outbound, - z.ZodTypeDef, - AccountingProjectsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createProjectResponse: components.CreateProjectResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createProjectResponse: "CreateProjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAddResponse$ { - /** @deprecated use `AccountingProjectsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAddResponse$inboundSchema; - /** @deprecated use `AccountingProjectsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAddResponse$outboundSchema; - /** @deprecated use `AccountingProjectsAddResponse$Outbound` instead. */ - export type Outbound = AccountingProjectsAddResponse$Outbound; -} - -export function accountingProjectsAddResponseToJSON( - accountingProjectsAddResponse: AccountingProjectsAddResponse, -): string { - return JSON.stringify( - AccountingProjectsAddResponse$outboundSchema.parse( - accountingProjectsAddResponse, - ), - ); -} - export function accountingProjectsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprojectsall.ts b/src/models/operations/accountingprojectsall.ts index 83a94688c..133ed6b04 100644 --- a/src/models/operations/accountingprojectsall.ts +++ b/src/models/operations/accountingprojectsall.ts @@ -75,87 +75,6 @@ export type AccountingProjectsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProjectsAllGlobals$inboundSchema: z.ZodType< - AccountingProjectsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProjectsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProjectsAllGlobals$outboundSchema: z.ZodType< - AccountingProjectsAllGlobals$Outbound, - z.ZodTypeDef, - AccountingProjectsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAllGlobals$ { - /** @deprecated use `AccountingProjectsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAllGlobals$inboundSchema; - /** @deprecated use `AccountingProjectsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAllGlobals$outboundSchema; - /** @deprecated use `AccountingProjectsAllGlobals$Outbound` instead. */ - export type Outbound = AccountingProjectsAllGlobals$Outbound; -} - -export function accountingProjectsAllGlobalsToJSON( - accountingProjectsAllGlobals: AccountingProjectsAllGlobals, -): string { - return JSON.stringify( - AccountingProjectsAllGlobals$outboundSchema.parse( - accountingProjectsAllGlobals, - ), - ); -} - -export function accountingProjectsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProjectsAllRequest$inboundSchema: z.ZodType< - AccountingProjectsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ProjectsFilter$inboundSchema.optional(), - sort: components.ProjectsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingProjectsAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingProjectsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAllRequest$ { - /** @deprecated use `AccountingProjectsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAllRequest$inboundSchema; - /** @deprecated use `AccountingProjectsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAllRequest$outboundSchema; - /** @deprecated use `AccountingProjectsAllRequest$Outbound` instead. */ - export type Outbound = AccountingProjectsAllRequest$Outbound; -} - export function accountingProjectsAllRequestToJSON( accountingProjectsAllRequest: AccountingProjectsAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingProjectsAllRequestToJSON( ); } -export function accountingProjectsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProjectsAllResponse$inboundSchema: z.ZodType< AccountingProjectsAllResponse, @@ -243,56 +139,6 @@ export const AccountingProjectsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProjectsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetProjectsResponse?: components.GetProjectsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProjectsAllResponse$outboundSchema: z.ZodType< - AccountingProjectsAllResponse$Outbound, - z.ZodTypeDef, - AccountingProjectsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getProjectsResponse: components.GetProjectsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getProjectsResponse: "GetProjectsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsAllResponse$ { - /** @deprecated use `AccountingProjectsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsAllResponse$inboundSchema; - /** @deprecated use `AccountingProjectsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsAllResponse$outboundSchema; - /** @deprecated use `AccountingProjectsAllResponse$Outbound` instead. */ - export type Outbound = AccountingProjectsAllResponse$Outbound; -} - -export function accountingProjectsAllResponseToJSON( - accountingProjectsAllResponse: AccountingProjectsAllResponse, -): string { - return JSON.stringify( - AccountingProjectsAllResponse$outboundSchema.parse( - accountingProjectsAllResponse, - ), - ); -} - export function accountingProjectsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprojectsdelete.ts b/src/models/operations/accountingprojectsdelete.ts index ab2e1e286..f459a2ca2 100644 --- a/src/models/operations/accountingprojectsdelete.ts +++ b/src/models/operations/accountingprojectsdelete.ts @@ -55,78 +55,6 @@ export type AccountingProjectsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProjectsDeleteGlobals$inboundSchema: z.ZodType< - AccountingProjectsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProjectsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProjectsDeleteGlobals$outboundSchema: z.ZodType< - AccountingProjectsDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingProjectsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsDeleteGlobals$ { - /** @deprecated use `AccountingProjectsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingProjectsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingProjectsDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingProjectsDeleteGlobals$Outbound; -} - -export function accountingProjectsDeleteGlobalsToJSON( - accountingProjectsDeleteGlobals: AccountingProjectsDeleteGlobals, -): string { - return JSON.stringify( - AccountingProjectsDeleteGlobals$outboundSchema.parse( - accountingProjectsDeleteGlobals, - ), - ); -} - -export function accountingProjectsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProjectsDeleteRequest$inboundSchema: z.ZodType< - AccountingProjectsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingProjectsDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingProjectsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsDeleteRequest$ { - /** @deprecated use `AccountingProjectsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsDeleteRequest$inboundSchema; - /** @deprecated use `AccountingProjectsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsDeleteRequest$outboundSchema; - /** @deprecated use `AccountingProjectsDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingProjectsDeleteRequest$Outbound; -} - export function accountingProjectsDeleteRequestToJSON( accountingProjectsDeleteRequest: AccountingProjectsDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingProjectsDeleteRequestToJSON( ); } -export function accountingProjectsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProjectsDeleteResponse$inboundSchema: z.ZodType< AccountingProjectsDeleteResponse, @@ -201,57 +106,6 @@ export const AccountingProjectsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProjectsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteProjectResponse?: components.DeleteProjectResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProjectsDeleteResponse$outboundSchema: z.ZodType< - AccountingProjectsDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingProjectsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteProjectResponse: components.DeleteProjectResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteProjectResponse: "DeleteProjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsDeleteResponse$ { - /** @deprecated use `AccountingProjectsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsDeleteResponse$inboundSchema; - /** @deprecated use `AccountingProjectsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsDeleteResponse$outboundSchema; - /** @deprecated use `AccountingProjectsDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingProjectsDeleteResponse$Outbound; -} - -export function accountingProjectsDeleteResponseToJSON( - accountingProjectsDeleteResponse: AccountingProjectsDeleteResponse, -): string { - return JSON.stringify( - AccountingProjectsDeleteResponse$outboundSchema.parse( - accountingProjectsDeleteResponse, - ), - ); -} - export function accountingProjectsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprojectsone.ts b/src/models/operations/accountingprojectsone.ts index fa19a2794..772e00ae1 100644 --- a/src/models/operations/accountingprojectsone.ts +++ b/src/models/operations/accountingprojectsone.ts @@ -55,78 +55,6 @@ export type AccountingProjectsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProjectsOneGlobals$inboundSchema: z.ZodType< - AccountingProjectsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProjectsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProjectsOneGlobals$outboundSchema: z.ZodType< - AccountingProjectsOneGlobals$Outbound, - z.ZodTypeDef, - AccountingProjectsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsOneGlobals$ { - /** @deprecated use `AccountingProjectsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsOneGlobals$inboundSchema; - /** @deprecated use `AccountingProjectsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsOneGlobals$outboundSchema; - /** @deprecated use `AccountingProjectsOneGlobals$Outbound` instead. */ - export type Outbound = AccountingProjectsOneGlobals$Outbound; -} - -export function accountingProjectsOneGlobalsToJSON( - accountingProjectsOneGlobals: AccountingProjectsOneGlobals, -): string { - return JSON.stringify( - AccountingProjectsOneGlobals$outboundSchema.parse( - accountingProjectsOneGlobals, - ), - ); -} - -export function accountingProjectsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProjectsOneRequest$inboundSchema: z.ZodType< - AccountingProjectsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingProjectsOneRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingProjectsOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsOneRequest$ { - /** @deprecated use `AccountingProjectsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsOneRequest$inboundSchema; - /** @deprecated use `AccountingProjectsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsOneRequest$outboundSchema; - /** @deprecated use `AccountingProjectsOneRequest$Outbound` instead. */ - export type Outbound = AccountingProjectsOneRequest$Outbound; -} - export function accountingProjectsOneRequestToJSON( accountingProjectsOneRequest: AccountingProjectsOneRequest, ): string { @@ -172,16 +87,6 @@ export function accountingProjectsOneRequestToJSON( ); } -export function accountingProjectsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProjectsOneResponse$inboundSchema: z.ZodType< AccountingProjectsOneResponse, @@ -200,56 +105,6 @@ export const AccountingProjectsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProjectsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetProjectResponse?: components.GetProjectResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProjectsOneResponse$outboundSchema: z.ZodType< - AccountingProjectsOneResponse$Outbound, - z.ZodTypeDef, - AccountingProjectsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getProjectResponse: components.GetProjectResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getProjectResponse: "GetProjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsOneResponse$ { - /** @deprecated use `AccountingProjectsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsOneResponse$inboundSchema; - /** @deprecated use `AccountingProjectsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsOneResponse$outboundSchema; - /** @deprecated use `AccountingProjectsOneResponse$Outbound` instead. */ - export type Outbound = AccountingProjectsOneResponse$Outbound; -} - -export function accountingProjectsOneResponseToJSON( - accountingProjectsOneResponse: AccountingProjectsOneResponse, -): string { - return JSON.stringify( - AccountingProjectsOneResponse$outboundSchema.parse( - accountingProjectsOneResponse, - ), - ); -} - export function accountingProjectsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingprojectsupdate.ts b/src/models/operations/accountingprojectsupdate.ts index 478de0f8b..52e3da79d 100644 --- a/src/models/operations/accountingprojectsupdate.ts +++ b/src/models/operations/accountingprojectsupdate.ts @@ -56,83 +56,6 @@ export type AccountingProjectsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingProjectsUpdateGlobals$inboundSchema: z.ZodType< - AccountingProjectsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingProjectsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingProjectsUpdateGlobals$outboundSchema: z.ZodType< - AccountingProjectsUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingProjectsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsUpdateGlobals$ { - /** @deprecated use `AccountingProjectsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingProjectsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingProjectsUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingProjectsUpdateGlobals$Outbound; -} - -export function accountingProjectsUpdateGlobalsToJSON( - accountingProjectsUpdateGlobals: AccountingProjectsUpdateGlobals, -): string { - return JSON.stringify( - AccountingProjectsUpdateGlobals$outboundSchema.parse( - accountingProjectsUpdateGlobals, - ), - ); -} - -export function accountingProjectsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingProjectsUpdateRequest$inboundSchema: z.ZodType< - AccountingProjectsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Project: components.ProjectInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Project": "project", - }); -}); - /** @internal */ export type AccountingProjectsUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingProjectsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsUpdateRequest$ { - /** @deprecated use `AccountingProjectsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsUpdateRequest$inboundSchema; - /** @deprecated use `AccountingProjectsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsUpdateRequest$outboundSchema; - /** @deprecated use `AccountingProjectsUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingProjectsUpdateRequest$Outbound; -} - export function accountingProjectsUpdateRequestToJSON( accountingProjectsUpdateRequest: AccountingProjectsUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingProjectsUpdateRequestToJSON( ); } -export function accountingProjectsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingProjectsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingProjectsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingProjectsUpdateResponse$inboundSchema: z.ZodType< AccountingProjectsUpdateResponse, @@ -213,57 +113,6 @@ export const AccountingProjectsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingProjectsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateProjectResponse?: components.UpdateProjectResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingProjectsUpdateResponse$outboundSchema: z.ZodType< - AccountingProjectsUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingProjectsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateProjectResponse: components.UpdateProjectResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateProjectResponse: "UpdateProjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingProjectsUpdateResponse$ { - /** @deprecated use `AccountingProjectsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingProjectsUpdateResponse$inboundSchema; - /** @deprecated use `AccountingProjectsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingProjectsUpdateResponse$outboundSchema; - /** @deprecated use `AccountingProjectsUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingProjectsUpdateResponse$Outbound; -} - -export function accountingProjectsUpdateResponseToJSON( - accountingProjectsUpdateResponse: AccountingProjectsUpdateResponse, -): string { - return JSON.stringify( - AccountingProjectsUpdateResponse$outboundSchema.parse( - accountingProjectsUpdateResponse, - ), - ); -} - export function accountingProjectsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpurchaseordersadd.ts b/src/models/operations/accountingpurchaseordersadd.ts index 5e5b8e71b..9986412ae 100644 --- a/src/models/operations/accountingpurchaseordersadd.ts +++ b/src/models/operations/accountingpurchaseordersadd.ts @@ -54,84 +54,6 @@ export type AccountingPurchaseOrdersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPurchaseOrdersAddGlobals$inboundSchema: z.ZodType< - AccountingPurchaseOrdersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPurchaseOrdersAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersAddGlobals$outboundSchema: z.ZodType< - AccountingPurchaseOrdersAddGlobals$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAddGlobals$ { - /** @deprecated use `AccountingPurchaseOrdersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersAddGlobals$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAddGlobals$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddGlobals$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAddGlobals$Outbound; -} - -export function accountingPurchaseOrdersAddGlobalsToJSON( - accountingPurchaseOrdersAddGlobals: AccountingPurchaseOrdersAddGlobals, -): string { - return JSON.stringify( - AccountingPurchaseOrdersAddGlobals$outboundSchema.parse( - accountingPurchaseOrdersAddGlobals, - ), - ); -} - -export function accountingPurchaseOrdersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPurchaseOrdersAddRequest$inboundSchema: z.ZodType< - AccountingPurchaseOrdersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - PurchaseOrder: components.PurchaseOrderInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "PurchaseOrder": "purchaseOrder", - }); -}); - /** @internal */ export type AccountingPurchaseOrdersAddRequest$Outbound = { raw: boolean; @@ -158,20 +80,6 @@ export const AccountingPurchaseOrdersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAddRequest$ { - /** @deprecated use `AccountingPurchaseOrdersAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersAddRequest$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAddRequest$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddRequest$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAddRequest$Outbound; -} - export function accountingPurchaseOrdersAddRequestToJSON( accountingPurchaseOrdersAddRequest: AccountingPurchaseOrdersAddRequest, ): string { @@ -182,17 +90,6 @@ export function accountingPurchaseOrdersAddRequestToJSON( ); } -export function accountingPurchaseOrdersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPurchaseOrdersAddResponse$inboundSchema: z.ZodType< AccountingPurchaseOrdersAddResponse, @@ -212,61 +109,6 @@ export const AccountingPurchaseOrdersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPurchaseOrdersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreatePurchaseOrderResponse?: - | components.CreatePurchaseOrderResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersAddResponse$outboundSchema: z.ZodType< - AccountingPurchaseOrdersAddResponse$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createPurchaseOrderResponse: components - .CreatePurchaseOrderResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createPurchaseOrderResponse: "CreatePurchaseOrderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAddResponse$ { - /** @deprecated use `AccountingPurchaseOrdersAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersAddResponse$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAddResponse$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAddResponse$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAddResponse$Outbound; -} - -export function accountingPurchaseOrdersAddResponseToJSON( - accountingPurchaseOrdersAddResponse: AccountingPurchaseOrdersAddResponse, -): string { - return JSON.stringify( - AccountingPurchaseOrdersAddResponse$outboundSchema.parse( - accountingPurchaseOrdersAddResponse, - ), - ); -} - export function accountingPurchaseOrdersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpurchaseordersall.ts b/src/models/operations/accountingpurchaseordersall.ts index 5e4adf5aa..a968e0468 100644 --- a/src/models/operations/accountingpurchaseordersall.ts +++ b/src/models/operations/accountingpurchaseordersall.ts @@ -71,88 +71,6 @@ export type AccountingPurchaseOrdersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPurchaseOrdersAllGlobals$inboundSchema: z.ZodType< - AccountingPurchaseOrdersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPurchaseOrdersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersAllGlobals$outboundSchema: z.ZodType< - AccountingPurchaseOrdersAllGlobals$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAllGlobals$ { - /** @deprecated use `AccountingPurchaseOrdersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersAllGlobals$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAllGlobals$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllGlobals$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAllGlobals$Outbound; -} - -export function accountingPurchaseOrdersAllGlobalsToJSON( - accountingPurchaseOrdersAllGlobals: AccountingPurchaseOrdersAllGlobals, -): string { - return JSON.stringify( - AccountingPurchaseOrdersAllGlobals$outboundSchema.parse( - accountingPurchaseOrdersAllGlobals, - ), - ); -} - -export function accountingPurchaseOrdersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPurchaseOrdersAllRequest$inboundSchema: z.ZodType< - AccountingPurchaseOrdersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - pass_through: z.record(z.any()).optional(), - limit: z.number().int().default(20), - filter: components.PurchaseOrdersFilter$inboundSchema.optional(), - sort: components.PurchaseOrdersSort$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingPurchaseOrdersAllRequest$Outbound = { raw: boolean; @@ -187,20 +105,6 @@ export const AccountingPurchaseOrdersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAllRequest$ { - /** @deprecated use `AccountingPurchaseOrdersAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersAllRequest$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAllRequest$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllRequest$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAllRequest$Outbound; -} - export function accountingPurchaseOrdersAllRequestToJSON( accountingPurchaseOrdersAllRequest: AccountingPurchaseOrdersAllRequest, ): string { @@ -211,17 +115,6 @@ export function accountingPurchaseOrdersAllRequestToJSON( ); } -export function accountingPurchaseOrdersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPurchaseOrdersAllResponse$inboundSchema: z.ZodType< AccountingPurchaseOrdersAllResponse, @@ -241,61 +134,6 @@ export const AccountingPurchaseOrdersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPurchaseOrdersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPurchaseOrdersResponse?: - | components.GetPurchaseOrdersResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersAllResponse$outboundSchema: z.ZodType< - AccountingPurchaseOrdersAllResponse$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPurchaseOrdersResponse: components.GetPurchaseOrdersResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPurchaseOrdersResponse: "GetPurchaseOrdersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersAllResponse$ { - /** @deprecated use `AccountingPurchaseOrdersAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersAllResponse$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersAllResponse$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersAllResponse$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersAllResponse$Outbound; -} - -export function accountingPurchaseOrdersAllResponseToJSON( - accountingPurchaseOrdersAllResponse: AccountingPurchaseOrdersAllResponse, -): string { - return JSON.stringify( - AccountingPurchaseOrdersAllResponse$outboundSchema.parse( - accountingPurchaseOrdersAllResponse, - ), - ); -} - export function accountingPurchaseOrdersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpurchaseordersdelete.ts b/src/models/operations/accountingpurchaseordersdelete.ts index fcc543e29..bac5e7efd 100644 --- a/src/models/operations/accountingpurchaseordersdelete.ts +++ b/src/models/operations/accountingpurchaseordersdelete.ts @@ -57,81 +57,6 @@ export type AccountingPurchaseOrdersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPurchaseOrdersDeleteGlobals$inboundSchema: z.ZodType< - AccountingPurchaseOrdersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPurchaseOrdersDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersDeleteGlobals$outboundSchema: z.ZodType< - AccountingPurchaseOrdersDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersDeleteGlobals$ { - /** @deprecated use `AccountingPurchaseOrdersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersDeleteGlobals$Outbound; -} - -export function accountingPurchaseOrdersDeleteGlobalsToJSON( - accountingPurchaseOrdersDeleteGlobals: AccountingPurchaseOrdersDeleteGlobals, -): string { - return JSON.stringify( - AccountingPurchaseOrdersDeleteGlobals$outboundSchema.parse( - accountingPurchaseOrdersDeleteGlobals, - ), - ); -} - -export function accountingPurchaseOrdersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPurchaseOrdersDeleteRequest$inboundSchema: z.ZodType< - AccountingPurchaseOrdersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingPurchaseOrdersDeleteRequest$Outbound = { id: string; @@ -154,21 +79,6 @@ export const AccountingPurchaseOrdersDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersDeleteRequest$ { - /** @deprecated use `AccountingPurchaseOrdersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersDeleteRequest$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersDeleteRequest$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersDeleteRequest$Outbound; -} - export function accountingPurchaseOrdersDeleteRequestToJSON( accountingPurchaseOrdersDeleteRequest: AccountingPurchaseOrdersDeleteRequest, ): string { @@ -179,17 +89,6 @@ export function accountingPurchaseOrdersDeleteRequestToJSON( ); } -export function accountingPurchaseOrdersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPurchaseOrdersDeleteResponse$inboundSchema: z.ZodType< AccountingPurchaseOrdersDeleteResponse, @@ -209,62 +108,6 @@ export const AccountingPurchaseOrdersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPurchaseOrdersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeletePurchaseOrderResponse?: - | components.DeletePurchaseOrderResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersDeleteResponse$outboundSchema: z.ZodType< - AccountingPurchaseOrdersDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deletePurchaseOrderResponse: components - .DeletePurchaseOrderResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deletePurchaseOrderResponse: "DeletePurchaseOrderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersDeleteResponse$ { - /** @deprecated use `AccountingPurchaseOrdersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersDeleteResponse$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersDeleteResponse$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersDeleteResponse$Outbound; -} - -export function accountingPurchaseOrdersDeleteResponseToJSON( - accountingPurchaseOrdersDeleteResponse: - AccountingPurchaseOrdersDeleteResponse, -): string { - return JSON.stringify( - AccountingPurchaseOrdersDeleteResponse$outboundSchema.parse( - accountingPurchaseOrdersDeleteResponse, - ), - ); -} - export function accountingPurchaseOrdersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpurchaseordersone.ts b/src/models/operations/accountingpurchaseordersone.ts index 81696224f..943338aba 100644 --- a/src/models/operations/accountingpurchaseordersone.ts +++ b/src/models/operations/accountingpurchaseordersone.ts @@ -55,80 +55,6 @@ export type AccountingPurchaseOrdersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPurchaseOrdersOneGlobals$inboundSchema: z.ZodType< - AccountingPurchaseOrdersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPurchaseOrdersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersOneGlobals$outboundSchema: z.ZodType< - AccountingPurchaseOrdersOneGlobals$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersOneGlobals$ { - /** @deprecated use `AccountingPurchaseOrdersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersOneGlobals$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersOneGlobals$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneGlobals$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersOneGlobals$Outbound; -} - -export function accountingPurchaseOrdersOneGlobalsToJSON( - accountingPurchaseOrdersOneGlobals: AccountingPurchaseOrdersOneGlobals, -): string { - return JSON.stringify( - AccountingPurchaseOrdersOneGlobals$outboundSchema.parse( - accountingPurchaseOrdersOneGlobals, - ), - ); -} - -export function accountingPurchaseOrdersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPurchaseOrdersOneRequest$inboundSchema: z.ZodType< - AccountingPurchaseOrdersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingPurchaseOrdersOneRequest$Outbound = { id: string; @@ -151,20 +77,6 @@ export const AccountingPurchaseOrdersOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersOneRequest$ { - /** @deprecated use `AccountingPurchaseOrdersOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingPurchaseOrdersOneRequest$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersOneRequest$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneRequest$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersOneRequest$Outbound; -} - export function accountingPurchaseOrdersOneRequestToJSON( accountingPurchaseOrdersOneRequest: AccountingPurchaseOrdersOneRequest, ): string { @@ -175,17 +87,6 @@ export function accountingPurchaseOrdersOneRequestToJSON( ); } -export function accountingPurchaseOrdersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPurchaseOrdersOneResponse$inboundSchema: z.ZodType< AccountingPurchaseOrdersOneResponse, @@ -205,61 +106,6 @@ export const AccountingPurchaseOrdersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPurchaseOrdersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPurchaseOrderResponse?: - | components.GetPurchaseOrderResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersOneResponse$outboundSchema: z.ZodType< - AccountingPurchaseOrdersOneResponse$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPurchaseOrderResponse: components.GetPurchaseOrderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPurchaseOrderResponse: "GetPurchaseOrderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersOneResponse$ { - /** @deprecated use `AccountingPurchaseOrdersOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersOneResponse$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersOneResponse$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersOneResponse$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersOneResponse$Outbound; -} - -export function accountingPurchaseOrdersOneResponseToJSON( - accountingPurchaseOrdersOneResponse: AccountingPurchaseOrdersOneResponse, -): string { - return JSON.stringify( - AccountingPurchaseOrdersOneResponse$outboundSchema.parse( - accountingPurchaseOrdersOneResponse, - ), - ); -} - export function accountingPurchaseOrdersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingpurchaseordersupdate.ts b/src/models/operations/accountingpurchaseordersupdate.ts index 652c118fa..88b4807ba 100644 --- a/src/models/operations/accountingpurchaseordersupdate.ts +++ b/src/models/operations/accountingpurchaseordersupdate.ts @@ -58,86 +58,6 @@ export type AccountingPurchaseOrdersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingPurchaseOrdersUpdateGlobals$inboundSchema: z.ZodType< - AccountingPurchaseOrdersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingPurchaseOrdersUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersUpdateGlobals$outboundSchema: z.ZodType< - AccountingPurchaseOrdersUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersUpdateGlobals$ { - /** @deprecated use `AccountingPurchaseOrdersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersUpdateGlobals$Outbound; -} - -export function accountingPurchaseOrdersUpdateGlobalsToJSON( - accountingPurchaseOrdersUpdateGlobals: AccountingPurchaseOrdersUpdateGlobals, -): string { - return JSON.stringify( - AccountingPurchaseOrdersUpdateGlobals$outboundSchema.parse( - accountingPurchaseOrdersUpdateGlobals, - ), - ); -} - -export function accountingPurchaseOrdersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingPurchaseOrdersUpdateRequest$inboundSchema: z.ZodType< - AccountingPurchaseOrdersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - PurchaseOrder: components.PurchaseOrderInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "PurchaseOrder": "purchaseOrder", - }); -}); - /** @internal */ export type AccountingPurchaseOrdersUpdateRequest$Outbound = { id: string; @@ -166,21 +86,6 @@ export const AccountingPurchaseOrdersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersUpdateRequest$ { - /** @deprecated use `AccountingPurchaseOrdersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersUpdateRequest$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersUpdateRequest$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersUpdateRequest$Outbound; -} - export function accountingPurchaseOrdersUpdateRequestToJSON( accountingPurchaseOrdersUpdateRequest: AccountingPurchaseOrdersUpdateRequest, ): string { @@ -191,17 +96,6 @@ export function accountingPurchaseOrdersUpdateRequestToJSON( ); } -export function accountingPurchaseOrdersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingPurchaseOrdersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingPurchaseOrdersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingPurchaseOrdersUpdateResponse$inboundSchema: z.ZodType< AccountingPurchaseOrdersUpdateResponse, @@ -221,62 +115,6 @@ export const AccountingPurchaseOrdersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingPurchaseOrdersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdatePurchaseOrderResponse?: - | components.UpdatePurchaseOrderResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingPurchaseOrdersUpdateResponse$outboundSchema: z.ZodType< - AccountingPurchaseOrdersUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingPurchaseOrdersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updatePurchaseOrderResponse: components - .UpdatePurchaseOrderResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updatePurchaseOrderResponse: "UpdatePurchaseOrderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingPurchaseOrdersUpdateResponse$ { - /** @deprecated use `AccountingPurchaseOrdersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingPurchaseOrdersUpdateResponse$inboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingPurchaseOrdersUpdateResponse$outboundSchema; - /** @deprecated use `AccountingPurchaseOrdersUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingPurchaseOrdersUpdateResponse$Outbound; -} - -export function accountingPurchaseOrdersUpdateResponseToJSON( - accountingPurchaseOrdersUpdateResponse: - AccountingPurchaseOrdersUpdateResponse, -): string { - return JSON.stringify( - AccountingPurchaseOrdersUpdateResponse$outboundSchema.parse( - accountingPurchaseOrdersUpdateResponse, - ), - ); -} - export function accountingPurchaseOrdersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingquotesadd.ts b/src/models/operations/accountingquotesadd.ts index b6d162a9d..e7491a2cc 100644 --- a/src/models/operations/accountingquotesadd.ts +++ b/src/models/operations/accountingquotesadd.ts @@ -52,80 +52,6 @@ export type AccountingQuotesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingQuotesAddGlobals$inboundSchema: z.ZodType< - AccountingQuotesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingQuotesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingQuotesAddGlobals$outboundSchema: z.ZodType< - AccountingQuotesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingQuotesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAddGlobals$ { - /** @deprecated use `AccountingQuotesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAddGlobals$inboundSchema; - /** @deprecated use `AccountingQuotesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAddGlobals$outboundSchema; - /** @deprecated use `AccountingQuotesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingQuotesAddGlobals$Outbound; -} - -export function accountingQuotesAddGlobalsToJSON( - accountingQuotesAddGlobals: AccountingQuotesAddGlobals, -): string { - return JSON.stringify( - AccountingQuotesAddGlobals$outboundSchema.parse(accountingQuotesAddGlobals), - ); -} - -export function accountingQuotesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingQuotesAddRequest$inboundSchema: z.ZodType< - AccountingQuotesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Quote: components.QuoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Quote": "quote", - }); -}); - /** @internal */ export type AccountingQuotesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const AccountingQuotesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAddRequest$ { - /** @deprecated use `AccountingQuotesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAddRequest$inboundSchema; - /** @deprecated use `AccountingQuotesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAddRequest$outboundSchema; - /** @deprecated use `AccountingQuotesAddRequest$Outbound` instead. */ - export type Outbound = AccountingQuotesAddRequest$Outbound; -} - export function accountingQuotesAddRequestToJSON( accountingQuotesAddRequest: AccountingQuotesAddRequest, ): string { @@ -173,16 +86,6 @@ export function accountingQuotesAddRequestToJSON( ); } -export function accountingQuotesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingQuotesAddResponse$inboundSchema: z.ZodType< AccountingQuotesAddResponse, @@ -201,56 +104,6 @@ export const AccountingQuotesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingQuotesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateQuoteResponse?: components.CreateQuoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingQuotesAddResponse$outboundSchema: z.ZodType< - AccountingQuotesAddResponse$Outbound, - z.ZodTypeDef, - AccountingQuotesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createQuoteResponse: components.CreateQuoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createQuoteResponse: "CreateQuoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAddResponse$ { - /** @deprecated use `AccountingQuotesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAddResponse$inboundSchema; - /** @deprecated use `AccountingQuotesAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAddResponse$outboundSchema; - /** @deprecated use `AccountingQuotesAddResponse$Outbound` instead. */ - export type Outbound = AccountingQuotesAddResponse$Outbound; -} - -export function accountingQuotesAddResponseToJSON( - accountingQuotesAddResponse: AccountingQuotesAddResponse, -): string { - return JSON.stringify( - AccountingQuotesAddResponse$outboundSchema.parse( - accountingQuotesAddResponse, - ), - ); -} - export function accountingQuotesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingquotesall.ts b/src/models/operations/accountingquotesall.ts index 0f24ea6a2..d3104d2b1 100644 --- a/src/models/operations/accountingquotesall.ts +++ b/src/models/operations/accountingquotesall.ts @@ -59,77 +59,6 @@ export type AccountingQuotesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingQuotesAllGlobals$inboundSchema: z.ZodType< - AccountingQuotesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingQuotesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingQuotesAllGlobals$outboundSchema: z.ZodType< - AccountingQuotesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingQuotesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAllGlobals$ { - /** @deprecated use `AccountingQuotesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAllGlobals$inboundSchema; - /** @deprecated use `AccountingQuotesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAllGlobals$outboundSchema; - /** @deprecated use `AccountingQuotesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingQuotesAllGlobals$Outbound; -} - -export function accountingQuotesAllGlobalsToJSON( - accountingQuotesAllGlobals: AccountingQuotesAllGlobals, -): string { - return JSON.stringify( - AccountingQuotesAllGlobals$outboundSchema.parse(accountingQuotesAllGlobals), - ); -} - -export function accountingQuotesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingQuotesAllRequest$inboundSchema: z.ZodType< - AccountingQuotesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), -}); - /** @internal */ export type AccountingQuotesAllRequest$Outbound = { raw: boolean; @@ -154,19 +83,6 @@ export const AccountingQuotesAllRequest$outboundSchema: z.ZodType< limit: z.number().int().default(20), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAllRequest$ { - /** @deprecated use `AccountingQuotesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAllRequest$inboundSchema; - /** @deprecated use `AccountingQuotesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAllRequest$outboundSchema; - /** @deprecated use `AccountingQuotesAllRequest$Outbound` instead. */ - export type Outbound = AccountingQuotesAllRequest$Outbound; -} - export function accountingQuotesAllRequestToJSON( accountingQuotesAllRequest: AccountingQuotesAllRequest, ): string { @@ -175,16 +91,6 @@ export function accountingQuotesAllRequestToJSON( ); } -export function accountingQuotesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingQuotesAllResponse$inboundSchema: z.ZodType< AccountingQuotesAllResponse, @@ -203,56 +109,6 @@ export const AccountingQuotesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingQuotesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetQuotesResponse?: components.GetQuotesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingQuotesAllResponse$outboundSchema: z.ZodType< - AccountingQuotesAllResponse$Outbound, - z.ZodTypeDef, - AccountingQuotesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getQuotesResponse: components.GetQuotesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getQuotesResponse: "GetQuotesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesAllResponse$ { - /** @deprecated use `AccountingQuotesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesAllResponse$inboundSchema; - /** @deprecated use `AccountingQuotesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesAllResponse$outboundSchema; - /** @deprecated use `AccountingQuotesAllResponse$Outbound` instead. */ - export type Outbound = AccountingQuotesAllResponse$Outbound; -} - -export function accountingQuotesAllResponseToJSON( - accountingQuotesAllResponse: AccountingQuotesAllResponse, -): string { - return JSON.stringify( - AccountingQuotesAllResponse$outboundSchema.parse( - accountingQuotesAllResponse, - ), - ); -} - export function accountingQuotesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingquotesdelete.ts b/src/models/operations/accountingquotesdelete.ts index d3507d11b..7f12cf7a0 100644 --- a/src/models/operations/accountingquotesdelete.ts +++ b/src/models/operations/accountingquotesdelete.ts @@ -55,78 +55,6 @@ export type AccountingQuotesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingQuotesDeleteGlobals$inboundSchema: z.ZodType< - AccountingQuotesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingQuotesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingQuotesDeleteGlobals$outboundSchema: z.ZodType< - AccountingQuotesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingQuotesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesDeleteGlobals$ { - /** @deprecated use `AccountingQuotesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingQuotesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingQuotesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingQuotesDeleteGlobals$Outbound; -} - -export function accountingQuotesDeleteGlobalsToJSON( - accountingQuotesDeleteGlobals: AccountingQuotesDeleteGlobals, -): string { - return JSON.stringify( - AccountingQuotesDeleteGlobals$outboundSchema.parse( - accountingQuotesDeleteGlobals, - ), - ); -} - -export function accountingQuotesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingQuotesDeleteRequest$inboundSchema: z.ZodType< - AccountingQuotesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingQuotesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingQuotesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesDeleteRequest$ { - /** @deprecated use `AccountingQuotesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingQuotesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingQuotesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingQuotesDeleteRequest$Outbound; -} - export function accountingQuotesDeleteRequestToJSON( accountingQuotesDeleteRequest: AccountingQuotesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingQuotesDeleteRequestToJSON( ); } -export function accountingQuotesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingQuotesDeleteResponse$inboundSchema: z.ZodType< AccountingQuotesDeleteResponse, @@ -200,56 +105,6 @@ export const AccountingQuotesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingQuotesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteQuoteResponse?: components.DeleteQuoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingQuotesDeleteResponse$outboundSchema: z.ZodType< - AccountingQuotesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingQuotesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteQuoteResponse: components.DeleteQuoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteQuoteResponse: "DeleteQuoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesDeleteResponse$ { - /** @deprecated use `AccountingQuotesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingQuotesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingQuotesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingQuotesDeleteResponse$Outbound; -} - -export function accountingQuotesDeleteResponseToJSON( - accountingQuotesDeleteResponse: AccountingQuotesDeleteResponse, -): string { - return JSON.stringify( - AccountingQuotesDeleteResponse$outboundSchema.parse( - accountingQuotesDeleteResponse, - ), - ); -} - export function accountingQuotesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingquotesone.ts b/src/models/operations/accountingquotesone.ts index 4c5adb32f..1ec706dd7 100644 --- a/src/models/operations/accountingquotesone.ts +++ b/src/models/operations/accountingquotesone.ts @@ -55,76 +55,6 @@ export type AccountingQuotesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingQuotesOneGlobals$inboundSchema: z.ZodType< - AccountingQuotesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingQuotesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingQuotesOneGlobals$outboundSchema: z.ZodType< - AccountingQuotesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingQuotesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesOneGlobals$ { - /** @deprecated use `AccountingQuotesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesOneGlobals$inboundSchema; - /** @deprecated use `AccountingQuotesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesOneGlobals$outboundSchema; - /** @deprecated use `AccountingQuotesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingQuotesOneGlobals$Outbound; -} - -export function accountingQuotesOneGlobalsToJSON( - accountingQuotesOneGlobals: AccountingQuotesOneGlobals, -): string { - return JSON.stringify( - AccountingQuotesOneGlobals$outboundSchema.parse(accountingQuotesOneGlobals), - ); -} - -export function accountingQuotesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingQuotesOneRequest$inboundSchema: z.ZodType< - AccountingQuotesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingQuotesOneRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const AccountingQuotesOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesOneRequest$ { - /** @deprecated use `AccountingQuotesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesOneRequest$inboundSchema; - /** @deprecated use `AccountingQuotesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesOneRequest$outboundSchema; - /** @deprecated use `AccountingQuotesOneRequest$Outbound` instead. */ - export type Outbound = AccountingQuotesOneRequest$Outbound; -} - export function accountingQuotesOneRequestToJSON( accountingQuotesOneRequest: AccountingQuotesOneRequest, ): string { @@ -168,16 +85,6 @@ export function accountingQuotesOneRequestToJSON( ); } -export function accountingQuotesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingQuotesOneResponse$inboundSchema: z.ZodType< AccountingQuotesOneResponse, @@ -196,56 +103,6 @@ export const AccountingQuotesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingQuotesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetQuoteResponse?: components.GetQuoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingQuotesOneResponse$outboundSchema: z.ZodType< - AccountingQuotesOneResponse$Outbound, - z.ZodTypeDef, - AccountingQuotesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getQuoteResponse: components.GetQuoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getQuoteResponse: "GetQuoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesOneResponse$ { - /** @deprecated use `AccountingQuotesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesOneResponse$inboundSchema; - /** @deprecated use `AccountingQuotesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesOneResponse$outboundSchema; - /** @deprecated use `AccountingQuotesOneResponse$Outbound` instead. */ - export type Outbound = AccountingQuotesOneResponse$Outbound; -} - -export function accountingQuotesOneResponseToJSON( - accountingQuotesOneResponse: AccountingQuotesOneResponse, -): string { - return JSON.stringify( - AccountingQuotesOneResponse$outboundSchema.parse( - accountingQuotesOneResponse, - ), - ); -} - export function accountingQuotesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingquotesupdate.ts b/src/models/operations/accountingquotesupdate.ts index b3a7a9b63..57bac74f6 100644 --- a/src/models/operations/accountingquotesupdate.ts +++ b/src/models/operations/accountingquotesupdate.ts @@ -56,83 +56,6 @@ export type AccountingQuotesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingQuotesUpdateGlobals$inboundSchema: z.ZodType< - AccountingQuotesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingQuotesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingQuotesUpdateGlobals$outboundSchema: z.ZodType< - AccountingQuotesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingQuotesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesUpdateGlobals$ { - /** @deprecated use `AccountingQuotesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingQuotesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingQuotesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingQuotesUpdateGlobals$Outbound; -} - -export function accountingQuotesUpdateGlobalsToJSON( - accountingQuotesUpdateGlobals: AccountingQuotesUpdateGlobals, -): string { - return JSON.stringify( - AccountingQuotesUpdateGlobals$outboundSchema.parse( - accountingQuotesUpdateGlobals, - ), - ); -} - -export function accountingQuotesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingQuotesUpdateRequest$inboundSchema: z.ZodType< - AccountingQuotesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Quote: components.QuoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Quote": "quote", - }); -}); - /** @internal */ export type AccountingQuotesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingQuotesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesUpdateRequest$ { - /** @deprecated use `AccountingQuotesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingQuotesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingQuotesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingQuotesUpdateRequest$Outbound; -} - export function accountingQuotesUpdateRequestToJSON( accountingQuotesUpdateRequest: AccountingQuotesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingQuotesUpdateRequestToJSON( ); } -export function accountingQuotesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingQuotesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingQuotesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingQuotesUpdateResponse$inboundSchema: z.ZodType< AccountingQuotesUpdateResponse, @@ -212,56 +112,6 @@ export const AccountingQuotesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingQuotesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateQuoteResponse?: components.UpdateQuoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingQuotesUpdateResponse$outboundSchema: z.ZodType< - AccountingQuotesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingQuotesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateQuoteResponse: components.UpdateQuoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateQuoteResponse: "UpdateQuoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingQuotesUpdateResponse$ { - /** @deprecated use `AccountingQuotesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingQuotesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingQuotesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingQuotesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingQuotesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingQuotesUpdateResponse$Outbound; -} - -export function accountingQuotesUpdateResponseToJSON( - accountingQuotesUpdateResponse: AccountingQuotesUpdateResponse, -): string { - return JSON.stringify( - AccountingQuotesUpdateResponse$outboundSchema.parse( - accountingQuotesUpdateResponse, - ), - ); -} - export function accountingQuotesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsubsidiariesadd.ts b/src/models/operations/accountingsubsidiariesadd.ts index 629c1590c..a1e0a67de 100644 --- a/src/models/operations/accountingsubsidiariesadd.ts +++ b/src/models/operations/accountingsubsidiariesadd.ts @@ -52,82 +52,6 @@ export type AccountingSubsidiariesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSubsidiariesAddGlobals$inboundSchema: z.ZodType< - AccountingSubsidiariesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSubsidiariesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesAddGlobals$outboundSchema: z.ZodType< - AccountingSubsidiariesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAddGlobals$ { - /** @deprecated use `AccountingSubsidiariesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAddGlobals$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesAddGlobals$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAddGlobals$Outbound; -} - -export function accountingSubsidiariesAddGlobalsToJSON( - accountingSubsidiariesAddGlobals: AccountingSubsidiariesAddGlobals, -): string { - return JSON.stringify( - AccountingSubsidiariesAddGlobals$outboundSchema.parse( - accountingSubsidiariesAddGlobals, - ), - ); -} - -export function accountingSubsidiariesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSubsidiariesAddRequest$inboundSchema: z.ZodType< - AccountingSubsidiariesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Subsidiary: components.SubsidiaryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Subsidiary": "subsidiary", - }); -}); - /** @internal */ export type AccountingSubsidiariesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingSubsidiariesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAddRequest$ { - /** @deprecated use `AccountingSubsidiariesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAddRequest$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesAddRequest$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAddRequest$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAddRequest$Outbound; -} - export function accountingSubsidiariesAddRequestToJSON( accountingSubsidiariesAddRequest: AccountingSubsidiariesAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingSubsidiariesAddRequestToJSON( ); } -export function accountingSubsidiariesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSubsidiariesAddResponse$inboundSchema: z.ZodType< AccountingSubsidiariesAddResponse, @@ -206,60 +107,6 @@ export const AccountingSubsidiariesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSubsidiariesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateSubsidiaryResponse?: - | components.CreateSubsidiaryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesAddResponse$outboundSchema: z.ZodType< - AccountingSubsidiariesAddResponse$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createSubsidiaryResponse: components.CreateSubsidiaryResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createSubsidiaryResponse: "CreateSubsidiaryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAddResponse$ { - /** @deprecated use `AccountingSubsidiariesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAddResponse$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesAddResponse$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAddResponse$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAddResponse$Outbound; -} - -export function accountingSubsidiariesAddResponseToJSON( - accountingSubsidiariesAddResponse: AccountingSubsidiariesAddResponse, -): string { - return JSON.stringify( - AccountingSubsidiariesAddResponse$outboundSchema.parse( - accountingSubsidiariesAddResponse, - ), - ); -} - export function accountingSubsidiariesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsubsidiariesall.ts b/src/models/operations/accountingsubsidiariesall.ts index 9a61b6554..b27d69238 100644 --- a/src/models/operations/accountingsubsidiariesall.ts +++ b/src/models/operations/accountingsubsidiariesall.ts @@ -63,80 +63,6 @@ export type AccountingSubsidiariesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSubsidiariesAllGlobals$inboundSchema: z.ZodType< - AccountingSubsidiariesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSubsidiariesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesAllGlobals$outboundSchema: z.ZodType< - AccountingSubsidiariesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAllGlobals$ { - /** @deprecated use `AccountingSubsidiariesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAllGlobals$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesAllGlobals$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAllGlobals$Outbound; -} - -export function accountingSubsidiariesAllGlobalsToJSON( - accountingSubsidiariesAllGlobals: AccountingSubsidiariesAllGlobals, -): string { - return JSON.stringify( - AccountingSubsidiariesAllGlobals$outboundSchema.parse( - accountingSubsidiariesAllGlobals, - ), - ); -} - -export function accountingSubsidiariesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSubsidiariesAllRequest$inboundSchema: z.ZodType< - AccountingSubsidiariesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingSubsidiariesAllRequest$Outbound = { raw: boolean; @@ -163,19 +89,6 @@ export const AccountingSubsidiariesAllRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAllRequest$ { - /** @deprecated use `AccountingSubsidiariesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAllRequest$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesAllRequest$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAllRequest$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAllRequest$Outbound; -} - export function accountingSubsidiariesAllRequestToJSON( accountingSubsidiariesAllRequest: AccountingSubsidiariesAllRequest, ): string { @@ -186,16 +99,6 @@ export function accountingSubsidiariesAllRequestToJSON( ); } -export function accountingSubsidiariesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSubsidiariesAllResponse$inboundSchema: z.ZodType< AccountingSubsidiariesAllResponse, @@ -215,60 +118,6 @@ export const AccountingSubsidiariesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSubsidiariesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSubsidiariesResponse?: - | components.GetSubsidiariesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesAllResponse$outboundSchema: z.ZodType< - AccountingSubsidiariesAllResponse$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSubsidiariesResponse: components.GetSubsidiariesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSubsidiariesResponse: "GetSubsidiariesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesAllResponse$ { - /** @deprecated use `AccountingSubsidiariesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesAllResponse$inboundSchema; - /** @deprecated use `AccountingSubsidiariesAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesAllResponse$outboundSchema; - /** @deprecated use `AccountingSubsidiariesAllResponse$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesAllResponse$Outbound; -} - -export function accountingSubsidiariesAllResponseToJSON( - accountingSubsidiariesAllResponse: AccountingSubsidiariesAllResponse, -): string { - return JSON.stringify( - AccountingSubsidiariesAllResponse$outboundSchema.parse( - accountingSubsidiariesAllResponse, - ), - ); -} - export function accountingSubsidiariesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsubsidiariesdelete.ts b/src/models/operations/accountingsubsidiariesdelete.ts index a18f00334..857017513 100644 --- a/src/models/operations/accountingsubsidiariesdelete.ts +++ b/src/models/operations/accountingsubsidiariesdelete.ts @@ -55,81 +55,6 @@ export type AccountingSubsidiariesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSubsidiariesDeleteGlobals$inboundSchema: z.ZodType< - AccountingSubsidiariesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSubsidiariesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesDeleteGlobals$outboundSchema: z.ZodType< - AccountingSubsidiariesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesDeleteGlobals$ { - /** @deprecated use `AccountingSubsidiariesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesDeleteGlobals$Outbound; -} - -export function accountingSubsidiariesDeleteGlobalsToJSON( - accountingSubsidiariesDeleteGlobals: AccountingSubsidiariesDeleteGlobals, -): string { - return JSON.stringify( - AccountingSubsidiariesDeleteGlobals$outboundSchema.parse( - accountingSubsidiariesDeleteGlobals, - ), - ); -} - -export function accountingSubsidiariesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingSubsidiariesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSubsidiariesDeleteRequest$inboundSchema: z.ZodType< - AccountingSubsidiariesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingSubsidiariesDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const AccountingSubsidiariesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesDeleteRequest$ { - /** @deprecated use `AccountingSubsidiariesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesDeleteRequest$Outbound; -} - export function accountingSubsidiariesDeleteRequestToJSON( accountingSubsidiariesDeleteRequest: AccountingSubsidiariesDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function accountingSubsidiariesDeleteRequestToJSON( ); } -export function accountingSubsidiariesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingSubsidiariesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSubsidiariesDeleteResponse$inboundSchema: z.ZodType< AccountingSubsidiariesDeleteResponse, @@ -207,61 +106,6 @@ export const AccountingSubsidiariesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSubsidiariesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteSubsidiaryResponse?: - | components.DeleteSubsidiaryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesDeleteResponse$outboundSchema: z.ZodType< - AccountingSubsidiariesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteSubsidiaryResponse: components.DeleteSubsidiaryResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteSubsidiaryResponse: "DeleteSubsidiaryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesDeleteResponse$ { - /** @deprecated use `AccountingSubsidiariesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingSubsidiariesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesDeleteResponse$Outbound; -} - -export function accountingSubsidiariesDeleteResponseToJSON( - accountingSubsidiariesDeleteResponse: AccountingSubsidiariesDeleteResponse, -): string { - return JSON.stringify( - AccountingSubsidiariesDeleteResponse$outboundSchema.parse( - accountingSubsidiariesDeleteResponse, - ), - ); -} - export function accountingSubsidiariesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsubsidiariesone.ts b/src/models/operations/accountingsubsidiariesone.ts index cfc921d46..ce53f2157 100644 --- a/src/models/operations/accountingsubsidiariesone.ts +++ b/src/models/operations/accountingsubsidiariesone.ts @@ -59,79 +59,6 @@ export type AccountingSubsidiariesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSubsidiariesOneGlobals$inboundSchema: z.ZodType< - AccountingSubsidiariesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSubsidiariesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesOneGlobals$outboundSchema: z.ZodType< - AccountingSubsidiariesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesOneGlobals$ { - /** @deprecated use `AccountingSubsidiariesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesOneGlobals$inboundSchema; - /** @deprecated use `AccountingSubsidiariesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesOneGlobals$outboundSchema; - /** @deprecated use `AccountingSubsidiariesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesOneGlobals$Outbound; -} - -export function accountingSubsidiariesOneGlobalsToJSON( - accountingSubsidiariesOneGlobals: AccountingSubsidiariesOneGlobals, -): string { - return JSON.stringify( - AccountingSubsidiariesOneGlobals$outboundSchema.parse( - accountingSubsidiariesOneGlobals, - ), - ); -} - -export function accountingSubsidiariesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSubsidiariesOneRequest$inboundSchema: z.ZodType< - AccountingSubsidiariesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingSubsidiariesOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingSubsidiariesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesOneRequest$ { - /** @deprecated use `AccountingSubsidiariesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesOneRequest$inboundSchema; - /** @deprecated use `AccountingSubsidiariesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSubsidiariesOneRequest$outboundSchema; - /** @deprecated use `AccountingSubsidiariesOneRequest$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesOneRequest$Outbound; -} - export function accountingSubsidiariesOneRequestToJSON( accountingSubsidiariesOneRequest: AccountingSubsidiariesOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingSubsidiariesOneRequestToJSON( ); } -export function accountingSubsidiariesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSubsidiariesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSubsidiariesOneResponse$inboundSchema: z.ZodType< AccountingSubsidiariesOneResponse, @@ -208,58 +112,6 @@ export const AccountingSubsidiariesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSubsidiariesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSubsidiaryResponse?: components.GetSubsidiaryResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesOneResponse$outboundSchema: z.ZodType< - AccountingSubsidiariesOneResponse$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSubsidiaryResponse: components.GetSubsidiaryResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSubsidiaryResponse: "GetSubsidiaryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesOneResponse$ { - /** @deprecated use `AccountingSubsidiariesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSubsidiariesOneResponse$inboundSchema; - /** @deprecated use `AccountingSubsidiariesOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesOneResponse$outboundSchema; - /** @deprecated use `AccountingSubsidiariesOneResponse$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesOneResponse$Outbound; -} - -export function accountingSubsidiariesOneResponseToJSON( - accountingSubsidiariesOneResponse: AccountingSubsidiariesOneResponse, -): string { - return JSON.stringify( - AccountingSubsidiariesOneResponse$outboundSchema.parse( - accountingSubsidiariesOneResponse, - ), - ); -} - export function accountingSubsidiariesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsubsidiariesupdate.ts b/src/models/operations/accountingsubsidiariesupdate.ts index cd14ca514..8f8102abe 100644 --- a/src/models/operations/accountingsubsidiariesupdate.ts +++ b/src/models/operations/accountingsubsidiariesupdate.ts @@ -56,86 +56,6 @@ export type AccountingSubsidiariesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSubsidiariesUpdateGlobals$inboundSchema: z.ZodType< - AccountingSubsidiariesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSubsidiariesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesUpdateGlobals$outboundSchema: z.ZodType< - AccountingSubsidiariesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesUpdateGlobals$ { - /** @deprecated use `AccountingSubsidiariesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesUpdateGlobals$Outbound; -} - -export function accountingSubsidiariesUpdateGlobalsToJSON( - accountingSubsidiariesUpdateGlobals: AccountingSubsidiariesUpdateGlobals, -): string { - return JSON.stringify( - AccountingSubsidiariesUpdateGlobals$outboundSchema.parse( - accountingSubsidiariesUpdateGlobals, - ), - ); -} - -export function accountingSubsidiariesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingSubsidiariesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSubsidiariesUpdateRequest$inboundSchema: z.ZodType< - AccountingSubsidiariesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Subsidiary: components.SubsidiaryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Subsidiary": "subsidiary", - }); -}); - /** @internal */ export type AccountingSubsidiariesUpdateRequest$Outbound = { id: string; @@ -164,21 +84,6 @@ export const AccountingSubsidiariesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesUpdateRequest$ { - /** @deprecated use `AccountingSubsidiariesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesUpdateRequest$Outbound; -} - export function accountingSubsidiariesUpdateRequestToJSON( accountingSubsidiariesUpdateRequest: AccountingSubsidiariesUpdateRequest, ): string { @@ -189,17 +94,6 @@ export function accountingSubsidiariesUpdateRequestToJSON( ); } -export function accountingSubsidiariesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingSubsidiariesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSubsidiariesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSubsidiariesUpdateResponse$inboundSchema: z.ZodType< AccountingSubsidiariesUpdateResponse, @@ -219,61 +113,6 @@ export const AccountingSubsidiariesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSubsidiariesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateSubsidiaryResponse?: - | components.UpdateSubsidiaryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSubsidiariesUpdateResponse$outboundSchema: z.ZodType< - AccountingSubsidiariesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingSubsidiariesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateSubsidiaryResponse: components.UpdateSubsidiaryResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateSubsidiaryResponse: "UpdateSubsidiaryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSubsidiariesUpdateResponse$ { - /** @deprecated use `AccountingSubsidiariesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingSubsidiariesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSubsidiariesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingSubsidiariesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingSubsidiariesUpdateResponse$Outbound; -} - -export function accountingSubsidiariesUpdateResponseToJSON( - accountingSubsidiariesUpdateResponse: AccountingSubsidiariesUpdateResponse, -): string { - return JSON.stringify( - AccountingSubsidiariesUpdateResponse$outboundSchema.parse( - accountingSubsidiariesUpdateResponse, - ), - ); -} - export function accountingSubsidiariesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsuppliersadd.ts b/src/models/operations/accountingsuppliersadd.ts index 487dde1f1..ca88abc5c 100644 --- a/src/models/operations/accountingsuppliersadd.ts +++ b/src/models/operations/accountingsuppliersadd.ts @@ -52,82 +52,6 @@ export type AccountingSuppliersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSuppliersAddGlobals$inboundSchema: z.ZodType< - AccountingSuppliersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSuppliersAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSuppliersAddGlobals$outboundSchema: z.ZodType< - AccountingSuppliersAddGlobals$Outbound, - z.ZodTypeDef, - AccountingSuppliersAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAddGlobals$ { - /** @deprecated use `AccountingSuppliersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAddGlobals$inboundSchema; - /** @deprecated use `AccountingSuppliersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAddGlobals$outboundSchema; - /** @deprecated use `AccountingSuppliersAddGlobals$Outbound` instead. */ - export type Outbound = AccountingSuppliersAddGlobals$Outbound; -} - -export function accountingSuppliersAddGlobalsToJSON( - accountingSuppliersAddGlobals: AccountingSuppliersAddGlobals, -): string { - return JSON.stringify( - AccountingSuppliersAddGlobals$outboundSchema.parse( - accountingSuppliersAddGlobals, - ), - ); -} - -export function accountingSuppliersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSuppliersAddRequest$inboundSchema: z.ZodType< - AccountingSuppliersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Supplier: components.SupplierInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Supplier": "supplier", - }); -}); - /** @internal */ export type AccountingSuppliersAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingSuppliersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAddRequest$ { - /** @deprecated use `AccountingSuppliersAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAddRequest$inboundSchema; - /** @deprecated use `AccountingSuppliersAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAddRequest$outboundSchema; - /** @deprecated use `AccountingSuppliersAddRequest$Outbound` instead. */ - export type Outbound = AccountingSuppliersAddRequest$Outbound; -} - export function accountingSuppliersAddRequestToJSON( accountingSuppliersAddRequest: AccountingSuppliersAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingSuppliersAddRequestToJSON( ); } -export function accountingSuppliersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSuppliersAddResponse$inboundSchema: z.ZodType< AccountingSuppliersAddResponse, @@ -206,59 +107,6 @@ export const AccountingSuppliersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSuppliersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateSupplierResponse?: - | components.CreateSupplierResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSuppliersAddResponse$outboundSchema: z.ZodType< - AccountingSuppliersAddResponse$Outbound, - z.ZodTypeDef, - AccountingSuppliersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createSupplierResponse: components.CreateSupplierResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createSupplierResponse: "CreateSupplierResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAddResponse$ { - /** @deprecated use `AccountingSuppliersAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAddResponse$inboundSchema; - /** @deprecated use `AccountingSuppliersAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAddResponse$outboundSchema; - /** @deprecated use `AccountingSuppliersAddResponse$Outbound` instead. */ - export type Outbound = AccountingSuppliersAddResponse$Outbound; -} - -export function accountingSuppliersAddResponseToJSON( - accountingSuppliersAddResponse: AccountingSuppliersAddResponse, -): string { - return JSON.stringify( - AccountingSuppliersAddResponse$outboundSchema.parse( - accountingSuppliersAddResponse, - ), - ); -} - export function accountingSuppliersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsuppliersall.ts b/src/models/operations/accountingsuppliersall.ts index 5ff4a98ba..1d7581e2e 100644 --- a/src/models/operations/accountingsuppliersall.ts +++ b/src/models/operations/accountingsuppliersall.ts @@ -75,87 +75,6 @@ export type AccountingSuppliersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSuppliersAllGlobals$inboundSchema: z.ZodType< - AccountingSuppliersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSuppliersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSuppliersAllGlobals$outboundSchema: z.ZodType< - AccountingSuppliersAllGlobals$Outbound, - z.ZodTypeDef, - AccountingSuppliersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAllGlobals$ { - /** @deprecated use `AccountingSuppliersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAllGlobals$inboundSchema; - /** @deprecated use `AccountingSuppliersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAllGlobals$outboundSchema; - /** @deprecated use `AccountingSuppliersAllGlobals$Outbound` instead. */ - export type Outbound = AccountingSuppliersAllGlobals$Outbound; -} - -export function accountingSuppliersAllGlobalsToJSON( - accountingSuppliersAllGlobals: AccountingSuppliersAllGlobals, -): string { - return JSON.stringify( - AccountingSuppliersAllGlobals$outboundSchema.parse( - accountingSuppliersAllGlobals, - ), - ); -} - -export function accountingSuppliersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSuppliersAllRequest$inboundSchema: z.ZodType< - AccountingSuppliersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.SuppliersFilter$inboundSchema.optional(), - sort: components.SuppliersSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingSuppliersAllRequest$Outbound = { raw: boolean; @@ -192,19 +111,6 @@ export const AccountingSuppliersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAllRequest$ { - /** @deprecated use `AccountingSuppliersAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAllRequest$inboundSchema; - /** @deprecated use `AccountingSuppliersAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAllRequest$outboundSchema; - /** @deprecated use `AccountingSuppliersAllRequest$Outbound` instead. */ - export type Outbound = AccountingSuppliersAllRequest$Outbound; -} - export function accountingSuppliersAllRequestToJSON( accountingSuppliersAllRequest: AccountingSuppliersAllRequest, ): string { @@ -215,16 +121,6 @@ export function accountingSuppliersAllRequestToJSON( ); } -export function accountingSuppliersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSuppliersAllResponse$inboundSchema: z.ZodType< AccountingSuppliersAllResponse, @@ -244,57 +140,6 @@ export const AccountingSuppliersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSuppliersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSuppliersResponse?: components.GetSuppliersResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSuppliersAllResponse$outboundSchema: z.ZodType< - AccountingSuppliersAllResponse$Outbound, - z.ZodTypeDef, - AccountingSuppliersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSuppliersResponse: components.GetSuppliersResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSuppliersResponse: "GetSuppliersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersAllResponse$ { - /** @deprecated use `AccountingSuppliersAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersAllResponse$inboundSchema; - /** @deprecated use `AccountingSuppliersAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersAllResponse$outboundSchema; - /** @deprecated use `AccountingSuppliersAllResponse$Outbound` instead. */ - export type Outbound = AccountingSuppliersAllResponse$Outbound; -} - -export function accountingSuppliersAllResponseToJSON( - accountingSuppliersAllResponse: AccountingSuppliersAllResponse, -): string { - return JSON.stringify( - AccountingSuppliersAllResponse$outboundSchema.parse( - accountingSuppliersAllResponse, - ), - ); -} - export function accountingSuppliersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsuppliersdelete.ts b/src/models/operations/accountingsuppliersdelete.ts index 684df8e68..0adc33ef3 100644 --- a/src/models/operations/accountingsuppliersdelete.ts +++ b/src/models/operations/accountingsuppliersdelete.ts @@ -55,78 +55,6 @@ export type AccountingSuppliersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSuppliersDeleteGlobals$inboundSchema: z.ZodType< - AccountingSuppliersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSuppliersDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSuppliersDeleteGlobals$outboundSchema: z.ZodType< - AccountingSuppliersDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingSuppliersDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersDeleteGlobals$ { - /** @deprecated use `AccountingSuppliersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingSuppliersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingSuppliersDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingSuppliersDeleteGlobals$Outbound; -} - -export function accountingSuppliersDeleteGlobalsToJSON( - accountingSuppliersDeleteGlobals: AccountingSuppliersDeleteGlobals, -): string { - return JSON.stringify( - AccountingSuppliersDeleteGlobals$outboundSchema.parse( - accountingSuppliersDeleteGlobals, - ), - ); -} - -export function accountingSuppliersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSuppliersDeleteRequest$inboundSchema: z.ZodType< - AccountingSuppliersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingSuppliersDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingSuppliersDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersDeleteRequest$ { - /** @deprecated use `AccountingSuppliersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersDeleteRequest$inboundSchema; - /** @deprecated use `AccountingSuppliersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersDeleteRequest$outboundSchema; - /** @deprecated use `AccountingSuppliersDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingSuppliersDeleteRequest$Outbound; -} - export function accountingSuppliersDeleteRequestToJSON( accountingSuppliersDeleteRequest: AccountingSuppliersDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingSuppliersDeleteRequestToJSON( ); } -export function accountingSuppliersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSuppliersDeleteResponse$inboundSchema: z.ZodType< AccountingSuppliersDeleteResponse, @@ -201,60 +106,6 @@ export const AccountingSuppliersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSuppliersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteSupplierResponse?: - | components.DeleteSupplierResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSuppliersDeleteResponse$outboundSchema: z.ZodType< - AccountingSuppliersDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingSuppliersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteSupplierResponse: components.DeleteSupplierResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteSupplierResponse: "DeleteSupplierResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersDeleteResponse$ { - /** @deprecated use `AccountingSuppliersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersDeleteResponse$inboundSchema; - /** @deprecated use `AccountingSuppliersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSuppliersDeleteResponse$outboundSchema; - /** @deprecated use `AccountingSuppliersDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingSuppliersDeleteResponse$Outbound; -} - -export function accountingSuppliersDeleteResponseToJSON( - accountingSuppliersDeleteResponse: AccountingSuppliersDeleteResponse, -): string { - return JSON.stringify( - AccountingSuppliersDeleteResponse$outboundSchema.parse( - accountingSuppliersDeleteResponse, - ), - ); -} - export function accountingSuppliersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsuppliersone.ts b/src/models/operations/accountingsuppliersone.ts index fe3b2f686..b333f2d6a 100644 --- a/src/models/operations/accountingsuppliersone.ts +++ b/src/models/operations/accountingsuppliersone.ts @@ -59,79 +59,6 @@ export type AccountingSuppliersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSuppliersOneGlobals$inboundSchema: z.ZodType< - AccountingSuppliersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSuppliersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSuppliersOneGlobals$outboundSchema: z.ZodType< - AccountingSuppliersOneGlobals$Outbound, - z.ZodTypeDef, - AccountingSuppliersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersOneGlobals$ { - /** @deprecated use `AccountingSuppliersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersOneGlobals$inboundSchema; - /** @deprecated use `AccountingSuppliersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersOneGlobals$outboundSchema; - /** @deprecated use `AccountingSuppliersOneGlobals$Outbound` instead. */ - export type Outbound = AccountingSuppliersOneGlobals$Outbound; -} - -export function accountingSuppliersOneGlobalsToJSON( - accountingSuppliersOneGlobals: AccountingSuppliersOneGlobals, -): string { - return JSON.stringify( - AccountingSuppliersOneGlobals$outboundSchema.parse( - accountingSuppliersOneGlobals, - ), - ); -} - -export function accountingSuppliersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSuppliersOneRequest$inboundSchema: z.ZodType< - AccountingSuppliersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingSuppliersOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingSuppliersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersOneRequest$ { - /** @deprecated use `AccountingSuppliersOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersOneRequest$inboundSchema; - /** @deprecated use `AccountingSuppliersOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersOneRequest$outboundSchema; - /** @deprecated use `AccountingSuppliersOneRequest$Outbound` instead. */ - export type Outbound = AccountingSuppliersOneRequest$Outbound; -} - export function accountingSuppliersOneRequestToJSON( accountingSuppliersOneRequest: AccountingSuppliersOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingSuppliersOneRequestToJSON( ); } -export function accountingSuppliersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSuppliersOneResponse$inboundSchema: z.ZodType< AccountingSuppliersOneResponse, @@ -207,56 +111,6 @@ export const AccountingSuppliersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSuppliersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSupplierResponse?: components.GetSupplierResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSuppliersOneResponse$outboundSchema: z.ZodType< - AccountingSuppliersOneResponse$Outbound, - z.ZodTypeDef, - AccountingSuppliersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSupplierResponse: components.GetSupplierResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSupplierResponse: "GetSupplierResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersOneResponse$ { - /** @deprecated use `AccountingSuppliersOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersOneResponse$inboundSchema; - /** @deprecated use `AccountingSuppliersOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersOneResponse$outboundSchema; - /** @deprecated use `AccountingSuppliersOneResponse$Outbound` instead. */ - export type Outbound = AccountingSuppliersOneResponse$Outbound; -} - -export function accountingSuppliersOneResponseToJSON( - accountingSuppliersOneResponse: AccountingSuppliersOneResponse, -): string { - return JSON.stringify( - AccountingSuppliersOneResponse$outboundSchema.parse( - accountingSuppliersOneResponse, - ), - ); -} - export function accountingSuppliersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingsuppliersupdate.ts b/src/models/operations/accountingsuppliersupdate.ts index f95dfa687..d3dda4c45 100644 --- a/src/models/operations/accountingsuppliersupdate.ts +++ b/src/models/operations/accountingsuppliersupdate.ts @@ -56,83 +56,6 @@ export type AccountingSuppliersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingSuppliersUpdateGlobals$inboundSchema: z.ZodType< - AccountingSuppliersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingSuppliersUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingSuppliersUpdateGlobals$outboundSchema: z.ZodType< - AccountingSuppliersUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingSuppliersUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersUpdateGlobals$ { - /** @deprecated use `AccountingSuppliersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingSuppliersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingSuppliersUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingSuppliersUpdateGlobals$Outbound; -} - -export function accountingSuppliersUpdateGlobalsToJSON( - accountingSuppliersUpdateGlobals: AccountingSuppliersUpdateGlobals, -): string { - return JSON.stringify( - AccountingSuppliersUpdateGlobals$outboundSchema.parse( - accountingSuppliersUpdateGlobals, - ), - ); -} - -export function accountingSuppliersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingSuppliersUpdateRequest$inboundSchema: z.ZodType< - AccountingSuppliersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Supplier: components.SupplierInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Supplier": "supplier", - }); -}); - /** @internal */ export type AccountingSuppliersUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingSuppliersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersUpdateRequest$ { - /** @deprecated use `AccountingSuppliersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersUpdateRequest$inboundSchema; - /** @deprecated use `AccountingSuppliersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingSuppliersUpdateRequest$outboundSchema; - /** @deprecated use `AccountingSuppliersUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingSuppliersUpdateRequest$Outbound; -} - export function accountingSuppliersUpdateRequestToJSON( accountingSuppliersUpdateRequest: AccountingSuppliersUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingSuppliersUpdateRequestToJSON( ); } -export function accountingSuppliersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingSuppliersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingSuppliersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingSuppliersUpdateResponse$inboundSchema: z.ZodType< AccountingSuppliersUpdateResponse, @@ -213,60 +113,6 @@ export const AccountingSuppliersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingSuppliersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateSupplierResponse?: - | components.UpdateSupplierResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingSuppliersUpdateResponse$outboundSchema: z.ZodType< - AccountingSuppliersUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingSuppliersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateSupplierResponse: components.UpdateSupplierResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateSupplierResponse: "UpdateSupplierResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingSuppliersUpdateResponse$ { - /** @deprecated use `AccountingSuppliersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingSuppliersUpdateResponse$inboundSchema; - /** @deprecated use `AccountingSuppliersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingSuppliersUpdateResponse$outboundSchema; - /** @deprecated use `AccountingSuppliersUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingSuppliersUpdateResponse$Outbound; -} - -export function accountingSuppliersUpdateResponseToJSON( - accountingSuppliersUpdateResponse: AccountingSuppliersUpdateResponse, -): string { - return JSON.stringify( - AccountingSuppliersUpdateResponse$outboundSchema.parse( - accountingSuppliersUpdateResponse, - ), - ); -} - export function accountingSuppliersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtaxratesadd.ts b/src/models/operations/accountingtaxratesadd.ts index f828f19e1..fe5a7114d 100644 --- a/src/models/operations/accountingtaxratesadd.ts +++ b/src/models/operations/accountingtaxratesadd.ts @@ -52,82 +52,6 @@ export type AccountingTaxRatesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTaxRatesAddGlobals$inboundSchema: z.ZodType< - AccountingTaxRatesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTaxRatesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesAddGlobals$outboundSchema: z.ZodType< - AccountingTaxRatesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingTaxRatesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAddGlobals$ { - /** @deprecated use `AccountingTaxRatesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAddGlobals$inboundSchema; - /** @deprecated use `AccountingTaxRatesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAddGlobals$outboundSchema; - /** @deprecated use `AccountingTaxRatesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAddGlobals$Outbound; -} - -export function accountingTaxRatesAddGlobalsToJSON( - accountingTaxRatesAddGlobals: AccountingTaxRatesAddGlobals, -): string { - return JSON.stringify( - AccountingTaxRatesAddGlobals$outboundSchema.parse( - accountingTaxRatesAddGlobals, - ), - ); -} - -export function accountingTaxRatesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTaxRatesAddRequest$inboundSchema: z.ZodType< - AccountingTaxRatesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - TaxRate: components.TaxRateInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "TaxRate": "taxRate", - }); -}); - /** @internal */ export type AccountingTaxRatesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const AccountingTaxRatesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAddRequest$ { - /** @deprecated use `AccountingTaxRatesAddRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAddRequest$inboundSchema; - /** @deprecated use `AccountingTaxRatesAddRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAddRequest$outboundSchema; - /** @deprecated use `AccountingTaxRatesAddRequest$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAddRequest$Outbound; -} - export function accountingTaxRatesAddRequestToJSON( accountingTaxRatesAddRequest: AccountingTaxRatesAddRequest, ): string { @@ -177,16 +88,6 @@ export function accountingTaxRatesAddRequestToJSON( ); } -export function accountingTaxRatesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTaxRatesAddResponse$inboundSchema: z.ZodType< AccountingTaxRatesAddResponse, @@ -206,57 +107,6 @@ export const AccountingTaxRatesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTaxRatesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateTaxRateResponse?: components.CreateTaxRateResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesAddResponse$outboundSchema: z.ZodType< - AccountingTaxRatesAddResponse$Outbound, - z.ZodTypeDef, - AccountingTaxRatesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createTaxRateResponse: components.CreateTaxRateResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createTaxRateResponse: "CreateTaxRateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAddResponse$ { - /** @deprecated use `AccountingTaxRatesAddResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAddResponse$inboundSchema; - /** @deprecated use `AccountingTaxRatesAddResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAddResponse$outboundSchema; - /** @deprecated use `AccountingTaxRatesAddResponse$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAddResponse$Outbound; -} - -export function accountingTaxRatesAddResponseToJSON( - accountingTaxRatesAddResponse: AccountingTaxRatesAddResponse, -): string { - return JSON.stringify( - AccountingTaxRatesAddResponse$outboundSchema.parse( - accountingTaxRatesAddResponse, - ), - ); -} - export function accountingTaxRatesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtaxratesall.ts b/src/models/operations/accountingtaxratesall.ts index 2611bb624..5d69cda04 100644 --- a/src/models/operations/accountingtaxratesall.ts +++ b/src/models/operations/accountingtaxratesall.ts @@ -71,86 +71,6 @@ export type AccountingTaxRatesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTaxRatesAllGlobals$inboundSchema: z.ZodType< - AccountingTaxRatesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTaxRatesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesAllGlobals$outboundSchema: z.ZodType< - AccountingTaxRatesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingTaxRatesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAllGlobals$ { - /** @deprecated use `AccountingTaxRatesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAllGlobals$inboundSchema; - /** @deprecated use `AccountingTaxRatesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAllGlobals$outboundSchema; - /** @deprecated use `AccountingTaxRatesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAllGlobals$Outbound; -} - -export function accountingTaxRatesAllGlobalsToJSON( - accountingTaxRatesAllGlobals: AccountingTaxRatesAllGlobals, -): string { - return JSON.stringify( - AccountingTaxRatesAllGlobals$outboundSchema.parse( - accountingTaxRatesAllGlobals, - ), - ); -} - -export function accountingTaxRatesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTaxRatesAllRequest$inboundSchema: z.ZodType< - AccountingTaxRatesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.TaxRatesFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingTaxRatesAllRequest$Outbound = { raw: boolean; @@ -185,19 +105,6 @@ export const AccountingTaxRatesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAllRequest$ { - /** @deprecated use `AccountingTaxRatesAllRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAllRequest$inboundSchema; - /** @deprecated use `AccountingTaxRatesAllRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAllRequest$outboundSchema; - /** @deprecated use `AccountingTaxRatesAllRequest$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAllRequest$Outbound; -} - export function accountingTaxRatesAllRequestToJSON( accountingTaxRatesAllRequest: AccountingTaxRatesAllRequest, ): string { @@ -208,16 +115,6 @@ export function accountingTaxRatesAllRequestToJSON( ); } -export function accountingTaxRatesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTaxRatesAllResponse$inboundSchema: z.ZodType< AccountingTaxRatesAllResponse, @@ -236,56 +133,6 @@ export const AccountingTaxRatesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTaxRatesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTaxRatesResponse?: components.GetTaxRatesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesAllResponse$outboundSchema: z.ZodType< - AccountingTaxRatesAllResponse$Outbound, - z.ZodTypeDef, - AccountingTaxRatesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTaxRatesResponse: components.GetTaxRatesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTaxRatesResponse: "GetTaxRatesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesAllResponse$ { - /** @deprecated use `AccountingTaxRatesAllResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesAllResponse$inboundSchema; - /** @deprecated use `AccountingTaxRatesAllResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesAllResponse$outboundSchema; - /** @deprecated use `AccountingTaxRatesAllResponse$Outbound` instead. */ - export type Outbound = AccountingTaxRatesAllResponse$Outbound; -} - -export function accountingTaxRatesAllResponseToJSON( - accountingTaxRatesAllResponse: AccountingTaxRatesAllResponse, -): string { - return JSON.stringify( - AccountingTaxRatesAllResponse$outboundSchema.parse( - accountingTaxRatesAllResponse, - ), - ); -} - export function accountingTaxRatesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtaxratesdelete.ts b/src/models/operations/accountingtaxratesdelete.ts index c9cfe3762..4885c87f1 100644 --- a/src/models/operations/accountingtaxratesdelete.ts +++ b/src/models/operations/accountingtaxratesdelete.ts @@ -55,78 +55,6 @@ export type AccountingTaxRatesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTaxRatesDeleteGlobals$inboundSchema: z.ZodType< - AccountingTaxRatesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTaxRatesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesDeleteGlobals$outboundSchema: z.ZodType< - AccountingTaxRatesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingTaxRatesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesDeleteGlobals$ { - /** @deprecated use `AccountingTaxRatesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingTaxRatesDeleteGlobals$Outbound; -} - -export function accountingTaxRatesDeleteGlobalsToJSON( - accountingTaxRatesDeleteGlobals: AccountingTaxRatesDeleteGlobals, -): string { - return JSON.stringify( - AccountingTaxRatesDeleteGlobals$outboundSchema.parse( - accountingTaxRatesDeleteGlobals, - ), - ); -} - -export function accountingTaxRatesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTaxRatesDeleteRequest$inboundSchema: z.ZodType< - AccountingTaxRatesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingTaxRatesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AccountingTaxRatesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesDeleteRequest$ { - /** @deprecated use `AccountingTaxRatesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingTaxRatesDeleteRequest$Outbound; -} - export function accountingTaxRatesDeleteRequestToJSON( accountingTaxRatesDeleteRequest: AccountingTaxRatesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function accountingTaxRatesDeleteRequestToJSON( ); } -export function accountingTaxRatesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTaxRatesDeleteResponse$inboundSchema: z.ZodType< AccountingTaxRatesDeleteResponse, @@ -201,57 +106,6 @@ export const AccountingTaxRatesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTaxRatesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteTaxRateResponse?: components.DeleteTaxRateResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesDeleteResponse$outboundSchema: z.ZodType< - AccountingTaxRatesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingTaxRatesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteTaxRateResponse: components.DeleteTaxRateResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteTaxRateResponse: "DeleteTaxRateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesDeleteResponse$ { - /** @deprecated use `AccountingTaxRatesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingTaxRatesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingTaxRatesDeleteResponse$Outbound; -} - -export function accountingTaxRatesDeleteResponseToJSON( - accountingTaxRatesDeleteResponse: AccountingTaxRatesDeleteResponse, -): string { - return JSON.stringify( - AccountingTaxRatesDeleteResponse$outboundSchema.parse( - accountingTaxRatesDeleteResponse, - ), - ); -} - export function accountingTaxRatesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtaxratesone.ts b/src/models/operations/accountingtaxratesone.ts index a2313431e..4ba7de3e3 100644 --- a/src/models/operations/accountingtaxratesone.ts +++ b/src/models/operations/accountingtaxratesone.ts @@ -59,79 +59,6 @@ export type AccountingTaxRatesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTaxRatesOneGlobals$inboundSchema: z.ZodType< - AccountingTaxRatesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTaxRatesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesOneGlobals$outboundSchema: z.ZodType< - AccountingTaxRatesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingTaxRatesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesOneGlobals$ { - /** @deprecated use `AccountingTaxRatesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesOneGlobals$inboundSchema; - /** @deprecated use `AccountingTaxRatesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesOneGlobals$outboundSchema; - /** @deprecated use `AccountingTaxRatesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingTaxRatesOneGlobals$Outbound; -} - -export function accountingTaxRatesOneGlobalsToJSON( - accountingTaxRatesOneGlobals: AccountingTaxRatesOneGlobals, -): string { - return JSON.stringify( - AccountingTaxRatesOneGlobals$outboundSchema.parse( - accountingTaxRatesOneGlobals, - ), - ); -} - -export function accountingTaxRatesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTaxRatesOneRequest$inboundSchema: z.ZodType< - AccountingTaxRatesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingTaxRatesOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const AccountingTaxRatesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesOneRequest$ { - /** @deprecated use `AccountingTaxRatesOneRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesOneRequest$inboundSchema; - /** @deprecated use `AccountingTaxRatesOneRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesOneRequest$outboundSchema; - /** @deprecated use `AccountingTaxRatesOneRequest$Outbound` instead. */ - export type Outbound = AccountingTaxRatesOneRequest$Outbound; -} - export function accountingTaxRatesOneRequestToJSON( accountingTaxRatesOneRequest: AccountingTaxRatesOneRequest, ): string { @@ -179,16 +93,6 @@ export function accountingTaxRatesOneRequestToJSON( ); } -export function accountingTaxRatesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTaxRatesOneResponse$inboundSchema: z.ZodType< AccountingTaxRatesOneResponse, @@ -207,56 +111,6 @@ export const AccountingTaxRatesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTaxRatesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTaxRateResponse?: components.GetTaxRateResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesOneResponse$outboundSchema: z.ZodType< - AccountingTaxRatesOneResponse$Outbound, - z.ZodTypeDef, - AccountingTaxRatesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTaxRateResponse: components.GetTaxRateResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTaxRateResponse: "GetTaxRateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesOneResponse$ { - /** @deprecated use `AccountingTaxRatesOneResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesOneResponse$inboundSchema; - /** @deprecated use `AccountingTaxRatesOneResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesOneResponse$outboundSchema; - /** @deprecated use `AccountingTaxRatesOneResponse$Outbound` instead. */ - export type Outbound = AccountingTaxRatesOneResponse$Outbound; -} - -export function accountingTaxRatesOneResponseToJSON( - accountingTaxRatesOneResponse: AccountingTaxRatesOneResponse, -): string { - return JSON.stringify( - AccountingTaxRatesOneResponse$outboundSchema.parse( - accountingTaxRatesOneResponse, - ), - ); -} - export function accountingTaxRatesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtaxratesupdate.ts b/src/models/operations/accountingtaxratesupdate.ts index 1e9ccc6c2..3b9fbe653 100644 --- a/src/models/operations/accountingtaxratesupdate.ts +++ b/src/models/operations/accountingtaxratesupdate.ts @@ -56,83 +56,6 @@ export type AccountingTaxRatesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTaxRatesUpdateGlobals$inboundSchema: z.ZodType< - AccountingTaxRatesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTaxRatesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesUpdateGlobals$outboundSchema: z.ZodType< - AccountingTaxRatesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingTaxRatesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesUpdateGlobals$ { - /** @deprecated use `AccountingTaxRatesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingTaxRatesUpdateGlobals$Outbound; -} - -export function accountingTaxRatesUpdateGlobalsToJSON( - accountingTaxRatesUpdateGlobals: AccountingTaxRatesUpdateGlobals, -): string { - return JSON.stringify( - AccountingTaxRatesUpdateGlobals$outboundSchema.parse( - accountingTaxRatesUpdateGlobals, - ), - ); -} - -export function accountingTaxRatesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTaxRatesUpdateRequest$inboundSchema: z.ZodType< - AccountingTaxRatesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - TaxRate: components.TaxRateInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "TaxRate": "taxRate", - }); -}); - /** @internal */ export type AccountingTaxRatesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AccountingTaxRatesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesUpdateRequest$ { - /** @deprecated use `AccountingTaxRatesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingTaxRatesUpdateRequest$Outbound; -} - export function accountingTaxRatesUpdateRequestToJSON( accountingTaxRatesUpdateRequest: AccountingTaxRatesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function accountingTaxRatesUpdateRequestToJSON( ); } -export function accountingTaxRatesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccountingTaxRatesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTaxRatesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTaxRatesUpdateResponse$inboundSchema: z.ZodType< AccountingTaxRatesUpdateResponse, @@ -213,57 +113,6 @@ export const AccountingTaxRatesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTaxRatesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateTaxRateResponse?: components.UpdateTaxRateResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTaxRatesUpdateResponse$outboundSchema: z.ZodType< - AccountingTaxRatesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingTaxRatesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateTaxRateResponse: components.UpdateTaxRateResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateTaxRateResponse: "UpdateTaxRateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTaxRatesUpdateResponse$ { - /** @deprecated use `AccountingTaxRatesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AccountingTaxRatesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AccountingTaxRatesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingTaxRatesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingTaxRatesUpdateResponse$Outbound; -} - -export function accountingTaxRatesUpdateResponseToJSON( - accountingTaxRatesUpdateResponse: AccountingTaxRatesUpdateResponse, -): string { - return JSON.stringify( - AccountingTaxRatesUpdateResponse$outboundSchema.parse( - accountingTaxRatesUpdateResponse, - ), - ); -} - export function accountingTaxRatesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/accountingtrackingcategoriesadd.ts b/src/models/operations/accountingtrackingcategoriesadd.ts index ded9a70d1..24eb65568 100644 --- a/src/models/operations/accountingtrackingcategoriesadd.ts +++ b/src/models/operations/accountingtrackingcategoriesadd.ts @@ -54,86 +54,6 @@ export type AccountingTrackingCategoriesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTrackingCategoriesAddGlobals$inboundSchema: z.ZodType< - AccountingTrackingCategoriesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTrackingCategoriesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesAddGlobals$outboundSchema: z.ZodType< - AccountingTrackingCategoriesAddGlobals$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAddGlobals$ { - /** @deprecated use `AccountingTrackingCategoriesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAddGlobals$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAddGlobals$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddGlobals$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAddGlobals$Outbound; -} - -export function accountingTrackingCategoriesAddGlobalsToJSON( - accountingTrackingCategoriesAddGlobals: - AccountingTrackingCategoriesAddGlobals, -): string { - return JSON.stringify( - AccountingTrackingCategoriesAddGlobals$outboundSchema.parse( - accountingTrackingCategoriesAddGlobals, - ), - ); -} - -export function accountingTrackingCategoriesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTrackingCategoriesAddRequest$inboundSchema: z.ZodType< - AccountingTrackingCategoriesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - TrackingCategory: components.TrackingCategoryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "TrackingCategory": "trackingCategory", - }); -}); - /** @internal */ export type AccountingTrackingCategoriesAddRequest$Outbound = { raw: boolean; @@ -160,21 +80,6 @@ export const AccountingTrackingCategoriesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAddRequest$ { - /** @deprecated use `AccountingTrackingCategoriesAddRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAddRequest$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAddRequest$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddRequest$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAddRequest$Outbound; -} - export function accountingTrackingCategoriesAddRequestToJSON( accountingTrackingCategoriesAddRequest: AccountingTrackingCategoriesAddRequest, @@ -186,17 +91,6 @@ export function accountingTrackingCategoriesAddRequestToJSON( ); } -export function accountingTrackingCategoriesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesAddRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTrackingCategoriesAddResponse$inboundSchema: z.ZodType< AccountingTrackingCategoriesAddResponse, @@ -216,62 +110,6 @@ export const AccountingTrackingCategoriesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTrackingCategoriesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateTrackingCategoryResponse?: - | components.CreateTrackingCategoryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesAddResponse$outboundSchema: z.ZodType< - AccountingTrackingCategoriesAddResponse$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createTrackingCategoryResponse: components - .CreateTrackingCategoryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createTrackingCategoryResponse: "CreateTrackingCategoryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAddResponse$ { - /** @deprecated use `AccountingTrackingCategoriesAddResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAddResponse$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAddResponse$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAddResponse$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAddResponse$Outbound; -} - -export function accountingTrackingCategoriesAddResponseToJSON( - accountingTrackingCategoriesAddResponse: - AccountingTrackingCategoriesAddResponse, -): string { - return JSON.stringify( - AccountingTrackingCategoriesAddResponse$outboundSchema.parse( - accountingTrackingCategoriesAddResponse, - ), - ); -} - export function accountingTrackingCategoriesAddResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingtrackingcategoriesall.ts b/src/models/operations/accountingtrackingcategoriesall.ts index 08e31fa12..6629e80d6 100644 --- a/src/models/operations/accountingtrackingcategoriesall.ts +++ b/src/models/operations/accountingtrackingcategoriesall.ts @@ -69,89 +69,6 @@ export type AccountingTrackingCategoriesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTrackingCategoriesAllGlobals$inboundSchema: z.ZodType< - AccountingTrackingCategoriesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTrackingCategoriesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesAllGlobals$outboundSchema: z.ZodType< - AccountingTrackingCategoriesAllGlobals$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAllGlobals$ { - /** @deprecated use `AccountingTrackingCategoriesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAllGlobals$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAllGlobals$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllGlobals$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAllGlobals$Outbound; -} - -export function accountingTrackingCategoriesAllGlobalsToJSON( - accountingTrackingCategoriesAllGlobals: - AccountingTrackingCategoriesAllGlobals, -): string { - return JSON.stringify( - AccountingTrackingCategoriesAllGlobals$outboundSchema.parse( - accountingTrackingCategoriesAllGlobals, - ), - ); -} - -export function accountingTrackingCategoriesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTrackingCategoriesAllRequest$inboundSchema: z.ZodType< - AccountingTrackingCategoriesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AccountingTrackingCategoriesAllRequest$Outbound = { raw: boolean; @@ -184,21 +101,6 @@ export const AccountingTrackingCategoriesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAllRequest$ { - /** @deprecated use `AccountingTrackingCategoriesAllRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAllRequest$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAllRequest$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllRequest$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAllRequest$Outbound; -} - export function accountingTrackingCategoriesAllRequestToJSON( accountingTrackingCategoriesAllRequest: AccountingTrackingCategoriesAllRequest, @@ -210,17 +112,6 @@ export function accountingTrackingCategoriesAllRequestToJSON( ); } -export function accountingTrackingCategoriesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesAllRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTrackingCategoriesAllResponse$inboundSchema: z.ZodType< AccountingTrackingCategoriesAllResponse, @@ -240,62 +131,6 @@ export const AccountingTrackingCategoriesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTrackingCategoriesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTrackingCategoriesResponse?: - | components.GetTrackingCategoriesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesAllResponse$outboundSchema: z.ZodType< - AccountingTrackingCategoriesAllResponse$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTrackingCategoriesResponse: components - .GetTrackingCategoriesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTrackingCategoriesResponse: "GetTrackingCategoriesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesAllResponse$ { - /** @deprecated use `AccountingTrackingCategoriesAllResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesAllResponse$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesAllResponse$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesAllResponse$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesAllResponse$Outbound; -} - -export function accountingTrackingCategoriesAllResponseToJSON( - accountingTrackingCategoriesAllResponse: - AccountingTrackingCategoriesAllResponse, -): string { - return JSON.stringify( - AccountingTrackingCategoriesAllResponse$outboundSchema.parse( - accountingTrackingCategoriesAllResponse, - ), - ); -} - export function accountingTrackingCategoriesAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingtrackingcategoriesdelete.ts b/src/models/operations/accountingtrackingcategoriesdelete.ts index bd44ee208..b1bf66a45 100644 --- a/src/models/operations/accountingtrackingcategoriesdelete.ts +++ b/src/models/operations/accountingtrackingcategoriesdelete.ts @@ -57,88 +57,6 @@ export type AccountingTrackingCategoriesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTrackingCategoriesDeleteGlobals$inboundSchema: z.ZodType< - AccountingTrackingCategoriesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTrackingCategoriesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesDeleteGlobals$outboundSchema: - z.ZodType< - AccountingTrackingCategoriesDeleteGlobals$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesDeleteGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesDeleteGlobals$ { - /** @deprecated use `AccountingTrackingCategoriesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesDeleteGlobals$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesDeleteGlobals$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteGlobals$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesDeleteGlobals$Outbound; -} - -export function accountingTrackingCategoriesDeleteGlobalsToJSON( - accountingTrackingCategoriesDeleteGlobals: - AccountingTrackingCategoriesDeleteGlobals, -): string { - return JSON.stringify( - AccountingTrackingCategoriesDeleteGlobals$outboundSchema.parse( - accountingTrackingCategoriesDeleteGlobals, - ), - ); -} - -export function accountingTrackingCategoriesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingTrackingCategoriesDeleteGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesDeleteGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingTrackingCategoriesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTrackingCategoriesDeleteRequest$inboundSchema: z.ZodType< - AccountingTrackingCategoriesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AccountingTrackingCategoriesDeleteRequest$Outbound = { id: string; @@ -162,21 +80,6 @@ export const AccountingTrackingCategoriesDeleteRequest$outboundSchema: raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesDeleteRequest$ { - /** @deprecated use `AccountingTrackingCategoriesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesDeleteRequest$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesDeleteRequest$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteRequest$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesDeleteRequest$Outbound; -} - export function accountingTrackingCategoriesDeleteRequestToJSON( accountingTrackingCategoriesDeleteRequest: AccountingTrackingCategoriesDeleteRequest, @@ -188,22 +91,6 @@ export function accountingTrackingCategoriesDeleteRequestToJSON( ); } -export function accountingTrackingCategoriesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingTrackingCategoriesDeleteRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesDeleteRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingTrackingCategoriesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTrackingCategoriesDeleteResponse$inboundSchema: z.ZodType = @@ -221,63 +108,6 @@ export const AccountingTrackingCategoriesDeleteResponse$inboundSchema: }); }); -/** @internal */ -export type AccountingTrackingCategoriesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteTrackingCategoryResponse?: - | components.DeleteTrackingCategoryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesDeleteResponse$outboundSchema: - z.ZodType< - AccountingTrackingCategoriesDeleteResponse$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesDeleteResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteTrackingCategoryResponse: components - .DeleteTrackingCategoryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteTrackingCategoryResponse: "DeleteTrackingCategoryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesDeleteResponse$ { - /** @deprecated use `AccountingTrackingCategoriesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesDeleteResponse$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesDeleteResponse$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesDeleteResponse$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesDeleteResponse$Outbound; -} - -export function accountingTrackingCategoriesDeleteResponseToJSON( - accountingTrackingCategoriesDeleteResponse: - AccountingTrackingCategoriesDeleteResponse, -): string { - return JSON.stringify( - AccountingTrackingCategoriesDeleteResponse$outboundSchema.parse( - accountingTrackingCategoriesDeleteResponse, - ), - ); -} - export function accountingTrackingCategoriesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingtrackingcategoriesone.ts b/src/models/operations/accountingtrackingcategoriesone.ts index 3937c4197..0703398ff 100644 --- a/src/models/operations/accountingtrackingcategoriesone.ts +++ b/src/models/operations/accountingtrackingcategoriesone.ts @@ -61,83 +61,6 @@ export type AccountingTrackingCategoriesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTrackingCategoriesOneGlobals$inboundSchema: z.ZodType< - AccountingTrackingCategoriesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTrackingCategoriesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesOneGlobals$outboundSchema: z.ZodType< - AccountingTrackingCategoriesOneGlobals$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesOneGlobals$ { - /** @deprecated use `AccountingTrackingCategoriesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesOneGlobals$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesOneGlobals$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneGlobals$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesOneGlobals$Outbound; -} - -export function accountingTrackingCategoriesOneGlobalsToJSON( - accountingTrackingCategoriesOneGlobals: - AccountingTrackingCategoriesOneGlobals, -): string { - return JSON.stringify( - AccountingTrackingCategoriesOneGlobals$outboundSchema.parse( - accountingTrackingCategoriesOneGlobals, - ), - ); -} - -export function accountingTrackingCategoriesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTrackingCategoriesOneRequest$inboundSchema: z.ZodType< - AccountingTrackingCategoriesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AccountingTrackingCategoriesOneRequest$Outbound = { id: string; @@ -162,21 +85,6 @@ export const AccountingTrackingCategoriesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesOneRequest$ { - /** @deprecated use `AccountingTrackingCategoriesOneRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesOneRequest$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesOneRequest$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneRequest$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesOneRequest$Outbound; -} - export function accountingTrackingCategoriesOneRequestToJSON( accountingTrackingCategoriesOneRequest: AccountingTrackingCategoriesOneRequest, @@ -188,17 +96,6 @@ export function accountingTrackingCategoriesOneRequestToJSON( ); } -export function accountingTrackingCategoriesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccountingTrackingCategoriesOneRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTrackingCategoriesOneResponse$inboundSchema: z.ZodType< AccountingTrackingCategoriesOneResponse, @@ -218,62 +115,6 @@ export const AccountingTrackingCategoriesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AccountingTrackingCategoriesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTrackingCategoryResponse?: - | components.GetTrackingCategoryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesOneResponse$outboundSchema: z.ZodType< - AccountingTrackingCategoriesOneResponse$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTrackingCategoryResponse: components - .GetTrackingCategoryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTrackingCategoryResponse: "GetTrackingCategoryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesOneResponse$ { - /** @deprecated use `AccountingTrackingCategoriesOneResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesOneResponse$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesOneResponse$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesOneResponse$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesOneResponse$Outbound; -} - -export function accountingTrackingCategoriesOneResponseToJSON( - accountingTrackingCategoriesOneResponse: - AccountingTrackingCategoriesOneResponse, -): string { - return JSON.stringify( - AccountingTrackingCategoriesOneResponse$outboundSchema.parse( - accountingTrackingCategoriesOneResponse, - ), - ); -} - export function accountingTrackingCategoriesOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/accountingtrackingcategoriesupdate.ts b/src/models/operations/accountingtrackingcategoriesupdate.ts index e8c070d0d..eceb10d21 100644 --- a/src/models/operations/accountingtrackingcategoriesupdate.ts +++ b/src/models/operations/accountingtrackingcategoriesupdate.ts @@ -58,93 +58,6 @@ export type AccountingTrackingCategoriesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AccountingTrackingCategoriesUpdateGlobals$inboundSchema: z.ZodType< - AccountingTrackingCategoriesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AccountingTrackingCategoriesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesUpdateGlobals$outboundSchema: - z.ZodType< - AccountingTrackingCategoriesUpdateGlobals$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesUpdateGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesUpdateGlobals$ { - /** @deprecated use `AccountingTrackingCategoriesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesUpdateGlobals$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesUpdateGlobals$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateGlobals$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesUpdateGlobals$Outbound; -} - -export function accountingTrackingCategoriesUpdateGlobalsToJSON( - accountingTrackingCategoriesUpdateGlobals: - AccountingTrackingCategoriesUpdateGlobals, -): string { - return JSON.stringify( - AccountingTrackingCategoriesUpdateGlobals$outboundSchema.parse( - accountingTrackingCategoriesUpdateGlobals, - ), - ); -} - -export function accountingTrackingCategoriesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - AccountingTrackingCategoriesUpdateGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesUpdateGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingTrackingCategoriesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AccountingTrackingCategoriesUpdateRequest$inboundSchema: z.ZodType< - AccountingTrackingCategoriesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - TrackingCategory: components.TrackingCategoryInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "TrackingCategory": "trackingCategory", - }); -}); - /** @internal */ export type AccountingTrackingCategoriesUpdateRequest$Outbound = { id: string; @@ -174,21 +87,6 @@ export const AccountingTrackingCategoriesUpdateRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesUpdateRequest$ { - /** @deprecated use `AccountingTrackingCategoriesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesUpdateRequest$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesUpdateRequest$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateRequest$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesUpdateRequest$Outbound; -} - export function accountingTrackingCategoriesUpdateRequestToJSON( accountingTrackingCategoriesUpdateRequest: AccountingTrackingCategoriesUpdateRequest, @@ -200,22 +98,6 @@ export function accountingTrackingCategoriesUpdateRequestToJSON( ); } -export function accountingTrackingCategoriesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult< - AccountingTrackingCategoriesUpdateRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - AccountingTrackingCategoriesUpdateRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'AccountingTrackingCategoriesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AccountingTrackingCategoriesUpdateResponse$inboundSchema: z.ZodType = @@ -233,63 +115,6 @@ export const AccountingTrackingCategoriesUpdateResponse$inboundSchema: }); }); -/** @internal */ -export type AccountingTrackingCategoriesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateTrackingCategoryResponse?: - | components.UpdateTrackingCategoryResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AccountingTrackingCategoriesUpdateResponse$outboundSchema: - z.ZodType< - AccountingTrackingCategoriesUpdateResponse$Outbound, - z.ZodTypeDef, - AccountingTrackingCategoriesUpdateResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateTrackingCategoryResponse: components - .UpdateTrackingCategoryResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateTrackingCategoryResponse: "UpdateTrackingCategoryResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccountingTrackingCategoriesUpdateResponse$ { - /** @deprecated use `AccountingTrackingCategoriesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - AccountingTrackingCategoriesUpdateResponse$inboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - AccountingTrackingCategoriesUpdateResponse$outboundSchema; - /** @deprecated use `AccountingTrackingCategoriesUpdateResponse$Outbound` instead. */ - export type Outbound = AccountingTrackingCategoriesUpdateResponse$Outbound; -} - -export function accountingTrackingCategoriesUpdateResponseToJSON( - accountingTrackingCategoriesUpdateResponse: - AccountingTrackingCategoriesUpdateResponse, -): string { - return JSON.stringify( - AccountingTrackingCategoriesUpdateResponse$outboundSchema.parse( - accountingTrackingCategoriesUpdateResponse, - ), - ); -} - export function accountingTrackingCategoriesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/atsapplicantsadd.ts b/src/models/operations/atsapplicantsadd.ts index 43f33d09f..033780b56 100644 --- a/src/models/operations/atsapplicantsadd.ts +++ b/src/models/operations/atsapplicantsadd.ts @@ -52,80 +52,6 @@ export type AtsApplicantsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicantsAddGlobals$inboundSchema: z.ZodType< - AtsApplicantsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicantsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicantsAddGlobals$outboundSchema: z.ZodType< - AtsApplicantsAddGlobals$Outbound, - z.ZodTypeDef, - AtsApplicantsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAddGlobals$ { - /** @deprecated use `AtsApplicantsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAddGlobals$inboundSchema; - /** @deprecated use `AtsApplicantsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAddGlobals$outboundSchema; - /** @deprecated use `AtsApplicantsAddGlobals$Outbound` instead. */ - export type Outbound = AtsApplicantsAddGlobals$Outbound; -} - -export function atsApplicantsAddGlobalsToJSON( - atsApplicantsAddGlobals: AtsApplicantsAddGlobals, -): string { - return JSON.stringify( - AtsApplicantsAddGlobals$outboundSchema.parse(atsApplicantsAddGlobals), - ); -} - -export function atsApplicantsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicantsAddRequest$inboundSchema: z.ZodType< - AtsApplicantsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Applicant: components.ApplicantInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Applicant": "applicant", - }); -}); - /** @internal */ export type AtsApplicantsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const AtsApplicantsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAddRequest$ { - /** @deprecated use `AtsApplicantsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAddRequest$inboundSchema; - /** @deprecated use `AtsApplicantsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAddRequest$outboundSchema; - /** @deprecated use `AtsApplicantsAddRequest$Outbound` instead. */ - export type Outbound = AtsApplicantsAddRequest$Outbound; -} - export function atsApplicantsAddRequestToJSON( atsApplicantsAddRequest: AtsApplicantsAddRequest, ): string { @@ -173,16 +86,6 @@ export function atsApplicantsAddRequestToJSON( ); } -export function atsApplicantsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsAddRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicantsAddResponse$inboundSchema: z.ZodType< AtsApplicantsAddResponse, @@ -202,57 +105,6 @@ export const AtsApplicantsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicantsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateApplicantResponse?: - | components.CreateApplicantResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicantsAddResponse$outboundSchema: z.ZodType< - AtsApplicantsAddResponse$Outbound, - z.ZodTypeDef, - AtsApplicantsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createApplicantResponse: components.CreateApplicantResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createApplicantResponse: "CreateApplicantResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAddResponse$ { - /** @deprecated use `AtsApplicantsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAddResponse$inboundSchema; - /** @deprecated use `AtsApplicantsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAddResponse$outboundSchema; - /** @deprecated use `AtsApplicantsAddResponse$Outbound` instead. */ - export type Outbound = AtsApplicantsAddResponse$Outbound; -} - -export function atsApplicantsAddResponseToJSON( - atsApplicantsAddResponse: AtsApplicantsAddResponse, -): string { - return JSON.stringify( - AtsApplicantsAddResponse$outboundSchema.parse(atsApplicantsAddResponse), - ); -} - export function atsApplicantsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicantsall.ts b/src/models/operations/atsapplicantsall.ts index 577bb6d9d..e9a87a80f 100644 --- a/src/models/operations/atsapplicantsall.ts +++ b/src/models/operations/atsapplicantsall.ts @@ -71,84 +71,6 @@ export type AtsApplicantsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicantsAllGlobals$inboundSchema: z.ZodType< - AtsApplicantsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicantsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicantsAllGlobals$outboundSchema: z.ZodType< - AtsApplicantsAllGlobals$Outbound, - z.ZodTypeDef, - AtsApplicantsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAllGlobals$ { - /** @deprecated use `AtsApplicantsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAllGlobals$inboundSchema; - /** @deprecated use `AtsApplicantsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAllGlobals$outboundSchema; - /** @deprecated use `AtsApplicantsAllGlobals$Outbound` instead. */ - export type Outbound = AtsApplicantsAllGlobals$Outbound; -} - -export function atsApplicantsAllGlobalsToJSON( - atsApplicantsAllGlobals: AtsApplicantsAllGlobals, -): string { - return JSON.stringify( - AtsApplicantsAllGlobals$outboundSchema.parse(atsApplicantsAllGlobals), - ); -} - -export function atsApplicantsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicantsAllRequest$inboundSchema: z.ZodType< - AtsApplicantsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ApplicantsFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AtsApplicantsAllRequest$Outbound = { raw: boolean; @@ -183,19 +105,6 @@ export const AtsApplicantsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAllRequest$ { - /** @deprecated use `AtsApplicantsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAllRequest$inboundSchema; - /** @deprecated use `AtsApplicantsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAllRequest$outboundSchema; - /** @deprecated use `AtsApplicantsAllRequest$Outbound` instead. */ - export type Outbound = AtsApplicantsAllRequest$Outbound; -} - export function atsApplicantsAllRequestToJSON( atsApplicantsAllRequest: AtsApplicantsAllRequest, ): string { @@ -204,16 +113,6 @@ export function atsApplicantsAllRequestToJSON( ); } -export function atsApplicantsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsAllRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicantsAllResponse$inboundSchema: z.ZodType< AtsApplicantsAllResponse, @@ -233,55 +132,6 @@ export const AtsApplicantsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicantsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApplicantsResponse?: components.GetApplicantsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicantsAllResponse$outboundSchema: z.ZodType< - AtsApplicantsAllResponse$Outbound, - z.ZodTypeDef, - AtsApplicantsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApplicantsResponse: components.GetApplicantsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApplicantsResponse: "GetApplicantsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsAllResponse$ { - /** @deprecated use `AtsApplicantsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsAllResponse$inboundSchema; - /** @deprecated use `AtsApplicantsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsAllResponse$outboundSchema; - /** @deprecated use `AtsApplicantsAllResponse$Outbound` instead. */ - export type Outbound = AtsApplicantsAllResponse$Outbound; -} - -export function atsApplicantsAllResponseToJSON( - atsApplicantsAllResponse: AtsApplicantsAllResponse, -): string { - return JSON.stringify( - AtsApplicantsAllResponse$outboundSchema.parse(atsApplicantsAllResponse), - ); -} - export function atsApplicantsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicantsdelete.ts b/src/models/operations/atsapplicantsdelete.ts index 71b591fd1..7893296a1 100644 --- a/src/models/operations/atsapplicantsdelete.ts +++ b/src/models/operations/atsapplicantsdelete.ts @@ -55,76 +55,6 @@ export type AtsApplicantsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicantsDeleteGlobals$inboundSchema: z.ZodType< - AtsApplicantsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicantsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicantsDeleteGlobals$outboundSchema: z.ZodType< - AtsApplicantsDeleteGlobals$Outbound, - z.ZodTypeDef, - AtsApplicantsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsDeleteGlobals$ { - /** @deprecated use `AtsApplicantsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsDeleteGlobals$inboundSchema; - /** @deprecated use `AtsApplicantsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsDeleteGlobals$outboundSchema; - /** @deprecated use `AtsApplicantsDeleteGlobals$Outbound` instead. */ - export type Outbound = AtsApplicantsDeleteGlobals$Outbound; -} - -export function atsApplicantsDeleteGlobalsToJSON( - atsApplicantsDeleteGlobals: AtsApplicantsDeleteGlobals, -): string { - return JSON.stringify( - AtsApplicantsDeleteGlobals$outboundSchema.parse(atsApplicantsDeleteGlobals), - ); -} - -export function atsApplicantsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicantsDeleteRequest$inboundSchema: z.ZodType< - AtsApplicantsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AtsApplicantsDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const AtsApplicantsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsDeleteRequest$ { - /** @deprecated use `AtsApplicantsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsDeleteRequest$inboundSchema; - /** @deprecated use `AtsApplicantsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsDeleteRequest$outboundSchema; - /** @deprecated use `AtsApplicantsDeleteRequest$Outbound` instead. */ - export type Outbound = AtsApplicantsDeleteRequest$Outbound; -} - export function atsApplicantsDeleteRequestToJSON( atsApplicantsDeleteRequest: AtsApplicantsDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function atsApplicantsDeleteRequestToJSON( ); } -export function atsApplicantsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicantsDeleteResponse$inboundSchema: z.ZodType< AtsApplicantsDeleteResponse, @@ -197,59 +104,6 @@ export const AtsApplicantsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicantsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteApplicantResponse?: - | components.DeleteApplicantResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicantsDeleteResponse$outboundSchema: z.ZodType< - AtsApplicantsDeleteResponse$Outbound, - z.ZodTypeDef, - AtsApplicantsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteApplicantResponse: components.DeleteApplicantResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteApplicantResponse: "DeleteApplicantResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsDeleteResponse$ { - /** @deprecated use `AtsApplicantsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsDeleteResponse$inboundSchema; - /** @deprecated use `AtsApplicantsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsDeleteResponse$outboundSchema; - /** @deprecated use `AtsApplicantsDeleteResponse$Outbound` instead. */ - export type Outbound = AtsApplicantsDeleteResponse$Outbound; -} - -export function atsApplicantsDeleteResponseToJSON( - atsApplicantsDeleteResponse: AtsApplicantsDeleteResponse, -): string { - return JSON.stringify( - AtsApplicantsDeleteResponse$outboundSchema.parse( - atsApplicantsDeleteResponse, - ), - ); -} - export function atsApplicantsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicantsone.ts b/src/models/operations/atsapplicantsone.ts index f8dcfb85b..afda40694 100644 --- a/src/models/operations/atsapplicantsone.ts +++ b/src/models/operations/atsapplicantsone.ts @@ -59,77 +59,6 @@ export type AtsApplicantsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicantsOneGlobals$inboundSchema: z.ZodType< - AtsApplicantsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicantsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicantsOneGlobals$outboundSchema: z.ZodType< - AtsApplicantsOneGlobals$Outbound, - z.ZodTypeDef, - AtsApplicantsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsOneGlobals$ { - /** @deprecated use `AtsApplicantsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsOneGlobals$inboundSchema; - /** @deprecated use `AtsApplicantsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsOneGlobals$outboundSchema; - /** @deprecated use `AtsApplicantsOneGlobals$Outbound` instead. */ - export type Outbound = AtsApplicantsOneGlobals$Outbound; -} - -export function atsApplicantsOneGlobalsToJSON( - atsApplicantsOneGlobals: AtsApplicantsOneGlobals, -): string { - return JSON.stringify( - AtsApplicantsOneGlobals$outboundSchema.parse(atsApplicantsOneGlobals), - ); -} - -export function atsApplicantsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicantsOneRequest$inboundSchema: z.ZodType< - AtsApplicantsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AtsApplicantsOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const AtsApplicantsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsOneRequest$ { - /** @deprecated use `AtsApplicantsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsOneRequest$inboundSchema; - /** @deprecated use `AtsApplicantsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsOneRequest$outboundSchema; - /** @deprecated use `AtsApplicantsOneRequest$Outbound` instead. */ - export type Outbound = AtsApplicantsOneRequest$Outbound; -} - export function atsApplicantsOneRequestToJSON( atsApplicantsOneRequest: AtsApplicantsOneRequest, ): string { @@ -175,16 +91,6 @@ export function atsApplicantsOneRequestToJSON( ); } -export function atsApplicantsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsOneRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicantsOneResponse$inboundSchema: z.ZodType< AtsApplicantsOneResponse, @@ -204,55 +110,6 @@ export const AtsApplicantsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicantsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApplicantResponse?: components.GetApplicantResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicantsOneResponse$outboundSchema: z.ZodType< - AtsApplicantsOneResponse$Outbound, - z.ZodTypeDef, - AtsApplicantsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApplicantResponse: components.GetApplicantResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApplicantResponse: "GetApplicantResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsOneResponse$ { - /** @deprecated use `AtsApplicantsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsOneResponse$inboundSchema; - /** @deprecated use `AtsApplicantsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsOneResponse$outboundSchema; - /** @deprecated use `AtsApplicantsOneResponse$Outbound` instead. */ - export type Outbound = AtsApplicantsOneResponse$Outbound; -} - -export function atsApplicantsOneResponseToJSON( - atsApplicantsOneResponse: AtsApplicantsOneResponse, -): string { - return JSON.stringify( - AtsApplicantsOneResponse$outboundSchema.parse(atsApplicantsOneResponse), - ); -} - export function atsApplicantsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicantsupdate.ts b/src/models/operations/atsapplicantsupdate.ts index 68d37cb0a..bad4e862c 100644 --- a/src/models/operations/atsapplicantsupdate.ts +++ b/src/models/operations/atsapplicantsupdate.ts @@ -56,81 +56,6 @@ export type AtsApplicantsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicantsUpdateGlobals$inboundSchema: z.ZodType< - AtsApplicantsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicantsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicantsUpdateGlobals$outboundSchema: z.ZodType< - AtsApplicantsUpdateGlobals$Outbound, - z.ZodTypeDef, - AtsApplicantsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsUpdateGlobals$ { - /** @deprecated use `AtsApplicantsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsUpdateGlobals$inboundSchema; - /** @deprecated use `AtsApplicantsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsUpdateGlobals$outboundSchema; - /** @deprecated use `AtsApplicantsUpdateGlobals$Outbound` instead. */ - export type Outbound = AtsApplicantsUpdateGlobals$Outbound; -} - -export function atsApplicantsUpdateGlobalsToJSON( - atsApplicantsUpdateGlobals: AtsApplicantsUpdateGlobals, -): string { - return JSON.stringify( - AtsApplicantsUpdateGlobals$outboundSchema.parse(atsApplicantsUpdateGlobals), - ); -} - -export function atsApplicantsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicantsUpdateRequest$inboundSchema: z.ZodType< - AtsApplicantsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Applicant: components.ApplicantInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Applicant": "applicant", - }); -}); - /** @internal */ export type AtsApplicantsUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const AtsApplicantsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsUpdateRequest$ { - /** @deprecated use `AtsApplicantsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsUpdateRequest$inboundSchema; - /** @deprecated use `AtsApplicantsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsUpdateRequest$outboundSchema; - /** @deprecated use `AtsApplicantsUpdateRequest$Outbound` instead. */ - export type Outbound = AtsApplicantsUpdateRequest$Outbound; -} - export function atsApplicantsUpdateRequestToJSON( atsApplicantsUpdateRequest: AtsApplicantsUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function atsApplicantsUpdateRequestToJSON( ); } -export function atsApplicantsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicantsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicantsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicantsUpdateResponse$inboundSchema: z.ZodType< AtsApplicantsUpdateResponse, @@ -209,59 +111,6 @@ export const AtsApplicantsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicantsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateApplicantResponse?: - | components.UpdateApplicantResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicantsUpdateResponse$outboundSchema: z.ZodType< - AtsApplicantsUpdateResponse$Outbound, - z.ZodTypeDef, - AtsApplicantsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateApplicantResponse: components.UpdateApplicantResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateApplicantResponse: "UpdateApplicantResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicantsUpdateResponse$ { - /** @deprecated use `AtsApplicantsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicantsUpdateResponse$inboundSchema; - /** @deprecated use `AtsApplicantsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicantsUpdateResponse$outboundSchema; - /** @deprecated use `AtsApplicantsUpdateResponse$Outbound` instead. */ - export type Outbound = AtsApplicantsUpdateResponse$Outbound; -} - -export function atsApplicantsUpdateResponseToJSON( - atsApplicantsUpdateResponse: AtsApplicantsUpdateResponse, -): string { - return JSON.stringify( - AtsApplicantsUpdateResponse$outboundSchema.parse( - atsApplicantsUpdateResponse, - ), - ); -} - export function atsApplicantsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicationsadd.ts b/src/models/operations/atsapplicationsadd.ts index 7b9d0bc23..a5916eede 100644 --- a/src/models/operations/atsapplicationsadd.ts +++ b/src/models/operations/atsapplicationsadd.ts @@ -52,80 +52,6 @@ export type AtsApplicationsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicationsAddGlobals$inboundSchema: z.ZodType< - AtsApplicationsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicationsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicationsAddGlobals$outboundSchema: z.ZodType< - AtsApplicationsAddGlobals$Outbound, - z.ZodTypeDef, - AtsApplicationsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAddGlobals$ { - /** @deprecated use `AtsApplicationsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAddGlobals$inboundSchema; - /** @deprecated use `AtsApplicationsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAddGlobals$outboundSchema; - /** @deprecated use `AtsApplicationsAddGlobals$Outbound` instead. */ - export type Outbound = AtsApplicationsAddGlobals$Outbound; -} - -export function atsApplicationsAddGlobalsToJSON( - atsApplicationsAddGlobals: AtsApplicationsAddGlobals, -): string { - return JSON.stringify( - AtsApplicationsAddGlobals$outboundSchema.parse(atsApplicationsAddGlobals), - ); -} - -export function atsApplicationsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicationsAddRequest$inboundSchema: z.ZodType< - AtsApplicationsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Application: components.ApplicationInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Application": "application", - }); -}); - /** @internal */ export type AtsApplicationsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const AtsApplicationsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAddRequest$ { - /** @deprecated use `AtsApplicationsAddRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAddRequest$inboundSchema; - /** @deprecated use `AtsApplicationsAddRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAddRequest$outboundSchema; - /** @deprecated use `AtsApplicationsAddRequest$Outbound` instead. */ - export type Outbound = AtsApplicationsAddRequest$Outbound; -} - export function atsApplicationsAddRequestToJSON( atsApplicationsAddRequest: AtsApplicationsAddRequest, ): string { @@ -173,16 +86,6 @@ export function atsApplicationsAddRequestToJSON( ); } -export function atsApplicationsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsAddRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicationsAddResponse$inboundSchema: z.ZodType< AtsApplicationsAddResponse, @@ -202,57 +105,6 @@ export const AtsApplicationsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicationsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateApplicationResponse?: - | components.CreateApplicationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicationsAddResponse$outboundSchema: z.ZodType< - AtsApplicationsAddResponse$Outbound, - z.ZodTypeDef, - AtsApplicationsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createApplicationResponse: components.CreateApplicationResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createApplicationResponse: "CreateApplicationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAddResponse$ { - /** @deprecated use `AtsApplicationsAddResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAddResponse$inboundSchema; - /** @deprecated use `AtsApplicationsAddResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAddResponse$outboundSchema; - /** @deprecated use `AtsApplicationsAddResponse$Outbound` instead. */ - export type Outbound = AtsApplicationsAddResponse$Outbound; -} - -export function atsApplicationsAddResponseToJSON( - atsApplicationsAddResponse: AtsApplicationsAddResponse, -): string { - return JSON.stringify( - AtsApplicationsAddResponse$outboundSchema.parse(atsApplicationsAddResponse), - ); -} - export function atsApplicationsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicationsall.ts b/src/models/operations/atsapplicationsall.ts index 6c793cc69..1f2ac6cfa 100644 --- a/src/models/operations/atsapplicationsall.ts +++ b/src/models/operations/atsapplicationsall.ts @@ -63,82 +63,6 @@ export type AtsApplicationsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicationsAllGlobals$inboundSchema: z.ZodType< - AtsApplicationsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicationsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicationsAllGlobals$outboundSchema: z.ZodType< - AtsApplicationsAllGlobals$Outbound, - z.ZodTypeDef, - AtsApplicationsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAllGlobals$ { - /** @deprecated use `AtsApplicationsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAllGlobals$inboundSchema; - /** @deprecated use `AtsApplicationsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAllGlobals$outboundSchema; - /** @deprecated use `AtsApplicationsAllGlobals$Outbound` instead. */ - export type Outbound = AtsApplicationsAllGlobals$Outbound; -} - -export function atsApplicationsAllGlobalsToJSON( - atsApplicationsAllGlobals: AtsApplicationsAllGlobals, -): string { - return JSON.stringify( - AtsApplicationsAllGlobals$outboundSchema.parse(atsApplicationsAllGlobals), - ); -} - -export function atsApplicationsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicationsAllRequest$inboundSchema: z.ZodType< - AtsApplicationsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - pass_through: z.record(z.any()).optional(), - limit: z.number().int().default(20), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AtsApplicationsAllRequest$Outbound = { raw: boolean; @@ -169,19 +93,6 @@ export const AtsApplicationsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAllRequest$ { - /** @deprecated use `AtsApplicationsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAllRequest$inboundSchema; - /** @deprecated use `AtsApplicationsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAllRequest$outboundSchema; - /** @deprecated use `AtsApplicationsAllRequest$Outbound` instead. */ - export type Outbound = AtsApplicationsAllRequest$Outbound; -} - export function atsApplicationsAllRequestToJSON( atsApplicationsAllRequest: AtsApplicationsAllRequest, ): string { @@ -190,16 +101,6 @@ export function atsApplicationsAllRequestToJSON( ); } -export function atsApplicationsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsAllRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicationsAllResponse$inboundSchema: z.ZodType< AtsApplicationsAllResponse, @@ -219,57 +120,6 @@ export const AtsApplicationsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicationsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApplicationsResponse?: - | components.GetApplicationsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicationsAllResponse$outboundSchema: z.ZodType< - AtsApplicationsAllResponse$Outbound, - z.ZodTypeDef, - AtsApplicationsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApplicationsResponse: components.GetApplicationsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApplicationsResponse: "GetApplicationsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsAllResponse$ { - /** @deprecated use `AtsApplicationsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsAllResponse$inboundSchema; - /** @deprecated use `AtsApplicationsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsAllResponse$outboundSchema; - /** @deprecated use `AtsApplicationsAllResponse$Outbound` instead. */ - export type Outbound = AtsApplicationsAllResponse$Outbound; -} - -export function atsApplicationsAllResponseToJSON( - atsApplicationsAllResponse: AtsApplicationsAllResponse, -): string { - return JSON.stringify( - AtsApplicationsAllResponse$outboundSchema.parse(atsApplicationsAllResponse), - ); -} - export function atsApplicationsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicationsdelete.ts b/src/models/operations/atsapplicationsdelete.ts index e4069666c..e541e98ba 100644 --- a/src/models/operations/atsapplicationsdelete.ts +++ b/src/models/operations/atsapplicationsdelete.ts @@ -55,78 +55,6 @@ export type AtsApplicationsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicationsDeleteGlobals$inboundSchema: z.ZodType< - AtsApplicationsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicationsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicationsDeleteGlobals$outboundSchema: z.ZodType< - AtsApplicationsDeleteGlobals$Outbound, - z.ZodTypeDef, - AtsApplicationsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsDeleteGlobals$ { - /** @deprecated use `AtsApplicationsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsDeleteGlobals$inboundSchema; - /** @deprecated use `AtsApplicationsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsDeleteGlobals$outboundSchema; - /** @deprecated use `AtsApplicationsDeleteGlobals$Outbound` instead. */ - export type Outbound = AtsApplicationsDeleteGlobals$Outbound; -} - -export function atsApplicationsDeleteGlobalsToJSON( - atsApplicationsDeleteGlobals: AtsApplicationsDeleteGlobals, -): string { - return JSON.stringify( - AtsApplicationsDeleteGlobals$outboundSchema.parse( - atsApplicationsDeleteGlobals, - ), - ); -} - -export function atsApplicationsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicationsDeleteRequest$inboundSchema: z.ZodType< - AtsApplicationsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AtsApplicationsDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const AtsApplicationsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsDeleteRequest$ { - /** @deprecated use `AtsApplicationsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsDeleteRequest$inboundSchema; - /** @deprecated use `AtsApplicationsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsDeleteRequest$outboundSchema; - /** @deprecated use `AtsApplicationsDeleteRequest$Outbound` instead. */ - export type Outbound = AtsApplicationsDeleteRequest$Outbound; -} - export function atsApplicationsDeleteRequestToJSON( atsApplicationsDeleteRequest: AtsApplicationsDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function atsApplicationsDeleteRequestToJSON( ); } -export function atsApplicationsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicationsDeleteResponse$inboundSchema: z.ZodType< AtsApplicationsDeleteResponse, @@ -201,59 +106,6 @@ export const AtsApplicationsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicationsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteApplicationResponse?: - | components.DeleteApplicationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicationsDeleteResponse$outboundSchema: z.ZodType< - AtsApplicationsDeleteResponse$Outbound, - z.ZodTypeDef, - AtsApplicationsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteApplicationResponse: components.DeleteApplicationResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteApplicationResponse: "DeleteApplicationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsDeleteResponse$ { - /** @deprecated use `AtsApplicationsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsDeleteResponse$inboundSchema; - /** @deprecated use `AtsApplicationsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsDeleteResponse$outboundSchema; - /** @deprecated use `AtsApplicationsDeleteResponse$Outbound` instead. */ - export type Outbound = AtsApplicationsDeleteResponse$Outbound; -} - -export function atsApplicationsDeleteResponseToJSON( - atsApplicationsDeleteResponse: AtsApplicationsDeleteResponse, -): string { - return JSON.stringify( - AtsApplicationsDeleteResponse$outboundSchema.parse( - atsApplicationsDeleteResponse, - ), - ); -} - export function atsApplicationsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicationsone.ts b/src/models/operations/atsapplicationsone.ts index c60b33fd4..034655bd8 100644 --- a/src/models/operations/atsapplicationsone.ts +++ b/src/models/operations/atsapplicationsone.ts @@ -55,76 +55,6 @@ export type AtsApplicationsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicationsOneGlobals$inboundSchema: z.ZodType< - AtsApplicationsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicationsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicationsOneGlobals$outboundSchema: z.ZodType< - AtsApplicationsOneGlobals$Outbound, - z.ZodTypeDef, - AtsApplicationsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsOneGlobals$ { - /** @deprecated use `AtsApplicationsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsOneGlobals$inboundSchema; - /** @deprecated use `AtsApplicationsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsOneGlobals$outboundSchema; - /** @deprecated use `AtsApplicationsOneGlobals$Outbound` instead. */ - export type Outbound = AtsApplicationsOneGlobals$Outbound; -} - -export function atsApplicationsOneGlobalsToJSON( - atsApplicationsOneGlobals: AtsApplicationsOneGlobals, -): string { - return JSON.stringify( - AtsApplicationsOneGlobals$outboundSchema.parse(atsApplicationsOneGlobals), - ); -} - -export function atsApplicationsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicationsOneRequest$inboundSchema: z.ZodType< - AtsApplicationsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type AtsApplicationsOneRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const AtsApplicationsOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsOneRequest$ { - /** @deprecated use `AtsApplicationsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsOneRequest$inboundSchema; - /** @deprecated use `AtsApplicationsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsOneRequest$outboundSchema; - /** @deprecated use `AtsApplicationsOneRequest$Outbound` instead. */ - export type Outbound = AtsApplicationsOneRequest$Outbound; -} - export function atsApplicationsOneRequestToJSON( atsApplicationsOneRequest: AtsApplicationsOneRequest, ): string { @@ -168,16 +85,6 @@ export function atsApplicationsOneRequestToJSON( ); } -export function atsApplicationsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsOneRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicationsOneResponse$inboundSchema: z.ZodType< AtsApplicationsOneResponse, @@ -197,57 +104,6 @@ export const AtsApplicationsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicationsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApplicationResponse?: - | components.GetApplicationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicationsOneResponse$outboundSchema: z.ZodType< - AtsApplicationsOneResponse$Outbound, - z.ZodTypeDef, - AtsApplicationsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApplicationResponse: components.GetApplicationResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApplicationResponse: "GetApplicationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsOneResponse$ { - /** @deprecated use `AtsApplicationsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsOneResponse$inboundSchema; - /** @deprecated use `AtsApplicationsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsOneResponse$outboundSchema; - /** @deprecated use `AtsApplicationsOneResponse$Outbound` instead. */ - export type Outbound = AtsApplicationsOneResponse$Outbound; -} - -export function atsApplicationsOneResponseToJSON( - atsApplicationsOneResponse: AtsApplicationsOneResponse, -): string { - return JSON.stringify( - AtsApplicationsOneResponse$outboundSchema.parse(atsApplicationsOneResponse), - ); -} - export function atsApplicationsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsapplicationsupdate.ts b/src/models/operations/atsapplicationsupdate.ts index 2f67dba99..d49acf8f9 100644 --- a/src/models/operations/atsapplicationsupdate.ts +++ b/src/models/operations/atsapplicationsupdate.ts @@ -56,83 +56,6 @@ export type AtsApplicationsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsApplicationsUpdateGlobals$inboundSchema: z.ZodType< - AtsApplicationsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsApplicationsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsApplicationsUpdateGlobals$outboundSchema: z.ZodType< - AtsApplicationsUpdateGlobals$Outbound, - z.ZodTypeDef, - AtsApplicationsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsUpdateGlobals$ { - /** @deprecated use `AtsApplicationsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsUpdateGlobals$inboundSchema; - /** @deprecated use `AtsApplicationsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsUpdateGlobals$outboundSchema; - /** @deprecated use `AtsApplicationsUpdateGlobals$Outbound` instead. */ - export type Outbound = AtsApplicationsUpdateGlobals$Outbound; -} - -export function atsApplicationsUpdateGlobalsToJSON( - atsApplicationsUpdateGlobals: AtsApplicationsUpdateGlobals, -): string { - return JSON.stringify( - AtsApplicationsUpdateGlobals$outboundSchema.parse( - atsApplicationsUpdateGlobals, - ), - ); -} - -export function atsApplicationsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsApplicationsUpdateRequest$inboundSchema: z.ZodType< - AtsApplicationsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Application: components.ApplicationInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Application": "application", - }); -}); - /** @internal */ export type AtsApplicationsUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const AtsApplicationsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsUpdateRequest$ { - /** @deprecated use `AtsApplicationsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsUpdateRequest$inboundSchema; - /** @deprecated use `AtsApplicationsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsUpdateRequest$outboundSchema; - /** @deprecated use `AtsApplicationsUpdateRequest$Outbound` instead. */ - export type Outbound = AtsApplicationsUpdateRequest$Outbound; -} - export function atsApplicationsUpdateRequestToJSON( atsApplicationsUpdateRequest: AtsApplicationsUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function atsApplicationsUpdateRequestToJSON( ); } -export function atsApplicationsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsApplicationsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsApplicationsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const AtsApplicationsUpdateResponse$inboundSchema: z.ZodType< AtsApplicationsUpdateResponse, @@ -213,59 +113,6 @@ export const AtsApplicationsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsApplicationsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateApplicationResponse?: - | components.UpdateApplicationResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsApplicationsUpdateResponse$outboundSchema: z.ZodType< - AtsApplicationsUpdateResponse$Outbound, - z.ZodTypeDef, - AtsApplicationsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateApplicationResponse: components.UpdateApplicationResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateApplicationResponse: "UpdateApplicationResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsApplicationsUpdateResponse$ { - /** @deprecated use `AtsApplicationsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = AtsApplicationsUpdateResponse$inboundSchema; - /** @deprecated use `AtsApplicationsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = AtsApplicationsUpdateResponse$outboundSchema; - /** @deprecated use `AtsApplicationsUpdateResponse$Outbound` instead. */ - export type Outbound = AtsApplicationsUpdateResponse$Outbound; -} - -export function atsApplicationsUpdateResponseToJSON( - atsApplicationsUpdateResponse: AtsApplicationsUpdateResponse, -): string { - return JSON.stringify( - AtsApplicationsUpdateResponse$outboundSchema.parse( - atsApplicationsUpdateResponse, - ), - ); -} - export function atsApplicationsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsjobsall.ts b/src/models/operations/atsjobsall.ts index e6f3a111f..a452b5816 100644 --- a/src/models/operations/atsjobsall.ts +++ b/src/models/operations/atsjobsall.ts @@ -67,83 +67,6 @@ export type AtsJobsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsJobsAllGlobals$inboundSchema: z.ZodType< - AtsJobsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsJobsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsJobsAllGlobals$outboundSchema: z.ZodType< - AtsJobsAllGlobals$Outbound, - z.ZodTypeDef, - AtsJobsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsAllGlobals$ { - /** @deprecated use `AtsJobsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsJobsAllGlobals$inboundSchema; - /** @deprecated use `AtsJobsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsJobsAllGlobals$outboundSchema; - /** @deprecated use `AtsJobsAllGlobals$Outbound` instead. */ - export type Outbound = AtsJobsAllGlobals$Outbound; -} - -export function atsJobsAllGlobalsToJSON( - atsJobsAllGlobals: AtsJobsAllGlobals, -): string { - return JSON.stringify( - AtsJobsAllGlobals$outboundSchema.parse(atsJobsAllGlobals), - ); -} - -export function atsJobsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsJobsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsJobsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsJobsAllRequest$inboundSchema: z.ZodType< - AtsJobsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type AtsJobsAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const AtsJobsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsAllRequest$ { - /** @deprecated use `AtsJobsAllRequest$inboundSchema` instead. */ - export const inboundSchema = AtsJobsAllRequest$inboundSchema; - /** @deprecated use `AtsJobsAllRequest$outboundSchema` instead. */ - export const outboundSchema = AtsJobsAllRequest$outboundSchema; - /** @deprecated use `AtsJobsAllRequest$Outbound` instead. */ - export type Outbound = AtsJobsAllRequest$Outbound; -} - export function atsJobsAllRequestToJSON( atsJobsAllRequest: AtsJobsAllRequest, ): string { @@ -197,16 +107,6 @@ export function atsJobsAllRequestToJSON( ); } -export function atsJobsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsJobsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsJobsAllRequest' from JSON`, - ); -} - /** @internal */ export const AtsJobsAllResponse$inboundSchema: z.ZodType< AtsJobsAllResponse, @@ -225,54 +125,6 @@ export const AtsJobsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsJobsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetJobsResponse?: components.GetJobsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsJobsAllResponse$outboundSchema: z.ZodType< - AtsJobsAllResponse$Outbound, - z.ZodTypeDef, - AtsJobsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getJobsResponse: components.GetJobsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getJobsResponse: "GetJobsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsAllResponse$ { - /** @deprecated use `AtsJobsAllResponse$inboundSchema` instead. */ - export const inboundSchema = AtsJobsAllResponse$inboundSchema; - /** @deprecated use `AtsJobsAllResponse$outboundSchema` instead. */ - export const outboundSchema = AtsJobsAllResponse$outboundSchema; - /** @deprecated use `AtsJobsAllResponse$Outbound` instead. */ - export type Outbound = AtsJobsAllResponse$Outbound; -} - -export function atsJobsAllResponseToJSON( - atsJobsAllResponse: AtsJobsAllResponse, -): string { - return JSON.stringify( - AtsJobsAllResponse$outboundSchema.parse(atsJobsAllResponse), - ); -} - export function atsJobsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/atsjobsone.ts b/src/models/operations/atsjobsone.ts index 87a3f4559..a6fcb5da4 100644 --- a/src/models/operations/atsjobsone.ts +++ b/src/models/operations/atsjobsone.ts @@ -59,77 +59,6 @@ export type AtsJobsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const AtsJobsOneGlobals$inboundSchema: z.ZodType< - AtsJobsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type AtsJobsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const AtsJobsOneGlobals$outboundSchema: z.ZodType< - AtsJobsOneGlobals$Outbound, - z.ZodTypeDef, - AtsJobsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsOneGlobals$ { - /** @deprecated use `AtsJobsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = AtsJobsOneGlobals$inboundSchema; - /** @deprecated use `AtsJobsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = AtsJobsOneGlobals$outboundSchema; - /** @deprecated use `AtsJobsOneGlobals$Outbound` instead. */ - export type Outbound = AtsJobsOneGlobals$Outbound; -} - -export function atsJobsOneGlobalsToJSON( - atsJobsOneGlobals: AtsJobsOneGlobals, -): string { - return JSON.stringify( - AtsJobsOneGlobals$outboundSchema.parse(atsJobsOneGlobals), - ); -} - -export function atsJobsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsJobsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsJobsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const AtsJobsOneRequest$inboundSchema: z.ZodType< - AtsJobsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type AtsJobsOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const AtsJobsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsOneRequest$ { - /** @deprecated use `AtsJobsOneRequest$inboundSchema` instead. */ - export const inboundSchema = AtsJobsOneRequest$inboundSchema; - /** @deprecated use `AtsJobsOneRequest$outboundSchema` instead. */ - export const outboundSchema = AtsJobsOneRequest$outboundSchema; - /** @deprecated use `AtsJobsOneRequest$Outbound` instead. */ - export type Outbound = AtsJobsOneRequest$Outbound; -} - export function atsJobsOneRequestToJSON( atsJobsOneRequest: AtsJobsOneRequest, ): string { @@ -175,16 +91,6 @@ export function atsJobsOneRequestToJSON( ); } -export function atsJobsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AtsJobsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtsJobsOneRequest' from JSON`, - ); -} - /** @internal */ export const AtsJobsOneResponse$inboundSchema: z.ZodType< AtsJobsOneResponse, @@ -203,54 +109,6 @@ export const AtsJobsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type AtsJobsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetJobResponse?: components.GetJobResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const AtsJobsOneResponse$outboundSchema: z.ZodType< - AtsJobsOneResponse$Outbound, - z.ZodTypeDef, - AtsJobsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getJobResponse: components.GetJobResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getJobResponse: "GetJobResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AtsJobsOneResponse$ { - /** @deprecated use `AtsJobsOneResponse$inboundSchema` instead. */ - export const inboundSchema = AtsJobsOneResponse$inboundSchema; - /** @deprecated use `AtsJobsOneResponse$outboundSchema` instead. */ - export const outboundSchema = AtsJobsOneResponse$outboundSchema; - /** @deprecated use `AtsJobsOneResponse$Outbound` instead. */ - export type Outbound = AtsJobsOneResponse$Outbound; -} - -export function atsJobsOneResponseToJSON( - atsJobsOneResponse: AtsJobsOneResponse, -): string { - return JSON.stringify( - AtsJobsOneResponse$outboundSchema.parse(atsJobsOneResponse), - ); -} - export function atsJobsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorapiresourcecoverageone.ts b/src/models/operations/connectorapiresourcecoverageone.ts index ac21b61e3..dde09db6e 100644 --- a/src/models/operations/connectorapiresourcecoverageone.ts +++ b/src/models/operations/connectorapiresourcecoverageone.ts @@ -45,81 +45,6 @@ export type ConnectorApiResourceCoverageOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorApiResourceCoverageOneGlobals$inboundSchema: z.ZodType< - ConnectorApiResourceCoverageOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorApiResourceCoverageOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorApiResourceCoverageOneGlobals$outboundSchema: z.ZodType< - ConnectorApiResourceCoverageOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorApiResourceCoverageOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourceCoverageOneGlobals$ { - /** @deprecated use `ConnectorApiResourceCoverageOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - ConnectorApiResourceCoverageOneGlobals$inboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - ConnectorApiResourceCoverageOneGlobals$outboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorApiResourceCoverageOneGlobals$Outbound; -} - -export function connectorApiResourceCoverageOneGlobalsToJSON( - connectorApiResourceCoverageOneGlobals: - ConnectorApiResourceCoverageOneGlobals, -): string { - return JSON.stringify( - ConnectorApiResourceCoverageOneGlobals$outboundSchema.parse( - connectorApiResourceCoverageOneGlobals, - ), - ); -} - -export function connectorApiResourceCoverageOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ConnectorApiResourceCoverageOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApiResourceCoverageOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorApiResourceCoverageOneRequest$inboundSchema: z.ZodType< - ConnectorApiResourceCoverageOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), - resource_id: z.string(), -}).transform((v) => { - return remap$(v, { - "resource_id": "resourceId", - }); -}); - /** @internal */ export type ConnectorApiResourceCoverageOneRequest$Outbound = { appId?: string | undefined; @@ -142,21 +67,6 @@ export const ConnectorApiResourceCoverageOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourceCoverageOneRequest$ { - /** @deprecated use `ConnectorApiResourceCoverageOneRequest$inboundSchema` instead. */ - export const inboundSchema = - ConnectorApiResourceCoverageOneRequest$inboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneRequest$outboundSchema` instead. */ - export const outboundSchema = - ConnectorApiResourceCoverageOneRequest$outboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneRequest$Outbound` instead. */ - export type Outbound = ConnectorApiResourceCoverageOneRequest$Outbound; -} - export function connectorApiResourceCoverageOneRequestToJSON( connectorApiResourceCoverageOneRequest: ConnectorApiResourceCoverageOneRequest, @@ -168,17 +78,6 @@ export function connectorApiResourceCoverageOneRequestToJSON( ); } -export function connectorApiResourceCoverageOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ConnectorApiResourceCoverageOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApiResourceCoverageOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorApiResourceCoverageOneResponse$inboundSchema: z.ZodType< ConnectorApiResourceCoverageOneResponse, @@ -198,62 +97,6 @@ export const ConnectorApiResourceCoverageOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorApiResourceCoverageOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApiResourceCoverageResponse?: - | components.GetApiResourceCoverageResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorApiResourceCoverageOneResponse$outboundSchema: z.ZodType< - ConnectorApiResourceCoverageOneResponse$Outbound, - z.ZodTypeDef, - ConnectorApiResourceCoverageOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApiResourceCoverageResponse: components - .GetApiResourceCoverageResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApiResourceCoverageResponse: "GetApiResourceCoverageResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourceCoverageOneResponse$ { - /** @deprecated use `ConnectorApiResourceCoverageOneResponse$inboundSchema` instead. */ - export const inboundSchema = - ConnectorApiResourceCoverageOneResponse$inboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneResponse$outboundSchema` instead. */ - export const outboundSchema = - ConnectorApiResourceCoverageOneResponse$outboundSchema; - /** @deprecated use `ConnectorApiResourceCoverageOneResponse$Outbound` instead. */ - export type Outbound = ConnectorApiResourceCoverageOneResponse$Outbound; -} - -export function connectorApiResourceCoverageOneResponseToJSON( - connectorApiResourceCoverageOneResponse: - ConnectorApiResourceCoverageOneResponse, -): string { - return JSON.stringify( - ConnectorApiResourceCoverageOneResponse$outboundSchema.parse( - connectorApiResourceCoverageOneResponse, - ), - ); -} - export function connectorApiResourceCoverageOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/connectorapiresourcesone.ts b/src/models/operations/connectorapiresourcesone.ts index 7a0920c41..1eac81fbc 100644 --- a/src/models/operations/connectorapiresourcesone.ts +++ b/src/models/operations/connectorapiresourcesone.ts @@ -43,77 +43,6 @@ export type ConnectorApiResourcesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorApiResourcesOneGlobals$inboundSchema: z.ZodType< - ConnectorApiResourcesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorApiResourcesOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorApiResourcesOneGlobals$outboundSchema: z.ZodType< - ConnectorApiResourcesOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorApiResourcesOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourcesOneGlobals$ { - /** @deprecated use `ConnectorApiResourcesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorApiResourcesOneGlobals$inboundSchema; - /** @deprecated use `ConnectorApiResourcesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorApiResourcesOneGlobals$outboundSchema; - /** @deprecated use `ConnectorApiResourcesOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorApiResourcesOneGlobals$Outbound; -} - -export function connectorApiResourcesOneGlobalsToJSON( - connectorApiResourcesOneGlobals: ConnectorApiResourcesOneGlobals, -): string { - return JSON.stringify( - ConnectorApiResourcesOneGlobals$outboundSchema.parse( - connectorApiResourcesOneGlobals, - ), - ); -} - -export function connectorApiResourcesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApiResourcesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApiResourcesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorApiResourcesOneRequest$inboundSchema: z.ZodType< - ConnectorApiResourcesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), - resource_id: z.string(), -}).transform((v) => { - return remap$(v, { - "resource_id": "resourceId", - }); -}); - /** @internal */ export type ConnectorApiResourcesOneRequest$Outbound = { appId?: string | undefined; @@ -136,19 +65,6 @@ export const ConnectorApiResourcesOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourcesOneRequest$ { - /** @deprecated use `ConnectorApiResourcesOneRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorApiResourcesOneRequest$inboundSchema; - /** @deprecated use `ConnectorApiResourcesOneRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorApiResourcesOneRequest$outboundSchema; - /** @deprecated use `ConnectorApiResourcesOneRequest$Outbound` instead. */ - export type Outbound = ConnectorApiResourcesOneRequest$Outbound; -} - export function connectorApiResourcesOneRequestToJSON( connectorApiResourcesOneRequest: ConnectorApiResourcesOneRequest, ): string { @@ -159,16 +75,6 @@ export function connectorApiResourcesOneRequestToJSON( ); } -export function connectorApiResourcesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApiResourcesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApiResourcesOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorApiResourcesOneResponse$inboundSchema: z.ZodType< ConnectorApiResourcesOneResponse, @@ -188,59 +94,6 @@ export const ConnectorApiResourcesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorApiResourcesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApiResourceResponse?: - | components.GetApiResourceResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorApiResourcesOneResponse$outboundSchema: z.ZodType< - ConnectorApiResourcesOneResponse$Outbound, - z.ZodTypeDef, - ConnectorApiResourcesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApiResourceResponse: components.GetApiResourceResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApiResourceResponse: "GetApiResourceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApiResourcesOneResponse$ { - /** @deprecated use `ConnectorApiResourcesOneResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorApiResourcesOneResponse$inboundSchema; - /** @deprecated use `ConnectorApiResourcesOneResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectorApiResourcesOneResponse$outboundSchema; - /** @deprecated use `ConnectorApiResourcesOneResponse$Outbound` instead. */ - export type Outbound = ConnectorApiResourcesOneResponse$Outbound; -} - -export function connectorApiResourcesOneResponseToJSON( - connectorApiResourcesOneResponse: ConnectorApiResourcesOneResponse, -): string { - return JSON.stringify( - ConnectorApiResourcesOneResponse$outboundSchema.parse( - connectorApiResourcesOneResponse, - ), - ); -} - export function connectorApiResourcesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorapisall.ts b/src/models/operations/connectorapisall.ts index 3a9bad96b..3b4a6d90e 100644 --- a/src/models/operations/connectorapisall.ts +++ b/src/models/operations/connectorapisall.ts @@ -47,72 +47,6 @@ export type ConnectorApisAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorApisAllGlobals$inboundSchema: z.ZodType< - ConnectorApisAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorApisAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorApisAllGlobals$outboundSchema: z.ZodType< - ConnectorApisAllGlobals$Outbound, - z.ZodTypeDef, - ConnectorApisAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisAllGlobals$ { - /** @deprecated use `ConnectorApisAllGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisAllGlobals$inboundSchema; - /** @deprecated use `ConnectorApisAllGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisAllGlobals$outboundSchema; - /** @deprecated use `ConnectorApisAllGlobals$Outbound` instead. */ - export type Outbound = ConnectorApisAllGlobals$Outbound; -} - -export function connectorApisAllGlobalsToJSON( - connectorApisAllGlobals: ConnectorApisAllGlobals, -): string { - return JSON.stringify( - ConnectorApisAllGlobals$outboundSchema.parse(connectorApisAllGlobals), - ); -} - -export function connectorApisAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApisAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApisAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorApisAllRequest$inboundSchema: z.ZodType< - ConnectorApisAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ApisFilter$inboundSchema.optional(), -}); - /** @internal */ export type ConnectorApisAllRequest$Outbound = { appId?: string | undefined; @@ -133,19 +67,6 @@ export const ConnectorApisAllRequest$outboundSchema: z.ZodType< filter: components.ApisFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisAllRequest$ { - /** @deprecated use `ConnectorApisAllRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisAllRequest$inboundSchema; - /** @deprecated use `ConnectorApisAllRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisAllRequest$outboundSchema; - /** @deprecated use `ConnectorApisAllRequest$Outbound` instead. */ - export type Outbound = ConnectorApisAllRequest$Outbound; -} - export function connectorApisAllRequestToJSON( connectorApisAllRequest: ConnectorApisAllRequest, ): string { @@ -154,16 +75,6 @@ export function connectorApisAllRequestToJSON( ); } -export function connectorApisAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApisAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApisAllRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorApisAllResponse$inboundSchema: z.ZodType< ConnectorApisAllResponse, @@ -182,54 +93,6 @@ export const ConnectorApisAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorApisAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApisResponse?: components.GetApisResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorApisAllResponse$outboundSchema: z.ZodType< - ConnectorApisAllResponse$Outbound, - z.ZodTypeDef, - ConnectorApisAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApisResponse: components.GetApisResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApisResponse: "GetApisResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisAllResponse$ { - /** @deprecated use `ConnectorApisAllResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisAllResponse$inboundSchema; - /** @deprecated use `ConnectorApisAllResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisAllResponse$outboundSchema; - /** @deprecated use `ConnectorApisAllResponse$Outbound` instead. */ - export type Outbound = ConnectorApisAllResponse$Outbound; -} - -export function connectorApisAllResponseToJSON( - connectorApisAllResponse: ConnectorApisAllResponse, -): string { - return JSON.stringify( - ConnectorApisAllResponse$outboundSchema.parse(connectorApisAllResponse), - ); -} - export function connectorApisAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorapisone.ts b/src/models/operations/connectorapisone.ts index c11406e36..d5bcfa39b 100644 --- a/src/models/operations/connectorapisone.ts +++ b/src/models/operations/connectorapisone.ts @@ -39,70 +39,6 @@ export type ConnectorApisOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorApisOneGlobals$inboundSchema: z.ZodType< - ConnectorApisOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorApisOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorApisOneGlobals$outboundSchema: z.ZodType< - ConnectorApisOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorApisOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisOneGlobals$ { - /** @deprecated use `ConnectorApisOneGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisOneGlobals$inboundSchema; - /** @deprecated use `ConnectorApisOneGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisOneGlobals$outboundSchema; - /** @deprecated use `ConnectorApisOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorApisOneGlobals$Outbound; -} - -export function connectorApisOneGlobalsToJSON( - connectorApisOneGlobals: ConnectorApisOneGlobals, -): string { - return JSON.stringify( - ConnectorApisOneGlobals$outboundSchema.parse(connectorApisOneGlobals), - ); -} - -export function connectorApisOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApisOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApisOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorApisOneRequest$inboundSchema: z.ZodType< - ConnectorApisOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), -}); - /** @internal */ export type ConnectorApisOneRequest$Outbound = { appId?: string | undefined; @@ -119,19 +55,6 @@ export const ConnectorApisOneRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisOneRequest$ { - /** @deprecated use `ConnectorApisOneRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisOneRequest$inboundSchema; - /** @deprecated use `ConnectorApisOneRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisOneRequest$outboundSchema; - /** @deprecated use `ConnectorApisOneRequest$Outbound` instead. */ - export type Outbound = ConnectorApisOneRequest$Outbound; -} - export function connectorApisOneRequestToJSON( connectorApisOneRequest: ConnectorApisOneRequest, ): string { @@ -140,16 +63,6 @@ export function connectorApisOneRequestToJSON( ); } -export function connectorApisOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorApisOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorApisOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorApisOneResponse$inboundSchema: z.ZodType< ConnectorApisOneResponse, @@ -168,54 +81,6 @@ export const ConnectorApisOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorApisOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetApiResponse?: components.GetApiResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorApisOneResponse$outboundSchema: z.ZodType< - ConnectorApisOneResponse$Outbound, - z.ZodTypeDef, - ConnectorApisOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getApiResponse: components.GetApiResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getApiResponse: "GetApiResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorApisOneResponse$ { - /** @deprecated use `ConnectorApisOneResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorApisOneResponse$inboundSchema; - /** @deprecated use `ConnectorApisOneResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectorApisOneResponse$outboundSchema; - /** @deprecated use `ConnectorApisOneResponse$Outbound` instead. */ - export type Outbound = ConnectorApisOneResponse$Outbound; -} - -export function connectorApisOneResponseToJSON( - connectorApisOneResponse: ConnectorApisOneResponse, -): string { - return JSON.stringify( - ConnectorApisOneResponse$outboundSchema.parse(connectorApisOneResponse), - ); -} - export function connectorApisOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorconnectordocsone.ts b/src/models/operations/connectorconnectordocsone.ts index 329eebd1a..77137a5a9 100644 --- a/src/models/operations/connectorconnectordocsone.ts +++ b/src/models/operations/connectorconnectordocsone.ts @@ -43,77 +43,6 @@ export type ConnectorConnectorDocsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorConnectorDocsOneGlobals$inboundSchema: z.ZodType< - ConnectorConnectorDocsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorConnectorDocsOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorConnectorDocsOneGlobals$outboundSchema: z.ZodType< - ConnectorConnectorDocsOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorConnectorDocsOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorDocsOneGlobals$ { - /** @deprecated use `ConnectorConnectorDocsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorDocsOneGlobals$inboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorDocsOneGlobals$outboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorConnectorDocsOneGlobals$Outbound; -} - -export function connectorConnectorDocsOneGlobalsToJSON( - connectorConnectorDocsOneGlobals: ConnectorConnectorDocsOneGlobals, -): string { - return JSON.stringify( - ConnectorConnectorDocsOneGlobals$outboundSchema.parse( - connectorConnectorDocsOneGlobals, - ), - ); -} - -export function connectorConnectorDocsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorDocsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorDocsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorConnectorDocsOneRequest$inboundSchema: z.ZodType< - ConnectorConnectorDocsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), - doc_id: z.string(), -}).transform((v) => { - return remap$(v, { - "doc_id": "docId", - }); -}); - /** @internal */ export type ConnectorConnectorDocsOneRequest$Outbound = { appId?: string | undefined; @@ -136,19 +65,6 @@ export const ConnectorConnectorDocsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorDocsOneRequest$ { - /** @deprecated use `ConnectorConnectorDocsOneRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorDocsOneRequest$inboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorDocsOneRequest$outboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneRequest$Outbound` instead. */ - export type Outbound = ConnectorConnectorDocsOneRequest$Outbound; -} - export function connectorConnectorDocsOneRequestToJSON( connectorConnectorDocsOneRequest: ConnectorConnectorDocsOneRequest, ): string { @@ -159,16 +75,6 @@ export function connectorConnectorDocsOneRequestToJSON( ); } -export function connectorConnectorDocsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorDocsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorDocsOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorConnectorDocsOneResponse$inboundSchema: z.ZodType< ConnectorConnectorDocsOneResponse, @@ -187,57 +93,6 @@ export const ConnectorConnectorDocsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorConnectorDocsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectorDocResponse?: string | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorConnectorDocsOneResponse$outboundSchema: z.ZodType< - ConnectorConnectorDocsOneResponse$Outbound, - z.ZodTypeDef, - ConnectorConnectorDocsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectorDocResponse: z.string().optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectorDocResponse: "GetConnectorDocResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorDocsOneResponse$ { - /** @deprecated use `ConnectorConnectorDocsOneResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorDocsOneResponse$inboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - ConnectorConnectorDocsOneResponse$outboundSchema; - /** @deprecated use `ConnectorConnectorDocsOneResponse$Outbound` instead. */ - export type Outbound = ConnectorConnectorDocsOneResponse$Outbound; -} - -export function connectorConnectorDocsOneResponseToJSON( - connectorConnectorDocsOneResponse: ConnectorConnectorDocsOneResponse, -): string { - return JSON.stringify( - ConnectorConnectorDocsOneResponse$outboundSchema.parse( - connectorConnectorDocsOneResponse, - ), - ); -} - export function connectorConnectorDocsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorconnectorresourcesone.ts b/src/models/operations/connectorconnectorresourcesone.ts index d46693798..4c3d6993f 100644 --- a/src/models/operations/connectorconnectorresourcesone.ts +++ b/src/models/operations/connectorconnectorresourcesone.ts @@ -49,82 +49,6 @@ export type ConnectorConnectorResourcesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorConnectorResourcesOneGlobals$inboundSchema: z.ZodType< - ConnectorConnectorResourcesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorConnectorResourcesOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorConnectorResourcesOneGlobals$outboundSchema: z.ZodType< - ConnectorConnectorResourcesOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorConnectorResourcesOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorResourcesOneGlobals$ { - /** @deprecated use `ConnectorConnectorResourcesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - ConnectorConnectorResourcesOneGlobals$inboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - ConnectorConnectorResourcesOneGlobals$outboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorConnectorResourcesOneGlobals$Outbound; -} - -export function connectorConnectorResourcesOneGlobalsToJSON( - connectorConnectorResourcesOneGlobals: ConnectorConnectorResourcesOneGlobals, -): string { - return JSON.stringify( - ConnectorConnectorResourcesOneGlobals$outboundSchema.parse( - connectorConnectorResourcesOneGlobals, - ), - ); -} - -export function connectorConnectorResourcesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ConnectorConnectorResourcesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorResourcesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorConnectorResourcesOneRequest$inboundSchema: z.ZodType< - ConnectorConnectorResourcesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), - resource_id: z.string(), - unified_api: components.UnifiedApiId$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "resource_id": "resourceId", - "unified_api": "unifiedApi", - }); -}); - /** @internal */ export type ConnectorConnectorResourcesOneRequest$Outbound = { appId?: string | undefined; @@ -150,21 +74,6 @@ export const ConnectorConnectorResourcesOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorResourcesOneRequest$ { - /** @deprecated use `ConnectorConnectorResourcesOneRequest$inboundSchema` instead. */ - export const inboundSchema = - ConnectorConnectorResourcesOneRequest$inboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneRequest$outboundSchema` instead. */ - export const outboundSchema = - ConnectorConnectorResourcesOneRequest$outboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneRequest$Outbound` instead. */ - export type Outbound = ConnectorConnectorResourcesOneRequest$Outbound; -} - export function connectorConnectorResourcesOneRequestToJSON( connectorConnectorResourcesOneRequest: ConnectorConnectorResourcesOneRequest, ): string { @@ -175,17 +84,6 @@ export function connectorConnectorResourcesOneRequestToJSON( ); } -export function connectorConnectorResourcesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ConnectorConnectorResourcesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorResourcesOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorConnectorResourcesOneResponse$inboundSchema: z.ZodType< ConnectorConnectorResourcesOneResponse, @@ -205,62 +103,6 @@ export const ConnectorConnectorResourcesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorConnectorResourcesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectorResourceResponse?: - | components.GetConnectorResourceResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorConnectorResourcesOneResponse$outboundSchema: z.ZodType< - ConnectorConnectorResourcesOneResponse$Outbound, - z.ZodTypeDef, - ConnectorConnectorResourcesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectorResourceResponse: components - .GetConnectorResourceResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectorResourceResponse: "GetConnectorResourceResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorResourcesOneResponse$ { - /** @deprecated use `ConnectorConnectorResourcesOneResponse$inboundSchema` instead. */ - export const inboundSchema = - ConnectorConnectorResourcesOneResponse$inboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneResponse$outboundSchema` instead. */ - export const outboundSchema = - ConnectorConnectorResourcesOneResponse$outboundSchema; - /** @deprecated use `ConnectorConnectorResourcesOneResponse$Outbound` instead. */ - export type Outbound = ConnectorConnectorResourcesOneResponse$Outbound; -} - -export function connectorConnectorResourcesOneResponseToJSON( - connectorConnectorResourcesOneResponse: - ConnectorConnectorResourcesOneResponse, -): string { - return JSON.stringify( - ConnectorConnectorResourcesOneResponse$outboundSchema.parse( - connectorConnectorResourcesOneResponse, - ), - ); -} - export function connectorConnectorResourcesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorconnectorsall.ts b/src/models/operations/connectorconnectorsall.ts index f8f853713..41385a6a8 100644 --- a/src/models/operations/connectorconnectorsall.ts +++ b/src/models/operations/connectorconnectorsall.ts @@ -47,74 +47,6 @@ export type ConnectorConnectorsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorConnectorsAllGlobals$inboundSchema: z.ZodType< - ConnectorConnectorsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorConnectorsAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorConnectorsAllGlobals$outboundSchema: z.ZodType< - ConnectorConnectorsAllGlobals$Outbound, - z.ZodTypeDef, - ConnectorConnectorsAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsAllGlobals$ { - /** @deprecated use `ConnectorConnectorsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsAllGlobals$inboundSchema; - /** @deprecated use `ConnectorConnectorsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsAllGlobals$outboundSchema; - /** @deprecated use `ConnectorConnectorsAllGlobals$Outbound` instead. */ - export type Outbound = ConnectorConnectorsAllGlobals$Outbound; -} - -export function connectorConnectorsAllGlobalsToJSON( - connectorConnectorsAllGlobals: ConnectorConnectorsAllGlobals, -): string { - return JSON.stringify( - ConnectorConnectorsAllGlobals$outboundSchema.parse( - connectorConnectorsAllGlobals, - ), - ); -} - -export function connectorConnectorsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorConnectorsAllRequest$inboundSchema: z.ZodType< - ConnectorConnectorsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ConnectorsFilter$inboundSchema.optional(), -}); - /** @internal */ export type ConnectorConnectorsAllRequest$Outbound = { appId?: string | undefined; @@ -135,19 +67,6 @@ export const ConnectorConnectorsAllRequest$outboundSchema: z.ZodType< filter: components.ConnectorsFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsAllRequest$ { - /** @deprecated use `ConnectorConnectorsAllRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsAllRequest$inboundSchema; - /** @deprecated use `ConnectorConnectorsAllRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsAllRequest$outboundSchema; - /** @deprecated use `ConnectorConnectorsAllRequest$Outbound` instead. */ - export type Outbound = ConnectorConnectorsAllRequest$Outbound; -} - export function connectorConnectorsAllRequestToJSON( connectorConnectorsAllRequest: ConnectorConnectorsAllRequest, ): string { @@ -158,16 +77,6 @@ export function connectorConnectorsAllRequestToJSON( ); } -export function connectorConnectorsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorsAllRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorConnectorsAllResponse$inboundSchema: z.ZodType< ConnectorConnectorsAllResponse, @@ -187,57 +96,6 @@ export const ConnectorConnectorsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorConnectorsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectorsResponse?: components.GetConnectorsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorConnectorsAllResponse$outboundSchema: z.ZodType< - ConnectorConnectorsAllResponse$Outbound, - z.ZodTypeDef, - ConnectorConnectorsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectorsResponse: components.GetConnectorsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectorsResponse: "GetConnectorsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsAllResponse$ { - /** @deprecated use `ConnectorConnectorsAllResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsAllResponse$inboundSchema; - /** @deprecated use `ConnectorConnectorsAllResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsAllResponse$outboundSchema; - /** @deprecated use `ConnectorConnectorsAllResponse$Outbound` instead. */ - export type Outbound = ConnectorConnectorsAllResponse$Outbound; -} - -export function connectorConnectorsAllResponseToJSON( - connectorConnectorsAllResponse: ConnectorConnectorsAllResponse, -): string { - return JSON.stringify( - ConnectorConnectorsAllResponse$outboundSchema.parse( - connectorConnectorsAllResponse, - ), - ); -} - export function connectorConnectorsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/connectorconnectorsone.ts b/src/models/operations/connectorconnectorsone.ts index 6b76aa715..215d77ba1 100644 --- a/src/models/operations/connectorconnectorsone.ts +++ b/src/models/operations/connectorconnectorsone.ts @@ -39,72 +39,6 @@ export type ConnectorConnectorsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const ConnectorConnectorsOneGlobals$inboundSchema: z.ZodType< - ConnectorConnectorsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type ConnectorConnectorsOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const ConnectorConnectorsOneGlobals$outboundSchema: z.ZodType< - ConnectorConnectorsOneGlobals$Outbound, - z.ZodTypeDef, - ConnectorConnectorsOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsOneGlobals$ { - /** @deprecated use `ConnectorConnectorsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsOneGlobals$inboundSchema; - /** @deprecated use `ConnectorConnectorsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsOneGlobals$outboundSchema; - /** @deprecated use `ConnectorConnectorsOneGlobals$Outbound` instead. */ - export type Outbound = ConnectorConnectorsOneGlobals$Outbound; -} - -export function connectorConnectorsOneGlobalsToJSON( - connectorConnectorsOneGlobals: ConnectorConnectorsOneGlobals, -): string { - return JSON.stringify( - ConnectorConnectorsOneGlobals$outboundSchema.parse( - connectorConnectorsOneGlobals, - ), - ); -} - -export function connectorConnectorsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const ConnectorConnectorsOneRequest$inboundSchema: z.ZodType< - ConnectorConnectorsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - id: z.string(), -}); - /** @internal */ export type ConnectorConnectorsOneRequest$Outbound = { appId?: string | undefined; @@ -121,19 +55,6 @@ export const ConnectorConnectorsOneRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsOneRequest$ { - /** @deprecated use `ConnectorConnectorsOneRequest$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsOneRequest$inboundSchema; - /** @deprecated use `ConnectorConnectorsOneRequest$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsOneRequest$outboundSchema; - /** @deprecated use `ConnectorConnectorsOneRequest$Outbound` instead. */ - export type Outbound = ConnectorConnectorsOneRequest$Outbound; -} - export function connectorConnectorsOneRequestToJSON( connectorConnectorsOneRequest: ConnectorConnectorsOneRequest, ): string { @@ -144,16 +65,6 @@ export function connectorConnectorsOneRequestToJSON( ); } -export function connectorConnectorsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ConnectorConnectorsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ConnectorConnectorsOneRequest' from JSON`, - ); -} - /** @internal */ export const ConnectorConnectorsOneResponse$inboundSchema: z.ZodType< ConnectorConnectorsOneResponse, @@ -173,57 +84,6 @@ export const ConnectorConnectorsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type ConnectorConnectorsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectorResponse?: components.GetConnectorResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const ConnectorConnectorsOneResponse$outboundSchema: z.ZodType< - ConnectorConnectorsOneResponse$Outbound, - z.ZodTypeDef, - ConnectorConnectorsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectorResponse: components.GetConnectorResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectorResponse: "GetConnectorResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectorConnectorsOneResponse$ { - /** @deprecated use `ConnectorConnectorsOneResponse$inboundSchema` instead. */ - export const inboundSchema = ConnectorConnectorsOneResponse$inboundSchema; - /** @deprecated use `ConnectorConnectorsOneResponse$outboundSchema` instead. */ - export const outboundSchema = ConnectorConnectorsOneResponse$outboundSchema; - /** @deprecated use `ConnectorConnectorsOneResponse$Outbound` instead. */ - export type Outbound = ConnectorConnectorsOneResponse$Outbound; -} - -export function connectorConnectorsOneResponseToJSON( - connectorConnectorsOneResponse: ConnectorConnectorsOneResponse, -): string { - return JSON.stringify( - ConnectorConnectorsOneResponse$outboundSchema.parse( - connectorConnectorsOneResponse, - ), - ); -} - export function connectorConnectorsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmactivitiesadd.ts b/src/models/operations/crmactivitiesadd.ts index 52bf3ca86..6915dcabe 100644 --- a/src/models/operations/crmactivitiesadd.ts +++ b/src/models/operations/crmactivitiesadd.ts @@ -52,80 +52,6 @@ export type CrmActivitiesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmActivitiesAddGlobals$inboundSchema: z.ZodType< - CrmActivitiesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmActivitiesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmActivitiesAddGlobals$outboundSchema: z.ZodType< - CrmActivitiesAddGlobals$Outbound, - z.ZodTypeDef, - CrmActivitiesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAddGlobals$ { - /** @deprecated use `CrmActivitiesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAddGlobals$inboundSchema; - /** @deprecated use `CrmActivitiesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAddGlobals$outboundSchema; - /** @deprecated use `CrmActivitiesAddGlobals$Outbound` instead. */ - export type Outbound = CrmActivitiesAddGlobals$Outbound; -} - -export function crmActivitiesAddGlobalsToJSON( - crmActivitiesAddGlobals: CrmActivitiesAddGlobals, -): string { - return JSON.stringify( - CrmActivitiesAddGlobals$outboundSchema.parse(crmActivitiesAddGlobals), - ); -} - -export function crmActivitiesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmActivitiesAddRequest$inboundSchema: z.ZodType< - CrmActivitiesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Activity: components.ActivityInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Activity": "activity", - }); -}); - /** @internal */ export type CrmActivitiesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmActivitiesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAddRequest$ { - /** @deprecated use `CrmActivitiesAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAddRequest$inboundSchema; - /** @deprecated use `CrmActivitiesAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAddRequest$outboundSchema; - /** @deprecated use `CrmActivitiesAddRequest$Outbound` instead. */ - export type Outbound = CrmActivitiesAddRequest$Outbound; -} - export function crmActivitiesAddRequestToJSON( crmActivitiesAddRequest: CrmActivitiesAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmActivitiesAddRequestToJSON( ); } -export function crmActivitiesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmActivitiesAddResponse$inboundSchema: z.ZodType< CrmActivitiesAddResponse, @@ -202,57 +105,6 @@ export const CrmActivitiesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmActivitiesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateActivityResponse?: - | components.CreateActivityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmActivitiesAddResponse$outboundSchema: z.ZodType< - CrmActivitiesAddResponse$Outbound, - z.ZodTypeDef, - CrmActivitiesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createActivityResponse: components.CreateActivityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createActivityResponse: "CreateActivityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAddResponse$ { - /** @deprecated use `CrmActivitiesAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAddResponse$inboundSchema; - /** @deprecated use `CrmActivitiesAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAddResponse$outboundSchema; - /** @deprecated use `CrmActivitiesAddResponse$Outbound` instead. */ - export type Outbound = CrmActivitiesAddResponse$Outbound; -} - -export function crmActivitiesAddResponseToJSON( - crmActivitiesAddResponse: CrmActivitiesAddResponse, -): string { - return JSON.stringify( - CrmActivitiesAddResponse$outboundSchema.parse(crmActivitiesAddResponse), - ); -} - export function crmActivitiesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmactivitiesall.ts b/src/models/operations/crmactivitiesall.ts index 3516692fe..e33d9381b 100644 --- a/src/models/operations/crmactivitiesall.ts +++ b/src/models/operations/crmactivitiesall.ts @@ -75,85 +75,6 @@ export type CrmActivitiesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmActivitiesAllGlobals$inboundSchema: z.ZodType< - CrmActivitiesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmActivitiesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmActivitiesAllGlobals$outboundSchema: z.ZodType< - CrmActivitiesAllGlobals$Outbound, - z.ZodTypeDef, - CrmActivitiesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAllGlobals$ { - /** @deprecated use `CrmActivitiesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAllGlobals$inboundSchema; - /** @deprecated use `CrmActivitiesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAllGlobals$outboundSchema; - /** @deprecated use `CrmActivitiesAllGlobals$Outbound` instead. */ - export type Outbound = CrmActivitiesAllGlobals$Outbound; -} - -export function crmActivitiesAllGlobalsToJSON( - crmActivitiesAllGlobals: CrmActivitiesAllGlobals, -): string { - return JSON.stringify( - CrmActivitiesAllGlobals$outboundSchema.parse(crmActivitiesAllGlobals), - ); -} - -export function crmActivitiesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmActivitiesAllRequest$inboundSchema: z.ZodType< - CrmActivitiesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ActivitiesFilter$inboundSchema.optional(), - sort: components.ActivitiesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmActivitiesAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const CrmActivitiesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAllRequest$ { - /** @deprecated use `CrmActivitiesAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAllRequest$inboundSchema; - /** @deprecated use `CrmActivitiesAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAllRequest$outboundSchema; - /** @deprecated use `CrmActivitiesAllRequest$Outbound` instead. */ - export type Outbound = CrmActivitiesAllRequest$Outbound; -} - export function crmActivitiesAllRequestToJSON( crmActivitiesAllRequest: CrmActivitiesAllRequest, ): string { @@ -211,16 +119,6 @@ export function crmActivitiesAllRequestToJSON( ); } -export function crmActivitiesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmActivitiesAllResponse$inboundSchema: z.ZodType< CrmActivitiesAllResponse, @@ -240,55 +138,6 @@ export const CrmActivitiesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmActivitiesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetActivitiesResponse?: components.GetActivitiesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmActivitiesAllResponse$outboundSchema: z.ZodType< - CrmActivitiesAllResponse$Outbound, - z.ZodTypeDef, - CrmActivitiesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getActivitiesResponse: components.GetActivitiesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getActivitiesResponse: "GetActivitiesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesAllResponse$ { - /** @deprecated use `CrmActivitiesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesAllResponse$inboundSchema; - /** @deprecated use `CrmActivitiesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesAllResponse$outboundSchema; - /** @deprecated use `CrmActivitiesAllResponse$Outbound` instead. */ - export type Outbound = CrmActivitiesAllResponse$Outbound; -} - -export function crmActivitiesAllResponseToJSON( - crmActivitiesAllResponse: CrmActivitiesAllResponse, -): string { - return JSON.stringify( - CrmActivitiesAllResponse$outboundSchema.parse(crmActivitiesAllResponse), - ); -} - export function crmActivitiesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmactivitiesdelete.ts b/src/models/operations/crmactivitiesdelete.ts index ec085e180..df822211d 100644 --- a/src/models/operations/crmactivitiesdelete.ts +++ b/src/models/operations/crmactivitiesdelete.ts @@ -55,76 +55,6 @@ export type CrmActivitiesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmActivitiesDeleteGlobals$inboundSchema: z.ZodType< - CrmActivitiesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmActivitiesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmActivitiesDeleteGlobals$outboundSchema: z.ZodType< - CrmActivitiesDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmActivitiesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesDeleteGlobals$ { - /** @deprecated use `CrmActivitiesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesDeleteGlobals$inboundSchema; - /** @deprecated use `CrmActivitiesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesDeleteGlobals$outboundSchema; - /** @deprecated use `CrmActivitiesDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmActivitiesDeleteGlobals$Outbound; -} - -export function crmActivitiesDeleteGlobalsToJSON( - crmActivitiesDeleteGlobals: CrmActivitiesDeleteGlobals, -): string { - return JSON.stringify( - CrmActivitiesDeleteGlobals$outboundSchema.parse(crmActivitiesDeleteGlobals), - ); -} - -export function crmActivitiesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmActivitiesDeleteRequest$inboundSchema: z.ZodType< - CrmActivitiesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmActivitiesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmActivitiesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesDeleteRequest$ { - /** @deprecated use `CrmActivitiesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesDeleteRequest$inboundSchema; - /** @deprecated use `CrmActivitiesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesDeleteRequest$outboundSchema; - /** @deprecated use `CrmActivitiesDeleteRequest$Outbound` instead. */ - export type Outbound = CrmActivitiesDeleteRequest$Outbound; -} - export function crmActivitiesDeleteRequestToJSON( crmActivitiesDeleteRequest: CrmActivitiesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmActivitiesDeleteRequestToJSON( ); } -export function crmActivitiesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmActivitiesDeleteResponse$inboundSchema: z.ZodType< CrmActivitiesDeleteResponse, @@ -197,59 +104,6 @@ export const CrmActivitiesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmActivitiesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteActivityResponse?: - | components.DeleteActivityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmActivitiesDeleteResponse$outboundSchema: z.ZodType< - CrmActivitiesDeleteResponse$Outbound, - z.ZodTypeDef, - CrmActivitiesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteActivityResponse: components.DeleteActivityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteActivityResponse: "DeleteActivityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesDeleteResponse$ { - /** @deprecated use `CrmActivitiesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesDeleteResponse$inboundSchema; - /** @deprecated use `CrmActivitiesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesDeleteResponse$outboundSchema; - /** @deprecated use `CrmActivitiesDeleteResponse$Outbound` instead. */ - export type Outbound = CrmActivitiesDeleteResponse$Outbound; -} - -export function crmActivitiesDeleteResponseToJSON( - crmActivitiesDeleteResponse: CrmActivitiesDeleteResponse, -): string { - return JSON.stringify( - CrmActivitiesDeleteResponse$outboundSchema.parse( - crmActivitiesDeleteResponse, - ), - ); -} - export function crmActivitiesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmactivitiesone.ts b/src/models/operations/crmactivitiesone.ts index ec33ef093..ecc8fd51a 100644 --- a/src/models/operations/crmactivitiesone.ts +++ b/src/models/operations/crmactivitiesone.ts @@ -59,77 +59,6 @@ export type CrmActivitiesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmActivitiesOneGlobals$inboundSchema: z.ZodType< - CrmActivitiesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmActivitiesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmActivitiesOneGlobals$outboundSchema: z.ZodType< - CrmActivitiesOneGlobals$Outbound, - z.ZodTypeDef, - CrmActivitiesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesOneGlobals$ { - /** @deprecated use `CrmActivitiesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesOneGlobals$inboundSchema; - /** @deprecated use `CrmActivitiesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesOneGlobals$outboundSchema; - /** @deprecated use `CrmActivitiesOneGlobals$Outbound` instead. */ - export type Outbound = CrmActivitiesOneGlobals$Outbound; -} - -export function crmActivitiesOneGlobalsToJSON( - crmActivitiesOneGlobals: CrmActivitiesOneGlobals, -): string { - return JSON.stringify( - CrmActivitiesOneGlobals$outboundSchema.parse(crmActivitiesOneGlobals), - ); -} - -export function crmActivitiesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmActivitiesOneRequest$inboundSchema: z.ZodType< - CrmActivitiesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmActivitiesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmActivitiesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesOneRequest$ { - /** @deprecated use `CrmActivitiesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesOneRequest$inboundSchema; - /** @deprecated use `CrmActivitiesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesOneRequest$outboundSchema; - /** @deprecated use `CrmActivitiesOneRequest$Outbound` instead. */ - export type Outbound = CrmActivitiesOneRequest$Outbound; -} - export function crmActivitiesOneRequestToJSON( crmActivitiesOneRequest: CrmActivitiesOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmActivitiesOneRequestToJSON( ); } -export function crmActivitiesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmActivitiesOneResponse$inboundSchema: z.ZodType< CrmActivitiesOneResponse, @@ -203,54 +109,6 @@ export const CrmActivitiesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmActivitiesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetActivityResponse?: components.GetActivityResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmActivitiesOneResponse$outboundSchema: z.ZodType< - CrmActivitiesOneResponse$Outbound, - z.ZodTypeDef, - CrmActivitiesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getActivityResponse: components.GetActivityResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getActivityResponse: "GetActivityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesOneResponse$ { - /** @deprecated use `CrmActivitiesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesOneResponse$inboundSchema; - /** @deprecated use `CrmActivitiesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesOneResponse$outboundSchema; - /** @deprecated use `CrmActivitiesOneResponse$Outbound` instead. */ - export type Outbound = CrmActivitiesOneResponse$Outbound; -} - -export function crmActivitiesOneResponseToJSON( - crmActivitiesOneResponse: CrmActivitiesOneResponse, -): string { - return JSON.stringify( - CrmActivitiesOneResponse$outboundSchema.parse(crmActivitiesOneResponse), - ); -} - export function crmActivitiesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmactivitiesupdate.ts b/src/models/operations/crmactivitiesupdate.ts index 92efec655..4bde42e60 100644 --- a/src/models/operations/crmactivitiesupdate.ts +++ b/src/models/operations/crmactivitiesupdate.ts @@ -56,81 +56,6 @@ export type CrmActivitiesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmActivitiesUpdateGlobals$inboundSchema: z.ZodType< - CrmActivitiesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmActivitiesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmActivitiesUpdateGlobals$outboundSchema: z.ZodType< - CrmActivitiesUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmActivitiesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesUpdateGlobals$ { - /** @deprecated use `CrmActivitiesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesUpdateGlobals$inboundSchema; - /** @deprecated use `CrmActivitiesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesUpdateGlobals$outboundSchema; - /** @deprecated use `CrmActivitiesUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmActivitiesUpdateGlobals$Outbound; -} - -export function crmActivitiesUpdateGlobalsToJSON( - crmActivitiesUpdateGlobals: CrmActivitiesUpdateGlobals, -): string { - return JSON.stringify( - CrmActivitiesUpdateGlobals$outboundSchema.parse(crmActivitiesUpdateGlobals), - ); -} - -export function crmActivitiesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmActivitiesUpdateRequest$inboundSchema: z.ZodType< - CrmActivitiesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Activity: components.ActivityInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Activity": "activity", - }); -}); - /** @internal */ export type CrmActivitiesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmActivitiesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesUpdateRequest$ { - /** @deprecated use `CrmActivitiesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesUpdateRequest$inboundSchema; - /** @deprecated use `CrmActivitiesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesUpdateRequest$outboundSchema; - /** @deprecated use `CrmActivitiesUpdateRequest$Outbound` instead. */ - export type Outbound = CrmActivitiesUpdateRequest$Outbound; -} - export function crmActivitiesUpdateRequestToJSON( crmActivitiesUpdateRequest: CrmActivitiesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmActivitiesUpdateRequestToJSON( ); } -export function crmActivitiesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmActivitiesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmActivitiesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmActivitiesUpdateResponse$inboundSchema: z.ZodType< CrmActivitiesUpdateResponse, @@ -209,59 +111,6 @@ export const CrmActivitiesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmActivitiesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateActivityResponse?: - | components.UpdateActivityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmActivitiesUpdateResponse$outboundSchema: z.ZodType< - CrmActivitiesUpdateResponse$Outbound, - z.ZodTypeDef, - CrmActivitiesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateActivityResponse: components.UpdateActivityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateActivityResponse: "UpdateActivityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmActivitiesUpdateResponse$ { - /** @deprecated use `CrmActivitiesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmActivitiesUpdateResponse$inboundSchema; - /** @deprecated use `CrmActivitiesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmActivitiesUpdateResponse$outboundSchema; - /** @deprecated use `CrmActivitiesUpdateResponse$Outbound` instead. */ - export type Outbound = CrmActivitiesUpdateResponse$Outbound; -} - -export function crmActivitiesUpdateResponseToJSON( - crmActivitiesUpdateResponse: CrmActivitiesUpdateResponse, -): string { - return JSON.stringify( - CrmActivitiesUpdateResponse$outboundSchema.parse( - crmActivitiesUpdateResponse, - ), - ); -} - export function crmActivitiesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcompaniesadd.ts b/src/models/operations/crmcompaniesadd.ts index af4526163..a368ec97a 100644 --- a/src/models/operations/crmcompaniesadd.ts +++ b/src/models/operations/crmcompaniesadd.ts @@ -52,80 +52,6 @@ export type CrmCompaniesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCompaniesAddGlobals$inboundSchema: z.ZodType< - CrmCompaniesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCompaniesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCompaniesAddGlobals$outboundSchema: z.ZodType< - CrmCompaniesAddGlobals$Outbound, - z.ZodTypeDef, - CrmCompaniesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAddGlobals$ { - /** @deprecated use `CrmCompaniesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAddGlobals$inboundSchema; - /** @deprecated use `CrmCompaniesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAddGlobals$outboundSchema; - /** @deprecated use `CrmCompaniesAddGlobals$Outbound` instead. */ - export type Outbound = CrmCompaniesAddGlobals$Outbound; -} - -export function crmCompaniesAddGlobalsToJSON( - crmCompaniesAddGlobals: CrmCompaniesAddGlobals, -): string { - return JSON.stringify( - CrmCompaniesAddGlobals$outboundSchema.parse(crmCompaniesAddGlobals), - ); -} - -export function crmCompaniesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCompaniesAddRequest$inboundSchema: z.ZodType< - CrmCompaniesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Company1: components.Company1Input$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Company1": "company1", - }); -}); - /** @internal */ export type CrmCompaniesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmCompaniesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAddRequest$ { - /** @deprecated use `CrmCompaniesAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAddRequest$inboundSchema; - /** @deprecated use `CrmCompaniesAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAddRequest$outboundSchema; - /** @deprecated use `CrmCompaniesAddRequest$Outbound` instead. */ - export type Outbound = CrmCompaniesAddRequest$Outbound; -} - export function crmCompaniesAddRequestToJSON( crmCompaniesAddRequest: CrmCompaniesAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmCompaniesAddRequestToJSON( ); } -export function crmCompaniesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmCompaniesAddResponse$inboundSchema: z.ZodType< CrmCompaniesAddResponse, @@ -202,55 +105,6 @@ export const CrmCompaniesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCompaniesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCompanyResponse?: components.CreateCompanyResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCompaniesAddResponse$outboundSchema: z.ZodType< - CrmCompaniesAddResponse$Outbound, - z.ZodTypeDef, - CrmCompaniesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCompanyResponse: components.CreateCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCompanyResponse: "CreateCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAddResponse$ { - /** @deprecated use `CrmCompaniesAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAddResponse$inboundSchema; - /** @deprecated use `CrmCompaniesAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAddResponse$outboundSchema; - /** @deprecated use `CrmCompaniesAddResponse$Outbound` instead. */ - export type Outbound = CrmCompaniesAddResponse$Outbound; -} - -export function crmCompaniesAddResponseToJSON( - crmCompaniesAddResponse: CrmCompaniesAddResponse, -): string { - return JSON.stringify( - CrmCompaniesAddResponse$outboundSchema.parse(crmCompaniesAddResponse), - ); -} - export function crmCompaniesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcompaniesall.ts b/src/models/operations/crmcompaniesall.ts index bc52fe6b9..5cb69ee0e 100644 --- a/src/models/operations/crmcompaniesall.ts +++ b/src/models/operations/crmcompaniesall.ts @@ -75,85 +75,6 @@ export type CrmCompaniesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCompaniesAllGlobals$inboundSchema: z.ZodType< - CrmCompaniesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCompaniesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCompaniesAllGlobals$outboundSchema: z.ZodType< - CrmCompaniesAllGlobals$Outbound, - z.ZodTypeDef, - CrmCompaniesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAllGlobals$ { - /** @deprecated use `CrmCompaniesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAllGlobals$inboundSchema; - /** @deprecated use `CrmCompaniesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAllGlobals$outboundSchema; - /** @deprecated use `CrmCompaniesAllGlobals$Outbound` instead. */ - export type Outbound = CrmCompaniesAllGlobals$Outbound; -} - -export function crmCompaniesAllGlobalsToJSON( - crmCompaniesAllGlobals: CrmCompaniesAllGlobals, -): string { - return JSON.stringify( - CrmCompaniesAllGlobals$outboundSchema.parse(crmCompaniesAllGlobals), - ); -} - -export function crmCompaniesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCompaniesAllRequest$inboundSchema: z.ZodType< - CrmCompaniesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.CompaniesFilter$inboundSchema.optional(), - sort: components.CompaniesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmCompaniesAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const CrmCompaniesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAllRequest$ { - /** @deprecated use `CrmCompaniesAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAllRequest$inboundSchema; - /** @deprecated use `CrmCompaniesAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAllRequest$outboundSchema; - /** @deprecated use `CrmCompaniesAllRequest$Outbound` instead. */ - export type Outbound = CrmCompaniesAllRequest$Outbound; -} - export function crmCompaniesAllRequestToJSON( crmCompaniesAllRequest: CrmCompaniesAllRequest, ): string { @@ -211,16 +119,6 @@ export function crmCompaniesAllRequestToJSON( ); } -export function crmCompaniesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmCompaniesAllResponse$inboundSchema: z.ZodType< CrmCompaniesAllResponse, @@ -240,55 +138,6 @@ export const CrmCompaniesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCompaniesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCompaniesResponse?: components.GetCompaniesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCompaniesAllResponse$outboundSchema: z.ZodType< - CrmCompaniesAllResponse$Outbound, - z.ZodTypeDef, - CrmCompaniesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCompaniesResponse: components.GetCompaniesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCompaniesResponse: "GetCompaniesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesAllResponse$ { - /** @deprecated use `CrmCompaniesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesAllResponse$inboundSchema; - /** @deprecated use `CrmCompaniesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesAllResponse$outboundSchema; - /** @deprecated use `CrmCompaniesAllResponse$Outbound` instead. */ - export type Outbound = CrmCompaniesAllResponse$Outbound; -} - -export function crmCompaniesAllResponseToJSON( - crmCompaniesAllResponse: CrmCompaniesAllResponse, -): string { - return JSON.stringify( - CrmCompaniesAllResponse$outboundSchema.parse(crmCompaniesAllResponse), - ); -} - export function crmCompaniesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcompaniesdelete.ts b/src/models/operations/crmcompaniesdelete.ts index f47c870f9..762ddfa39 100644 --- a/src/models/operations/crmcompaniesdelete.ts +++ b/src/models/operations/crmcompaniesdelete.ts @@ -55,76 +55,6 @@ export type CrmCompaniesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCompaniesDeleteGlobals$inboundSchema: z.ZodType< - CrmCompaniesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCompaniesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCompaniesDeleteGlobals$outboundSchema: z.ZodType< - CrmCompaniesDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmCompaniesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesDeleteGlobals$ { - /** @deprecated use `CrmCompaniesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesDeleteGlobals$inboundSchema; - /** @deprecated use `CrmCompaniesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesDeleteGlobals$outboundSchema; - /** @deprecated use `CrmCompaniesDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmCompaniesDeleteGlobals$Outbound; -} - -export function crmCompaniesDeleteGlobalsToJSON( - crmCompaniesDeleteGlobals: CrmCompaniesDeleteGlobals, -): string { - return JSON.stringify( - CrmCompaniesDeleteGlobals$outboundSchema.parse(crmCompaniesDeleteGlobals), - ); -} - -export function crmCompaniesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCompaniesDeleteRequest$inboundSchema: z.ZodType< - CrmCompaniesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), -}); - /** @internal */ export type CrmCompaniesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmCompaniesDeleteRequest$outboundSchema: z.ZodType< serviceId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesDeleteRequest$ { - /** @deprecated use `CrmCompaniesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesDeleteRequest$inboundSchema; - /** @deprecated use `CrmCompaniesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesDeleteRequest$outboundSchema; - /** @deprecated use `CrmCompaniesDeleteRequest$Outbound` instead. */ - export type Outbound = CrmCompaniesDeleteRequest$Outbound; -} - export function crmCompaniesDeleteRequestToJSON( crmCompaniesDeleteRequest: CrmCompaniesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmCompaniesDeleteRequestToJSON( ); } -export function crmCompaniesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmCompaniesDeleteResponse$inboundSchema: z.ZodType< CrmCompaniesDeleteResponse, @@ -197,55 +104,6 @@ export const CrmCompaniesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCompaniesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCompanyResponse?: components.DeleteCompanyResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCompaniesDeleteResponse$outboundSchema: z.ZodType< - CrmCompaniesDeleteResponse$Outbound, - z.ZodTypeDef, - CrmCompaniesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCompanyResponse: components.DeleteCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCompanyResponse: "DeleteCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesDeleteResponse$ { - /** @deprecated use `CrmCompaniesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesDeleteResponse$inboundSchema; - /** @deprecated use `CrmCompaniesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesDeleteResponse$outboundSchema; - /** @deprecated use `CrmCompaniesDeleteResponse$Outbound` instead. */ - export type Outbound = CrmCompaniesDeleteResponse$Outbound; -} - -export function crmCompaniesDeleteResponseToJSON( - crmCompaniesDeleteResponse: CrmCompaniesDeleteResponse, -): string { - return JSON.stringify( - CrmCompaniesDeleteResponse$outboundSchema.parse(crmCompaniesDeleteResponse), - ); -} - export function crmCompaniesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcompaniesone.ts b/src/models/operations/crmcompaniesone.ts index f2a5f85d7..da08be35b 100644 --- a/src/models/operations/crmcompaniesone.ts +++ b/src/models/operations/crmcompaniesone.ts @@ -59,77 +59,6 @@ export type CrmCompaniesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCompaniesOneGlobals$inboundSchema: z.ZodType< - CrmCompaniesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCompaniesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCompaniesOneGlobals$outboundSchema: z.ZodType< - CrmCompaniesOneGlobals$Outbound, - z.ZodTypeDef, - CrmCompaniesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesOneGlobals$ { - /** @deprecated use `CrmCompaniesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesOneGlobals$inboundSchema; - /** @deprecated use `CrmCompaniesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesOneGlobals$outboundSchema; - /** @deprecated use `CrmCompaniesOneGlobals$Outbound` instead. */ - export type Outbound = CrmCompaniesOneGlobals$Outbound; -} - -export function crmCompaniesOneGlobalsToJSON( - crmCompaniesOneGlobals: CrmCompaniesOneGlobals, -): string { - return JSON.stringify( - CrmCompaniesOneGlobals$outboundSchema.parse(crmCompaniesOneGlobals), - ); -} - -export function crmCompaniesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCompaniesOneRequest$inboundSchema: z.ZodType< - CrmCompaniesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmCompaniesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmCompaniesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesOneRequest$ { - /** @deprecated use `CrmCompaniesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesOneRequest$inboundSchema; - /** @deprecated use `CrmCompaniesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesOneRequest$outboundSchema; - /** @deprecated use `CrmCompaniesOneRequest$Outbound` instead. */ - export type Outbound = CrmCompaniesOneRequest$Outbound; -} - export function crmCompaniesOneRequestToJSON( crmCompaniesOneRequest: CrmCompaniesOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmCompaniesOneRequestToJSON( ); } -export function crmCompaniesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmCompaniesOneResponse$inboundSchema: z.ZodType< CrmCompaniesOneResponse, @@ -203,54 +109,6 @@ export const CrmCompaniesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCompaniesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCompanyResponse?: components.GetCompanyResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCompaniesOneResponse$outboundSchema: z.ZodType< - CrmCompaniesOneResponse$Outbound, - z.ZodTypeDef, - CrmCompaniesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCompanyResponse: components.GetCompanyResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCompanyResponse: "GetCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesOneResponse$ { - /** @deprecated use `CrmCompaniesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesOneResponse$inboundSchema; - /** @deprecated use `CrmCompaniesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesOneResponse$outboundSchema; - /** @deprecated use `CrmCompaniesOneResponse$Outbound` instead. */ - export type Outbound = CrmCompaniesOneResponse$Outbound; -} - -export function crmCompaniesOneResponseToJSON( - crmCompaniesOneResponse: CrmCompaniesOneResponse, -): string { - return JSON.stringify( - CrmCompaniesOneResponse$outboundSchema.parse(crmCompaniesOneResponse), - ); -} - export function crmCompaniesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcompaniesupdate.ts b/src/models/operations/crmcompaniesupdate.ts index c59cd7db9..5a543ea05 100644 --- a/src/models/operations/crmcompaniesupdate.ts +++ b/src/models/operations/crmcompaniesupdate.ts @@ -56,81 +56,6 @@ export type CrmCompaniesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCompaniesUpdateGlobals$inboundSchema: z.ZodType< - CrmCompaniesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCompaniesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCompaniesUpdateGlobals$outboundSchema: z.ZodType< - CrmCompaniesUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmCompaniesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesUpdateGlobals$ { - /** @deprecated use `CrmCompaniesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesUpdateGlobals$inboundSchema; - /** @deprecated use `CrmCompaniesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesUpdateGlobals$outboundSchema; - /** @deprecated use `CrmCompaniesUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmCompaniesUpdateGlobals$Outbound; -} - -export function crmCompaniesUpdateGlobalsToJSON( - crmCompaniesUpdateGlobals: CrmCompaniesUpdateGlobals, -): string { - return JSON.stringify( - CrmCompaniesUpdateGlobals$outboundSchema.parse(crmCompaniesUpdateGlobals), - ); -} - -export function crmCompaniesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCompaniesUpdateRequest$inboundSchema: z.ZodType< - CrmCompaniesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Company1: components.Company1Input$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Company1": "company1", - }); -}); - /** @internal */ export type CrmCompaniesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmCompaniesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesUpdateRequest$ { - /** @deprecated use `CrmCompaniesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesUpdateRequest$inboundSchema; - /** @deprecated use `CrmCompaniesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesUpdateRequest$outboundSchema; - /** @deprecated use `CrmCompaniesUpdateRequest$Outbound` instead. */ - export type Outbound = CrmCompaniesUpdateRequest$Outbound; -} - export function crmCompaniesUpdateRequestToJSON( crmCompaniesUpdateRequest: CrmCompaniesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmCompaniesUpdateRequestToJSON( ); } -export function crmCompaniesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCompaniesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCompaniesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmCompaniesUpdateResponse$inboundSchema: z.ZodType< CrmCompaniesUpdateResponse, @@ -209,55 +111,6 @@ export const CrmCompaniesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCompaniesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCompanyResponse?: components.UpdateCompanyResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCompaniesUpdateResponse$outboundSchema: z.ZodType< - CrmCompaniesUpdateResponse$Outbound, - z.ZodTypeDef, - CrmCompaniesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCompanyResponse: components.UpdateCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCompanyResponse: "UpdateCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCompaniesUpdateResponse$ { - /** @deprecated use `CrmCompaniesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCompaniesUpdateResponse$inboundSchema; - /** @deprecated use `CrmCompaniesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCompaniesUpdateResponse$outboundSchema; - /** @deprecated use `CrmCompaniesUpdateResponse$Outbound` instead. */ - export type Outbound = CrmCompaniesUpdateResponse$Outbound; -} - -export function crmCompaniesUpdateResponseToJSON( - crmCompaniesUpdateResponse: CrmCompaniesUpdateResponse, -): string { - return JSON.stringify( - CrmCompaniesUpdateResponse$outboundSchema.parse(crmCompaniesUpdateResponse), - ); -} - export function crmCompaniesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcontactsadd.ts b/src/models/operations/crmcontactsadd.ts index 703539de3..0ba784ed2 100644 --- a/src/models/operations/crmcontactsadd.ts +++ b/src/models/operations/crmcontactsadd.ts @@ -52,80 +52,6 @@ export type CrmContactsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmContactsAddGlobals$inboundSchema: z.ZodType< - CrmContactsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmContactsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmContactsAddGlobals$outboundSchema: z.ZodType< - CrmContactsAddGlobals$Outbound, - z.ZodTypeDef, - CrmContactsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAddGlobals$ { - /** @deprecated use `CrmContactsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAddGlobals$inboundSchema; - /** @deprecated use `CrmContactsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAddGlobals$outboundSchema; - /** @deprecated use `CrmContactsAddGlobals$Outbound` instead. */ - export type Outbound = CrmContactsAddGlobals$Outbound; -} - -export function crmContactsAddGlobalsToJSON( - crmContactsAddGlobals: CrmContactsAddGlobals, -): string { - return JSON.stringify( - CrmContactsAddGlobals$outboundSchema.parse(crmContactsAddGlobals), - ); -} - -export function crmContactsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmContactsAddRequest$inboundSchema: z.ZodType< - CrmContactsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Contact: components.ContactInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Contact": "contact", - }); -}); - /** @internal */ export type CrmContactsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmContactsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAddRequest$ { - /** @deprecated use `CrmContactsAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAddRequest$inboundSchema; - /** @deprecated use `CrmContactsAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAddRequest$outboundSchema; - /** @deprecated use `CrmContactsAddRequest$Outbound` instead. */ - export type Outbound = CrmContactsAddRequest$Outbound; -} - export function crmContactsAddRequestToJSON( crmContactsAddRequest: CrmContactsAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmContactsAddRequestToJSON( ); } -export function crmContactsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmContactsAddResponse$inboundSchema: z.ZodType< CrmContactsAddResponse, @@ -202,55 +105,6 @@ export const CrmContactsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmContactsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateContactResponse?: components.CreateContactResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmContactsAddResponse$outboundSchema: z.ZodType< - CrmContactsAddResponse$Outbound, - z.ZodTypeDef, - CrmContactsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createContactResponse: components.CreateContactResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createContactResponse: "CreateContactResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAddResponse$ { - /** @deprecated use `CrmContactsAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAddResponse$inboundSchema; - /** @deprecated use `CrmContactsAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAddResponse$outboundSchema; - /** @deprecated use `CrmContactsAddResponse$Outbound` instead. */ - export type Outbound = CrmContactsAddResponse$Outbound; -} - -export function crmContactsAddResponseToJSON( - crmContactsAddResponse: CrmContactsAddResponse, -): string { - return JSON.stringify( - CrmContactsAddResponse$outboundSchema.parse(crmContactsAddResponse), - ); -} - export function crmContactsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcontactsall.ts b/src/models/operations/crmcontactsall.ts index 51ab360fd..344a157de 100644 --- a/src/models/operations/crmcontactsall.ts +++ b/src/models/operations/crmcontactsall.ts @@ -75,85 +75,6 @@ export type CrmContactsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmContactsAllGlobals$inboundSchema: z.ZodType< - CrmContactsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmContactsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmContactsAllGlobals$outboundSchema: z.ZodType< - CrmContactsAllGlobals$Outbound, - z.ZodTypeDef, - CrmContactsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAllGlobals$ { - /** @deprecated use `CrmContactsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAllGlobals$inboundSchema; - /** @deprecated use `CrmContactsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAllGlobals$outboundSchema; - /** @deprecated use `CrmContactsAllGlobals$Outbound` instead. */ - export type Outbound = CrmContactsAllGlobals$Outbound; -} - -export function crmContactsAllGlobalsToJSON( - crmContactsAllGlobals: CrmContactsAllGlobals, -): string { - return JSON.stringify( - CrmContactsAllGlobals$outboundSchema.parse(crmContactsAllGlobals), - ); -} - -export function crmContactsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmContactsAllRequest$inboundSchema: z.ZodType< - CrmContactsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.ContactsFilter$inboundSchema.optional(), - sort: components.ContactsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmContactsAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const CrmContactsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAllRequest$ { - /** @deprecated use `CrmContactsAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAllRequest$inboundSchema; - /** @deprecated use `CrmContactsAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAllRequest$outboundSchema; - /** @deprecated use `CrmContactsAllRequest$Outbound` instead. */ - export type Outbound = CrmContactsAllRequest$Outbound; -} - export function crmContactsAllRequestToJSON( crmContactsAllRequest: CrmContactsAllRequest, ): string { @@ -211,16 +119,6 @@ export function crmContactsAllRequestToJSON( ); } -export function crmContactsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmContactsAllResponse$inboundSchema: z.ZodType< CrmContactsAllResponse, @@ -239,54 +137,6 @@ export const CrmContactsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmContactsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetContactsResponse?: components.GetContactsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmContactsAllResponse$outboundSchema: z.ZodType< - CrmContactsAllResponse$Outbound, - z.ZodTypeDef, - CrmContactsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getContactsResponse: components.GetContactsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getContactsResponse: "GetContactsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsAllResponse$ { - /** @deprecated use `CrmContactsAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmContactsAllResponse$inboundSchema; - /** @deprecated use `CrmContactsAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmContactsAllResponse$outboundSchema; - /** @deprecated use `CrmContactsAllResponse$Outbound` instead. */ - export type Outbound = CrmContactsAllResponse$Outbound; -} - -export function crmContactsAllResponseToJSON( - crmContactsAllResponse: CrmContactsAllResponse, -): string { - return JSON.stringify( - CrmContactsAllResponse$outboundSchema.parse(crmContactsAllResponse), - ); -} - export function crmContactsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcontactsdelete.ts b/src/models/operations/crmcontactsdelete.ts index c6c69ddb3..9991a3a90 100644 --- a/src/models/operations/crmcontactsdelete.ts +++ b/src/models/operations/crmcontactsdelete.ts @@ -55,76 +55,6 @@ export type CrmContactsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmContactsDeleteGlobals$inboundSchema: z.ZodType< - CrmContactsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmContactsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmContactsDeleteGlobals$outboundSchema: z.ZodType< - CrmContactsDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmContactsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsDeleteGlobals$ { - /** @deprecated use `CrmContactsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmContactsDeleteGlobals$inboundSchema; - /** @deprecated use `CrmContactsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmContactsDeleteGlobals$outboundSchema; - /** @deprecated use `CrmContactsDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmContactsDeleteGlobals$Outbound; -} - -export function crmContactsDeleteGlobalsToJSON( - crmContactsDeleteGlobals: CrmContactsDeleteGlobals, -): string { - return JSON.stringify( - CrmContactsDeleteGlobals$outboundSchema.parse(crmContactsDeleteGlobals), - ); -} - -export function crmContactsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmContactsDeleteRequest$inboundSchema: z.ZodType< - CrmContactsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmContactsDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmContactsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsDeleteRequest$ { - /** @deprecated use `CrmContactsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmContactsDeleteRequest$inboundSchema; - /** @deprecated use `CrmContactsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmContactsDeleteRequest$outboundSchema; - /** @deprecated use `CrmContactsDeleteRequest$Outbound` instead. */ - export type Outbound = CrmContactsDeleteRequest$Outbound; -} - export function crmContactsDeleteRequestToJSON( crmContactsDeleteRequest: CrmContactsDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmContactsDeleteRequestToJSON( ); } -export function crmContactsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmContactsDeleteResponse$inboundSchema: z.ZodType< CrmContactsDeleteResponse, @@ -197,55 +104,6 @@ export const CrmContactsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmContactsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteContactResponse?: components.DeleteContactResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmContactsDeleteResponse$outboundSchema: z.ZodType< - CrmContactsDeleteResponse$Outbound, - z.ZodTypeDef, - CrmContactsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteContactResponse: components.DeleteContactResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteContactResponse: "DeleteContactResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsDeleteResponse$ { - /** @deprecated use `CrmContactsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmContactsDeleteResponse$inboundSchema; - /** @deprecated use `CrmContactsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmContactsDeleteResponse$outboundSchema; - /** @deprecated use `CrmContactsDeleteResponse$Outbound` instead. */ - export type Outbound = CrmContactsDeleteResponse$Outbound; -} - -export function crmContactsDeleteResponseToJSON( - crmContactsDeleteResponse: CrmContactsDeleteResponse, -): string { - return JSON.stringify( - CrmContactsDeleteResponse$outboundSchema.parse(crmContactsDeleteResponse), - ); -} - export function crmContactsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcontactsone.ts b/src/models/operations/crmcontactsone.ts index dea8915d9..9bc0ecd31 100644 --- a/src/models/operations/crmcontactsone.ts +++ b/src/models/operations/crmcontactsone.ts @@ -63,78 +63,6 @@ export type CrmContactsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmContactsOneGlobals$inboundSchema: z.ZodType< - CrmContactsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmContactsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmContactsOneGlobals$outboundSchema: z.ZodType< - CrmContactsOneGlobals$Outbound, - z.ZodTypeDef, - CrmContactsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsOneGlobals$ { - /** @deprecated use `CrmContactsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmContactsOneGlobals$inboundSchema; - /** @deprecated use `CrmContactsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmContactsOneGlobals$outboundSchema; - /** @deprecated use `CrmContactsOneGlobals$Outbound` instead. */ - export type Outbound = CrmContactsOneGlobals$Outbound; -} - -export function crmContactsOneGlobalsToJSON( - crmContactsOneGlobals: CrmContactsOneGlobals, -): string { - return JSON.stringify( - CrmContactsOneGlobals$outboundSchema.parse(crmContactsOneGlobals), - ); -} - -export function crmContactsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmContactsOneRequest$inboundSchema: z.ZodType< - CrmContactsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - filter: components.ContactsFilter$inboundSchema.optional(), -}); - /** @internal */ export type CrmContactsOneRequest$Outbound = { id: string; @@ -161,19 +89,6 @@ export const CrmContactsOneRequest$outboundSchema: z.ZodType< filter: components.ContactsFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsOneRequest$ { - /** @deprecated use `CrmContactsOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmContactsOneRequest$inboundSchema; - /** @deprecated use `CrmContactsOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmContactsOneRequest$outboundSchema; - /** @deprecated use `CrmContactsOneRequest$Outbound` instead. */ - export type Outbound = CrmContactsOneRequest$Outbound; -} - export function crmContactsOneRequestToJSON( crmContactsOneRequest: CrmContactsOneRequest, ): string { @@ -182,16 +97,6 @@ export function crmContactsOneRequestToJSON( ); } -export function crmContactsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmContactsOneResponse$inboundSchema: z.ZodType< CrmContactsOneResponse, @@ -210,54 +115,6 @@ export const CrmContactsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmContactsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetContactResponse?: components.GetContactResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmContactsOneResponse$outboundSchema: z.ZodType< - CrmContactsOneResponse$Outbound, - z.ZodTypeDef, - CrmContactsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getContactResponse: components.GetContactResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getContactResponse: "GetContactResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsOneResponse$ { - /** @deprecated use `CrmContactsOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmContactsOneResponse$inboundSchema; - /** @deprecated use `CrmContactsOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmContactsOneResponse$outboundSchema; - /** @deprecated use `CrmContactsOneResponse$Outbound` instead. */ - export type Outbound = CrmContactsOneResponse$Outbound; -} - -export function crmContactsOneResponseToJSON( - crmContactsOneResponse: CrmContactsOneResponse, -): string { - return JSON.stringify( - CrmContactsOneResponse$outboundSchema.parse(crmContactsOneResponse), - ); -} - export function crmContactsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcontactsupdate.ts b/src/models/operations/crmcontactsupdate.ts index 57cf8d2fc..aec23e17a 100644 --- a/src/models/operations/crmcontactsupdate.ts +++ b/src/models/operations/crmcontactsupdate.ts @@ -56,81 +56,6 @@ export type CrmContactsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmContactsUpdateGlobals$inboundSchema: z.ZodType< - CrmContactsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmContactsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmContactsUpdateGlobals$outboundSchema: z.ZodType< - CrmContactsUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmContactsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsUpdateGlobals$ { - /** @deprecated use `CrmContactsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmContactsUpdateGlobals$inboundSchema; - /** @deprecated use `CrmContactsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmContactsUpdateGlobals$outboundSchema; - /** @deprecated use `CrmContactsUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmContactsUpdateGlobals$Outbound; -} - -export function crmContactsUpdateGlobalsToJSON( - crmContactsUpdateGlobals: CrmContactsUpdateGlobals, -): string { - return JSON.stringify( - CrmContactsUpdateGlobals$outboundSchema.parse(crmContactsUpdateGlobals), - ); -} - -export function crmContactsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmContactsUpdateRequest$inboundSchema: z.ZodType< - CrmContactsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Contact: components.ContactInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Contact": "contact", - }); -}); - /** @internal */ export type CrmContactsUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmContactsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsUpdateRequest$ { - /** @deprecated use `CrmContactsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmContactsUpdateRequest$inboundSchema; - /** @deprecated use `CrmContactsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmContactsUpdateRequest$outboundSchema; - /** @deprecated use `CrmContactsUpdateRequest$Outbound` instead. */ - export type Outbound = CrmContactsUpdateRequest$Outbound; -} - export function crmContactsUpdateRequestToJSON( crmContactsUpdateRequest: CrmContactsUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmContactsUpdateRequestToJSON( ); } -export function crmContactsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmContactsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmContactsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmContactsUpdateResponse$inboundSchema: z.ZodType< CrmContactsUpdateResponse, @@ -209,55 +111,6 @@ export const CrmContactsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmContactsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateContactResponse?: components.UpdateContactResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmContactsUpdateResponse$outboundSchema: z.ZodType< - CrmContactsUpdateResponse$Outbound, - z.ZodTypeDef, - CrmContactsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateContactResponse: components.UpdateContactResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateContactResponse: "UpdateContactResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmContactsUpdateResponse$ { - /** @deprecated use `CrmContactsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmContactsUpdateResponse$inboundSchema; - /** @deprecated use `CrmContactsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmContactsUpdateResponse$outboundSchema; - /** @deprecated use `CrmContactsUpdateResponse$Outbound` instead. */ - export type Outbound = CrmContactsUpdateResponse$Outbound; -} - -export function crmContactsUpdateResponseToJSON( - crmContactsUpdateResponse: CrmContactsUpdateResponse, -): string { - return JSON.stringify( - CrmContactsUpdateResponse$outboundSchema.parse(crmContactsUpdateResponse), - ); -} - export function crmContactsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectsadd.ts b/src/models/operations/crmcustomobjectsadd.ts index 448594c2b..40d228cfe 100644 --- a/src/models/operations/crmcustomobjectsadd.ts +++ b/src/models/operations/crmcustomobjectsadd.ts @@ -58,82 +58,6 @@ export type CrmCustomObjectsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectsAddGlobals$inboundSchema: z.ZodType< - CrmCustomObjectsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsAddGlobals$outboundSchema: z.ZodType< - CrmCustomObjectsAddGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAddGlobals$ { - /** @deprecated use `CrmCustomObjectsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAddGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAddGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectsAddGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAddGlobals$Outbound; -} - -export function crmCustomObjectsAddGlobalsToJSON( - crmCustomObjectsAddGlobals: CrmCustomObjectsAddGlobals, -): string { - return JSON.stringify( - CrmCustomObjectsAddGlobals$outboundSchema.parse(crmCustomObjectsAddGlobals), - ); -} - -export function crmCustomObjectsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectsAddRequest$inboundSchema: z.ZodType< - CrmCustomObjectsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - object_id: z.string(), - CustomObject: components.CustomObjectInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "object_id": "objectId", - "CustomObject": "customObject", - }); -}); - /** @internal */ export type CrmCustomObjectsAddRequest$Outbound = { raw: boolean; @@ -163,19 +87,6 @@ export const CrmCustomObjectsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAddRequest$ { - /** @deprecated use `CrmCustomObjectsAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAddRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectsAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAddRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectsAddRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAddRequest$Outbound; -} - export function crmCustomObjectsAddRequestToJSON( crmCustomObjectsAddRequest: CrmCustomObjectsAddRequest, ): string { @@ -184,16 +95,6 @@ export function crmCustomObjectsAddRequestToJSON( ); } -export function crmCustomObjectsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectsAddResponse$inboundSchema: z.ZodType< CrmCustomObjectsAddResponse, @@ -213,59 +114,6 @@ export const CrmCustomObjectsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCustomObjectResponse?: - | components.CreateCustomObjectResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsAddResponse$outboundSchema: z.ZodType< - CrmCustomObjectsAddResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCustomObjectResponse: components - .CreateCustomObjectResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCustomObjectResponse: "CreateCustomObjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAddResponse$ { - /** @deprecated use `CrmCustomObjectsAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAddResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectsAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAddResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectsAddResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAddResponse$Outbound; -} - -export function crmCustomObjectsAddResponseToJSON( - crmCustomObjectsAddResponse: CrmCustomObjectsAddResponse, -): string { - return JSON.stringify( - CrmCustomObjectsAddResponse$outboundSchema.parse( - crmCustomObjectsAddResponse, - ), - ); -} - export function crmCustomObjectsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectsall.ts b/src/models/operations/crmcustomobjectsall.ts index e7625e99e..7fb61b569 100644 --- a/src/models/operations/crmcustomobjectsall.ts +++ b/src/models/operations/crmcustomobjectsall.ts @@ -71,85 +71,6 @@ export type CrmCustomObjectsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectsAllGlobals$inboundSchema: z.ZodType< - CrmCustomObjectsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsAllGlobals$outboundSchema: z.ZodType< - CrmCustomObjectsAllGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAllGlobals$ { - /** @deprecated use `CrmCustomObjectsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAllGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAllGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectsAllGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAllGlobals$Outbound; -} - -export function crmCustomObjectsAllGlobalsToJSON( - crmCustomObjectsAllGlobals: CrmCustomObjectsAllGlobals, -): string { - return JSON.stringify( - CrmCustomObjectsAllGlobals$outboundSchema.parse(crmCustomObjectsAllGlobals), - ); -} - -export function crmCustomObjectsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectsAllRequest$inboundSchema: z.ZodType< - CrmCustomObjectsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), - object_id: z.string(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - "object_id": "objectId", - }); -}); - /** @internal */ export type CrmCustomObjectsAllRequest$Outbound = { raw: boolean; @@ -185,19 +106,6 @@ export const CrmCustomObjectsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAllRequest$ { - /** @deprecated use `CrmCustomObjectsAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAllRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectsAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAllRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectsAllRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAllRequest$Outbound; -} - export function crmCustomObjectsAllRequestToJSON( crmCustomObjectsAllRequest: CrmCustomObjectsAllRequest, ): string { @@ -206,16 +114,6 @@ export function crmCustomObjectsAllRequestToJSON( ); } -export function crmCustomObjectsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectsAllResponse$inboundSchema: z.ZodType< CrmCustomObjectsAllResponse, @@ -235,59 +133,6 @@ export const CrmCustomObjectsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomObjectsResponse?: - | components.GetCustomObjectsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsAllResponse$outboundSchema: z.ZodType< - CrmCustomObjectsAllResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomObjectsResponse: components.GetCustomObjectsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomObjectsResponse: "GetCustomObjectsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsAllResponse$ { - /** @deprecated use `CrmCustomObjectsAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsAllResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectsAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsAllResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectsAllResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectsAllResponse$Outbound; -} - -export function crmCustomObjectsAllResponseToJSON( - crmCustomObjectsAllResponse: CrmCustomObjectsAllResponse, -): string { - return JSON.stringify( - CrmCustomObjectsAllResponse$outboundSchema.parse( - crmCustomObjectsAllResponse, - ), - ); -} - export function crmCustomObjectsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectschemasadd.ts b/src/models/operations/crmcustomobjectschemasadd.ts index 622587314..cf238349c 100644 --- a/src/models/operations/crmcustomobjectschemasadd.ts +++ b/src/models/operations/crmcustomobjectschemasadd.ts @@ -54,82 +54,6 @@ export type CrmCustomObjectSchemasAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectSchemasAddGlobals$inboundSchema: z.ZodType< - CrmCustomObjectSchemasAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectSchemasAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasAddGlobals$outboundSchema: z.ZodType< - CrmCustomObjectSchemasAddGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAddGlobals$ { - /** @deprecated use `CrmCustomObjectSchemasAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAddGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasAddGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAddGlobals$Outbound; -} - -export function crmCustomObjectSchemasAddGlobalsToJSON( - crmCustomObjectSchemasAddGlobals: CrmCustomObjectSchemasAddGlobals, -): string { - return JSON.stringify( - CrmCustomObjectSchemasAddGlobals$outboundSchema.parse( - crmCustomObjectSchemasAddGlobals, - ), - ); -} - -export function crmCustomObjectSchemasAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectSchemasAddRequest$inboundSchema: z.ZodType< - CrmCustomObjectSchemasAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - CustomObjectSchema: components.CustomObjectSchemaInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CustomObjectSchema": "customObjectSchema", - }); -}); - /** @internal */ export type CrmCustomObjectSchemasAddRequest$Outbound = { raw: boolean; @@ -156,19 +80,6 @@ export const CrmCustomObjectSchemasAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAddRequest$ { - /** @deprecated use `CrmCustomObjectSchemasAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAddRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasAddRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAddRequest$Outbound; -} - export function crmCustomObjectSchemasAddRequestToJSON( crmCustomObjectSchemasAddRequest: CrmCustomObjectSchemasAddRequest, ): string { @@ -179,16 +90,6 @@ export function crmCustomObjectSchemasAddRequestToJSON( ); } -export function crmCustomObjectSchemasAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectSchemasAddResponse$inboundSchema: z.ZodType< CrmCustomObjectSchemasAddResponse, @@ -208,60 +109,6 @@ export const CrmCustomObjectSchemasAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectSchemasAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCustomObjectSchemaResponse?: - | components.CreateCustomObjectSchemaResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasAddResponse$outboundSchema: z.ZodType< - CrmCustomObjectSchemasAddResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCustomObjectSchemaResponse: components - .CreateCustomObjectSchemaResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCustomObjectSchemaResponse: "CreateCustomObjectSchemaResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAddResponse$ { - /** @deprecated use `CrmCustomObjectSchemasAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAddResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddResponse$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasAddResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAddResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAddResponse$Outbound; -} - -export function crmCustomObjectSchemasAddResponseToJSON( - crmCustomObjectSchemasAddResponse: CrmCustomObjectSchemasAddResponse, -): string { - return JSON.stringify( - CrmCustomObjectSchemasAddResponse$outboundSchema.parse( - crmCustomObjectSchemasAddResponse, - ), - ); -} - export function crmCustomObjectSchemasAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectschemasall.ts b/src/models/operations/crmcustomobjectschemasall.ts index 265abfb76..fa440efd0 100644 --- a/src/models/operations/crmcustomobjectschemasall.ts +++ b/src/models/operations/crmcustomobjectschemasall.ts @@ -65,84 +65,6 @@ export type CrmCustomObjectSchemasAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectSchemasAllGlobals$inboundSchema: z.ZodType< - CrmCustomObjectSchemasAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectSchemasAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasAllGlobals$outboundSchema: z.ZodType< - CrmCustomObjectSchemasAllGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAllGlobals$ { - /** @deprecated use `CrmCustomObjectSchemasAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAllGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasAllGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAllGlobals$Outbound; -} - -export function crmCustomObjectSchemasAllGlobalsToJSON( - crmCustomObjectSchemasAllGlobals: CrmCustomObjectSchemasAllGlobals, -): string { - return JSON.stringify( - CrmCustomObjectSchemasAllGlobals$outboundSchema.parse( - crmCustomObjectSchemasAllGlobals, - ), - ); -} - -export function crmCustomObjectSchemasAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectSchemasAllRequest$inboundSchema: z.ZodType< - CrmCustomObjectSchemasAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmCustomObjectSchemasAllRequest$Outbound = { raw: boolean; @@ -173,19 +95,6 @@ export const CrmCustomObjectSchemasAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAllRequest$ { - /** @deprecated use `CrmCustomObjectSchemasAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAllRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasAllRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAllRequest$Outbound; -} - export function crmCustomObjectSchemasAllRequestToJSON( crmCustomObjectSchemasAllRequest: CrmCustomObjectSchemasAllRequest, ): string { @@ -196,16 +105,6 @@ export function crmCustomObjectSchemasAllRequestToJSON( ); } -export function crmCustomObjectSchemasAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectSchemasAllResponse$inboundSchema: z.ZodType< CrmCustomObjectSchemasAllResponse, @@ -225,60 +124,6 @@ export const CrmCustomObjectSchemasAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectSchemasAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomObjectSchemasResponse?: - | components.GetCustomObjectSchemasResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasAllResponse$outboundSchema: z.ZodType< - CrmCustomObjectSchemasAllResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomObjectSchemasResponse: components - .GetCustomObjectSchemasResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomObjectSchemasResponse: "GetCustomObjectSchemasResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasAllResponse$ { - /** @deprecated use `CrmCustomObjectSchemasAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasAllResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllResponse$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasAllResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasAllResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasAllResponse$Outbound; -} - -export function crmCustomObjectSchemasAllResponseToJSON( - crmCustomObjectSchemasAllResponse: CrmCustomObjectSchemasAllResponse, -): string { - return JSON.stringify( - CrmCustomObjectSchemasAllResponse$outboundSchema.parse( - crmCustomObjectSchemasAllResponse, - ), - ); -} - export function crmCustomObjectSchemasAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectschemasdelete.ts b/src/models/operations/crmcustomobjectschemasdelete.ts index 058b1c753..beafc0714 100644 --- a/src/models/operations/crmcustomobjectschemasdelete.ts +++ b/src/models/operations/crmcustomobjectschemasdelete.ts @@ -57,81 +57,6 @@ export type CrmCustomObjectSchemasDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectSchemasDeleteGlobals$inboundSchema: z.ZodType< - CrmCustomObjectSchemasDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectSchemasDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasDeleteGlobals$outboundSchema: z.ZodType< - CrmCustomObjectSchemasDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasDeleteGlobals$ { - /** @deprecated use `CrmCustomObjectSchemasDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasDeleteGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasDeleteGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasDeleteGlobals$Outbound; -} - -export function crmCustomObjectSchemasDeleteGlobalsToJSON( - crmCustomObjectSchemasDeleteGlobals: CrmCustomObjectSchemasDeleteGlobals, -): string { - return JSON.stringify( - CrmCustomObjectSchemasDeleteGlobals$outboundSchema.parse( - crmCustomObjectSchemasDeleteGlobals, - ), - ); -} - -export function crmCustomObjectSchemasDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - CrmCustomObjectSchemasDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectSchemasDeleteRequest$inboundSchema: z.ZodType< - CrmCustomObjectSchemasDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmCustomObjectSchemasDeleteRequest$Outbound = { id: string; @@ -154,21 +79,6 @@ export const CrmCustomObjectSchemasDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasDeleteRequest$ { - /** @deprecated use `CrmCustomObjectSchemasDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasDeleteRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasDeleteRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasDeleteRequest$Outbound; -} - export function crmCustomObjectSchemasDeleteRequestToJSON( crmCustomObjectSchemasDeleteRequest: CrmCustomObjectSchemasDeleteRequest, ): string { @@ -179,17 +89,6 @@ export function crmCustomObjectSchemasDeleteRequestToJSON( ); } -export function crmCustomObjectSchemasDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - CrmCustomObjectSchemasDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectSchemasDeleteResponse$inboundSchema: z.ZodType< CrmCustomObjectSchemasDeleteResponse, @@ -209,61 +108,6 @@ export const CrmCustomObjectSchemasDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectSchemasDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCustomObjectSchemaResponse?: - | components.DeleteCustomObjectSchemaResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasDeleteResponse$outboundSchema: z.ZodType< - CrmCustomObjectSchemasDeleteResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCustomObjectSchemaResponse: components - .DeleteCustomObjectSchemaResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCustomObjectSchemaResponse: "DeleteCustomObjectSchemaResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasDeleteResponse$ { - /** @deprecated use `CrmCustomObjectSchemasDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasDeleteResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasDeleteResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasDeleteResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasDeleteResponse$Outbound; -} - -export function crmCustomObjectSchemasDeleteResponseToJSON( - crmCustomObjectSchemasDeleteResponse: CrmCustomObjectSchemasDeleteResponse, -): string { - return JSON.stringify( - CrmCustomObjectSchemasDeleteResponse$outboundSchema.parse( - crmCustomObjectSchemasDeleteResponse, - ), - ); -} - export function crmCustomObjectSchemasDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectschemasone.ts b/src/models/operations/crmcustomobjectschemasone.ts index 81a0b1b75..d09782120 100644 --- a/src/models/operations/crmcustomobjectschemasone.ts +++ b/src/models/operations/crmcustomobjectschemasone.ts @@ -57,78 +57,6 @@ export type CrmCustomObjectSchemasOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectSchemasOneGlobals$inboundSchema: z.ZodType< - CrmCustomObjectSchemasOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectSchemasOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasOneGlobals$outboundSchema: z.ZodType< - CrmCustomObjectSchemasOneGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasOneGlobals$ { - /** @deprecated use `CrmCustomObjectSchemasOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasOneGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasOneGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasOneGlobals$Outbound; -} - -export function crmCustomObjectSchemasOneGlobalsToJSON( - crmCustomObjectSchemasOneGlobals: CrmCustomObjectSchemasOneGlobals, -): string { - return JSON.stringify( - CrmCustomObjectSchemasOneGlobals$outboundSchema.parse( - crmCustomObjectSchemasOneGlobals, - ), - ); -} - -export function crmCustomObjectSchemasOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectSchemasOneRequest$inboundSchema: z.ZodType< - CrmCustomObjectSchemasOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmCustomObjectSchemasOneRequest$Outbound = { id: string; @@ -151,19 +79,6 @@ export const CrmCustomObjectSchemasOneRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasOneRequest$ { - /** @deprecated use `CrmCustomObjectSchemasOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasOneRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectSchemasOneRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasOneRequest$Outbound; -} - export function crmCustomObjectSchemasOneRequestToJSON( crmCustomObjectSchemasOneRequest: CrmCustomObjectSchemasOneRequest, ): string { @@ -174,16 +89,6 @@ export function crmCustomObjectSchemasOneRequestToJSON( ); } -export function crmCustomObjectSchemasOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectSchemasOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectSchemasOneResponse$inboundSchema: z.ZodType< CrmCustomObjectSchemasOneResponse, @@ -203,60 +108,6 @@ export const CrmCustomObjectSchemasOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectSchemasOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomObjectSchemaResponse?: - | components.GetCustomObjectSchemaResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasOneResponse$outboundSchema: z.ZodType< - CrmCustomObjectSchemasOneResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomObjectSchemaResponse: components - .GetCustomObjectSchemaResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomObjectSchemaResponse: "GetCustomObjectSchemaResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasOneResponse$ { - /** @deprecated use `CrmCustomObjectSchemasOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectSchemasOneResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneResponse$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasOneResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasOneResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasOneResponse$Outbound; -} - -export function crmCustomObjectSchemasOneResponseToJSON( - crmCustomObjectSchemasOneResponse: CrmCustomObjectSchemasOneResponse, -): string { - return JSON.stringify( - CrmCustomObjectSchemasOneResponse$outboundSchema.parse( - crmCustomObjectSchemasOneResponse, - ), - ); -} - export function crmCustomObjectSchemasOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectschemasupdate.ts b/src/models/operations/crmcustomobjectschemasupdate.ts index a0923f638..b31ba89db 100644 --- a/src/models/operations/crmcustomobjectschemasupdate.ts +++ b/src/models/operations/crmcustomobjectschemasupdate.ts @@ -58,86 +58,6 @@ export type CrmCustomObjectSchemasUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectSchemasUpdateGlobals$inboundSchema: z.ZodType< - CrmCustomObjectSchemasUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectSchemasUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasUpdateGlobals$outboundSchema: z.ZodType< - CrmCustomObjectSchemasUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasUpdateGlobals$ { - /** @deprecated use `CrmCustomObjectSchemasUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasUpdateGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasUpdateGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasUpdateGlobals$Outbound; -} - -export function crmCustomObjectSchemasUpdateGlobalsToJSON( - crmCustomObjectSchemasUpdateGlobals: CrmCustomObjectSchemasUpdateGlobals, -): string { - return JSON.stringify( - CrmCustomObjectSchemasUpdateGlobals$outboundSchema.parse( - crmCustomObjectSchemasUpdateGlobals, - ), - ); -} - -export function crmCustomObjectSchemasUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - CrmCustomObjectSchemasUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectSchemasUpdateRequest$inboundSchema: z.ZodType< - CrmCustomObjectSchemasUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - CustomObjectSchema: components.CustomObjectSchemaInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CustomObjectSchema": "customObjectSchema", - }); -}); - /** @internal */ export type CrmCustomObjectSchemasUpdateRequest$Outbound = { id: string; @@ -166,21 +86,6 @@ export const CrmCustomObjectSchemasUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasUpdateRequest$ { - /** @deprecated use `CrmCustomObjectSchemasUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasUpdateRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasUpdateRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasUpdateRequest$Outbound; -} - export function crmCustomObjectSchemasUpdateRequestToJSON( crmCustomObjectSchemasUpdateRequest: CrmCustomObjectSchemasUpdateRequest, ): string { @@ -191,17 +96,6 @@ export function crmCustomObjectSchemasUpdateRequestToJSON( ); } -export function crmCustomObjectSchemasUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - CrmCustomObjectSchemasUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectSchemasUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectSchemasUpdateResponse$inboundSchema: z.ZodType< CrmCustomObjectSchemasUpdateResponse, @@ -221,61 +115,6 @@ export const CrmCustomObjectSchemasUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectSchemasUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCustomObjectSchemaResponse?: - | components.UpdateCustomObjectSchemaResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectSchemasUpdateResponse$outboundSchema: z.ZodType< - CrmCustomObjectSchemasUpdateResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectSchemasUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCustomObjectSchemaResponse: components - .UpdateCustomObjectSchemaResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCustomObjectSchemaResponse: "UpdateCustomObjectSchemaResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectSchemasUpdateResponse$ { - /** @deprecated use `CrmCustomObjectSchemasUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - CrmCustomObjectSchemasUpdateResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - CrmCustomObjectSchemasUpdateResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectSchemasUpdateResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectSchemasUpdateResponse$Outbound; -} - -export function crmCustomObjectSchemasUpdateResponseToJSON( - crmCustomObjectSchemasUpdateResponse: CrmCustomObjectSchemasUpdateResponse, -): string { - return JSON.stringify( - CrmCustomObjectSchemasUpdateResponse$outboundSchema.parse( - crmCustomObjectSchemasUpdateResponse, - ), - ); -} - export function crmCustomObjectSchemasUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectsdelete.ts b/src/models/operations/crmcustomobjectsdelete.ts index 2beb02fbe..0b5e1d614 100644 --- a/src/models/operations/crmcustomobjectsdelete.ts +++ b/src/models/operations/crmcustomobjectsdelete.ts @@ -61,83 +61,6 @@ export type CrmCustomObjectsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectsDeleteGlobals$inboundSchema: z.ZodType< - CrmCustomObjectsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsDeleteGlobals$outboundSchema: z.ZodType< - CrmCustomObjectsDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsDeleteGlobals$ { - /** @deprecated use `CrmCustomObjectsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsDeleteGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsDeleteGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectsDeleteGlobals$Outbound; -} - -export function crmCustomObjectsDeleteGlobalsToJSON( - crmCustomObjectsDeleteGlobals: CrmCustomObjectsDeleteGlobals, -): string { - return JSON.stringify( - CrmCustomObjectsDeleteGlobals$outboundSchema.parse( - crmCustomObjectsDeleteGlobals, - ), - ); -} - -export function crmCustomObjectsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectsDeleteRequest$inboundSchema: z.ZodType< - CrmCustomObjectsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - object_id: z.string(), -}).transform((v) => { - return remap$(v, { - "object_id": "objectId", - }); -}); - /** @internal */ export type CrmCustomObjectsDeleteRequest$Outbound = { id: string; @@ -166,19 +89,6 @@ export const CrmCustomObjectsDeleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsDeleteRequest$ { - /** @deprecated use `CrmCustomObjectsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsDeleteRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsDeleteRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectsDeleteRequest$Outbound; -} - export function crmCustomObjectsDeleteRequestToJSON( crmCustomObjectsDeleteRequest: CrmCustomObjectsDeleteRequest, ): string { @@ -189,16 +99,6 @@ export function crmCustomObjectsDeleteRequestToJSON( ); } -export function crmCustomObjectsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectsDeleteResponse$inboundSchema: z.ZodType< CrmCustomObjectsDeleteResponse, @@ -218,59 +118,6 @@ export const CrmCustomObjectsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCustomObjectResponse?: - | components.DeleteCustomObjectResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsDeleteResponse$outboundSchema: z.ZodType< - CrmCustomObjectsDeleteResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCustomObjectResponse: components - .DeleteCustomObjectResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCustomObjectResponse: "DeleteCustomObjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsDeleteResponse$ { - /** @deprecated use `CrmCustomObjectsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsDeleteResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsDeleteResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectsDeleteResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectsDeleteResponse$Outbound; -} - -export function crmCustomObjectsDeleteResponseToJSON( - crmCustomObjectsDeleteResponse: CrmCustomObjectsDeleteResponse, -): string { - return JSON.stringify( - CrmCustomObjectsDeleteResponse$outboundSchema.parse( - crmCustomObjectsDeleteResponse, - ), - ); -} - export function crmCustomObjectsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectsone.ts b/src/models/operations/crmcustomobjectsone.ts index b460eec8b..ace602e59 100644 --- a/src/models/operations/crmcustomobjectsone.ts +++ b/src/models/operations/crmcustomobjectsone.ts @@ -59,81 +59,6 @@ export type CrmCustomObjectsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectsOneGlobals$inboundSchema: z.ZodType< - CrmCustomObjectsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsOneGlobals$outboundSchema: z.ZodType< - CrmCustomObjectsOneGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsOneGlobals$ { - /** @deprecated use `CrmCustomObjectsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsOneGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsOneGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectsOneGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectsOneGlobals$Outbound; -} - -export function crmCustomObjectsOneGlobalsToJSON( - crmCustomObjectsOneGlobals: CrmCustomObjectsOneGlobals, -): string { - return JSON.stringify( - CrmCustomObjectsOneGlobals$outboundSchema.parse(crmCustomObjectsOneGlobals), - ); -} - -export function crmCustomObjectsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectsOneRequest$inboundSchema: z.ZodType< - CrmCustomObjectsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - object_id: z.string(), -}).transform((v) => { - return remap$(v, { - "object_id": "objectId", - }); -}); - /** @internal */ export type CrmCustomObjectsOneRequest$Outbound = { id: string; @@ -162,19 +87,6 @@ export const CrmCustomObjectsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsOneRequest$ { - /** @deprecated use `CrmCustomObjectsOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsOneRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectsOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsOneRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectsOneRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectsOneRequest$Outbound; -} - export function crmCustomObjectsOneRequestToJSON( crmCustomObjectsOneRequest: CrmCustomObjectsOneRequest, ): string { @@ -183,16 +95,6 @@ export function crmCustomObjectsOneRequestToJSON( ); } -export function crmCustomObjectsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectsOneResponse$inboundSchema: z.ZodType< CrmCustomObjectsOneResponse, @@ -212,59 +114,6 @@ export const CrmCustomObjectsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomObjectResponse?: - | components.GetCustomObjectResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsOneResponse$outboundSchema: z.ZodType< - CrmCustomObjectsOneResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomObjectResponse: components.GetCustomObjectResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomObjectResponse: "GetCustomObjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsOneResponse$ { - /** @deprecated use `CrmCustomObjectsOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsOneResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectsOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsOneResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectsOneResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectsOneResponse$Outbound; -} - -export function crmCustomObjectsOneResponseToJSON( - crmCustomObjectsOneResponse: CrmCustomObjectsOneResponse, -): string { - return JSON.stringify( - CrmCustomObjectsOneResponse$outboundSchema.parse( - crmCustomObjectsOneResponse, - ), - ); -} - export function crmCustomObjectsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmcustomobjectsupdate.ts b/src/models/operations/crmcustomobjectsupdate.ts index 4fd39a917..a8b574bc2 100644 --- a/src/models/operations/crmcustomobjectsupdate.ts +++ b/src/models/operations/crmcustomobjectsupdate.ts @@ -62,85 +62,6 @@ export type CrmCustomObjectsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmCustomObjectsUpdateGlobals$inboundSchema: z.ZodType< - CrmCustomObjectsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmCustomObjectsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsUpdateGlobals$outboundSchema: z.ZodType< - CrmCustomObjectsUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmCustomObjectsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsUpdateGlobals$ { - /** @deprecated use `CrmCustomObjectsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsUpdateGlobals$inboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsUpdateGlobals$outboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmCustomObjectsUpdateGlobals$Outbound; -} - -export function crmCustomObjectsUpdateGlobalsToJSON( - crmCustomObjectsUpdateGlobals: CrmCustomObjectsUpdateGlobals, -): string { - return JSON.stringify( - CrmCustomObjectsUpdateGlobals$outboundSchema.parse( - crmCustomObjectsUpdateGlobals, - ), - ); -} - -export function crmCustomObjectsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmCustomObjectsUpdateRequest$inboundSchema: z.ZodType< - CrmCustomObjectsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - object_id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - CustomObject: components.CustomObjectInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "object_id": "objectId", - "CustomObject": "customObject", - }); -}); - /** @internal */ export type CrmCustomObjectsUpdateRequest$Outbound = { id: string; @@ -172,19 +93,6 @@ export const CrmCustomObjectsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsUpdateRequest$ { - /** @deprecated use `CrmCustomObjectsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsUpdateRequest$inboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsUpdateRequest$outboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateRequest$Outbound` instead. */ - export type Outbound = CrmCustomObjectsUpdateRequest$Outbound; -} - export function crmCustomObjectsUpdateRequestToJSON( crmCustomObjectsUpdateRequest: CrmCustomObjectsUpdateRequest, ): string { @@ -195,16 +103,6 @@ export function crmCustomObjectsUpdateRequestToJSON( ); } -export function crmCustomObjectsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmCustomObjectsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmCustomObjectsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmCustomObjectsUpdateResponse$inboundSchema: z.ZodType< CrmCustomObjectsUpdateResponse, @@ -224,59 +122,6 @@ export const CrmCustomObjectsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmCustomObjectsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCustomObjectResponse?: - | components.UpdateCustomObjectResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmCustomObjectsUpdateResponse$outboundSchema: z.ZodType< - CrmCustomObjectsUpdateResponse$Outbound, - z.ZodTypeDef, - CrmCustomObjectsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCustomObjectResponse: components - .UpdateCustomObjectResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCustomObjectResponse: "UpdateCustomObjectResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmCustomObjectsUpdateResponse$ { - /** @deprecated use `CrmCustomObjectsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmCustomObjectsUpdateResponse$inboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmCustomObjectsUpdateResponse$outboundSchema; - /** @deprecated use `CrmCustomObjectsUpdateResponse$Outbound` instead. */ - export type Outbound = CrmCustomObjectsUpdateResponse$Outbound; -} - -export function crmCustomObjectsUpdateResponseToJSON( - crmCustomObjectsUpdateResponse: CrmCustomObjectsUpdateResponse, -): string { - return JSON.stringify( - CrmCustomObjectsUpdateResponse$outboundSchema.parse( - crmCustomObjectsUpdateResponse, - ), - ); -} - export function crmCustomObjectsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmleadsadd.ts b/src/models/operations/crmleadsadd.ts index 20c44c129..f6b6d4212 100644 --- a/src/models/operations/crmleadsadd.ts +++ b/src/models/operations/crmleadsadd.ts @@ -52,80 +52,6 @@ export type CrmLeadsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmLeadsAddGlobals$inboundSchema: z.ZodType< - CrmLeadsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmLeadsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmLeadsAddGlobals$outboundSchema: z.ZodType< - CrmLeadsAddGlobals$Outbound, - z.ZodTypeDef, - CrmLeadsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAddGlobals$ { - /** @deprecated use `CrmLeadsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAddGlobals$inboundSchema; - /** @deprecated use `CrmLeadsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAddGlobals$outboundSchema; - /** @deprecated use `CrmLeadsAddGlobals$Outbound` instead. */ - export type Outbound = CrmLeadsAddGlobals$Outbound; -} - -export function crmLeadsAddGlobalsToJSON( - crmLeadsAddGlobals: CrmLeadsAddGlobals, -): string { - return JSON.stringify( - CrmLeadsAddGlobals$outboundSchema.parse(crmLeadsAddGlobals), - ); -} - -export function crmLeadsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmLeadsAddRequest$inboundSchema: z.ZodType< - CrmLeadsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Lead: components.LeadInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Lead": "lead", - }); -}); - /** @internal */ export type CrmLeadsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmLeadsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAddRequest$ { - /** @deprecated use `CrmLeadsAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAddRequest$inboundSchema; - /** @deprecated use `CrmLeadsAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAddRequest$outboundSchema; - /** @deprecated use `CrmLeadsAddRequest$Outbound` instead. */ - export type Outbound = CrmLeadsAddRequest$Outbound; -} - export function crmLeadsAddRequestToJSON( crmLeadsAddRequest: CrmLeadsAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmLeadsAddRequestToJSON( ); } -export function crmLeadsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmLeadsAddResponse$inboundSchema: z.ZodType< CrmLeadsAddResponse, @@ -201,54 +104,6 @@ export const CrmLeadsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmLeadsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateLeadResponse?: components.CreateLeadResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmLeadsAddResponse$outboundSchema: z.ZodType< - CrmLeadsAddResponse$Outbound, - z.ZodTypeDef, - CrmLeadsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createLeadResponse: components.CreateLeadResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createLeadResponse: "CreateLeadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAddResponse$ { - /** @deprecated use `CrmLeadsAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAddResponse$inboundSchema; - /** @deprecated use `CrmLeadsAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAddResponse$outboundSchema; - /** @deprecated use `CrmLeadsAddResponse$Outbound` instead. */ - export type Outbound = CrmLeadsAddResponse$Outbound; -} - -export function crmLeadsAddResponseToJSON( - crmLeadsAddResponse: CrmLeadsAddResponse, -): string { - return JSON.stringify( - CrmLeadsAddResponse$outboundSchema.parse(crmLeadsAddResponse), - ); -} - export function crmLeadsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmleadsall.ts b/src/models/operations/crmleadsall.ts index 673908be3..7225387cf 100644 --- a/src/models/operations/crmleadsall.ts +++ b/src/models/operations/crmleadsall.ts @@ -75,85 +75,6 @@ export type CrmLeadsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmLeadsAllGlobals$inboundSchema: z.ZodType< - CrmLeadsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmLeadsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmLeadsAllGlobals$outboundSchema: z.ZodType< - CrmLeadsAllGlobals$Outbound, - z.ZodTypeDef, - CrmLeadsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAllGlobals$ { - /** @deprecated use `CrmLeadsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAllGlobals$inboundSchema; - /** @deprecated use `CrmLeadsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAllGlobals$outboundSchema; - /** @deprecated use `CrmLeadsAllGlobals$Outbound` instead. */ - export type Outbound = CrmLeadsAllGlobals$Outbound; -} - -export function crmLeadsAllGlobalsToJSON( - crmLeadsAllGlobals: CrmLeadsAllGlobals, -): string { - return JSON.stringify( - CrmLeadsAllGlobals$outboundSchema.parse(crmLeadsAllGlobals), - ); -} - -export function crmLeadsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmLeadsAllRequest$inboundSchema: z.ZodType< - CrmLeadsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.LeadsFilter$inboundSchema.optional(), - sort: components.LeadsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmLeadsAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const CrmLeadsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAllRequest$ { - /** @deprecated use `CrmLeadsAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAllRequest$inboundSchema; - /** @deprecated use `CrmLeadsAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAllRequest$outboundSchema; - /** @deprecated use `CrmLeadsAllRequest$Outbound` instead. */ - export type Outbound = CrmLeadsAllRequest$Outbound; -} - export function crmLeadsAllRequestToJSON( crmLeadsAllRequest: CrmLeadsAllRequest, ): string { @@ -211,16 +119,6 @@ export function crmLeadsAllRequestToJSON( ); } -export function crmLeadsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmLeadsAllResponse$inboundSchema: z.ZodType< CrmLeadsAllResponse, @@ -239,54 +137,6 @@ export const CrmLeadsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmLeadsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetLeadsResponse?: components.GetLeadsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmLeadsAllResponse$outboundSchema: z.ZodType< - CrmLeadsAllResponse$Outbound, - z.ZodTypeDef, - CrmLeadsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getLeadsResponse: components.GetLeadsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getLeadsResponse: "GetLeadsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsAllResponse$ { - /** @deprecated use `CrmLeadsAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsAllResponse$inboundSchema; - /** @deprecated use `CrmLeadsAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsAllResponse$outboundSchema; - /** @deprecated use `CrmLeadsAllResponse$Outbound` instead. */ - export type Outbound = CrmLeadsAllResponse$Outbound; -} - -export function crmLeadsAllResponseToJSON( - crmLeadsAllResponse: CrmLeadsAllResponse, -): string { - return JSON.stringify( - CrmLeadsAllResponse$outboundSchema.parse(crmLeadsAllResponse), - ); -} - export function crmLeadsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmleadsdelete.ts b/src/models/operations/crmleadsdelete.ts index bec111189..768d300f9 100644 --- a/src/models/operations/crmleadsdelete.ts +++ b/src/models/operations/crmleadsdelete.ts @@ -55,76 +55,6 @@ export type CrmLeadsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmLeadsDeleteGlobals$inboundSchema: z.ZodType< - CrmLeadsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmLeadsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmLeadsDeleteGlobals$outboundSchema: z.ZodType< - CrmLeadsDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmLeadsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsDeleteGlobals$ { - /** @deprecated use `CrmLeadsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsDeleteGlobals$inboundSchema; - /** @deprecated use `CrmLeadsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsDeleteGlobals$outboundSchema; - /** @deprecated use `CrmLeadsDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmLeadsDeleteGlobals$Outbound; -} - -export function crmLeadsDeleteGlobalsToJSON( - crmLeadsDeleteGlobals: CrmLeadsDeleteGlobals, -): string { - return JSON.stringify( - CrmLeadsDeleteGlobals$outboundSchema.parse(crmLeadsDeleteGlobals), - ); -} - -export function crmLeadsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmLeadsDeleteRequest$inboundSchema: z.ZodType< - CrmLeadsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmLeadsDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmLeadsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsDeleteRequest$ { - /** @deprecated use `CrmLeadsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsDeleteRequest$inboundSchema; - /** @deprecated use `CrmLeadsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsDeleteRequest$outboundSchema; - /** @deprecated use `CrmLeadsDeleteRequest$Outbound` instead. */ - export type Outbound = CrmLeadsDeleteRequest$Outbound; -} - export function crmLeadsDeleteRequestToJSON( crmLeadsDeleteRequest: CrmLeadsDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmLeadsDeleteRequestToJSON( ); } -export function crmLeadsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmLeadsDeleteResponse$inboundSchema: z.ZodType< CrmLeadsDeleteResponse, @@ -196,54 +103,6 @@ export const CrmLeadsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmLeadsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteLeadResponse?: components.DeleteLeadResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmLeadsDeleteResponse$outboundSchema: z.ZodType< - CrmLeadsDeleteResponse$Outbound, - z.ZodTypeDef, - CrmLeadsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteLeadResponse: components.DeleteLeadResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteLeadResponse: "DeleteLeadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsDeleteResponse$ { - /** @deprecated use `CrmLeadsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsDeleteResponse$inboundSchema; - /** @deprecated use `CrmLeadsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsDeleteResponse$outboundSchema; - /** @deprecated use `CrmLeadsDeleteResponse$Outbound` instead. */ - export type Outbound = CrmLeadsDeleteResponse$Outbound; -} - -export function crmLeadsDeleteResponseToJSON( - crmLeadsDeleteResponse: CrmLeadsDeleteResponse, -): string { - return JSON.stringify( - CrmLeadsDeleteResponse$outboundSchema.parse(crmLeadsDeleteResponse), - ); -} - export function crmLeadsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmleadsone.ts b/src/models/operations/crmleadsone.ts index b6e90a624..651c0cd0d 100644 --- a/src/models/operations/crmleadsone.ts +++ b/src/models/operations/crmleadsone.ts @@ -59,77 +59,6 @@ export type CrmLeadsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmLeadsOneGlobals$inboundSchema: z.ZodType< - CrmLeadsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmLeadsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmLeadsOneGlobals$outboundSchema: z.ZodType< - CrmLeadsOneGlobals$Outbound, - z.ZodTypeDef, - CrmLeadsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsOneGlobals$ { - /** @deprecated use `CrmLeadsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsOneGlobals$inboundSchema; - /** @deprecated use `CrmLeadsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsOneGlobals$outboundSchema; - /** @deprecated use `CrmLeadsOneGlobals$Outbound` instead. */ - export type Outbound = CrmLeadsOneGlobals$Outbound; -} - -export function crmLeadsOneGlobalsToJSON( - crmLeadsOneGlobals: CrmLeadsOneGlobals, -): string { - return JSON.stringify( - CrmLeadsOneGlobals$outboundSchema.parse(crmLeadsOneGlobals), - ); -} - -export function crmLeadsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmLeadsOneRequest$inboundSchema: z.ZodType< - CrmLeadsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmLeadsOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmLeadsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsOneRequest$ { - /** @deprecated use `CrmLeadsOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsOneRequest$inboundSchema; - /** @deprecated use `CrmLeadsOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsOneRequest$outboundSchema; - /** @deprecated use `CrmLeadsOneRequest$Outbound` instead. */ - export type Outbound = CrmLeadsOneRequest$Outbound; -} - export function crmLeadsOneRequestToJSON( crmLeadsOneRequest: CrmLeadsOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmLeadsOneRequestToJSON( ); } -export function crmLeadsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmLeadsOneResponse$inboundSchema: z.ZodType< CrmLeadsOneResponse, @@ -203,54 +109,6 @@ export const CrmLeadsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmLeadsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetLeadResponse?: components.GetLeadResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmLeadsOneResponse$outboundSchema: z.ZodType< - CrmLeadsOneResponse$Outbound, - z.ZodTypeDef, - CrmLeadsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getLeadResponse: components.GetLeadResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getLeadResponse: "GetLeadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsOneResponse$ { - /** @deprecated use `CrmLeadsOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsOneResponse$inboundSchema; - /** @deprecated use `CrmLeadsOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsOneResponse$outboundSchema; - /** @deprecated use `CrmLeadsOneResponse$Outbound` instead. */ - export type Outbound = CrmLeadsOneResponse$Outbound; -} - -export function crmLeadsOneResponseToJSON( - crmLeadsOneResponse: CrmLeadsOneResponse, -): string { - return JSON.stringify( - CrmLeadsOneResponse$outboundSchema.parse(crmLeadsOneResponse), - ); -} - export function crmLeadsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmleadsupdate.ts b/src/models/operations/crmleadsupdate.ts index 8fd2d3d57..b603817b6 100644 --- a/src/models/operations/crmleadsupdate.ts +++ b/src/models/operations/crmleadsupdate.ts @@ -56,81 +56,6 @@ export type CrmLeadsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmLeadsUpdateGlobals$inboundSchema: z.ZodType< - CrmLeadsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmLeadsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmLeadsUpdateGlobals$outboundSchema: z.ZodType< - CrmLeadsUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmLeadsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsUpdateGlobals$ { - /** @deprecated use `CrmLeadsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsUpdateGlobals$inboundSchema; - /** @deprecated use `CrmLeadsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsUpdateGlobals$outboundSchema; - /** @deprecated use `CrmLeadsUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmLeadsUpdateGlobals$Outbound; -} - -export function crmLeadsUpdateGlobalsToJSON( - crmLeadsUpdateGlobals: CrmLeadsUpdateGlobals, -): string { - return JSON.stringify( - CrmLeadsUpdateGlobals$outboundSchema.parse(crmLeadsUpdateGlobals), - ); -} - -export function crmLeadsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmLeadsUpdateRequest$inboundSchema: z.ZodType< - CrmLeadsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Lead: components.LeadInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Lead": "lead", - }); -}); - /** @internal */ export type CrmLeadsUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmLeadsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsUpdateRequest$ { - /** @deprecated use `CrmLeadsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsUpdateRequest$inboundSchema; - /** @deprecated use `CrmLeadsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsUpdateRequest$outboundSchema; - /** @deprecated use `CrmLeadsUpdateRequest$Outbound` instead. */ - export type Outbound = CrmLeadsUpdateRequest$Outbound; -} - export function crmLeadsUpdateRequestToJSON( crmLeadsUpdateRequest: CrmLeadsUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmLeadsUpdateRequestToJSON( ); } -export function crmLeadsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmLeadsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmLeadsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmLeadsUpdateResponse$inboundSchema: z.ZodType< CrmLeadsUpdateResponse, @@ -208,54 +110,6 @@ export const CrmLeadsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmLeadsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateLeadResponse?: components.UpdateLeadResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmLeadsUpdateResponse$outboundSchema: z.ZodType< - CrmLeadsUpdateResponse$Outbound, - z.ZodTypeDef, - CrmLeadsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateLeadResponse: components.UpdateLeadResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateLeadResponse: "UpdateLeadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmLeadsUpdateResponse$ { - /** @deprecated use `CrmLeadsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmLeadsUpdateResponse$inboundSchema; - /** @deprecated use `CrmLeadsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmLeadsUpdateResponse$outboundSchema; - /** @deprecated use `CrmLeadsUpdateResponse$Outbound` instead. */ - export type Outbound = CrmLeadsUpdateResponse$Outbound; -} - -export function crmLeadsUpdateResponseToJSON( - crmLeadsUpdateResponse: CrmLeadsUpdateResponse, -): string { - return JSON.stringify( - CrmLeadsUpdateResponse$outboundSchema.parse(crmLeadsUpdateResponse), - ); -} - export function crmLeadsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmnotesadd.ts b/src/models/operations/crmnotesadd.ts index cd4ae7fcf..7d0c55371 100644 --- a/src/models/operations/crmnotesadd.ts +++ b/src/models/operations/crmnotesadd.ts @@ -52,80 +52,6 @@ export type CrmNotesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmNotesAddGlobals$inboundSchema: z.ZodType< - CrmNotesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmNotesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmNotesAddGlobals$outboundSchema: z.ZodType< - CrmNotesAddGlobals$Outbound, - z.ZodTypeDef, - CrmNotesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAddGlobals$ { - /** @deprecated use `CrmNotesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAddGlobals$inboundSchema; - /** @deprecated use `CrmNotesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAddGlobals$outboundSchema; - /** @deprecated use `CrmNotesAddGlobals$Outbound` instead. */ - export type Outbound = CrmNotesAddGlobals$Outbound; -} - -export function crmNotesAddGlobalsToJSON( - crmNotesAddGlobals: CrmNotesAddGlobals, -): string { - return JSON.stringify( - CrmNotesAddGlobals$outboundSchema.parse(crmNotesAddGlobals), - ); -} - -export function crmNotesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmNotesAddRequest$inboundSchema: z.ZodType< - CrmNotesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Note: components.NoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Note": "note", - }); -}); - /** @internal */ export type CrmNotesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmNotesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAddRequest$ { - /** @deprecated use `CrmNotesAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAddRequest$inboundSchema; - /** @deprecated use `CrmNotesAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAddRequest$outboundSchema; - /** @deprecated use `CrmNotesAddRequest$Outbound` instead. */ - export type Outbound = CrmNotesAddRequest$Outbound; -} - export function crmNotesAddRequestToJSON( crmNotesAddRequest: CrmNotesAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmNotesAddRequestToJSON( ); } -export function crmNotesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmNotesAddResponse$inboundSchema: z.ZodType< CrmNotesAddResponse, @@ -201,54 +104,6 @@ export const CrmNotesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmNotesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateNoteResponse?: components.CreateNoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmNotesAddResponse$outboundSchema: z.ZodType< - CrmNotesAddResponse$Outbound, - z.ZodTypeDef, - CrmNotesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createNoteResponse: components.CreateNoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createNoteResponse: "CreateNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAddResponse$ { - /** @deprecated use `CrmNotesAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAddResponse$inboundSchema; - /** @deprecated use `CrmNotesAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAddResponse$outboundSchema; - /** @deprecated use `CrmNotesAddResponse$Outbound` instead. */ - export type Outbound = CrmNotesAddResponse$Outbound; -} - -export function crmNotesAddResponseToJSON( - crmNotesAddResponse: CrmNotesAddResponse, -): string { - return JSON.stringify( - CrmNotesAddResponse$outboundSchema.parse(crmNotesAddResponse), - ); -} - export function crmNotesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmnotesall.ts b/src/models/operations/crmnotesall.ts index a6d91bbcd..d4a200d84 100644 --- a/src/models/operations/crmnotesall.ts +++ b/src/models/operations/crmnotesall.ts @@ -67,83 +67,6 @@ export type CrmNotesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmNotesAllGlobals$inboundSchema: z.ZodType< - CrmNotesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmNotesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmNotesAllGlobals$outboundSchema: z.ZodType< - CrmNotesAllGlobals$Outbound, - z.ZodTypeDef, - CrmNotesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAllGlobals$ { - /** @deprecated use `CrmNotesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAllGlobals$inboundSchema; - /** @deprecated use `CrmNotesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAllGlobals$outboundSchema; - /** @deprecated use `CrmNotesAllGlobals$Outbound` instead. */ - export type Outbound = CrmNotesAllGlobals$Outbound; -} - -export function crmNotesAllGlobalsToJSON( - crmNotesAllGlobals: CrmNotesAllGlobals, -): string { - return JSON.stringify( - CrmNotesAllGlobals$outboundSchema.parse(crmNotesAllGlobals), - ); -} - -export function crmNotesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmNotesAllRequest$inboundSchema: z.ZodType< - CrmNotesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmNotesAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const CrmNotesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAllRequest$ { - /** @deprecated use `CrmNotesAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAllRequest$inboundSchema; - /** @deprecated use `CrmNotesAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAllRequest$outboundSchema; - /** @deprecated use `CrmNotesAllRequest$Outbound` instead. */ - export type Outbound = CrmNotesAllRequest$Outbound; -} - export function crmNotesAllRequestToJSON( crmNotesAllRequest: CrmNotesAllRequest, ): string { @@ -197,16 +107,6 @@ export function crmNotesAllRequestToJSON( ); } -export function crmNotesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmNotesAllResponse$inboundSchema: z.ZodType< CrmNotesAllResponse, @@ -225,54 +125,6 @@ export const CrmNotesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmNotesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetNotesResponse?: components.GetNotesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmNotesAllResponse$outboundSchema: z.ZodType< - CrmNotesAllResponse$Outbound, - z.ZodTypeDef, - CrmNotesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getNotesResponse: components.GetNotesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getNotesResponse: "GetNotesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesAllResponse$ { - /** @deprecated use `CrmNotesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmNotesAllResponse$inboundSchema; - /** @deprecated use `CrmNotesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmNotesAllResponse$outboundSchema; - /** @deprecated use `CrmNotesAllResponse$Outbound` instead. */ - export type Outbound = CrmNotesAllResponse$Outbound; -} - -export function crmNotesAllResponseToJSON( - crmNotesAllResponse: CrmNotesAllResponse, -): string { - return JSON.stringify( - CrmNotesAllResponse$outboundSchema.parse(crmNotesAllResponse), - ); -} - export function crmNotesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmnotesdelete.ts b/src/models/operations/crmnotesdelete.ts index 9be2f5c7d..8e12dead2 100644 --- a/src/models/operations/crmnotesdelete.ts +++ b/src/models/operations/crmnotesdelete.ts @@ -55,76 +55,6 @@ export type CrmNotesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmNotesDeleteGlobals$inboundSchema: z.ZodType< - CrmNotesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmNotesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmNotesDeleteGlobals$outboundSchema: z.ZodType< - CrmNotesDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmNotesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesDeleteGlobals$ { - /** @deprecated use `CrmNotesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmNotesDeleteGlobals$inboundSchema; - /** @deprecated use `CrmNotesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmNotesDeleteGlobals$outboundSchema; - /** @deprecated use `CrmNotesDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmNotesDeleteGlobals$Outbound; -} - -export function crmNotesDeleteGlobalsToJSON( - crmNotesDeleteGlobals: CrmNotesDeleteGlobals, -): string { - return JSON.stringify( - CrmNotesDeleteGlobals$outboundSchema.parse(crmNotesDeleteGlobals), - ); -} - -export function crmNotesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmNotesDeleteRequest$inboundSchema: z.ZodType< - CrmNotesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmNotesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmNotesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesDeleteRequest$ { - /** @deprecated use `CrmNotesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmNotesDeleteRequest$inboundSchema; - /** @deprecated use `CrmNotesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmNotesDeleteRequest$outboundSchema; - /** @deprecated use `CrmNotesDeleteRequest$Outbound` instead. */ - export type Outbound = CrmNotesDeleteRequest$Outbound; -} - export function crmNotesDeleteRequestToJSON( crmNotesDeleteRequest: CrmNotesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmNotesDeleteRequestToJSON( ); } -export function crmNotesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmNotesDeleteResponse$inboundSchema: z.ZodType< CrmNotesDeleteResponse, @@ -196,54 +103,6 @@ export const CrmNotesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmNotesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteNoteResponse?: components.DeleteNoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmNotesDeleteResponse$outboundSchema: z.ZodType< - CrmNotesDeleteResponse$Outbound, - z.ZodTypeDef, - CrmNotesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteNoteResponse: components.DeleteNoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteNoteResponse: "DeleteNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesDeleteResponse$ { - /** @deprecated use `CrmNotesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmNotesDeleteResponse$inboundSchema; - /** @deprecated use `CrmNotesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmNotesDeleteResponse$outboundSchema; - /** @deprecated use `CrmNotesDeleteResponse$Outbound` instead. */ - export type Outbound = CrmNotesDeleteResponse$Outbound; -} - -export function crmNotesDeleteResponseToJSON( - crmNotesDeleteResponse: CrmNotesDeleteResponse, -): string { - return JSON.stringify( - CrmNotesDeleteResponse$outboundSchema.parse(crmNotesDeleteResponse), - ); -} - export function crmNotesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmnotesone.ts b/src/models/operations/crmnotesone.ts index 004c590ac..b2f6bc357 100644 --- a/src/models/operations/crmnotesone.ts +++ b/src/models/operations/crmnotesone.ts @@ -59,77 +59,6 @@ export type CrmNotesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmNotesOneGlobals$inboundSchema: z.ZodType< - CrmNotesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmNotesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmNotesOneGlobals$outboundSchema: z.ZodType< - CrmNotesOneGlobals$Outbound, - z.ZodTypeDef, - CrmNotesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesOneGlobals$ { - /** @deprecated use `CrmNotesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmNotesOneGlobals$inboundSchema; - /** @deprecated use `CrmNotesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmNotesOneGlobals$outboundSchema; - /** @deprecated use `CrmNotesOneGlobals$Outbound` instead. */ - export type Outbound = CrmNotesOneGlobals$Outbound; -} - -export function crmNotesOneGlobalsToJSON( - crmNotesOneGlobals: CrmNotesOneGlobals, -): string { - return JSON.stringify( - CrmNotesOneGlobals$outboundSchema.parse(crmNotesOneGlobals), - ); -} - -export function crmNotesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmNotesOneRequest$inboundSchema: z.ZodType< - CrmNotesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmNotesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmNotesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesOneRequest$ { - /** @deprecated use `CrmNotesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmNotesOneRequest$inboundSchema; - /** @deprecated use `CrmNotesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmNotesOneRequest$outboundSchema; - /** @deprecated use `CrmNotesOneRequest$Outbound` instead. */ - export type Outbound = CrmNotesOneRequest$Outbound; -} - export function crmNotesOneRequestToJSON( crmNotesOneRequest: CrmNotesOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmNotesOneRequestToJSON( ); } -export function crmNotesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmNotesOneResponse$inboundSchema: z.ZodType< CrmNotesOneResponse, @@ -203,54 +109,6 @@ export const CrmNotesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmNotesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetNoteResponse?: components.GetNoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmNotesOneResponse$outboundSchema: z.ZodType< - CrmNotesOneResponse$Outbound, - z.ZodTypeDef, - CrmNotesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getNoteResponse: components.GetNoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getNoteResponse: "GetNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesOneResponse$ { - /** @deprecated use `CrmNotesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmNotesOneResponse$inboundSchema; - /** @deprecated use `CrmNotesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmNotesOneResponse$outboundSchema; - /** @deprecated use `CrmNotesOneResponse$Outbound` instead. */ - export type Outbound = CrmNotesOneResponse$Outbound; -} - -export function crmNotesOneResponseToJSON( - crmNotesOneResponse: CrmNotesOneResponse, -): string { - return JSON.stringify( - CrmNotesOneResponse$outboundSchema.parse(crmNotesOneResponse), - ); -} - export function crmNotesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmnotesupdate.ts b/src/models/operations/crmnotesupdate.ts index f10ec0770..72ede43bf 100644 --- a/src/models/operations/crmnotesupdate.ts +++ b/src/models/operations/crmnotesupdate.ts @@ -56,81 +56,6 @@ export type CrmNotesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmNotesUpdateGlobals$inboundSchema: z.ZodType< - CrmNotesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmNotesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmNotesUpdateGlobals$outboundSchema: z.ZodType< - CrmNotesUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmNotesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesUpdateGlobals$ { - /** @deprecated use `CrmNotesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmNotesUpdateGlobals$inboundSchema; - /** @deprecated use `CrmNotesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmNotesUpdateGlobals$outboundSchema; - /** @deprecated use `CrmNotesUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmNotesUpdateGlobals$Outbound; -} - -export function crmNotesUpdateGlobalsToJSON( - crmNotesUpdateGlobals: CrmNotesUpdateGlobals, -): string { - return JSON.stringify( - CrmNotesUpdateGlobals$outboundSchema.parse(crmNotesUpdateGlobals), - ); -} - -export function crmNotesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmNotesUpdateRequest$inboundSchema: z.ZodType< - CrmNotesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Note: components.NoteInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Note": "note", - }); -}); - /** @internal */ export type CrmNotesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmNotesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesUpdateRequest$ { - /** @deprecated use `CrmNotesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmNotesUpdateRequest$inboundSchema; - /** @deprecated use `CrmNotesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmNotesUpdateRequest$outboundSchema; - /** @deprecated use `CrmNotesUpdateRequest$Outbound` instead. */ - export type Outbound = CrmNotesUpdateRequest$Outbound; -} - export function crmNotesUpdateRequestToJSON( crmNotesUpdateRequest: CrmNotesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmNotesUpdateRequestToJSON( ); } -export function crmNotesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmNotesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmNotesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmNotesUpdateResponse$inboundSchema: z.ZodType< CrmNotesUpdateResponse, @@ -208,54 +110,6 @@ export const CrmNotesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmNotesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateNoteResponse?: components.UpdateNoteResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmNotesUpdateResponse$outboundSchema: z.ZodType< - CrmNotesUpdateResponse$Outbound, - z.ZodTypeDef, - CrmNotesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateNoteResponse: components.UpdateNoteResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateNoteResponse: "UpdateNoteResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmNotesUpdateResponse$ { - /** @deprecated use `CrmNotesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmNotesUpdateResponse$inboundSchema; - /** @deprecated use `CrmNotesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmNotesUpdateResponse$outboundSchema; - /** @deprecated use `CrmNotesUpdateResponse$Outbound` instead. */ - export type Outbound = CrmNotesUpdateResponse$Outbound; -} - -export function crmNotesUpdateResponseToJSON( - crmNotesUpdateResponse: CrmNotesUpdateResponse, -): string { - return JSON.stringify( - CrmNotesUpdateResponse$outboundSchema.parse(crmNotesUpdateResponse), - ); -} - export function crmNotesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmopportunitiesadd.ts b/src/models/operations/crmopportunitiesadd.ts index e578df7da..1f98b5ec5 100644 --- a/src/models/operations/crmopportunitiesadd.ts +++ b/src/models/operations/crmopportunitiesadd.ts @@ -52,80 +52,6 @@ export type CrmOpportunitiesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmOpportunitiesAddGlobals$inboundSchema: z.ZodType< - CrmOpportunitiesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmOpportunitiesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesAddGlobals$outboundSchema: z.ZodType< - CrmOpportunitiesAddGlobals$Outbound, - z.ZodTypeDef, - CrmOpportunitiesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAddGlobals$ { - /** @deprecated use `CrmOpportunitiesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAddGlobals$inboundSchema; - /** @deprecated use `CrmOpportunitiesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAddGlobals$outboundSchema; - /** @deprecated use `CrmOpportunitiesAddGlobals$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAddGlobals$Outbound; -} - -export function crmOpportunitiesAddGlobalsToJSON( - crmOpportunitiesAddGlobals: CrmOpportunitiesAddGlobals, -): string { - return JSON.stringify( - CrmOpportunitiesAddGlobals$outboundSchema.parse(crmOpportunitiesAddGlobals), - ); -} - -export function crmOpportunitiesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmOpportunitiesAddRequest$inboundSchema: z.ZodType< - CrmOpportunitiesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Opportunity: components.OpportunityInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Opportunity": "opportunity", - }); -}); - /** @internal */ export type CrmOpportunitiesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmOpportunitiesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAddRequest$ { - /** @deprecated use `CrmOpportunitiesAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAddRequest$inboundSchema; - /** @deprecated use `CrmOpportunitiesAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAddRequest$outboundSchema; - /** @deprecated use `CrmOpportunitiesAddRequest$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAddRequest$Outbound; -} - export function crmOpportunitiesAddRequestToJSON( crmOpportunitiesAddRequest: CrmOpportunitiesAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmOpportunitiesAddRequestToJSON( ); } -export function crmOpportunitiesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmOpportunitiesAddResponse$inboundSchema: z.ZodType< CrmOpportunitiesAddResponse, @@ -202,59 +105,6 @@ export const CrmOpportunitiesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmOpportunitiesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateOpportunityResponse?: - | components.CreateOpportunityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesAddResponse$outboundSchema: z.ZodType< - CrmOpportunitiesAddResponse$Outbound, - z.ZodTypeDef, - CrmOpportunitiesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createOpportunityResponse: components.CreateOpportunityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createOpportunityResponse: "CreateOpportunityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAddResponse$ { - /** @deprecated use `CrmOpportunitiesAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAddResponse$inboundSchema; - /** @deprecated use `CrmOpportunitiesAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAddResponse$outboundSchema; - /** @deprecated use `CrmOpportunitiesAddResponse$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAddResponse$Outbound; -} - -export function crmOpportunitiesAddResponseToJSON( - crmOpportunitiesAddResponse: CrmOpportunitiesAddResponse, -): string { - return JSON.stringify( - CrmOpportunitiesAddResponse$outboundSchema.parse( - crmOpportunitiesAddResponse, - ), - ); -} - export function crmOpportunitiesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmopportunitiesall.ts b/src/models/operations/crmopportunitiesall.ts index 9fa06e137..8d4861430 100644 --- a/src/models/operations/crmopportunitiesall.ts +++ b/src/models/operations/crmopportunitiesall.ts @@ -75,85 +75,6 @@ export type CrmOpportunitiesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmOpportunitiesAllGlobals$inboundSchema: z.ZodType< - CrmOpportunitiesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmOpportunitiesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesAllGlobals$outboundSchema: z.ZodType< - CrmOpportunitiesAllGlobals$Outbound, - z.ZodTypeDef, - CrmOpportunitiesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAllGlobals$ { - /** @deprecated use `CrmOpportunitiesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAllGlobals$inboundSchema; - /** @deprecated use `CrmOpportunitiesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAllGlobals$outboundSchema; - /** @deprecated use `CrmOpportunitiesAllGlobals$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAllGlobals$Outbound; -} - -export function crmOpportunitiesAllGlobalsToJSON( - crmOpportunitiesAllGlobals: CrmOpportunitiesAllGlobals, -): string { - return JSON.stringify( - CrmOpportunitiesAllGlobals$outboundSchema.parse(crmOpportunitiesAllGlobals), - ); -} - -export function crmOpportunitiesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmOpportunitiesAllRequest$inboundSchema: z.ZodType< - CrmOpportunitiesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.OpportunitiesFilter$inboundSchema.optional(), - sort: components.OpportunitiesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmOpportunitiesAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const CrmOpportunitiesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAllRequest$ { - /** @deprecated use `CrmOpportunitiesAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAllRequest$inboundSchema; - /** @deprecated use `CrmOpportunitiesAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAllRequest$outboundSchema; - /** @deprecated use `CrmOpportunitiesAllRequest$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAllRequest$Outbound; -} - export function crmOpportunitiesAllRequestToJSON( crmOpportunitiesAllRequest: CrmOpportunitiesAllRequest, ): string { @@ -211,16 +119,6 @@ export function crmOpportunitiesAllRequestToJSON( ); } -export function crmOpportunitiesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmOpportunitiesAllResponse$inboundSchema: z.ZodType< CrmOpportunitiesAllResponse, @@ -240,59 +138,6 @@ export const CrmOpportunitiesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmOpportunitiesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetOpportunitiesResponse?: - | components.GetOpportunitiesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesAllResponse$outboundSchema: z.ZodType< - CrmOpportunitiesAllResponse$Outbound, - z.ZodTypeDef, - CrmOpportunitiesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getOpportunitiesResponse: components.GetOpportunitiesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getOpportunitiesResponse: "GetOpportunitiesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesAllResponse$ { - /** @deprecated use `CrmOpportunitiesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesAllResponse$inboundSchema; - /** @deprecated use `CrmOpportunitiesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesAllResponse$outboundSchema; - /** @deprecated use `CrmOpportunitiesAllResponse$Outbound` instead. */ - export type Outbound = CrmOpportunitiesAllResponse$Outbound; -} - -export function crmOpportunitiesAllResponseToJSON( - crmOpportunitiesAllResponse: CrmOpportunitiesAllResponse, -): string { - return JSON.stringify( - CrmOpportunitiesAllResponse$outboundSchema.parse( - crmOpportunitiesAllResponse, - ), - ); -} - export function crmOpportunitiesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmopportunitiesdelete.ts b/src/models/operations/crmopportunitiesdelete.ts index f8d51d2fc..63aceab98 100644 --- a/src/models/operations/crmopportunitiesdelete.ts +++ b/src/models/operations/crmopportunitiesdelete.ts @@ -55,78 +55,6 @@ export type CrmOpportunitiesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmOpportunitiesDeleteGlobals$inboundSchema: z.ZodType< - CrmOpportunitiesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmOpportunitiesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesDeleteGlobals$outboundSchema: z.ZodType< - CrmOpportunitiesDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmOpportunitiesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesDeleteGlobals$ { - /** @deprecated use `CrmOpportunitiesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesDeleteGlobals$inboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesDeleteGlobals$outboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmOpportunitiesDeleteGlobals$Outbound; -} - -export function crmOpportunitiesDeleteGlobalsToJSON( - crmOpportunitiesDeleteGlobals: CrmOpportunitiesDeleteGlobals, -): string { - return JSON.stringify( - CrmOpportunitiesDeleteGlobals$outboundSchema.parse( - crmOpportunitiesDeleteGlobals, - ), - ); -} - -export function crmOpportunitiesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmOpportunitiesDeleteRequest$inboundSchema: z.ZodType< - CrmOpportunitiesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmOpportunitiesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const CrmOpportunitiesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesDeleteRequest$ { - /** @deprecated use `CrmOpportunitiesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesDeleteRequest$inboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesDeleteRequest$outboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteRequest$Outbound` instead. */ - export type Outbound = CrmOpportunitiesDeleteRequest$Outbound; -} - export function crmOpportunitiesDeleteRequestToJSON( crmOpportunitiesDeleteRequest: CrmOpportunitiesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function crmOpportunitiesDeleteRequestToJSON( ); } -export function crmOpportunitiesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmOpportunitiesDeleteResponse$inboundSchema: z.ZodType< CrmOpportunitiesDeleteResponse, @@ -201,59 +106,6 @@ export const CrmOpportunitiesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmOpportunitiesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteOpportunityResponse?: - | components.DeleteOpportunityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesDeleteResponse$outboundSchema: z.ZodType< - CrmOpportunitiesDeleteResponse$Outbound, - z.ZodTypeDef, - CrmOpportunitiesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteOpportunityResponse: components.DeleteOpportunityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteOpportunityResponse: "DeleteOpportunityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesDeleteResponse$ { - /** @deprecated use `CrmOpportunitiesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesDeleteResponse$inboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesDeleteResponse$outboundSchema; - /** @deprecated use `CrmOpportunitiesDeleteResponse$Outbound` instead. */ - export type Outbound = CrmOpportunitiesDeleteResponse$Outbound; -} - -export function crmOpportunitiesDeleteResponseToJSON( - crmOpportunitiesDeleteResponse: CrmOpportunitiesDeleteResponse, -): string { - return JSON.stringify( - CrmOpportunitiesDeleteResponse$outboundSchema.parse( - crmOpportunitiesDeleteResponse, - ), - ); -} - export function crmOpportunitiesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmopportunitiesone.ts b/src/models/operations/crmopportunitiesone.ts index 634f4784f..5bf087600 100644 --- a/src/models/operations/crmopportunitiesone.ts +++ b/src/models/operations/crmopportunitiesone.ts @@ -59,77 +59,6 @@ export type CrmOpportunitiesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmOpportunitiesOneGlobals$inboundSchema: z.ZodType< - CrmOpportunitiesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmOpportunitiesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesOneGlobals$outboundSchema: z.ZodType< - CrmOpportunitiesOneGlobals$Outbound, - z.ZodTypeDef, - CrmOpportunitiesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesOneGlobals$ { - /** @deprecated use `CrmOpportunitiesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesOneGlobals$inboundSchema; - /** @deprecated use `CrmOpportunitiesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesOneGlobals$outboundSchema; - /** @deprecated use `CrmOpportunitiesOneGlobals$Outbound` instead. */ - export type Outbound = CrmOpportunitiesOneGlobals$Outbound; -} - -export function crmOpportunitiesOneGlobalsToJSON( - crmOpportunitiesOneGlobals: CrmOpportunitiesOneGlobals, -): string { - return JSON.stringify( - CrmOpportunitiesOneGlobals$outboundSchema.parse(crmOpportunitiesOneGlobals), - ); -} - -export function crmOpportunitiesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmOpportunitiesOneRequest$inboundSchema: z.ZodType< - CrmOpportunitiesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmOpportunitiesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmOpportunitiesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesOneRequest$ { - /** @deprecated use `CrmOpportunitiesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesOneRequest$inboundSchema; - /** @deprecated use `CrmOpportunitiesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesOneRequest$outboundSchema; - /** @deprecated use `CrmOpportunitiesOneRequest$Outbound` instead. */ - export type Outbound = CrmOpportunitiesOneRequest$Outbound; -} - export function crmOpportunitiesOneRequestToJSON( crmOpportunitiesOneRequest: CrmOpportunitiesOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmOpportunitiesOneRequestToJSON( ); } -export function crmOpportunitiesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmOpportunitiesOneResponse$inboundSchema: z.ZodType< CrmOpportunitiesOneResponse, @@ -204,59 +110,6 @@ export const CrmOpportunitiesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmOpportunitiesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetOpportunityResponse?: - | components.GetOpportunityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesOneResponse$outboundSchema: z.ZodType< - CrmOpportunitiesOneResponse$Outbound, - z.ZodTypeDef, - CrmOpportunitiesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getOpportunityResponse: components.GetOpportunityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getOpportunityResponse: "GetOpportunityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesOneResponse$ { - /** @deprecated use `CrmOpportunitiesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesOneResponse$inboundSchema; - /** @deprecated use `CrmOpportunitiesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesOneResponse$outboundSchema; - /** @deprecated use `CrmOpportunitiesOneResponse$Outbound` instead. */ - export type Outbound = CrmOpportunitiesOneResponse$Outbound; -} - -export function crmOpportunitiesOneResponseToJSON( - crmOpportunitiesOneResponse: CrmOpportunitiesOneResponse, -): string { - return JSON.stringify( - CrmOpportunitiesOneResponse$outboundSchema.parse( - crmOpportunitiesOneResponse, - ), - ); -} - export function crmOpportunitiesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmopportunitiesupdate.ts b/src/models/operations/crmopportunitiesupdate.ts index 3713a4585..0b6d6f0e3 100644 --- a/src/models/operations/crmopportunitiesupdate.ts +++ b/src/models/operations/crmopportunitiesupdate.ts @@ -56,83 +56,6 @@ export type CrmOpportunitiesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmOpportunitiesUpdateGlobals$inboundSchema: z.ZodType< - CrmOpportunitiesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmOpportunitiesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesUpdateGlobals$outboundSchema: z.ZodType< - CrmOpportunitiesUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmOpportunitiesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesUpdateGlobals$ { - /** @deprecated use `CrmOpportunitiesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesUpdateGlobals$inboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesUpdateGlobals$outboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmOpportunitiesUpdateGlobals$Outbound; -} - -export function crmOpportunitiesUpdateGlobalsToJSON( - crmOpportunitiesUpdateGlobals: CrmOpportunitiesUpdateGlobals, -): string { - return JSON.stringify( - CrmOpportunitiesUpdateGlobals$outboundSchema.parse( - crmOpportunitiesUpdateGlobals, - ), - ); -} - -export function crmOpportunitiesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmOpportunitiesUpdateRequest$inboundSchema: z.ZodType< - CrmOpportunitiesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Opportunity: components.OpportunityInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Opportunity": "opportunity", - }); -}); - /** @internal */ export type CrmOpportunitiesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const CrmOpportunitiesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesUpdateRequest$ { - /** @deprecated use `CrmOpportunitiesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesUpdateRequest$inboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesUpdateRequest$outboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateRequest$Outbound` instead. */ - export type Outbound = CrmOpportunitiesUpdateRequest$Outbound; -} - export function crmOpportunitiesUpdateRequestToJSON( crmOpportunitiesUpdateRequest: CrmOpportunitiesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function crmOpportunitiesUpdateRequestToJSON( ); } -export function crmOpportunitiesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmOpportunitiesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmOpportunitiesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmOpportunitiesUpdateResponse$inboundSchema: z.ZodType< CrmOpportunitiesUpdateResponse, @@ -213,59 +113,6 @@ export const CrmOpportunitiesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmOpportunitiesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateOpportunityResponse?: - | components.UpdateOpportunityResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmOpportunitiesUpdateResponse$outboundSchema: z.ZodType< - CrmOpportunitiesUpdateResponse$Outbound, - z.ZodTypeDef, - CrmOpportunitiesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateOpportunityResponse: components.UpdateOpportunityResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateOpportunityResponse: "UpdateOpportunityResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmOpportunitiesUpdateResponse$ { - /** @deprecated use `CrmOpportunitiesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmOpportunitiesUpdateResponse$inboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmOpportunitiesUpdateResponse$outboundSchema; - /** @deprecated use `CrmOpportunitiesUpdateResponse$Outbound` instead. */ - export type Outbound = CrmOpportunitiesUpdateResponse$Outbound; -} - -export function crmOpportunitiesUpdateResponseToJSON( - crmOpportunitiesUpdateResponse: CrmOpportunitiesUpdateResponse, -): string { - return JSON.stringify( - CrmOpportunitiesUpdateResponse$outboundSchema.parse( - crmOpportunitiesUpdateResponse, - ), - ); -} - export function crmOpportunitiesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmpipelinesadd.ts b/src/models/operations/crmpipelinesadd.ts index 3286572cc..1a1fbc0f4 100644 --- a/src/models/operations/crmpipelinesadd.ts +++ b/src/models/operations/crmpipelinesadd.ts @@ -52,80 +52,6 @@ export type CrmPipelinesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmPipelinesAddGlobals$inboundSchema: z.ZodType< - CrmPipelinesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmPipelinesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmPipelinesAddGlobals$outboundSchema: z.ZodType< - CrmPipelinesAddGlobals$Outbound, - z.ZodTypeDef, - CrmPipelinesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAddGlobals$ { - /** @deprecated use `CrmPipelinesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAddGlobals$inboundSchema; - /** @deprecated use `CrmPipelinesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAddGlobals$outboundSchema; - /** @deprecated use `CrmPipelinesAddGlobals$Outbound` instead. */ - export type Outbound = CrmPipelinesAddGlobals$Outbound; -} - -export function crmPipelinesAddGlobalsToJSON( - crmPipelinesAddGlobals: CrmPipelinesAddGlobals, -): string { - return JSON.stringify( - CrmPipelinesAddGlobals$outboundSchema.parse(crmPipelinesAddGlobals), - ); -} - -export function crmPipelinesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmPipelinesAddRequest$inboundSchema: z.ZodType< - CrmPipelinesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Pipeline: components.PipelineInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Pipeline": "pipeline", - }); -}); - /** @internal */ export type CrmPipelinesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmPipelinesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAddRequest$ { - /** @deprecated use `CrmPipelinesAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAddRequest$inboundSchema; - /** @deprecated use `CrmPipelinesAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAddRequest$outboundSchema; - /** @deprecated use `CrmPipelinesAddRequest$Outbound` instead. */ - export type Outbound = CrmPipelinesAddRequest$Outbound; -} - export function crmPipelinesAddRequestToJSON( crmPipelinesAddRequest: CrmPipelinesAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmPipelinesAddRequestToJSON( ); } -export function crmPipelinesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmPipelinesAddResponse$inboundSchema: z.ZodType< CrmPipelinesAddResponse, @@ -202,57 +105,6 @@ export const CrmPipelinesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmPipelinesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreatePipelineResponse?: - | components.CreatePipelineResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmPipelinesAddResponse$outboundSchema: z.ZodType< - CrmPipelinesAddResponse$Outbound, - z.ZodTypeDef, - CrmPipelinesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createPipelineResponse: components.CreatePipelineResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createPipelineResponse: "CreatePipelineResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAddResponse$ { - /** @deprecated use `CrmPipelinesAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAddResponse$inboundSchema; - /** @deprecated use `CrmPipelinesAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAddResponse$outboundSchema; - /** @deprecated use `CrmPipelinesAddResponse$Outbound` instead. */ - export type Outbound = CrmPipelinesAddResponse$Outbound; -} - -export function crmPipelinesAddResponseToJSON( - crmPipelinesAddResponse: CrmPipelinesAddResponse, -): string { - return JSON.stringify( - CrmPipelinesAddResponse$outboundSchema.parse(crmPipelinesAddResponse), - ); -} - export function crmPipelinesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmpipelinesall.ts b/src/models/operations/crmpipelinesall.ts index 01d81174c..2124a5f80 100644 --- a/src/models/operations/crmpipelinesall.ts +++ b/src/models/operations/crmpipelinesall.ts @@ -67,83 +67,6 @@ export type CrmPipelinesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmPipelinesAllGlobals$inboundSchema: z.ZodType< - CrmPipelinesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmPipelinesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmPipelinesAllGlobals$outboundSchema: z.ZodType< - CrmPipelinesAllGlobals$Outbound, - z.ZodTypeDef, - CrmPipelinesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAllGlobals$ { - /** @deprecated use `CrmPipelinesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAllGlobals$inboundSchema; - /** @deprecated use `CrmPipelinesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAllGlobals$outboundSchema; - /** @deprecated use `CrmPipelinesAllGlobals$Outbound` instead. */ - export type Outbound = CrmPipelinesAllGlobals$Outbound; -} - -export function crmPipelinesAllGlobalsToJSON( - crmPipelinesAllGlobals: CrmPipelinesAllGlobals, -): string { - return JSON.stringify( - CrmPipelinesAllGlobals$outboundSchema.parse(crmPipelinesAllGlobals), - ); -} - -export function crmPipelinesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmPipelinesAllRequest$inboundSchema: z.ZodType< - CrmPipelinesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmPipelinesAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const CrmPipelinesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAllRequest$ { - /** @deprecated use `CrmPipelinesAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAllRequest$inboundSchema; - /** @deprecated use `CrmPipelinesAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAllRequest$outboundSchema; - /** @deprecated use `CrmPipelinesAllRequest$Outbound` instead. */ - export type Outbound = CrmPipelinesAllRequest$Outbound; -} - export function crmPipelinesAllRequestToJSON( crmPipelinesAllRequest: CrmPipelinesAllRequest, ): string { @@ -197,16 +107,6 @@ export function crmPipelinesAllRequestToJSON( ); } -export function crmPipelinesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmPipelinesAllResponse$inboundSchema: z.ZodType< CrmPipelinesAllResponse, @@ -226,55 +126,6 @@ export const CrmPipelinesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmPipelinesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPipelinesResponse?: components.GetPipelinesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmPipelinesAllResponse$outboundSchema: z.ZodType< - CrmPipelinesAllResponse$Outbound, - z.ZodTypeDef, - CrmPipelinesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPipelinesResponse: components.GetPipelinesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPipelinesResponse: "GetPipelinesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesAllResponse$ { - /** @deprecated use `CrmPipelinesAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesAllResponse$inboundSchema; - /** @deprecated use `CrmPipelinesAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesAllResponse$outboundSchema; - /** @deprecated use `CrmPipelinesAllResponse$Outbound` instead. */ - export type Outbound = CrmPipelinesAllResponse$Outbound; -} - -export function crmPipelinesAllResponseToJSON( - crmPipelinesAllResponse: CrmPipelinesAllResponse, -): string { - return JSON.stringify( - CrmPipelinesAllResponse$outboundSchema.parse(crmPipelinesAllResponse), - ); -} - export function crmPipelinesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmpipelinesdelete.ts b/src/models/operations/crmpipelinesdelete.ts index 111b35a56..6f662ae12 100644 --- a/src/models/operations/crmpipelinesdelete.ts +++ b/src/models/operations/crmpipelinesdelete.ts @@ -55,76 +55,6 @@ export type CrmPipelinesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmPipelinesDeleteGlobals$inboundSchema: z.ZodType< - CrmPipelinesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmPipelinesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmPipelinesDeleteGlobals$outboundSchema: z.ZodType< - CrmPipelinesDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmPipelinesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesDeleteGlobals$ { - /** @deprecated use `CrmPipelinesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesDeleteGlobals$inboundSchema; - /** @deprecated use `CrmPipelinesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesDeleteGlobals$outboundSchema; - /** @deprecated use `CrmPipelinesDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmPipelinesDeleteGlobals$Outbound; -} - -export function crmPipelinesDeleteGlobalsToJSON( - crmPipelinesDeleteGlobals: CrmPipelinesDeleteGlobals, -): string { - return JSON.stringify( - CrmPipelinesDeleteGlobals$outboundSchema.parse(crmPipelinesDeleteGlobals), - ); -} - -export function crmPipelinesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmPipelinesDeleteRequest$inboundSchema: z.ZodType< - CrmPipelinesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmPipelinesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmPipelinesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesDeleteRequest$ { - /** @deprecated use `CrmPipelinesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesDeleteRequest$inboundSchema; - /** @deprecated use `CrmPipelinesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesDeleteRequest$outboundSchema; - /** @deprecated use `CrmPipelinesDeleteRequest$Outbound` instead. */ - export type Outbound = CrmPipelinesDeleteRequest$Outbound; -} - export function crmPipelinesDeleteRequestToJSON( crmPipelinesDeleteRequest: CrmPipelinesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmPipelinesDeleteRequestToJSON( ); } -export function crmPipelinesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmPipelinesDeleteResponse$inboundSchema: z.ZodType< CrmPipelinesDeleteResponse, @@ -197,57 +104,6 @@ export const CrmPipelinesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmPipelinesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeletePipelineResponse?: - | components.DeletePipelineResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmPipelinesDeleteResponse$outboundSchema: z.ZodType< - CrmPipelinesDeleteResponse$Outbound, - z.ZodTypeDef, - CrmPipelinesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deletePipelineResponse: components.DeletePipelineResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deletePipelineResponse: "DeletePipelineResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesDeleteResponse$ { - /** @deprecated use `CrmPipelinesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesDeleteResponse$inboundSchema; - /** @deprecated use `CrmPipelinesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesDeleteResponse$outboundSchema; - /** @deprecated use `CrmPipelinesDeleteResponse$Outbound` instead. */ - export type Outbound = CrmPipelinesDeleteResponse$Outbound; -} - -export function crmPipelinesDeleteResponseToJSON( - crmPipelinesDeleteResponse: CrmPipelinesDeleteResponse, -): string { - return JSON.stringify( - CrmPipelinesDeleteResponse$outboundSchema.parse(crmPipelinesDeleteResponse), - ); -} - export function crmPipelinesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmpipelinesone.ts b/src/models/operations/crmpipelinesone.ts index 9b104f746..224f24ee5 100644 --- a/src/models/operations/crmpipelinesone.ts +++ b/src/models/operations/crmpipelinesone.ts @@ -59,77 +59,6 @@ export type CrmPipelinesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmPipelinesOneGlobals$inboundSchema: z.ZodType< - CrmPipelinesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmPipelinesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmPipelinesOneGlobals$outboundSchema: z.ZodType< - CrmPipelinesOneGlobals$Outbound, - z.ZodTypeDef, - CrmPipelinesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesOneGlobals$ { - /** @deprecated use `CrmPipelinesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesOneGlobals$inboundSchema; - /** @deprecated use `CrmPipelinesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesOneGlobals$outboundSchema; - /** @deprecated use `CrmPipelinesOneGlobals$Outbound` instead. */ - export type Outbound = CrmPipelinesOneGlobals$Outbound; -} - -export function crmPipelinesOneGlobalsToJSON( - crmPipelinesOneGlobals: CrmPipelinesOneGlobals, -): string { - return JSON.stringify( - CrmPipelinesOneGlobals$outboundSchema.parse(crmPipelinesOneGlobals), - ); -} - -export function crmPipelinesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmPipelinesOneRequest$inboundSchema: z.ZodType< - CrmPipelinesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmPipelinesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmPipelinesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesOneRequest$ { - /** @deprecated use `CrmPipelinesOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesOneRequest$inboundSchema; - /** @deprecated use `CrmPipelinesOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesOneRequest$outboundSchema; - /** @deprecated use `CrmPipelinesOneRequest$Outbound` instead. */ - export type Outbound = CrmPipelinesOneRequest$Outbound; -} - export function crmPipelinesOneRequestToJSON( crmPipelinesOneRequest: CrmPipelinesOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmPipelinesOneRequestToJSON( ); } -export function crmPipelinesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmPipelinesOneResponse$inboundSchema: z.ZodType< CrmPipelinesOneResponse, @@ -203,54 +109,6 @@ export const CrmPipelinesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmPipelinesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPipelineResponse?: components.GetPipelineResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmPipelinesOneResponse$outboundSchema: z.ZodType< - CrmPipelinesOneResponse$Outbound, - z.ZodTypeDef, - CrmPipelinesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPipelineResponse: components.GetPipelineResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPipelineResponse: "GetPipelineResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesOneResponse$ { - /** @deprecated use `CrmPipelinesOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesOneResponse$inboundSchema; - /** @deprecated use `CrmPipelinesOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesOneResponse$outboundSchema; - /** @deprecated use `CrmPipelinesOneResponse$Outbound` instead. */ - export type Outbound = CrmPipelinesOneResponse$Outbound; -} - -export function crmPipelinesOneResponseToJSON( - crmPipelinesOneResponse: CrmPipelinesOneResponse, -): string { - return JSON.stringify( - CrmPipelinesOneResponse$outboundSchema.parse(crmPipelinesOneResponse), - ); -} - export function crmPipelinesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmpipelinesupdate.ts b/src/models/operations/crmpipelinesupdate.ts index cb8493ab0..609cb9f7f 100644 --- a/src/models/operations/crmpipelinesupdate.ts +++ b/src/models/operations/crmpipelinesupdate.ts @@ -56,81 +56,6 @@ export type CrmPipelinesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmPipelinesUpdateGlobals$inboundSchema: z.ZodType< - CrmPipelinesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmPipelinesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmPipelinesUpdateGlobals$outboundSchema: z.ZodType< - CrmPipelinesUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmPipelinesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesUpdateGlobals$ { - /** @deprecated use `CrmPipelinesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesUpdateGlobals$inboundSchema; - /** @deprecated use `CrmPipelinesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesUpdateGlobals$outboundSchema; - /** @deprecated use `CrmPipelinesUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmPipelinesUpdateGlobals$Outbound; -} - -export function crmPipelinesUpdateGlobalsToJSON( - crmPipelinesUpdateGlobals: CrmPipelinesUpdateGlobals, -): string { - return JSON.stringify( - CrmPipelinesUpdateGlobals$outboundSchema.parse(crmPipelinesUpdateGlobals), - ); -} - -export function crmPipelinesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmPipelinesUpdateRequest$inboundSchema: z.ZodType< - CrmPipelinesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Pipeline: components.PipelineInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Pipeline": "pipeline", - }); -}); - /** @internal */ export type CrmPipelinesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmPipelinesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesUpdateRequest$ { - /** @deprecated use `CrmPipelinesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesUpdateRequest$inboundSchema; - /** @deprecated use `CrmPipelinesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesUpdateRequest$outboundSchema; - /** @deprecated use `CrmPipelinesUpdateRequest$Outbound` instead. */ - export type Outbound = CrmPipelinesUpdateRequest$Outbound; -} - export function crmPipelinesUpdateRequestToJSON( crmPipelinesUpdateRequest: CrmPipelinesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmPipelinesUpdateRequestToJSON( ); } -export function crmPipelinesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmPipelinesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmPipelinesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmPipelinesUpdateResponse$inboundSchema: z.ZodType< CrmPipelinesUpdateResponse, @@ -209,57 +111,6 @@ export const CrmPipelinesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmPipelinesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdatePipelineResponse?: - | components.UpdatePipelineResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmPipelinesUpdateResponse$outboundSchema: z.ZodType< - CrmPipelinesUpdateResponse$Outbound, - z.ZodTypeDef, - CrmPipelinesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updatePipelineResponse: components.UpdatePipelineResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updatePipelineResponse: "UpdatePipelineResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmPipelinesUpdateResponse$ { - /** @deprecated use `CrmPipelinesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmPipelinesUpdateResponse$inboundSchema; - /** @deprecated use `CrmPipelinesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmPipelinesUpdateResponse$outboundSchema; - /** @deprecated use `CrmPipelinesUpdateResponse$Outbound` instead. */ - export type Outbound = CrmPipelinesUpdateResponse$Outbound; -} - -export function crmPipelinesUpdateResponseToJSON( - crmPipelinesUpdateResponse: CrmPipelinesUpdateResponse, -): string { - return JSON.stringify( - CrmPipelinesUpdateResponse$outboundSchema.parse(crmPipelinesUpdateResponse), - ); -} - export function crmPipelinesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmusersadd.ts b/src/models/operations/crmusersadd.ts index 6a72b1ae4..2bc00959c 100644 --- a/src/models/operations/crmusersadd.ts +++ b/src/models/operations/crmusersadd.ts @@ -52,80 +52,6 @@ export type CrmUsersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmUsersAddGlobals$inboundSchema: z.ZodType< - CrmUsersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmUsersAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmUsersAddGlobals$outboundSchema: z.ZodType< - CrmUsersAddGlobals$Outbound, - z.ZodTypeDef, - CrmUsersAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAddGlobals$ { - /** @deprecated use `CrmUsersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAddGlobals$inboundSchema; - /** @deprecated use `CrmUsersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAddGlobals$outboundSchema; - /** @deprecated use `CrmUsersAddGlobals$Outbound` instead. */ - export type Outbound = CrmUsersAddGlobals$Outbound; -} - -export function crmUsersAddGlobalsToJSON( - crmUsersAddGlobals: CrmUsersAddGlobals, -): string { - return JSON.stringify( - CrmUsersAddGlobals$outboundSchema.parse(crmUsersAddGlobals), - ); -} - -export function crmUsersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmUsersAddRequest$inboundSchema: z.ZodType< - CrmUsersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - User: components.UserInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "User": "user", - }); -}); - /** @internal */ export type CrmUsersAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const CrmUsersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAddRequest$ { - /** @deprecated use `CrmUsersAddRequest$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAddRequest$inboundSchema; - /** @deprecated use `CrmUsersAddRequest$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAddRequest$outboundSchema; - /** @deprecated use `CrmUsersAddRequest$Outbound` instead. */ - export type Outbound = CrmUsersAddRequest$Outbound; -} - export function crmUsersAddRequestToJSON( crmUsersAddRequest: CrmUsersAddRequest, ): string { @@ -173,16 +86,6 @@ export function crmUsersAddRequestToJSON( ); } -export function crmUsersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersAddRequest' from JSON`, - ); -} - /** @internal */ export const CrmUsersAddResponse$inboundSchema: z.ZodType< CrmUsersAddResponse, @@ -201,54 +104,6 @@ export const CrmUsersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmUsersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateUserResponse?: components.CreateUserResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmUsersAddResponse$outboundSchema: z.ZodType< - CrmUsersAddResponse$Outbound, - z.ZodTypeDef, - CrmUsersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createUserResponse: components.CreateUserResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createUserResponse: "CreateUserResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAddResponse$ { - /** @deprecated use `CrmUsersAddResponse$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAddResponse$inboundSchema; - /** @deprecated use `CrmUsersAddResponse$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAddResponse$outboundSchema; - /** @deprecated use `CrmUsersAddResponse$Outbound` instead. */ - export type Outbound = CrmUsersAddResponse$Outbound; -} - -export function crmUsersAddResponseToJSON( - crmUsersAddResponse: CrmUsersAddResponse, -): string { - return JSON.stringify( - CrmUsersAddResponse$outboundSchema.parse(crmUsersAddResponse), - ); -} - export function crmUsersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmusersall.ts b/src/models/operations/crmusersall.ts index a4cd14f05..9198ec56e 100644 --- a/src/models/operations/crmusersall.ts +++ b/src/models/operations/crmusersall.ts @@ -67,83 +67,6 @@ export type CrmUsersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmUsersAllGlobals$inboundSchema: z.ZodType< - CrmUsersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmUsersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmUsersAllGlobals$outboundSchema: z.ZodType< - CrmUsersAllGlobals$Outbound, - z.ZodTypeDef, - CrmUsersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAllGlobals$ { - /** @deprecated use `CrmUsersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAllGlobals$inboundSchema; - /** @deprecated use `CrmUsersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAllGlobals$outboundSchema; - /** @deprecated use `CrmUsersAllGlobals$Outbound` instead. */ - export type Outbound = CrmUsersAllGlobals$Outbound; -} - -export function crmUsersAllGlobalsToJSON( - crmUsersAllGlobals: CrmUsersAllGlobals, -): string { - return JSON.stringify( - CrmUsersAllGlobals$outboundSchema.parse(crmUsersAllGlobals), - ); -} - -export function crmUsersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmUsersAllRequest$inboundSchema: z.ZodType< - CrmUsersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type CrmUsersAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const CrmUsersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAllRequest$ { - /** @deprecated use `CrmUsersAllRequest$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAllRequest$inboundSchema; - /** @deprecated use `CrmUsersAllRequest$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAllRequest$outboundSchema; - /** @deprecated use `CrmUsersAllRequest$Outbound` instead. */ - export type Outbound = CrmUsersAllRequest$Outbound; -} - export function crmUsersAllRequestToJSON( crmUsersAllRequest: CrmUsersAllRequest, ): string { @@ -197,16 +107,6 @@ export function crmUsersAllRequestToJSON( ); } -export function crmUsersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersAllRequest' from JSON`, - ); -} - /** @internal */ export const CrmUsersAllResponse$inboundSchema: z.ZodType< CrmUsersAllResponse, @@ -225,54 +125,6 @@ export const CrmUsersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmUsersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetUsersResponse?: components.GetUsersResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmUsersAllResponse$outboundSchema: z.ZodType< - CrmUsersAllResponse$Outbound, - z.ZodTypeDef, - CrmUsersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getUsersResponse: components.GetUsersResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getUsersResponse: "GetUsersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersAllResponse$ { - /** @deprecated use `CrmUsersAllResponse$inboundSchema` instead. */ - export const inboundSchema = CrmUsersAllResponse$inboundSchema; - /** @deprecated use `CrmUsersAllResponse$outboundSchema` instead. */ - export const outboundSchema = CrmUsersAllResponse$outboundSchema; - /** @deprecated use `CrmUsersAllResponse$Outbound` instead. */ - export type Outbound = CrmUsersAllResponse$Outbound; -} - -export function crmUsersAllResponseToJSON( - crmUsersAllResponse: CrmUsersAllResponse, -): string { - return JSON.stringify( - CrmUsersAllResponse$outboundSchema.parse(crmUsersAllResponse), - ); -} - export function crmUsersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmusersdelete.ts b/src/models/operations/crmusersdelete.ts index 1a39effc1..322c65534 100644 --- a/src/models/operations/crmusersdelete.ts +++ b/src/models/operations/crmusersdelete.ts @@ -55,76 +55,6 @@ export type CrmUsersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmUsersDeleteGlobals$inboundSchema: z.ZodType< - CrmUsersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmUsersDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmUsersDeleteGlobals$outboundSchema: z.ZodType< - CrmUsersDeleteGlobals$Outbound, - z.ZodTypeDef, - CrmUsersDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersDeleteGlobals$ { - /** @deprecated use `CrmUsersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmUsersDeleteGlobals$inboundSchema; - /** @deprecated use `CrmUsersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmUsersDeleteGlobals$outboundSchema; - /** @deprecated use `CrmUsersDeleteGlobals$Outbound` instead. */ - export type Outbound = CrmUsersDeleteGlobals$Outbound; -} - -export function crmUsersDeleteGlobalsToJSON( - crmUsersDeleteGlobals: CrmUsersDeleteGlobals, -): string { - return JSON.stringify( - CrmUsersDeleteGlobals$outboundSchema.parse(crmUsersDeleteGlobals), - ); -} - -export function crmUsersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmUsersDeleteRequest$inboundSchema: z.ZodType< - CrmUsersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type CrmUsersDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const CrmUsersDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersDeleteRequest$ { - /** @deprecated use `CrmUsersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = CrmUsersDeleteRequest$inboundSchema; - /** @deprecated use `CrmUsersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = CrmUsersDeleteRequest$outboundSchema; - /** @deprecated use `CrmUsersDeleteRequest$Outbound` instead. */ - export type Outbound = CrmUsersDeleteRequest$Outbound; -} - export function crmUsersDeleteRequestToJSON( crmUsersDeleteRequest: CrmUsersDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function crmUsersDeleteRequestToJSON( ); } -export function crmUsersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const CrmUsersDeleteResponse$inboundSchema: z.ZodType< CrmUsersDeleteResponse, @@ -196,54 +103,6 @@ export const CrmUsersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmUsersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteUserResponse?: components.DeleteUserResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmUsersDeleteResponse$outboundSchema: z.ZodType< - CrmUsersDeleteResponse$Outbound, - z.ZodTypeDef, - CrmUsersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteUserResponse: components.DeleteUserResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteUserResponse: "DeleteUserResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersDeleteResponse$ { - /** @deprecated use `CrmUsersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = CrmUsersDeleteResponse$inboundSchema; - /** @deprecated use `CrmUsersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = CrmUsersDeleteResponse$outboundSchema; - /** @deprecated use `CrmUsersDeleteResponse$Outbound` instead. */ - export type Outbound = CrmUsersDeleteResponse$Outbound; -} - -export function crmUsersDeleteResponseToJSON( - crmUsersDeleteResponse: CrmUsersDeleteResponse, -): string { - return JSON.stringify( - CrmUsersDeleteResponse$outboundSchema.parse(crmUsersDeleteResponse), - ); -} - export function crmUsersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmusersone.ts b/src/models/operations/crmusersone.ts index 52e7fe846..79942889c 100644 --- a/src/models/operations/crmusersone.ts +++ b/src/models/operations/crmusersone.ts @@ -59,77 +59,6 @@ export type CrmUsersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmUsersOneGlobals$inboundSchema: z.ZodType< - CrmUsersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmUsersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmUsersOneGlobals$outboundSchema: z.ZodType< - CrmUsersOneGlobals$Outbound, - z.ZodTypeDef, - CrmUsersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersOneGlobals$ { - /** @deprecated use `CrmUsersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmUsersOneGlobals$inboundSchema; - /** @deprecated use `CrmUsersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmUsersOneGlobals$outboundSchema; - /** @deprecated use `CrmUsersOneGlobals$Outbound` instead. */ - export type Outbound = CrmUsersOneGlobals$Outbound; -} - -export function crmUsersOneGlobalsToJSON( - crmUsersOneGlobals: CrmUsersOneGlobals, -): string { - return JSON.stringify( - CrmUsersOneGlobals$outboundSchema.parse(crmUsersOneGlobals), - ); -} - -export function crmUsersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmUsersOneRequest$inboundSchema: z.ZodType< - CrmUsersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type CrmUsersOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const CrmUsersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersOneRequest$ { - /** @deprecated use `CrmUsersOneRequest$inboundSchema` instead. */ - export const inboundSchema = CrmUsersOneRequest$inboundSchema; - /** @deprecated use `CrmUsersOneRequest$outboundSchema` instead. */ - export const outboundSchema = CrmUsersOneRequest$outboundSchema; - /** @deprecated use `CrmUsersOneRequest$Outbound` instead. */ - export type Outbound = CrmUsersOneRequest$Outbound; -} - export function crmUsersOneRequestToJSON( crmUsersOneRequest: CrmUsersOneRequest, ): string { @@ -175,16 +91,6 @@ export function crmUsersOneRequestToJSON( ); } -export function crmUsersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersOneRequest' from JSON`, - ); -} - /** @internal */ export const CrmUsersOneResponse$inboundSchema: z.ZodType< CrmUsersOneResponse, @@ -203,54 +109,6 @@ export const CrmUsersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmUsersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetUserResponse?: components.GetUserResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmUsersOneResponse$outboundSchema: z.ZodType< - CrmUsersOneResponse$Outbound, - z.ZodTypeDef, - CrmUsersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getUserResponse: components.GetUserResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getUserResponse: "GetUserResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersOneResponse$ { - /** @deprecated use `CrmUsersOneResponse$inboundSchema` instead. */ - export const inboundSchema = CrmUsersOneResponse$inboundSchema; - /** @deprecated use `CrmUsersOneResponse$outboundSchema` instead. */ - export const outboundSchema = CrmUsersOneResponse$outboundSchema; - /** @deprecated use `CrmUsersOneResponse$Outbound` instead. */ - export type Outbound = CrmUsersOneResponse$Outbound; -} - -export function crmUsersOneResponseToJSON( - crmUsersOneResponse: CrmUsersOneResponse, -): string { - return JSON.stringify( - CrmUsersOneResponse$outboundSchema.parse(crmUsersOneResponse), - ); -} - export function crmUsersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/crmusersupdate.ts b/src/models/operations/crmusersupdate.ts index c1103af95..4ad5b8d96 100644 --- a/src/models/operations/crmusersupdate.ts +++ b/src/models/operations/crmusersupdate.ts @@ -56,81 +56,6 @@ export type CrmUsersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const CrmUsersUpdateGlobals$inboundSchema: z.ZodType< - CrmUsersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type CrmUsersUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const CrmUsersUpdateGlobals$outboundSchema: z.ZodType< - CrmUsersUpdateGlobals$Outbound, - z.ZodTypeDef, - CrmUsersUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersUpdateGlobals$ { - /** @deprecated use `CrmUsersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = CrmUsersUpdateGlobals$inboundSchema; - /** @deprecated use `CrmUsersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = CrmUsersUpdateGlobals$outboundSchema; - /** @deprecated use `CrmUsersUpdateGlobals$Outbound` instead. */ - export type Outbound = CrmUsersUpdateGlobals$Outbound; -} - -export function crmUsersUpdateGlobalsToJSON( - crmUsersUpdateGlobals: CrmUsersUpdateGlobals, -): string { - return JSON.stringify( - CrmUsersUpdateGlobals$outboundSchema.parse(crmUsersUpdateGlobals), - ); -} - -export function crmUsersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const CrmUsersUpdateRequest$inboundSchema: z.ZodType< - CrmUsersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - User: components.UserInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "User": "user", - }); -}); - /** @internal */ export type CrmUsersUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const CrmUsersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersUpdateRequest$ { - /** @deprecated use `CrmUsersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CrmUsersUpdateRequest$inboundSchema; - /** @deprecated use `CrmUsersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CrmUsersUpdateRequest$outboundSchema; - /** @deprecated use `CrmUsersUpdateRequest$Outbound` instead. */ - export type Outbound = CrmUsersUpdateRequest$Outbound; -} - export function crmUsersUpdateRequestToJSON( crmUsersUpdateRequest: CrmUsersUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function crmUsersUpdateRequestToJSON( ); } -export function crmUsersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CrmUsersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CrmUsersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const CrmUsersUpdateResponse$inboundSchema: z.ZodType< CrmUsersUpdateResponse, @@ -208,54 +110,6 @@ export const CrmUsersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type CrmUsersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateUserResponse?: components.UpdateUserResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const CrmUsersUpdateResponse$outboundSchema: z.ZodType< - CrmUsersUpdateResponse$Outbound, - z.ZodTypeDef, - CrmUsersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateUserResponse: components.UpdateUserResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateUserResponse: "UpdateUserResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CrmUsersUpdateResponse$ { - /** @deprecated use `CrmUsersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = CrmUsersUpdateResponse$inboundSchema; - /** @deprecated use `CrmUsersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = CrmUsersUpdateResponse$outboundSchema; - /** @deprecated use `CrmUsersUpdateResponse$Outbound` instead. */ - export type Outbound = CrmUsersUpdateResponse$Outbound; -} - -export function crmUsersUpdateResponseToJSON( - crmUsersUpdateResponse: CrmUsersUpdateResponse, -): string { - return JSON.stringify( - CrmUsersUpdateResponse$outboundSchema.parse(crmUsersUpdateResponse), - ); -} - export function crmUsersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommercecustomersall.ts b/src/models/operations/ecommercecustomersall.ts index 2755c590f..240c5c3b7 100644 --- a/src/models/operations/ecommercecustomersall.ts +++ b/src/models/operations/ecommercecustomersall.ts @@ -73,86 +73,6 @@ export type EcommerceCustomersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceCustomersAllGlobals$inboundSchema: z.ZodType< - EcommerceCustomersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceCustomersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceCustomersAllGlobals$outboundSchema: z.ZodType< - EcommerceCustomersAllGlobals$Outbound, - z.ZodTypeDef, - EcommerceCustomersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersAllGlobals$ { - /** @deprecated use `EcommerceCustomersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersAllGlobals$inboundSchema; - /** @deprecated use `EcommerceCustomersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersAllGlobals$outboundSchema; - /** @deprecated use `EcommerceCustomersAllGlobals$Outbound` instead. */ - export type Outbound = EcommerceCustomersAllGlobals$Outbound; -} - -export function ecommerceCustomersAllGlobalsToJSON( - ecommerceCustomersAllGlobals: EcommerceCustomersAllGlobals, -): string { - return JSON.stringify( - EcommerceCustomersAllGlobals$outboundSchema.parse( - ecommerceCustomersAllGlobals, - ), - ); -} - -export function ecommerceCustomersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceCustomersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceCustomersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceCustomersAllRequest$inboundSchema: z.ZodType< - EcommerceCustomersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.EcommerceCustomersFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type EcommerceCustomersAllRequest$Outbound = { raw: boolean; @@ -187,19 +107,6 @@ export const EcommerceCustomersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersAllRequest$ { - /** @deprecated use `EcommerceCustomersAllRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersAllRequest$inboundSchema; - /** @deprecated use `EcommerceCustomersAllRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersAllRequest$outboundSchema; - /** @deprecated use `EcommerceCustomersAllRequest$Outbound` instead. */ - export type Outbound = EcommerceCustomersAllRequest$Outbound; -} - export function ecommerceCustomersAllRequestToJSON( ecommerceCustomersAllRequest: EcommerceCustomersAllRequest, ): string { @@ -210,16 +117,6 @@ export function ecommerceCustomersAllRequestToJSON( ); } -export function ecommerceCustomersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceCustomersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceCustomersAllRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceCustomersAllResponse$inboundSchema: z.ZodType< EcommerceCustomersAllResponse, @@ -239,59 +136,6 @@ export const EcommerceCustomersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceCustomersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEcommerceCustomersResponse?: - | components.GetEcommerceCustomersResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceCustomersAllResponse$outboundSchema: z.ZodType< - EcommerceCustomersAllResponse$Outbound, - z.ZodTypeDef, - EcommerceCustomersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEcommerceCustomersResponse: components - .GetEcommerceCustomersResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEcommerceCustomersResponse: "GetEcommerceCustomersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersAllResponse$ { - /** @deprecated use `EcommerceCustomersAllResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersAllResponse$inboundSchema; - /** @deprecated use `EcommerceCustomersAllResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersAllResponse$outboundSchema; - /** @deprecated use `EcommerceCustomersAllResponse$Outbound` instead. */ - export type Outbound = EcommerceCustomersAllResponse$Outbound; -} - -export function ecommerceCustomersAllResponseToJSON( - ecommerceCustomersAllResponse: EcommerceCustomersAllResponse, -): string { - return JSON.stringify( - EcommerceCustomersAllResponse$outboundSchema.parse( - ecommerceCustomersAllResponse, - ), - ); -} - export function ecommerceCustomersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommercecustomersone.ts b/src/models/operations/ecommercecustomersone.ts index a8239406c..a86498835 100644 --- a/src/models/operations/ecommercecustomersone.ts +++ b/src/models/operations/ecommercecustomersone.ts @@ -61,79 +61,6 @@ export type EcommerceCustomersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceCustomersOneGlobals$inboundSchema: z.ZodType< - EcommerceCustomersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceCustomersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceCustomersOneGlobals$outboundSchema: z.ZodType< - EcommerceCustomersOneGlobals$Outbound, - z.ZodTypeDef, - EcommerceCustomersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersOneGlobals$ { - /** @deprecated use `EcommerceCustomersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersOneGlobals$inboundSchema; - /** @deprecated use `EcommerceCustomersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersOneGlobals$outboundSchema; - /** @deprecated use `EcommerceCustomersOneGlobals$Outbound` instead. */ - export type Outbound = EcommerceCustomersOneGlobals$Outbound; -} - -export function ecommerceCustomersOneGlobalsToJSON( - ecommerceCustomersOneGlobals: EcommerceCustomersOneGlobals, -): string { - return JSON.stringify( - EcommerceCustomersOneGlobals$outboundSchema.parse( - ecommerceCustomersOneGlobals, - ), - ); -} - -export function ecommerceCustomersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceCustomersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceCustomersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceCustomersOneRequest$inboundSchema: z.ZodType< - EcommerceCustomersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type EcommerceCustomersOneRequest$Outbound = { id: string; @@ -158,19 +85,6 @@ export const EcommerceCustomersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersOneRequest$ { - /** @deprecated use `EcommerceCustomersOneRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersOneRequest$inboundSchema; - /** @deprecated use `EcommerceCustomersOneRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersOneRequest$outboundSchema; - /** @deprecated use `EcommerceCustomersOneRequest$Outbound` instead. */ - export type Outbound = EcommerceCustomersOneRequest$Outbound; -} - export function ecommerceCustomersOneRequestToJSON( ecommerceCustomersOneRequest: EcommerceCustomersOneRequest, ): string { @@ -181,16 +95,6 @@ export function ecommerceCustomersOneRequestToJSON( ); } -export function ecommerceCustomersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceCustomersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceCustomersOneRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceCustomersOneResponse$inboundSchema: z.ZodType< EcommerceCustomersOneResponse, @@ -210,59 +114,6 @@ export const EcommerceCustomersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceCustomersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEcommerceCustomerResponse?: - | components.GetEcommerceCustomerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceCustomersOneResponse$outboundSchema: z.ZodType< - EcommerceCustomersOneResponse$Outbound, - z.ZodTypeDef, - EcommerceCustomersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEcommerceCustomerResponse: components - .GetEcommerceCustomerResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEcommerceCustomerResponse: "GetEcommerceCustomerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceCustomersOneResponse$ { - /** @deprecated use `EcommerceCustomersOneResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceCustomersOneResponse$inboundSchema; - /** @deprecated use `EcommerceCustomersOneResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceCustomersOneResponse$outboundSchema; - /** @deprecated use `EcommerceCustomersOneResponse$Outbound` instead. */ - export type Outbound = EcommerceCustomersOneResponse$Outbound; -} - -export function ecommerceCustomersOneResponseToJSON( - ecommerceCustomersOneResponse: EcommerceCustomersOneResponse, -): string { - return JSON.stringify( - EcommerceCustomersOneResponse$outboundSchema.parse( - ecommerceCustomersOneResponse, - ), - ); -} - export function ecommerceCustomersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommerceordersall.ts b/src/models/operations/ecommerceordersall.ts index 107878af9..d477a5cc4 100644 --- a/src/models/operations/ecommerceordersall.ts +++ b/src/models/operations/ecommerceordersall.ts @@ -77,85 +77,6 @@ export type EcommerceOrdersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceOrdersAllGlobals$inboundSchema: z.ZodType< - EcommerceOrdersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceOrdersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceOrdersAllGlobals$outboundSchema: z.ZodType< - EcommerceOrdersAllGlobals$Outbound, - z.ZodTypeDef, - EcommerceOrdersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersAllGlobals$ { - /** @deprecated use `EcommerceOrdersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersAllGlobals$inboundSchema; - /** @deprecated use `EcommerceOrdersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersAllGlobals$outboundSchema; - /** @deprecated use `EcommerceOrdersAllGlobals$Outbound` instead. */ - export type Outbound = EcommerceOrdersAllGlobals$Outbound; -} - -export function ecommerceOrdersAllGlobalsToJSON( - ecommerceOrdersAllGlobals: EcommerceOrdersAllGlobals, -): string { - return JSON.stringify( - EcommerceOrdersAllGlobals$outboundSchema.parse(ecommerceOrdersAllGlobals), - ); -} - -export function ecommerceOrdersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceOrdersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceOrdersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceOrdersAllRequest$inboundSchema: z.ZodType< - EcommerceOrdersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.EcommerceOrdersFilter$inboundSchema.optional(), - sort: components.OrdersSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type EcommerceOrdersAllRequest$Outbound = { raw: boolean; @@ -192,19 +113,6 @@ export const EcommerceOrdersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersAllRequest$ { - /** @deprecated use `EcommerceOrdersAllRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersAllRequest$inboundSchema; - /** @deprecated use `EcommerceOrdersAllRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersAllRequest$outboundSchema; - /** @deprecated use `EcommerceOrdersAllRequest$Outbound` instead. */ - export type Outbound = EcommerceOrdersAllRequest$Outbound; -} - export function ecommerceOrdersAllRequestToJSON( ecommerceOrdersAllRequest: EcommerceOrdersAllRequest, ): string { @@ -213,16 +121,6 @@ export function ecommerceOrdersAllRequestToJSON( ); } -export function ecommerceOrdersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceOrdersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceOrdersAllRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceOrdersAllResponse$inboundSchema: z.ZodType< EcommerceOrdersAllResponse, @@ -242,57 +140,6 @@ export const EcommerceOrdersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceOrdersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEcommerceOrdersResponse?: - | components.GetEcommerceOrdersResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceOrdersAllResponse$outboundSchema: z.ZodType< - EcommerceOrdersAllResponse$Outbound, - z.ZodTypeDef, - EcommerceOrdersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEcommerceOrdersResponse: components - .GetEcommerceOrdersResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEcommerceOrdersResponse: "GetEcommerceOrdersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersAllResponse$ { - /** @deprecated use `EcommerceOrdersAllResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersAllResponse$inboundSchema; - /** @deprecated use `EcommerceOrdersAllResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersAllResponse$outboundSchema; - /** @deprecated use `EcommerceOrdersAllResponse$Outbound` instead. */ - export type Outbound = EcommerceOrdersAllResponse$Outbound; -} - -export function ecommerceOrdersAllResponseToJSON( - ecommerceOrdersAllResponse: EcommerceOrdersAllResponse, -): string { - return JSON.stringify( - EcommerceOrdersAllResponse$outboundSchema.parse(ecommerceOrdersAllResponse), - ); -} - export function ecommerceOrdersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommerceordersone.ts b/src/models/operations/ecommerceordersone.ts index aee332703..57b3478fe 100644 --- a/src/models/operations/ecommerceordersone.ts +++ b/src/models/operations/ecommerceordersone.ts @@ -59,77 +59,6 @@ export type EcommerceOrdersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceOrdersOneGlobals$inboundSchema: z.ZodType< - EcommerceOrdersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceOrdersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceOrdersOneGlobals$outboundSchema: z.ZodType< - EcommerceOrdersOneGlobals$Outbound, - z.ZodTypeDef, - EcommerceOrdersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersOneGlobals$ { - /** @deprecated use `EcommerceOrdersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersOneGlobals$inboundSchema; - /** @deprecated use `EcommerceOrdersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersOneGlobals$outboundSchema; - /** @deprecated use `EcommerceOrdersOneGlobals$Outbound` instead. */ - export type Outbound = EcommerceOrdersOneGlobals$Outbound; -} - -export function ecommerceOrdersOneGlobalsToJSON( - ecommerceOrdersOneGlobals: EcommerceOrdersOneGlobals, -): string { - return JSON.stringify( - EcommerceOrdersOneGlobals$outboundSchema.parse(ecommerceOrdersOneGlobals), - ); -} - -export function ecommerceOrdersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceOrdersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceOrdersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceOrdersOneRequest$inboundSchema: z.ZodType< - EcommerceOrdersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type EcommerceOrdersOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const EcommerceOrdersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersOneRequest$ { - /** @deprecated use `EcommerceOrdersOneRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersOneRequest$inboundSchema; - /** @deprecated use `EcommerceOrdersOneRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersOneRequest$outboundSchema; - /** @deprecated use `EcommerceOrdersOneRequest$Outbound` instead. */ - export type Outbound = EcommerceOrdersOneRequest$Outbound; -} - export function ecommerceOrdersOneRequestToJSON( ecommerceOrdersOneRequest: EcommerceOrdersOneRequest, ): string { @@ -175,16 +91,6 @@ export function ecommerceOrdersOneRequestToJSON( ); } -export function ecommerceOrdersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceOrdersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceOrdersOneRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceOrdersOneResponse$inboundSchema: z.ZodType< EcommerceOrdersOneResponse, @@ -204,57 +110,6 @@ export const EcommerceOrdersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceOrdersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEcommerceOrderResponse?: - | components.GetEcommerceOrderResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceOrdersOneResponse$outboundSchema: z.ZodType< - EcommerceOrdersOneResponse$Outbound, - z.ZodTypeDef, - EcommerceOrdersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEcommerceOrderResponse: components.GetEcommerceOrderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEcommerceOrderResponse: "GetEcommerceOrderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceOrdersOneResponse$ { - /** @deprecated use `EcommerceOrdersOneResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceOrdersOneResponse$inboundSchema; - /** @deprecated use `EcommerceOrdersOneResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceOrdersOneResponse$outboundSchema; - /** @deprecated use `EcommerceOrdersOneResponse$Outbound` instead. */ - export type Outbound = EcommerceOrdersOneResponse$Outbound; -} - -export function ecommerceOrdersOneResponseToJSON( - ecommerceOrdersOneResponse: EcommerceOrdersOneResponse, -): string { - return JSON.stringify( - EcommerceOrdersOneResponse$outboundSchema.parse(ecommerceOrdersOneResponse), - ); -} - export function ecommerceOrdersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommerceproductsall.ts b/src/models/operations/ecommerceproductsall.ts index 97ac80dfe..3313e0722 100644 --- a/src/models/operations/ecommerceproductsall.ts +++ b/src/models/operations/ecommerceproductsall.ts @@ -71,86 +71,6 @@ export type EcommerceProductsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceProductsAllGlobals$inboundSchema: z.ZodType< - EcommerceProductsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceProductsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceProductsAllGlobals$outboundSchema: z.ZodType< - EcommerceProductsAllGlobals$Outbound, - z.ZodTypeDef, - EcommerceProductsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsAllGlobals$ { - /** @deprecated use `EcommerceProductsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsAllGlobals$inboundSchema; - /** @deprecated use `EcommerceProductsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsAllGlobals$outboundSchema; - /** @deprecated use `EcommerceProductsAllGlobals$Outbound` instead. */ - export type Outbound = EcommerceProductsAllGlobals$Outbound; -} - -export function ecommerceProductsAllGlobalsToJSON( - ecommerceProductsAllGlobals: EcommerceProductsAllGlobals, -): string { - return JSON.stringify( - EcommerceProductsAllGlobals$outboundSchema.parse( - ecommerceProductsAllGlobals, - ), - ); -} - -export function ecommerceProductsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceProductsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceProductsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceProductsAllRequest$inboundSchema: z.ZodType< - EcommerceProductsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), - filter: components.EcommerceProductsFilter$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type EcommerceProductsAllRequest$Outbound = { raw: boolean; @@ -185,19 +105,6 @@ export const EcommerceProductsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsAllRequest$ { - /** @deprecated use `EcommerceProductsAllRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsAllRequest$inboundSchema; - /** @deprecated use `EcommerceProductsAllRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsAllRequest$outboundSchema; - /** @deprecated use `EcommerceProductsAllRequest$Outbound` instead. */ - export type Outbound = EcommerceProductsAllRequest$Outbound; -} - export function ecommerceProductsAllRequestToJSON( ecommerceProductsAllRequest: EcommerceProductsAllRequest, ): string { @@ -208,16 +115,6 @@ export function ecommerceProductsAllRequestToJSON( ); } -export function ecommerceProductsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceProductsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceProductsAllRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceProductsAllResponse$inboundSchema: z.ZodType< EcommerceProductsAllResponse, @@ -236,56 +133,6 @@ export const EcommerceProductsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceProductsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetProductsResponse?: components.GetProductsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceProductsAllResponse$outboundSchema: z.ZodType< - EcommerceProductsAllResponse$Outbound, - z.ZodTypeDef, - EcommerceProductsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getProductsResponse: components.GetProductsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getProductsResponse: "GetProductsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsAllResponse$ { - /** @deprecated use `EcommerceProductsAllResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsAllResponse$inboundSchema; - /** @deprecated use `EcommerceProductsAllResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsAllResponse$outboundSchema; - /** @deprecated use `EcommerceProductsAllResponse$Outbound` instead. */ - export type Outbound = EcommerceProductsAllResponse$Outbound; -} - -export function ecommerceProductsAllResponseToJSON( - ecommerceProductsAllResponse: EcommerceProductsAllResponse, -): string { - return JSON.stringify( - EcommerceProductsAllResponse$outboundSchema.parse( - ecommerceProductsAllResponse, - ), - ); -} - export function ecommerceProductsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommerceproductsone.ts b/src/models/operations/ecommerceproductsone.ts index ce5976a2a..cefecda9a 100644 --- a/src/models/operations/ecommerceproductsone.ts +++ b/src/models/operations/ecommerceproductsone.ts @@ -59,79 +59,6 @@ export type EcommerceProductsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceProductsOneGlobals$inboundSchema: z.ZodType< - EcommerceProductsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceProductsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceProductsOneGlobals$outboundSchema: z.ZodType< - EcommerceProductsOneGlobals$Outbound, - z.ZodTypeDef, - EcommerceProductsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsOneGlobals$ { - /** @deprecated use `EcommerceProductsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsOneGlobals$inboundSchema; - /** @deprecated use `EcommerceProductsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsOneGlobals$outboundSchema; - /** @deprecated use `EcommerceProductsOneGlobals$Outbound` instead. */ - export type Outbound = EcommerceProductsOneGlobals$Outbound; -} - -export function ecommerceProductsOneGlobalsToJSON( - ecommerceProductsOneGlobals: EcommerceProductsOneGlobals, -): string { - return JSON.stringify( - EcommerceProductsOneGlobals$outboundSchema.parse( - ecommerceProductsOneGlobals, - ), - ); -} - -export function ecommerceProductsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceProductsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceProductsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceProductsOneRequest$inboundSchema: z.ZodType< - EcommerceProductsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type EcommerceProductsOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const EcommerceProductsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsOneRequest$ { - /** @deprecated use `EcommerceProductsOneRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsOneRequest$inboundSchema; - /** @deprecated use `EcommerceProductsOneRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsOneRequest$outboundSchema; - /** @deprecated use `EcommerceProductsOneRequest$Outbound` instead. */ - export type Outbound = EcommerceProductsOneRequest$Outbound; -} - export function ecommerceProductsOneRequestToJSON( ecommerceProductsOneRequest: EcommerceProductsOneRequest, ): string { @@ -179,16 +93,6 @@ export function ecommerceProductsOneRequestToJSON( ); } -export function ecommerceProductsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceProductsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceProductsOneRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceProductsOneResponse$inboundSchema: z.ZodType< EcommerceProductsOneResponse, @@ -207,56 +111,6 @@ export const EcommerceProductsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceProductsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetProductResponse?: components.GetProductResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceProductsOneResponse$outboundSchema: z.ZodType< - EcommerceProductsOneResponse$Outbound, - z.ZodTypeDef, - EcommerceProductsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getProductResponse: components.GetProductResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getProductResponse: "GetProductResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceProductsOneResponse$ { - /** @deprecated use `EcommerceProductsOneResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceProductsOneResponse$inboundSchema; - /** @deprecated use `EcommerceProductsOneResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceProductsOneResponse$outboundSchema; - /** @deprecated use `EcommerceProductsOneResponse$Outbound` instead. */ - export type Outbound = EcommerceProductsOneResponse$Outbound; -} - -export function ecommerceProductsOneResponseToJSON( - ecommerceProductsOneResponse: EcommerceProductsOneResponse, -): string { - return JSON.stringify( - EcommerceProductsOneResponse$outboundSchema.parse( - ecommerceProductsOneResponse, - ), - ); -} - export function ecommerceProductsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/ecommercestoresone.ts b/src/models/operations/ecommercestoresone.ts index f4460d58e..1ca1e3822 100644 --- a/src/models/operations/ecommercestoresone.ts +++ b/src/models/operations/ecommercestoresone.ts @@ -55,76 +55,6 @@ export type EcommerceStoresOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const EcommerceStoresOneGlobals$inboundSchema: z.ZodType< - EcommerceStoresOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type EcommerceStoresOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const EcommerceStoresOneGlobals$outboundSchema: z.ZodType< - EcommerceStoresOneGlobals$Outbound, - z.ZodTypeDef, - EcommerceStoresOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceStoresOneGlobals$ { - /** @deprecated use `EcommerceStoresOneGlobals$inboundSchema` instead. */ - export const inboundSchema = EcommerceStoresOneGlobals$inboundSchema; - /** @deprecated use `EcommerceStoresOneGlobals$outboundSchema` instead. */ - export const outboundSchema = EcommerceStoresOneGlobals$outboundSchema; - /** @deprecated use `EcommerceStoresOneGlobals$Outbound` instead. */ - export type Outbound = EcommerceStoresOneGlobals$Outbound; -} - -export function ecommerceStoresOneGlobalsToJSON( - ecommerceStoresOneGlobals: EcommerceStoresOneGlobals, -): string { - return JSON.stringify( - EcommerceStoresOneGlobals$outboundSchema.parse(ecommerceStoresOneGlobals), - ); -} - -export function ecommerceStoresOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceStoresOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceStoresOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const EcommerceStoresOneRequest$inboundSchema: z.ZodType< - EcommerceStoresOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type EcommerceStoresOneRequest$Outbound = { consumerId?: string | undefined; @@ -147,19 +77,6 @@ export const EcommerceStoresOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceStoresOneRequest$ { - /** @deprecated use `EcommerceStoresOneRequest$inboundSchema` instead. */ - export const inboundSchema = EcommerceStoresOneRequest$inboundSchema; - /** @deprecated use `EcommerceStoresOneRequest$outboundSchema` instead. */ - export const outboundSchema = EcommerceStoresOneRequest$outboundSchema; - /** @deprecated use `EcommerceStoresOneRequest$Outbound` instead. */ - export type Outbound = EcommerceStoresOneRequest$Outbound; -} - export function ecommerceStoresOneRequestToJSON( ecommerceStoresOneRequest: EcommerceStoresOneRequest, ): string { @@ -168,16 +85,6 @@ export function ecommerceStoresOneRequestToJSON( ); } -export function ecommerceStoresOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EcommerceStoresOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EcommerceStoresOneRequest' from JSON`, - ); -} - /** @internal */ export const EcommerceStoresOneResponse$inboundSchema: z.ZodType< EcommerceStoresOneResponse, @@ -196,54 +103,6 @@ export const EcommerceStoresOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type EcommerceStoresOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetStoreResponse?: components.GetStoreResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const EcommerceStoresOneResponse$outboundSchema: z.ZodType< - EcommerceStoresOneResponse$Outbound, - z.ZodTypeDef, - EcommerceStoresOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getStoreResponse: components.GetStoreResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getStoreResponse: "GetStoreResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EcommerceStoresOneResponse$ { - /** @deprecated use `EcommerceStoresOneResponse$inboundSchema` instead. */ - export const inboundSchema = EcommerceStoresOneResponse$inboundSchema; - /** @deprecated use `EcommerceStoresOneResponse$outboundSchema` instead. */ - export const outboundSchema = EcommerceStoresOneResponse$outboundSchema; - /** @deprecated use `EcommerceStoresOneResponse$Outbound` instead. */ - export type Outbound = EcommerceStoresOneResponse$Outbound; -} - -export function ecommerceStoresOneResponseToJSON( - ecommerceStoresOneResponse: EcommerceStoresOneResponse, -): string { - return JSON.stringify( - EcommerceStoresOneResponse$outboundSchema.parse(ecommerceStoresOneResponse), - ); -} - export function ecommerceStoresOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivegroupsadd.ts b/src/models/operations/filestoragedrivegroupsadd.ts index e5e30beff..b1b479e71 100644 --- a/src/models/operations/filestoragedrivegroupsadd.ts +++ b/src/models/operations/filestoragedrivegroupsadd.ts @@ -52,82 +52,6 @@ export type FileStorageDriveGroupsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDriveGroupsAddGlobals$inboundSchema: z.ZodType< - FileStorageDriveGroupsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDriveGroupsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsAddGlobals$outboundSchema: z.ZodType< - FileStorageDriveGroupsAddGlobals$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAddGlobals$ { - /** @deprecated use `FileStorageDriveGroupsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAddGlobals$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsAddGlobals$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddGlobals$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAddGlobals$Outbound; -} - -export function fileStorageDriveGroupsAddGlobalsToJSON( - fileStorageDriveGroupsAddGlobals: FileStorageDriveGroupsAddGlobals, -): string { - return JSON.stringify( - FileStorageDriveGroupsAddGlobals$outboundSchema.parse( - fileStorageDriveGroupsAddGlobals, - ), - ); -} - -export function fileStorageDriveGroupsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDriveGroupsAddRequest$inboundSchema: z.ZodType< - FileStorageDriveGroupsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - DriveGroup: components.DriveGroupInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "DriveGroup": "driveGroup", - }); -}); - /** @internal */ export type FileStorageDriveGroupsAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const FileStorageDriveGroupsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAddRequest$ { - /** @deprecated use `FileStorageDriveGroupsAddRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAddRequest$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsAddRequest$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddRequest$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAddRequest$Outbound; -} - export function fileStorageDriveGroupsAddRequestToJSON( fileStorageDriveGroupsAddRequest: FileStorageDriveGroupsAddRequest, ): string { @@ -177,16 +88,6 @@ export function fileStorageDriveGroupsAddRequestToJSON( ); } -export function fileStorageDriveGroupsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsAddRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDriveGroupsAddResponse$inboundSchema: z.ZodType< FileStorageDriveGroupsAddResponse, @@ -206,60 +107,6 @@ export const FileStorageDriveGroupsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDriveGroupsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateDriveGroupResponse?: - | components.CreateDriveGroupResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsAddResponse$outboundSchema: z.ZodType< - FileStorageDriveGroupsAddResponse$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createDriveGroupResponse: components.CreateDriveGroupResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createDriveGroupResponse: "CreateDriveGroupResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAddResponse$ { - /** @deprecated use `FileStorageDriveGroupsAddResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAddResponse$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsAddResponse$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAddResponse$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAddResponse$Outbound; -} - -export function fileStorageDriveGroupsAddResponseToJSON( - fileStorageDriveGroupsAddResponse: FileStorageDriveGroupsAddResponse, -): string { - return JSON.stringify( - FileStorageDriveGroupsAddResponse$outboundSchema.parse( - fileStorageDriveGroupsAddResponse, - ), - ); -} - export function fileStorageDriveGroupsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivegroupsall.ts b/src/models/operations/filestoragedrivegroupsall.ts index 5fdff2837..0b8033a1b 100644 --- a/src/models/operations/filestoragedrivegroupsall.ts +++ b/src/models/operations/filestoragedrivegroupsall.ts @@ -71,86 +71,6 @@ export type FileStorageDriveGroupsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDriveGroupsAllGlobals$inboundSchema: z.ZodType< - FileStorageDriveGroupsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDriveGroupsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsAllGlobals$outboundSchema: z.ZodType< - FileStorageDriveGroupsAllGlobals$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAllGlobals$ { - /** @deprecated use `FileStorageDriveGroupsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAllGlobals$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsAllGlobals$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllGlobals$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAllGlobals$Outbound; -} - -export function fileStorageDriveGroupsAllGlobalsToJSON( - fileStorageDriveGroupsAllGlobals: FileStorageDriveGroupsAllGlobals, -): string { - return JSON.stringify( - FileStorageDriveGroupsAllGlobals$outboundSchema.parse( - fileStorageDriveGroupsAllGlobals, - ), - ); -} - -export function fileStorageDriveGroupsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDriveGroupsAllRequest$inboundSchema: z.ZodType< - FileStorageDriveGroupsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.DriveGroupsFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type FileStorageDriveGroupsAllRequest$Outbound = { raw: boolean; @@ -185,19 +105,6 @@ export const FileStorageDriveGroupsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAllRequest$ { - /** @deprecated use `FileStorageDriveGroupsAllRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAllRequest$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsAllRequest$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllRequest$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAllRequest$Outbound; -} - export function fileStorageDriveGroupsAllRequestToJSON( fileStorageDriveGroupsAllRequest: FileStorageDriveGroupsAllRequest, ): string { @@ -208,16 +115,6 @@ export function fileStorageDriveGroupsAllRequestToJSON( ); } -export function fileStorageDriveGroupsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsAllRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDriveGroupsAllResponse$inboundSchema: z.ZodType< FileStorageDriveGroupsAllResponse, @@ -237,60 +134,6 @@ export const FileStorageDriveGroupsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDriveGroupsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDriveGroupsResponse?: - | components.GetDriveGroupsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsAllResponse$outboundSchema: z.ZodType< - FileStorageDriveGroupsAllResponse$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDriveGroupsResponse: components.GetDriveGroupsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDriveGroupsResponse: "GetDriveGroupsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsAllResponse$ { - /** @deprecated use `FileStorageDriveGroupsAllResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsAllResponse$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsAllResponse$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsAllResponse$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsAllResponse$Outbound; -} - -export function fileStorageDriveGroupsAllResponseToJSON( - fileStorageDriveGroupsAllResponse: FileStorageDriveGroupsAllResponse, -): string { - return JSON.stringify( - FileStorageDriveGroupsAllResponse$outboundSchema.parse( - fileStorageDriveGroupsAllResponse, - ), - ); -} - export function fileStorageDriveGroupsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivegroupsdelete.ts b/src/models/operations/filestoragedrivegroupsdelete.ts index 8612bf37a..6a8572ee0 100644 --- a/src/models/operations/filestoragedrivegroupsdelete.ts +++ b/src/models/operations/filestoragedrivegroupsdelete.ts @@ -55,81 +55,6 @@ export type FileStorageDriveGroupsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDriveGroupsDeleteGlobals$inboundSchema: z.ZodType< - FileStorageDriveGroupsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDriveGroupsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsDeleteGlobals$outboundSchema: z.ZodType< - FileStorageDriveGroupsDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsDeleteGlobals$ { - /** @deprecated use `FileStorageDriveGroupsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsDeleteGlobals$Outbound; -} - -export function fileStorageDriveGroupsDeleteGlobalsToJSON( - fileStorageDriveGroupsDeleteGlobals: FileStorageDriveGroupsDeleteGlobals, -): string { - return JSON.stringify( - FileStorageDriveGroupsDeleteGlobals$outboundSchema.parse( - fileStorageDriveGroupsDeleteGlobals, - ), - ); -} - -export function fileStorageDriveGroupsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageDriveGroupsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDriveGroupsDeleteRequest$inboundSchema: z.ZodType< - FileStorageDriveGroupsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageDriveGroupsDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const FileStorageDriveGroupsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsDeleteRequest$ { - /** @deprecated use `FileStorageDriveGroupsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsDeleteRequest$Outbound; -} - export function fileStorageDriveGroupsDeleteRequestToJSON( fileStorageDriveGroupsDeleteRequest: FileStorageDriveGroupsDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function fileStorageDriveGroupsDeleteRequestToJSON( ); } -export function fileStorageDriveGroupsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageDriveGroupsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDriveGroupsDeleteResponse$inboundSchema: z.ZodType< FileStorageDriveGroupsDeleteResponse, @@ -207,61 +106,6 @@ export const FileStorageDriveGroupsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDriveGroupsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteDriveGroupResponse?: - | components.DeleteDriveGroupResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsDeleteResponse$outboundSchema: z.ZodType< - FileStorageDriveGroupsDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteDriveGroupResponse: components.DeleteDriveGroupResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteDriveGroupResponse: "DeleteDriveGroupResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsDeleteResponse$ { - /** @deprecated use `FileStorageDriveGroupsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsDeleteResponse$Outbound; -} - -export function fileStorageDriveGroupsDeleteResponseToJSON( - fileStorageDriveGroupsDeleteResponse: FileStorageDriveGroupsDeleteResponse, -): string { - return JSON.stringify( - FileStorageDriveGroupsDeleteResponse$outboundSchema.parse( - fileStorageDriveGroupsDeleteResponse, - ), - ); -} - export function fileStorageDriveGroupsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivegroupsone.ts b/src/models/operations/filestoragedrivegroupsone.ts index 6825d0cfc..f3eac608a 100644 --- a/src/models/operations/filestoragedrivegroupsone.ts +++ b/src/models/operations/filestoragedrivegroupsone.ts @@ -59,79 +59,6 @@ export type FileStorageDriveGroupsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDriveGroupsOneGlobals$inboundSchema: z.ZodType< - FileStorageDriveGroupsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDriveGroupsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsOneGlobals$outboundSchema: z.ZodType< - FileStorageDriveGroupsOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsOneGlobals$ { - /** @deprecated use `FileStorageDriveGroupsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsOneGlobals$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsOneGlobals$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsOneGlobals$Outbound; -} - -export function fileStorageDriveGroupsOneGlobalsToJSON( - fileStorageDriveGroupsOneGlobals: FileStorageDriveGroupsOneGlobals, -): string { - return JSON.stringify( - FileStorageDriveGroupsOneGlobals$outboundSchema.parse( - fileStorageDriveGroupsOneGlobals, - ), - ); -} - -export function fileStorageDriveGroupsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDriveGroupsOneRequest$inboundSchema: z.ZodType< - FileStorageDriveGroupsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageDriveGroupsOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const FileStorageDriveGroupsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsOneRequest$ { - /** @deprecated use `FileStorageDriveGroupsOneRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsOneRequest$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDriveGroupsOneRequest$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneRequest$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsOneRequest$Outbound; -} - export function fileStorageDriveGroupsOneRequestToJSON( fileStorageDriveGroupsOneRequest: FileStorageDriveGroupsOneRequest, ): string { @@ -179,16 +93,6 @@ export function fileStorageDriveGroupsOneRequestToJSON( ); } -export function fileStorageDriveGroupsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDriveGroupsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDriveGroupsOneResponse$inboundSchema: z.ZodType< FileStorageDriveGroupsOneResponse, @@ -208,58 +112,6 @@ export const FileStorageDriveGroupsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDriveGroupsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDriveGroupResponse?: components.GetDriveGroupResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsOneResponse$outboundSchema: z.ZodType< - FileStorageDriveGroupsOneResponse$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDriveGroupResponse: components.GetDriveGroupResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDriveGroupResponse: "GetDriveGroupResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsOneResponse$ { - /** @deprecated use `FileStorageDriveGroupsOneResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDriveGroupsOneResponse$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsOneResponse$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsOneResponse$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsOneResponse$Outbound; -} - -export function fileStorageDriveGroupsOneResponseToJSON( - fileStorageDriveGroupsOneResponse: FileStorageDriveGroupsOneResponse, -): string { - return JSON.stringify( - FileStorageDriveGroupsOneResponse$outboundSchema.parse( - fileStorageDriveGroupsOneResponse, - ), - ); -} - export function fileStorageDriveGroupsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivegroupsupdate.ts b/src/models/operations/filestoragedrivegroupsupdate.ts index fceab8ebe..52f5ee0b9 100644 --- a/src/models/operations/filestoragedrivegroupsupdate.ts +++ b/src/models/operations/filestoragedrivegroupsupdate.ts @@ -56,86 +56,6 @@ export type FileStorageDriveGroupsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDriveGroupsUpdateGlobals$inboundSchema: z.ZodType< - FileStorageDriveGroupsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDriveGroupsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsUpdateGlobals$outboundSchema: z.ZodType< - FileStorageDriveGroupsUpdateGlobals$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsUpdateGlobals$ { - /** @deprecated use `FileStorageDriveGroupsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsUpdateGlobals$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsUpdateGlobals$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateGlobals$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsUpdateGlobals$Outbound; -} - -export function fileStorageDriveGroupsUpdateGlobalsToJSON( - fileStorageDriveGroupsUpdateGlobals: FileStorageDriveGroupsUpdateGlobals, -): string { - return JSON.stringify( - FileStorageDriveGroupsUpdateGlobals$outboundSchema.parse( - fileStorageDriveGroupsUpdateGlobals, - ), - ); -} - -export function fileStorageDriveGroupsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageDriveGroupsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDriveGroupsUpdateRequest$inboundSchema: z.ZodType< - FileStorageDriveGroupsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - DriveGroup: components.DriveGroupInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "DriveGroup": "driveGroup", - }); -}); - /** @internal */ export type FileStorageDriveGroupsUpdateRequest$Outbound = { id: string; @@ -164,21 +84,6 @@ export const FileStorageDriveGroupsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsUpdateRequest$ { - /** @deprecated use `FileStorageDriveGroupsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsUpdateRequest$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsUpdateRequest$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateRequest$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsUpdateRequest$Outbound; -} - export function fileStorageDriveGroupsUpdateRequestToJSON( fileStorageDriveGroupsUpdateRequest: FileStorageDriveGroupsUpdateRequest, ): string { @@ -189,17 +94,6 @@ export function fileStorageDriveGroupsUpdateRequestToJSON( ); } -export function fileStorageDriveGroupsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageDriveGroupsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDriveGroupsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDriveGroupsUpdateResponse$inboundSchema: z.ZodType< FileStorageDriveGroupsUpdateResponse, @@ -219,61 +113,6 @@ export const FileStorageDriveGroupsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDriveGroupsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateDriveGroupResponse?: - | components.UpdateDriveGroupResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDriveGroupsUpdateResponse$outboundSchema: z.ZodType< - FileStorageDriveGroupsUpdateResponse$Outbound, - z.ZodTypeDef, - FileStorageDriveGroupsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateDriveGroupResponse: components.UpdateDriveGroupResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateDriveGroupResponse: "UpdateDriveGroupResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDriveGroupsUpdateResponse$ { - /** @deprecated use `FileStorageDriveGroupsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageDriveGroupsUpdateResponse$inboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageDriveGroupsUpdateResponse$outboundSchema; - /** @deprecated use `FileStorageDriveGroupsUpdateResponse$Outbound` instead. */ - export type Outbound = FileStorageDriveGroupsUpdateResponse$Outbound; -} - -export function fileStorageDriveGroupsUpdateResponseToJSON( - fileStorageDriveGroupsUpdateResponse: FileStorageDriveGroupsUpdateResponse, -): string { - return JSON.stringify( - FileStorageDriveGroupsUpdateResponse$outboundSchema.parse( - fileStorageDriveGroupsUpdateResponse, - ), - ); -} - export function fileStorageDriveGroupsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivesadd.ts b/src/models/operations/filestoragedrivesadd.ts index 98fc18a89..93a8961ee 100644 --- a/src/models/operations/filestoragedrivesadd.ts +++ b/src/models/operations/filestoragedrivesadd.ts @@ -52,82 +52,6 @@ export type FileStorageDrivesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDrivesAddGlobals$inboundSchema: z.ZodType< - FileStorageDrivesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDrivesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDrivesAddGlobals$outboundSchema: z.ZodType< - FileStorageDrivesAddGlobals$Outbound, - z.ZodTypeDef, - FileStorageDrivesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAddGlobals$ { - /** @deprecated use `FileStorageDrivesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAddGlobals$inboundSchema; - /** @deprecated use `FileStorageDrivesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAddGlobals$outboundSchema; - /** @deprecated use `FileStorageDrivesAddGlobals$Outbound` instead. */ - export type Outbound = FileStorageDrivesAddGlobals$Outbound; -} - -export function fileStorageDrivesAddGlobalsToJSON( - fileStorageDrivesAddGlobals: FileStorageDrivesAddGlobals, -): string { - return JSON.stringify( - FileStorageDrivesAddGlobals$outboundSchema.parse( - fileStorageDrivesAddGlobals, - ), - ); -} - -export function fileStorageDrivesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDrivesAddRequest$inboundSchema: z.ZodType< - FileStorageDrivesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Drive: components.DriveInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Drive": "drive", - }); -}); - /** @internal */ export type FileStorageDrivesAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const FileStorageDrivesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAddRequest$ { - /** @deprecated use `FileStorageDrivesAddRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAddRequest$inboundSchema; - /** @deprecated use `FileStorageDrivesAddRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAddRequest$outboundSchema; - /** @deprecated use `FileStorageDrivesAddRequest$Outbound` instead. */ - export type Outbound = FileStorageDrivesAddRequest$Outbound; -} - export function fileStorageDrivesAddRequestToJSON( fileStorageDrivesAddRequest: FileStorageDrivesAddRequest, ): string { @@ -177,16 +88,6 @@ export function fileStorageDrivesAddRequestToJSON( ); } -export function fileStorageDrivesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesAddRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDrivesAddResponse$inboundSchema: z.ZodType< FileStorageDrivesAddResponse, @@ -205,56 +106,6 @@ export const FileStorageDrivesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDrivesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateDriveResponse?: components.CreateDriveResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDrivesAddResponse$outboundSchema: z.ZodType< - FileStorageDrivesAddResponse$Outbound, - z.ZodTypeDef, - FileStorageDrivesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createDriveResponse: components.CreateDriveResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createDriveResponse: "CreateDriveResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAddResponse$ { - /** @deprecated use `FileStorageDrivesAddResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAddResponse$inboundSchema; - /** @deprecated use `FileStorageDrivesAddResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAddResponse$outboundSchema; - /** @deprecated use `FileStorageDrivesAddResponse$Outbound` instead. */ - export type Outbound = FileStorageDrivesAddResponse$Outbound; -} - -export function fileStorageDrivesAddResponseToJSON( - fileStorageDrivesAddResponse: FileStorageDrivesAddResponse, -): string { - return JSON.stringify( - FileStorageDrivesAddResponse$outboundSchema.parse( - fileStorageDrivesAddResponse, - ), - ); -} - export function fileStorageDrivesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivesall.ts b/src/models/operations/filestoragedrivesall.ts index 35e6e48f0..ee28059bc 100644 --- a/src/models/operations/filestoragedrivesall.ts +++ b/src/models/operations/filestoragedrivesall.ts @@ -67,81 +67,6 @@ export type FileStorageDrivesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDrivesAllGlobals$inboundSchema: z.ZodType< - FileStorageDrivesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDrivesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDrivesAllGlobals$outboundSchema: z.ZodType< - FileStorageDrivesAllGlobals$Outbound, - z.ZodTypeDef, - FileStorageDrivesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAllGlobals$ { - /** @deprecated use `FileStorageDrivesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAllGlobals$inboundSchema; - /** @deprecated use `FileStorageDrivesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAllGlobals$outboundSchema; - /** @deprecated use `FileStorageDrivesAllGlobals$Outbound` instead. */ - export type Outbound = FileStorageDrivesAllGlobals$Outbound; -} - -export function fileStorageDrivesAllGlobalsToJSON( - fileStorageDrivesAllGlobals: FileStorageDrivesAllGlobals, -): string { - return JSON.stringify( - FileStorageDrivesAllGlobals$outboundSchema.parse( - fileStorageDrivesAllGlobals, - ), - ); -} - -export function fileStorageDrivesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDrivesAllRequest$inboundSchema: z.ZodType< - FileStorageDrivesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.DrivesFilter$inboundSchema.optional(), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageDrivesAllRequest$Outbound = { raw: boolean; @@ -170,19 +95,6 @@ export const FileStorageDrivesAllRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAllRequest$ { - /** @deprecated use `FileStorageDrivesAllRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAllRequest$inboundSchema; - /** @deprecated use `FileStorageDrivesAllRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAllRequest$outboundSchema; - /** @deprecated use `FileStorageDrivesAllRequest$Outbound` instead. */ - export type Outbound = FileStorageDrivesAllRequest$Outbound; -} - export function fileStorageDrivesAllRequestToJSON( fileStorageDrivesAllRequest: FileStorageDrivesAllRequest, ): string { @@ -193,16 +105,6 @@ export function fileStorageDrivesAllRequestToJSON( ); } -export function fileStorageDrivesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesAllRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDrivesAllResponse$inboundSchema: z.ZodType< FileStorageDrivesAllResponse, @@ -221,56 +123,6 @@ export const FileStorageDrivesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDrivesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDrivesResponse?: components.GetDrivesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDrivesAllResponse$outboundSchema: z.ZodType< - FileStorageDrivesAllResponse$Outbound, - z.ZodTypeDef, - FileStorageDrivesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDrivesResponse: components.GetDrivesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDrivesResponse: "GetDrivesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesAllResponse$ { - /** @deprecated use `FileStorageDrivesAllResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesAllResponse$inboundSchema; - /** @deprecated use `FileStorageDrivesAllResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesAllResponse$outboundSchema; - /** @deprecated use `FileStorageDrivesAllResponse$Outbound` instead. */ - export type Outbound = FileStorageDrivesAllResponse$Outbound; -} - -export function fileStorageDrivesAllResponseToJSON( - fileStorageDrivesAllResponse: FileStorageDrivesAllResponse, -): string { - return JSON.stringify( - FileStorageDrivesAllResponse$outboundSchema.parse( - fileStorageDrivesAllResponse, - ), - ); -} - export function fileStorageDrivesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivesdelete.ts b/src/models/operations/filestoragedrivesdelete.ts index 9215fa73a..af0e45d03 100644 --- a/src/models/operations/filestoragedrivesdelete.ts +++ b/src/models/operations/filestoragedrivesdelete.ts @@ -55,78 +55,6 @@ export type FileStorageDrivesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDrivesDeleteGlobals$inboundSchema: z.ZodType< - FileStorageDrivesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDrivesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDrivesDeleteGlobals$outboundSchema: z.ZodType< - FileStorageDrivesDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageDrivesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesDeleteGlobals$ { - /** @deprecated use `FileStorageDrivesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageDrivesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageDrivesDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageDrivesDeleteGlobals$Outbound; -} - -export function fileStorageDrivesDeleteGlobalsToJSON( - fileStorageDrivesDeleteGlobals: FileStorageDrivesDeleteGlobals, -): string { - return JSON.stringify( - FileStorageDrivesDeleteGlobals$outboundSchema.parse( - fileStorageDrivesDeleteGlobals, - ), - ); -} - -export function fileStorageDrivesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDrivesDeleteRequest$inboundSchema: z.ZodType< - FileStorageDrivesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageDrivesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const FileStorageDrivesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesDeleteRequest$ { - /** @deprecated use `FileStorageDrivesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageDrivesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageDrivesDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageDrivesDeleteRequest$Outbound; -} - export function fileStorageDrivesDeleteRequestToJSON( fileStorageDrivesDeleteRequest: FileStorageDrivesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function fileStorageDrivesDeleteRequestToJSON( ); } -export function fileStorageDrivesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDrivesDeleteResponse$inboundSchema: z.ZodType< FileStorageDrivesDeleteResponse, @@ -200,56 +105,6 @@ export const FileStorageDrivesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDrivesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteDriveResponse?: components.DeleteDriveResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDrivesDeleteResponse$outboundSchema: z.ZodType< - FileStorageDrivesDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageDrivesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteDriveResponse: components.DeleteDriveResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteDriveResponse: "DeleteDriveResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesDeleteResponse$ { - /** @deprecated use `FileStorageDrivesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageDrivesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageDrivesDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageDrivesDeleteResponse$Outbound; -} - -export function fileStorageDrivesDeleteResponseToJSON( - fileStorageDrivesDeleteResponse: FileStorageDrivesDeleteResponse, -): string { - return JSON.stringify( - FileStorageDrivesDeleteResponse$outboundSchema.parse( - fileStorageDrivesDeleteResponse, - ), - ); -} - export function fileStorageDrivesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivesone.ts b/src/models/operations/filestoragedrivesone.ts index d7a464a8f..838e24219 100644 --- a/src/models/operations/filestoragedrivesone.ts +++ b/src/models/operations/filestoragedrivesone.ts @@ -59,79 +59,6 @@ export type FileStorageDrivesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDrivesOneGlobals$inboundSchema: z.ZodType< - FileStorageDrivesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDrivesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDrivesOneGlobals$outboundSchema: z.ZodType< - FileStorageDrivesOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageDrivesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesOneGlobals$ { - /** @deprecated use `FileStorageDrivesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesOneGlobals$inboundSchema; - /** @deprecated use `FileStorageDrivesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesOneGlobals$outboundSchema; - /** @deprecated use `FileStorageDrivesOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageDrivesOneGlobals$Outbound; -} - -export function fileStorageDrivesOneGlobalsToJSON( - fileStorageDrivesOneGlobals: FileStorageDrivesOneGlobals, -): string { - return JSON.stringify( - FileStorageDrivesOneGlobals$outboundSchema.parse( - fileStorageDrivesOneGlobals, - ), - ); -} - -export function fileStorageDrivesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDrivesOneRequest$inboundSchema: z.ZodType< - FileStorageDrivesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageDrivesOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const FileStorageDrivesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesOneRequest$ { - /** @deprecated use `FileStorageDrivesOneRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesOneRequest$inboundSchema; - /** @deprecated use `FileStorageDrivesOneRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesOneRequest$outboundSchema; - /** @deprecated use `FileStorageDrivesOneRequest$Outbound` instead. */ - export type Outbound = FileStorageDrivesOneRequest$Outbound; -} - export function fileStorageDrivesOneRequestToJSON( fileStorageDrivesOneRequest: FileStorageDrivesOneRequest, ): string { @@ -179,16 +93,6 @@ export function fileStorageDrivesOneRequestToJSON( ); } -export function fileStorageDrivesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDrivesOneResponse$inboundSchema: z.ZodType< FileStorageDrivesOneResponse, @@ -207,56 +111,6 @@ export const FileStorageDrivesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDrivesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDriveResponse?: components.GetDriveResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDrivesOneResponse$outboundSchema: z.ZodType< - FileStorageDrivesOneResponse$Outbound, - z.ZodTypeDef, - FileStorageDrivesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDriveResponse: components.GetDriveResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDriveResponse: "GetDriveResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesOneResponse$ { - /** @deprecated use `FileStorageDrivesOneResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesOneResponse$inboundSchema; - /** @deprecated use `FileStorageDrivesOneResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesOneResponse$outboundSchema; - /** @deprecated use `FileStorageDrivesOneResponse$Outbound` instead. */ - export type Outbound = FileStorageDrivesOneResponse$Outbound; -} - -export function fileStorageDrivesOneResponseToJSON( - fileStorageDrivesOneResponse: FileStorageDrivesOneResponse, -): string { - return JSON.stringify( - FileStorageDrivesOneResponse$outboundSchema.parse( - fileStorageDrivesOneResponse, - ), - ); -} - export function fileStorageDrivesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragedrivesupdate.ts b/src/models/operations/filestoragedrivesupdate.ts index bf9acfbb7..cf0a2cfb7 100644 --- a/src/models/operations/filestoragedrivesupdate.ts +++ b/src/models/operations/filestoragedrivesupdate.ts @@ -56,83 +56,6 @@ export type FileStorageDrivesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageDrivesUpdateGlobals$inboundSchema: z.ZodType< - FileStorageDrivesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageDrivesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageDrivesUpdateGlobals$outboundSchema: z.ZodType< - FileStorageDrivesUpdateGlobals$Outbound, - z.ZodTypeDef, - FileStorageDrivesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesUpdateGlobals$ { - /** @deprecated use `FileStorageDrivesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesUpdateGlobals$inboundSchema; - /** @deprecated use `FileStorageDrivesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesUpdateGlobals$outboundSchema; - /** @deprecated use `FileStorageDrivesUpdateGlobals$Outbound` instead. */ - export type Outbound = FileStorageDrivesUpdateGlobals$Outbound; -} - -export function fileStorageDrivesUpdateGlobalsToJSON( - fileStorageDrivesUpdateGlobals: FileStorageDrivesUpdateGlobals, -): string { - return JSON.stringify( - FileStorageDrivesUpdateGlobals$outboundSchema.parse( - fileStorageDrivesUpdateGlobals, - ), - ); -} - -export function fileStorageDrivesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageDrivesUpdateRequest$inboundSchema: z.ZodType< - FileStorageDrivesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Drive: components.DriveInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Drive": "drive", - }); -}); - /** @internal */ export type FileStorageDrivesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const FileStorageDrivesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesUpdateRequest$ { - /** @deprecated use `FileStorageDrivesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesUpdateRequest$inboundSchema; - /** @deprecated use `FileStorageDrivesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesUpdateRequest$outboundSchema; - /** @deprecated use `FileStorageDrivesUpdateRequest$Outbound` instead. */ - export type Outbound = FileStorageDrivesUpdateRequest$Outbound; -} - export function fileStorageDrivesUpdateRequestToJSON( fileStorageDrivesUpdateRequest: FileStorageDrivesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function fileStorageDrivesUpdateRequestToJSON( ); } -export function fileStorageDrivesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageDrivesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageDrivesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageDrivesUpdateResponse$inboundSchema: z.ZodType< FileStorageDrivesUpdateResponse, @@ -212,56 +112,6 @@ export const FileStorageDrivesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageDrivesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateDriveResponse?: components.UpdateDriveResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageDrivesUpdateResponse$outboundSchema: z.ZodType< - FileStorageDrivesUpdateResponse$Outbound, - z.ZodTypeDef, - FileStorageDrivesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateDriveResponse: components.UpdateDriveResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateDriveResponse: "UpdateDriveResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageDrivesUpdateResponse$ { - /** @deprecated use `FileStorageDrivesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageDrivesUpdateResponse$inboundSchema; - /** @deprecated use `FileStorageDrivesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageDrivesUpdateResponse$outboundSchema; - /** @deprecated use `FileStorageDrivesUpdateResponse$Outbound` instead. */ - export type Outbound = FileStorageDrivesUpdateResponse$Outbound; -} - -export function fileStorageDrivesUpdateResponseToJSON( - fileStorageDrivesUpdateResponse: FileStorageDrivesUpdateResponse, -): string { - return JSON.stringify( - FileStorageDrivesUpdateResponse$outboundSchema.parse( - fileStorageDrivesUpdateResponse, - ), - ); -} - export function fileStorageDrivesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesall.ts b/src/models/operations/filestoragefilesall.ts index 31db75985..a529bb713 100644 --- a/src/models/operations/filestoragefilesall.ts +++ b/src/models/operations/filestoragefilesall.ts @@ -75,85 +75,6 @@ export type FileStorageFilesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesAllGlobals$inboundSchema: z.ZodType< - FileStorageFilesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesAllGlobals$outboundSchema: z.ZodType< - FileStorageFilesAllGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesAllGlobals$ { - /** @deprecated use `FileStorageFilesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesAllGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesAllGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesAllGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesAllGlobals$Outbound; -} - -export function fileStorageFilesAllGlobalsToJSON( - fileStorageFilesAllGlobals: FileStorageFilesAllGlobals, -): string { - return JSON.stringify( - FileStorageFilesAllGlobals$outboundSchema.parse(fileStorageFilesAllGlobals), - ); -} - -export function fileStorageFilesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesAllRequest$inboundSchema: z.ZodType< - FileStorageFilesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.FilesFilter$inboundSchema.optional(), - sort: components.FilesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type FileStorageFilesAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const FileStorageFilesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesAllRequest$ { - /** @deprecated use `FileStorageFilesAllRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesAllRequest$inboundSchema; - /** @deprecated use `FileStorageFilesAllRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesAllRequest$outboundSchema; - /** @deprecated use `FileStorageFilesAllRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesAllRequest$Outbound; -} - export function fileStorageFilesAllRequestToJSON( fileStorageFilesAllRequest: FileStorageFilesAllRequest, ): string { @@ -211,16 +119,6 @@ export function fileStorageFilesAllRequestToJSON( ); } -export function fileStorageFilesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesAllRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesAllResponse$inboundSchema: z.ZodType< FileStorageFilesAllResponse, @@ -239,56 +137,6 @@ export const FileStorageFilesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFilesResponse?: components.GetFilesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesAllResponse$outboundSchema: z.ZodType< - FileStorageFilesAllResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFilesResponse: components.GetFilesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFilesResponse: "GetFilesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesAllResponse$ { - /** @deprecated use `FileStorageFilesAllResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesAllResponse$inboundSchema; - /** @deprecated use `FileStorageFilesAllResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesAllResponse$outboundSchema; - /** @deprecated use `FileStorageFilesAllResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesAllResponse$Outbound; -} - -export function fileStorageFilesAllResponseToJSON( - fileStorageFilesAllResponse: FileStorageFilesAllResponse, -): string { - return JSON.stringify( - FileStorageFilesAllResponse$outboundSchema.parse( - fileStorageFilesAllResponse, - ), - ); -} - export function fileStorageFilesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesdelete.ts b/src/models/operations/filestoragefilesdelete.ts index 44aafb039..05ef14284 100644 --- a/src/models/operations/filestoragefilesdelete.ts +++ b/src/models/operations/filestoragefilesdelete.ts @@ -55,78 +55,6 @@ export type FileStorageFilesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesDeleteGlobals$inboundSchema: z.ZodType< - FileStorageFilesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesDeleteGlobals$outboundSchema: z.ZodType< - FileStorageFilesDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDeleteGlobals$ { - /** @deprecated use `FileStorageFilesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesDeleteGlobals$Outbound; -} - -export function fileStorageFilesDeleteGlobalsToJSON( - fileStorageFilesDeleteGlobals: FileStorageFilesDeleteGlobals, -): string { - return JSON.stringify( - FileStorageFilesDeleteGlobals$outboundSchema.parse( - fileStorageFilesDeleteGlobals, - ), - ); -} - -export function fileStorageFilesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesDeleteRequest$inboundSchema: z.ZodType< - FileStorageFilesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageFilesDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const FileStorageFilesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDeleteRequest$ { - /** @deprecated use `FileStorageFilesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageFilesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageFilesDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesDeleteRequest$Outbound; -} - export function fileStorageFilesDeleteRequestToJSON( fileStorageFilesDeleteRequest: FileStorageFilesDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function fileStorageFilesDeleteRequestToJSON( ); } -export function fileStorageFilesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesDeleteResponse$inboundSchema: z.ZodType< FileStorageFilesDeleteResponse, @@ -200,56 +105,6 @@ export const FileStorageFilesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteFileResponse?: components.DeleteFileResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesDeleteResponse$outboundSchema: z.ZodType< - FileStorageFilesDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteFileResponse: components.DeleteFileResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteFileResponse: "DeleteFileResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDeleteResponse$ { - /** @deprecated use `FileStorageFilesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageFilesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageFilesDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesDeleteResponse$Outbound; -} - -export function fileStorageFilesDeleteResponseToJSON( - fileStorageFilesDeleteResponse: FileStorageFilesDeleteResponse, -): string { - return JSON.stringify( - FileStorageFilesDeleteResponse$outboundSchema.parse( - fileStorageFilesDeleteResponse, - ), - ); -} - export function fileStorageFilesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesdownload.ts b/src/models/operations/filestoragefilesdownload.ts index 3ea0dee26..50eb8908c 100644 --- a/src/models/operations/filestoragefilesdownload.ts +++ b/src/models/operations/filestoragefilesdownload.ts @@ -55,78 +55,6 @@ export type FileStorageFilesDownloadResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesDownloadGlobals$inboundSchema: z.ZodType< - FileStorageFilesDownloadGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesDownloadGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesDownloadGlobals$outboundSchema: z.ZodType< - FileStorageFilesDownloadGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesDownloadGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDownloadGlobals$ { - /** @deprecated use `FileStorageFilesDownloadGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDownloadGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesDownloadGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDownloadGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesDownloadGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesDownloadGlobals$Outbound; -} - -export function fileStorageFilesDownloadGlobalsToJSON( - fileStorageFilesDownloadGlobals: FileStorageFilesDownloadGlobals, -): string { - return JSON.stringify( - FileStorageFilesDownloadGlobals$outboundSchema.parse( - fileStorageFilesDownloadGlobals, - ), - ); -} - -export function fileStorageFilesDownloadGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesDownloadGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesDownloadGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesDownloadRequest$inboundSchema: z.ZodType< - FileStorageFilesDownloadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageFilesDownloadRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const FileStorageFilesDownloadRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDownloadRequest$ { - /** @deprecated use `FileStorageFilesDownloadRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDownloadRequest$inboundSchema; - /** @deprecated use `FileStorageFilesDownloadRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDownloadRequest$outboundSchema; - /** @deprecated use `FileStorageFilesDownloadRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesDownloadRequest$Outbound; -} - export function fileStorageFilesDownloadRequestToJSON( fileStorageFilesDownloadRequest: FileStorageFilesDownloadRequest, ): string { @@ -172,16 +87,6 @@ export function fileStorageFilesDownloadRequestToJSON( ); } -export function fileStorageFilesDownloadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesDownloadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesDownloadRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesDownloadResponse$inboundSchema: z.ZodType< FileStorageFilesDownloadResponse, @@ -200,56 +105,6 @@ export const FileStorageFilesDownloadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesDownloadResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFileDownloadResponse?: ReadableStream | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesDownloadResponse$outboundSchema: z.ZodType< - FileStorageFilesDownloadResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesDownloadResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFileDownloadResponse: z.instanceof(ReadableStream).optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFileDownloadResponse: "GetFileDownloadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesDownloadResponse$ { - /** @deprecated use `FileStorageFilesDownloadResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesDownloadResponse$inboundSchema; - /** @deprecated use `FileStorageFilesDownloadResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesDownloadResponse$outboundSchema; - /** @deprecated use `FileStorageFilesDownloadResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesDownloadResponse$Outbound; -} - -export function fileStorageFilesDownloadResponseToJSON( - fileStorageFilesDownloadResponse: FileStorageFilesDownloadResponse, -): string { - return JSON.stringify( - FileStorageFilesDownloadResponse$outboundSchema.parse( - fileStorageFilesDownloadResponse, - ), - ); -} - export function fileStorageFilesDownloadResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesexport.ts b/src/models/operations/filestoragefilesexport.ts index 6d50a419b..795714fd0 100644 --- a/src/models/operations/filestoragefilesexport.ts +++ b/src/models/operations/filestoragefilesexport.ts @@ -59,79 +59,6 @@ export type FileStorageFilesExportResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesExportGlobals$inboundSchema: z.ZodType< - FileStorageFilesExportGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesExportGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesExportGlobals$outboundSchema: z.ZodType< - FileStorageFilesExportGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesExportGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesExportGlobals$ { - /** @deprecated use `FileStorageFilesExportGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesExportGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesExportGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesExportGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesExportGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesExportGlobals$Outbound; -} - -export function fileStorageFilesExportGlobalsToJSON( - fileStorageFilesExportGlobals: FileStorageFilesExportGlobals, -): string { - return JSON.stringify( - FileStorageFilesExportGlobals$outboundSchema.parse( - fileStorageFilesExportGlobals, - ), - ); -} - -export function fileStorageFilesExportGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesExportGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesExportGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesExportRequest$inboundSchema: z.ZodType< - FileStorageFilesExportRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), - format: z.string(), -}); - /** @internal */ export type FileStorageFilesExportRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const FileStorageFilesExportRequest$outboundSchema: z.ZodType< format: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesExportRequest$ { - /** @deprecated use `FileStorageFilesExportRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesExportRequest$inboundSchema; - /** @deprecated use `FileStorageFilesExportRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesExportRequest$outboundSchema; - /** @deprecated use `FileStorageFilesExportRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesExportRequest$Outbound; -} - export function fileStorageFilesExportRequestToJSON( fileStorageFilesExportRequest: FileStorageFilesExportRequest, ): string { @@ -179,16 +93,6 @@ export function fileStorageFilesExportRequestToJSON( ); } -export function fileStorageFilesExportRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesExportRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesExportRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesExportResponse$inboundSchema: z.ZodType< FileStorageFilesExportResponse, @@ -207,56 +111,6 @@ export const FileStorageFilesExportResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesExportResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFileDownloadResponse?: ReadableStream | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesExportResponse$outboundSchema: z.ZodType< - FileStorageFilesExportResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesExportResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFileDownloadResponse: z.instanceof(ReadableStream).optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFileDownloadResponse: "GetFileDownloadResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesExportResponse$ { - /** @deprecated use `FileStorageFilesExportResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesExportResponse$inboundSchema; - /** @deprecated use `FileStorageFilesExportResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesExportResponse$outboundSchema; - /** @deprecated use `FileStorageFilesExportResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesExportResponse$Outbound; -} - -export function fileStorageFilesExportResponseToJSON( - fileStorageFilesExportResponse: FileStorageFilesExportResponse, -): string { - return JSON.stringify( - FileStorageFilesExportResponse$outboundSchema.parse( - fileStorageFilesExportResponse, - ), - ); -} - export function fileStorageFilesExportResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesone.ts b/src/models/operations/filestoragefilesone.ts index d05915e4d..1e57bc5fa 100644 --- a/src/models/operations/filestoragefilesone.ts +++ b/src/models/operations/filestoragefilesone.ts @@ -59,77 +59,6 @@ export type FileStorageFilesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesOneGlobals$inboundSchema: z.ZodType< - FileStorageFilesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesOneGlobals$outboundSchema: z.ZodType< - FileStorageFilesOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesOneGlobals$ { - /** @deprecated use `FileStorageFilesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesOneGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesOneGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesOneGlobals$Outbound; -} - -export function fileStorageFilesOneGlobalsToJSON( - fileStorageFilesOneGlobals: FileStorageFilesOneGlobals, -): string { - return JSON.stringify( - FileStorageFilesOneGlobals$outboundSchema.parse(fileStorageFilesOneGlobals), - ); -} - -export function fileStorageFilesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesOneRequest$inboundSchema: z.ZodType< - FileStorageFilesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageFilesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const FileStorageFilesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesOneRequest$ { - /** @deprecated use `FileStorageFilesOneRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesOneRequest$inboundSchema; - /** @deprecated use `FileStorageFilesOneRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesOneRequest$outboundSchema; - /** @deprecated use `FileStorageFilesOneRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesOneRequest$Outbound; -} - export function fileStorageFilesOneRequestToJSON( fileStorageFilesOneRequest: FileStorageFilesOneRequest, ): string { @@ -175,16 +91,6 @@ export function fileStorageFilesOneRequestToJSON( ); } -export function fileStorageFilesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesOneResponse$inboundSchema: z.ZodType< FileStorageFilesOneResponse, @@ -203,56 +109,6 @@ export const FileStorageFilesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFileResponse?: components.GetFileResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesOneResponse$outboundSchema: z.ZodType< - FileStorageFilesOneResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFileResponse: components.GetFileResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFileResponse: "GetFileResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesOneResponse$ { - /** @deprecated use `FileStorageFilesOneResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesOneResponse$inboundSchema; - /** @deprecated use `FileStorageFilesOneResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesOneResponse$outboundSchema; - /** @deprecated use `FileStorageFilesOneResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesOneResponse$Outbound; -} - -export function fileStorageFilesOneResponseToJSON( - fileStorageFilesOneResponse: FileStorageFilesOneResponse, -): string { - return JSON.stringify( - FileStorageFilesOneResponse$outboundSchema.parse( - fileStorageFilesOneResponse, - ), - ); -} - export function fileStorageFilesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilessearch.ts b/src/models/operations/filestoragefilessearch.ts index c95ee2396..749b4e410 100644 --- a/src/models/operations/filestoragefilessearch.ts +++ b/src/models/operations/filestoragefilessearch.ts @@ -72,88 +72,6 @@ export type FileStorageFilesSearchResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesSearchGlobals$inboundSchema: z.ZodType< - FileStorageFilesSearchGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesSearchGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesSearchGlobals$outboundSchema: z.ZodType< - FileStorageFilesSearchGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesSearchGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesSearchGlobals$ { - /** @deprecated use `FileStorageFilesSearchGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesSearchGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesSearchGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesSearchGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesSearchGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesSearchGlobals$Outbound; -} - -export function fileStorageFilesSearchGlobalsToJSON( - fileStorageFilesSearchGlobals: FileStorageFilesSearchGlobals, -): string { - return JSON.stringify( - FileStorageFilesSearchGlobals$outboundSchema.parse( - fileStorageFilesSearchGlobals, - ), - ); -} - -export function fileStorageFilesSearchGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesSearchGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesSearchGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesSearchRequest$inboundSchema: z.ZodType< - FileStorageFilesSearchRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - raw: z.boolean().default(false), - filter: components.FilesFilter$inboundSchema.optional(), - FilesSearch: components.FilesSearch$inboundSchema, -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - "FilesSearch": "filesSearch", - }); -}); - /** @internal */ export type FileStorageFilesSearchRequest$Outbound = { consumerId?: string | undefined; @@ -191,19 +109,6 @@ export const FileStorageFilesSearchRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesSearchRequest$ { - /** @deprecated use `FileStorageFilesSearchRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesSearchRequest$inboundSchema; - /** @deprecated use `FileStorageFilesSearchRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesSearchRequest$outboundSchema; - /** @deprecated use `FileStorageFilesSearchRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesSearchRequest$Outbound; -} - export function fileStorageFilesSearchRequestToJSON( fileStorageFilesSearchRequest: FileStorageFilesSearchRequest, ): string { @@ -214,16 +119,6 @@ export function fileStorageFilesSearchRequestToJSON( ); } -export function fileStorageFilesSearchRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesSearchRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesSearchRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesSearchResponse$inboundSchema: z.ZodType< FileStorageFilesSearchResponse, @@ -242,56 +137,6 @@ export const FileStorageFilesSearchResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesSearchResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFilesResponse?: components.GetFilesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesSearchResponse$outboundSchema: z.ZodType< - FileStorageFilesSearchResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesSearchResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFilesResponse: components.GetFilesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFilesResponse: "GetFilesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesSearchResponse$ { - /** @deprecated use `FileStorageFilesSearchResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesSearchResponse$inboundSchema; - /** @deprecated use `FileStorageFilesSearchResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesSearchResponse$outboundSchema; - /** @deprecated use `FileStorageFilesSearchResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesSearchResponse$Outbound; -} - -export function fileStorageFilesSearchResponseToJSON( - fileStorageFilesSearchResponse: FileStorageFilesSearchResponse, -): string { - return JSON.stringify( - FileStorageFilesSearchResponse$outboundSchema.parse( - fileStorageFilesSearchResponse, - ), - ); -} - export function fileStorageFilesSearchResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefilesupdate.ts b/src/models/operations/filestoragefilesupdate.ts index fa547ce4c..3e273668d 100644 --- a/src/models/operations/filestoragefilesupdate.ts +++ b/src/models/operations/filestoragefilesupdate.ts @@ -56,83 +56,6 @@ export type FileStorageFilesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFilesUpdateGlobals$inboundSchema: z.ZodType< - FileStorageFilesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFilesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFilesUpdateGlobals$outboundSchema: z.ZodType< - FileStorageFilesUpdateGlobals$Outbound, - z.ZodTypeDef, - FileStorageFilesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesUpdateGlobals$ { - /** @deprecated use `FileStorageFilesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesUpdateGlobals$inboundSchema; - /** @deprecated use `FileStorageFilesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesUpdateGlobals$outboundSchema; - /** @deprecated use `FileStorageFilesUpdateGlobals$Outbound` instead. */ - export type Outbound = FileStorageFilesUpdateGlobals$Outbound; -} - -export function fileStorageFilesUpdateGlobalsToJSON( - fileStorageFilesUpdateGlobals: FileStorageFilesUpdateGlobals, -): string { - return JSON.stringify( - FileStorageFilesUpdateGlobals$outboundSchema.parse( - fileStorageFilesUpdateGlobals, - ), - ); -} - -export function fileStorageFilesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFilesUpdateRequest$inboundSchema: z.ZodType< - FileStorageFilesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - UpdateFileRequest: components.UpdateFileRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "UpdateFileRequest": "updateFileRequest", - }); -}); - /** @internal */ export type FileStorageFilesUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const FileStorageFilesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesUpdateRequest$ { - /** @deprecated use `FileStorageFilesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesUpdateRequest$inboundSchema; - /** @deprecated use `FileStorageFilesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesUpdateRequest$outboundSchema; - /** @deprecated use `FileStorageFilesUpdateRequest$Outbound` instead. */ - export type Outbound = FileStorageFilesUpdateRequest$Outbound; -} - export function fileStorageFilesUpdateRequestToJSON( fileStorageFilesUpdateRequest: FileStorageFilesUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function fileStorageFilesUpdateRequestToJSON( ); } -export function fileStorageFilesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFilesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFilesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFilesUpdateResponse$inboundSchema: z.ZodType< FileStorageFilesUpdateResponse, @@ -212,56 +112,6 @@ export const FileStorageFilesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFilesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateFileResponse?: components.UpdateFileResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFilesUpdateResponse$outboundSchema: z.ZodType< - FileStorageFilesUpdateResponse$Outbound, - z.ZodTypeDef, - FileStorageFilesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateFileResponse: components.UpdateFileResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateFileResponse: "UpdateFileResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFilesUpdateResponse$ { - /** @deprecated use `FileStorageFilesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFilesUpdateResponse$inboundSchema; - /** @deprecated use `FileStorageFilesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFilesUpdateResponse$outboundSchema; - /** @deprecated use `FileStorageFilesUpdateResponse$Outbound` instead. */ - export type Outbound = FileStorageFilesUpdateResponse$Outbound; -} - -export function fileStorageFilesUpdateResponseToJSON( - fileStorageFilesUpdateResponse: FileStorageFilesUpdateResponse, -): string { - return JSON.stringify( - FileStorageFilesUpdateResponse$outboundSchema.parse( - fileStorageFilesUpdateResponse, - ), - ); -} - export function fileStorageFilesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefoldersadd.ts b/src/models/operations/filestoragefoldersadd.ts index e4131cc47..7cd4048a0 100644 --- a/src/models/operations/filestoragefoldersadd.ts +++ b/src/models/operations/filestoragefoldersadd.ts @@ -56,83 +56,6 @@ export type FileStorageFoldersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFoldersAddGlobals$inboundSchema: z.ZodType< - FileStorageFoldersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFoldersAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFoldersAddGlobals$outboundSchema: z.ZodType< - FileStorageFoldersAddGlobals$Outbound, - z.ZodTypeDef, - FileStorageFoldersAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersAddGlobals$ { - /** @deprecated use `FileStorageFoldersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersAddGlobals$inboundSchema; - /** @deprecated use `FileStorageFoldersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersAddGlobals$outboundSchema; - /** @deprecated use `FileStorageFoldersAddGlobals$Outbound` instead. */ - export type Outbound = FileStorageFoldersAddGlobals$Outbound; -} - -export function fileStorageFoldersAddGlobalsToJSON( - fileStorageFoldersAddGlobals: FileStorageFoldersAddGlobals, -): string { - return JSON.stringify( - FileStorageFoldersAddGlobals$outboundSchema.parse( - fileStorageFoldersAddGlobals, - ), - ); -} - -export function fileStorageFoldersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFoldersAddRequest$inboundSchema: z.ZodType< - FileStorageFoldersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), - CreateFolderRequest: components.CreateFolderRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreateFolderRequest": "createFolderRequest", - }); -}); - /** @internal */ export type FileStorageFoldersAddRequest$Outbound = { raw: boolean; @@ -161,19 +84,6 @@ export const FileStorageFoldersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersAddRequest$ { - /** @deprecated use `FileStorageFoldersAddRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersAddRequest$inboundSchema; - /** @deprecated use `FileStorageFoldersAddRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersAddRequest$outboundSchema; - /** @deprecated use `FileStorageFoldersAddRequest$Outbound` instead. */ - export type Outbound = FileStorageFoldersAddRequest$Outbound; -} - export function fileStorageFoldersAddRequestToJSON( fileStorageFoldersAddRequest: FileStorageFoldersAddRequest, ): string { @@ -184,16 +94,6 @@ export function fileStorageFoldersAddRequestToJSON( ); } -export function fileStorageFoldersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersAddRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFoldersAddResponse$inboundSchema: z.ZodType< FileStorageFoldersAddResponse, @@ -213,57 +113,6 @@ export const FileStorageFoldersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFoldersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateFolderResponse?: components.CreateFolderResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFoldersAddResponse$outboundSchema: z.ZodType< - FileStorageFoldersAddResponse$Outbound, - z.ZodTypeDef, - FileStorageFoldersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createFolderResponse: components.CreateFolderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createFolderResponse: "CreateFolderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersAddResponse$ { - /** @deprecated use `FileStorageFoldersAddResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersAddResponse$inboundSchema; - /** @deprecated use `FileStorageFoldersAddResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersAddResponse$outboundSchema; - /** @deprecated use `FileStorageFoldersAddResponse$Outbound` instead. */ - export type Outbound = FileStorageFoldersAddResponse$Outbound; -} - -export function fileStorageFoldersAddResponseToJSON( - fileStorageFoldersAddResponse: FileStorageFoldersAddResponse, -): string { - return JSON.stringify( - FileStorageFoldersAddResponse$outboundSchema.parse( - fileStorageFoldersAddResponse, - ), - ); -} - export function fileStorageFoldersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefolderscopy.ts b/src/models/operations/filestoragefolderscopy.ts index e3b3c55da..90c6bf645 100644 --- a/src/models/operations/filestoragefolderscopy.ts +++ b/src/models/operations/filestoragefolderscopy.ts @@ -60,84 +60,6 @@ export type FileStorageFoldersCopyResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFoldersCopyGlobals$inboundSchema: z.ZodType< - FileStorageFoldersCopyGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFoldersCopyGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFoldersCopyGlobals$outboundSchema: z.ZodType< - FileStorageFoldersCopyGlobals$Outbound, - z.ZodTypeDef, - FileStorageFoldersCopyGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersCopyGlobals$ { - /** @deprecated use `FileStorageFoldersCopyGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersCopyGlobals$inboundSchema; - /** @deprecated use `FileStorageFoldersCopyGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersCopyGlobals$outboundSchema; - /** @deprecated use `FileStorageFoldersCopyGlobals$Outbound` instead. */ - export type Outbound = FileStorageFoldersCopyGlobals$Outbound; -} - -export function fileStorageFoldersCopyGlobalsToJSON( - fileStorageFoldersCopyGlobals: FileStorageFoldersCopyGlobals, -): string { - return JSON.stringify( - FileStorageFoldersCopyGlobals$outboundSchema.parse( - fileStorageFoldersCopyGlobals, - ), - ); -} - -export function fileStorageFoldersCopyGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersCopyGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersCopyGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFoldersCopyRequest$inboundSchema: z.ZodType< - FileStorageFoldersCopyRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - CopyFolderRequest: components.CopyFolderRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CopyFolderRequest": "copyFolderRequest", - }); -}); - /** @internal */ export type FileStorageFoldersCopyRequest$Outbound = { id: string; @@ -168,19 +90,6 @@ export const FileStorageFoldersCopyRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersCopyRequest$ { - /** @deprecated use `FileStorageFoldersCopyRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersCopyRequest$inboundSchema; - /** @deprecated use `FileStorageFoldersCopyRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersCopyRequest$outboundSchema; - /** @deprecated use `FileStorageFoldersCopyRequest$Outbound` instead. */ - export type Outbound = FileStorageFoldersCopyRequest$Outbound; -} - export function fileStorageFoldersCopyRequestToJSON( fileStorageFoldersCopyRequest: FileStorageFoldersCopyRequest, ): string { @@ -191,16 +100,6 @@ export function fileStorageFoldersCopyRequestToJSON( ); } -export function fileStorageFoldersCopyRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersCopyRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersCopyRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFoldersCopyResponse$inboundSchema: z.ZodType< FileStorageFoldersCopyResponse, @@ -220,57 +119,6 @@ export const FileStorageFoldersCopyResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFoldersCopyResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateFolderResponse?: components.UpdateFolderResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFoldersCopyResponse$outboundSchema: z.ZodType< - FileStorageFoldersCopyResponse$Outbound, - z.ZodTypeDef, - FileStorageFoldersCopyResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateFolderResponse: components.UpdateFolderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateFolderResponse: "UpdateFolderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersCopyResponse$ { - /** @deprecated use `FileStorageFoldersCopyResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersCopyResponse$inboundSchema; - /** @deprecated use `FileStorageFoldersCopyResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersCopyResponse$outboundSchema; - /** @deprecated use `FileStorageFoldersCopyResponse$Outbound` instead. */ - export type Outbound = FileStorageFoldersCopyResponse$Outbound; -} - -export function fileStorageFoldersCopyResponseToJSON( - fileStorageFoldersCopyResponse: FileStorageFoldersCopyResponse, -): string { - return JSON.stringify( - FileStorageFoldersCopyResponse$outboundSchema.parse( - fileStorageFoldersCopyResponse, - ), - ); -} - export function fileStorageFoldersCopyResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefoldersdelete.ts b/src/models/operations/filestoragefoldersdelete.ts index dee83a9d7..7f12fc19a 100644 --- a/src/models/operations/filestoragefoldersdelete.ts +++ b/src/models/operations/filestoragefoldersdelete.ts @@ -55,78 +55,6 @@ export type FileStorageFoldersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFoldersDeleteGlobals$inboundSchema: z.ZodType< - FileStorageFoldersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFoldersDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFoldersDeleteGlobals$outboundSchema: z.ZodType< - FileStorageFoldersDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageFoldersDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersDeleteGlobals$ { - /** @deprecated use `FileStorageFoldersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageFoldersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageFoldersDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageFoldersDeleteGlobals$Outbound; -} - -export function fileStorageFoldersDeleteGlobalsToJSON( - fileStorageFoldersDeleteGlobals: FileStorageFoldersDeleteGlobals, -): string { - return JSON.stringify( - FileStorageFoldersDeleteGlobals$outboundSchema.parse( - fileStorageFoldersDeleteGlobals, - ), - ); -} - -export function fileStorageFoldersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFoldersDeleteRequest$inboundSchema: z.ZodType< - FileStorageFoldersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageFoldersDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const FileStorageFoldersDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersDeleteRequest$ { - /** @deprecated use `FileStorageFoldersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageFoldersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageFoldersDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageFoldersDeleteRequest$Outbound; -} - export function fileStorageFoldersDeleteRequestToJSON( fileStorageFoldersDeleteRequest: FileStorageFoldersDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function fileStorageFoldersDeleteRequestToJSON( ); } -export function fileStorageFoldersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFoldersDeleteResponse$inboundSchema: z.ZodType< FileStorageFoldersDeleteResponse, @@ -201,57 +106,6 @@ export const FileStorageFoldersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFoldersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteFolderResponse?: components.DeleteFolderResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFoldersDeleteResponse$outboundSchema: z.ZodType< - FileStorageFoldersDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageFoldersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteFolderResponse: components.DeleteFolderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteFolderResponse: "DeleteFolderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersDeleteResponse$ { - /** @deprecated use `FileStorageFoldersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageFoldersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageFoldersDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageFoldersDeleteResponse$Outbound; -} - -export function fileStorageFoldersDeleteResponseToJSON( - fileStorageFoldersDeleteResponse: FileStorageFoldersDeleteResponse, -): string { - return JSON.stringify( - FileStorageFoldersDeleteResponse$outboundSchema.parse( - fileStorageFoldersDeleteResponse, - ), - ); -} - export function fileStorageFoldersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefoldersone.ts b/src/models/operations/filestoragefoldersone.ts index ad8745bc1..add6fe633 100644 --- a/src/models/operations/filestoragefoldersone.ts +++ b/src/models/operations/filestoragefoldersone.ts @@ -59,79 +59,6 @@ export type FileStorageFoldersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFoldersOneGlobals$inboundSchema: z.ZodType< - FileStorageFoldersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFoldersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFoldersOneGlobals$outboundSchema: z.ZodType< - FileStorageFoldersOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageFoldersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersOneGlobals$ { - /** @deprecated use `FileStorageFoldersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersOneGlobals$inboundSchema; - /** @deprecated use `FileStorageFoldersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersOneGlobals$outboundSchema; - /** @deprecated use `FileStorageFoldersOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageFoldersOneGlobals$Outbound; -} - -export function fileStorageFoldersOneGlobalsToJSON( - fileStorageFoldersOneGlobals: FileStorageFoldersOneGlobals, -): string { - return JSON.stringify( - FileStorageFoldersOneGlobals$outboundSchema.parse( - fileStorageFoldersOneGlobals, - ), - ); -} - -export function fileStorageFoldersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFoldersOneRequest$inboundSchema: z.ZodType< - FileStorageFoldersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageFoldersOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const FileStorageFoldersOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersOneRequest$ { - /** @deprecated use `FileStorageFoldersOneRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersOneRequest$inboundSchema; - /** @deprecated use `FileStorageFoldersOneRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersOneRequest$outboundSchema; - /** @deprecated use `FileStorageFoldersOneRequest$Outbound` instead. */ - export type Outbound = FileStorageFoldersOneRequest$Outbound; -} - export function fileStorageFoldersOneRequestToJSON( fileStorageFoldersOneRequest: FileStorageFoldersOneRequest, ): string { @@ -179,16 +93,6 @@ export function fileStorageFoldersOneRequestToJSON( ); } -export function fileStorageFoldersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFoldersOneResponse$inboundSchema: z.ZodType< FileStorageFoldersOneResponse, @@ -207,56 +111,6 @@ export const FileStorageFoldersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFoldersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFolderResponse?: components.GetFolderResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFoldersOneResponse$outboundSchema: z.ZodType< - FileStorageFoldersOneResponse$Outbound, - z.ZodTypeDef, - FileStorageFoldersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFolderResponse: components.GetFolderResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFolderResponse: "GetFolderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersOneResponse$ { - /** @deprecated use `FileStorageFoldersOneResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersOneResponse$inboundSchema; - /** @deprecated use `FileStorageFoldersOneResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersOneResponse$outboundSchema; - /** @deprecated use `FileStorageFoldersOneResponse$Outbound` instead. */ - export type Outbound = FileStorageFoldersOneResponse$Outbound; -} - -export function fileStorageFoldersOneResponseToJSON( - fileStorageFoldersOneResponse: FileStorageFoldersOneResponse, -): string { - return JSON.stringify( - FileStorageFoldersOneResponse$outboundSchema.parse( - fileStorageFoldersOneResponse, - ), - ); -} - export function fileStorageFoldersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragefoldersupdate.ts b/src/models/operations/filestoragefoldersupdate.ts index b82af4dfe..b1d918753 100644 --- a/src/models/operations/filestoragefoldersupdate.ts +++ b/src/models/operations/filestoragefoldersupdate.ts @@ -56,83 +56,6 @@ export type FileStorageFoldersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageFoldersUpdateGlobals$inboundSchema: z.ZodType< - FileStorageFoldersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageFoldersUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageFoldersUpdateGlobals$outboundSchema: z.ZodType< - FileStorageFoldersUpdateGlobals$Outbound, - z.ZodTypeDef, - FileStorageFoldersUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersUpdateGlobals$ { - /** @deprecated use `FileStorageFoldersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersUpdateGlobals$inboundSchema; - /** @deprecated use `FileStorageFoldersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersUpdateGlobals$outboundSchema; - /** @deprecated use `FileStorageFoldersUpdateGlobals$Outbound` instead. */ - export type Outbound = FileStorageFoldersUpdateGlobals$Outbound; -} - -export function fileStorageFoldersUpdateGlobalsToJSON( - fileStorageFoldersUpdateGlobals: FileStorageFoldersUpdateGlobals, -): string { - return JSON.stringify( - FileStorageFoldersUpdateGlobals$outboundSchema.parse( - fileStorageFoldersUpdateGlobals, - ), - ); -} - -export function fileStorageFoldersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageFoldersUpdateRequest$inboundSchema: z.ZodType< - FileStorageFoldersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - UpdateFolderRequest: components.UpdateFolderRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "UpdateFolderRequest": "updateFolderRequest", - }); -}); - /** @internal */ export type FileStorageFoldersUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const FileStorageFoldersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersUpdateRequest$ { - /** @deprecated use `FileStorageFoldersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersUpdateRequest$inboundSchema; - /** @deprecated use `FileStorageFoldersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersUpdateRequest$outboundSchema; - /** @deprecated use `FileStorageFoldersUpdateRequest$Outbound` instead. */ - export type Outbound = FileStorageFoldersUpdateRequest$Outbound; -} - export function fileStorageFoldersUpdateRequestToJSON( fileStorageFoldersUpdateRequest: FileStorageFoldersUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function fileStorageFoldersUpdateRequestToJSON( ); } -export function fileStorageFoldersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageFoldersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageFoldersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageFoldersUpdateResponse$inboundSchema: z.ZodType< FileStorageFoldersUpdateResponse, @@ -213,57 +113,6 @@ export const FileStorageFoldersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageFoldersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateFolderResponse?: components.UpdateFolderResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageFoldersUpdateResponse$outboundSchema: z.ZodType< - FileStorageFoldersUpdateResponse$Outbound, - z.ZodTypeDef, - FileStorageFoldersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateFolderResponse: components.UpdateFolderResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateFolderResponse: "UpdateFolderResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageFoldersUpdateResponse$ { - /** @deprecated use `FileStorageFoldersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageFoldersUpdateResponse$inboundSchema; - /** @deprecated use `FileStorageFoldersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = FileStorageFoldersUpdateResponse$outboundSchema; - /** @deprecated use `FileStorageFoldersUpdateResponse$Outbound` instead. */ - export type Outbound = FileStorageFoldersUpdateResponse$Outbound; -} - -export function fileStorageFoldersUpdateResponseToJSON( - fileStorageFoldersUpdateResponse: FileStorageFoldersUpdateResponse, -): string { - return JSON.stringify( - FileStorageFoldersUpdateResponse$outboundSchema.parse( - fileStorageFoldersUpdateResponse, - ), - ); -} - export function fileStorageFoldersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragesharedlinksadd.ts b/src/models/operations/filestoragesharedlinksadd.ts index c42dff107..cc60d51b2 100644 --- a/src/models/operations/filestoragesharedlinksadd.ts +++ b/src/models/operations/filestoragesharedlinksadd.ts @@ -52,82 +52,6 @@ export type FileStorageSharedLinksAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageSharedLinksAddGlobals$inboundSchema: z.ZodType< - FileStorageSharedLinksAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageSharedLinksAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksAddGlobals$outboundSchema: z.ZodType< - FileStorageSharedLinksAddGlobals$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAddGlobals$ { - /** @deprecated use `FileStorageSharedLinksAddGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAddGlobals$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAddGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksAddGlobals$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAddGlobals$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAddGlobals$Outbound; -} - -export function fileStorageSharedLinksAddGlobalsToJSON( - fileStorageSharedLinksAddGlobals: FileStorageSharedLinksAddGlobals, -): string { - return JSON.stringify( - FileStorageSharedLinksAddGlobals$outboundSchema.parse( - fileStorageSharedLinksAddGlobals, - ), - ); -} - -export function fileStorageSharedLinksAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageSharedLinksAddRequest$inboundSchema: z.ZodType< - FileStorageSharedLinksAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - SharedLink: components.SharedLinkInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "SharedLink": "sharedLink", - }); -}); - /** @internal */ export type FileStorageSharedLinksAddRequest$Outbound = { raw: boolean; @@ -154,19 +78,6 @@ export const FileStorageSharedLinksAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAddRequest$ { - /** @deprecated use `FileStorageSharedLinksAddRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAddRequest$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAddRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksAddRequest$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAddRequest$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAddRequest$Outbound; -} - export function fileStorageSharedLinksAddRequestToJSON( fileStorageSharedLinksAddRequest: FileStorageSharedLinksAddRequest, ): string { @@ -177,16 +88,6 @@ export function fileStorageSharedLinksAddRequestToJSON( ); } -export function fileStorageSharedLinksAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksAddRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageSharedLinksAddResponse$inboundSchema: z.ZodType< FileStorageSharedLinksAddResponse, @@ -206,60 +107,6 @@ export const FileStorageSharedLinksAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageSharedLinksAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateSharedLinkResponse?: - | components.CreateSharedLinkResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksAddResponse$outboundSchema: z.ZodType< - FileStorageSharedLinksAddResponse$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createSharedLinkResponse: components.CreateSharedLinkResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createSharedLinkResponse: "CreateSharedLinkResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAddResponse$ { - /** @deprecated use `FileStorageSharedLinksAddResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAddResponse$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAddResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksAddResponse$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAddResponse$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAddResponse$Outbound; -} - -export function fileStorageSharedLinksAddResponseToJSON( - fileStorageSharedLinksAddResponse: FileStorageSharedLinksAddResponse, -): string { - return JSON.stringify( - FileStorageSharedLinksAddResponse$outboundSchema.parse( - fileStorageSharedLinksAddResponse, - ), - ); -} - export function fileStorageSharedLinksAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragesharedlinksall.ts b/src/models/operations/filestoragesharedlinksall.ts index d2fd21aae..7e5ffa08a 100644 --- a/src/models/operations/filestoragesharedlinksall.ts +++ b/src/models/operations/filestoragesharedlinksall.ts @@ -67,85 +67,6 @@ export type FileStorageSharedLinksAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageSharedLinksAllGlobals$inboundSchema: z.ZodType< - FileStorageSharedLinksAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageSharedLinksAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksAllGlobals$outboundSchema: z.ZodType< - FileStorageSharedLinksAllGlobals$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAllGlobals$ { - /** @deprecated use `FileStorageSharedLinksAllGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAllGlobals$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAllGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksAllGlobals$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAllGlobals$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAllGlobals$Outbound; -} - -export function fileStorageSharedLinksAllGlobalsToJSON( - fileStorageSharedLinksAllGlobals: FileStorageSharedLinksAllGlobals, -): string { - return JSON.stringify( - FileStorageSharedLinksAllGlobals$outboundSchema.parse( - fileStorageSharedLinksAllGlobals, - ), - ); -} - -export function fileStorageSharedLinksAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageSharedLinksAllRequest$inboundSchema: z.ZodType< - FileStorageSharedLinksAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type FileStorageSharedLinksAllRequest$Outbound = { raw: boolean; @@ -178,19 +99,6 @@ export const FileStorageSharedLinksAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAllRequest$ { - /** @deprecated use `FileStorageSharedLinksAllRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAllRequest$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAllRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksAllRequest$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAllRequest$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAllRequest$Outbound; -} - export function fileStorageSharedLinksAllRequestToJSON( fileStorageSharedLinksAllRequest: FileStorageSharedLinksAllRequest, ): string { @@ -201,16 +109,6 @@ export function fileStorageSharedLinksAllRequestToJSON( ); } -export function fileStorageSharedLinksAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksAllRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageSharedLinksAllResponse$inboundSchema: z.ZodType< FileStorageSharedLinksAllResponse, @@ -230,60 +128,6 @@ export const FileStorageSharedLinksAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageSharedLinksAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSharedLinksResponse?: - | components.GetSharedLinksResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksAllResponse$outboundSchema: z.ZodType< - FileStorageSharedLinksAllResponse$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSharedLinksResponse: components.GetSharedLinksResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSharedLinksResponse: "GetSharedLinksResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksAllResponse$ { - /** @deprecated use `FileStorageSharedLinksAllResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksAllResponse$inboundSchema; - /** @deprecated use `FileStorageSharedLinksAllResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksAllResponse$outboundSchema; - /** @deprecated use `FileStorageSharedLinksAllResponse$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksAllResponse$Outbound; -} - -export function fileStorageSharedLinksAllResponseToJSON( - fileStorageSharedLinksAllResponse: FileStorageSharedLinksAllResponse, -): string { - return JSON.stringify( - FileStorageSharedLinksAllResponse$outboundSchema.parse( - fileStorageSharedLinksAllResponse, - ), - ); -} - export function fileStorageSharedLinksAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragesharedlinksdelete.ts b/src/models/operations/filestoragesharedlinksdelete.ts index 3caffb99e..67fa9ef3e 100644 --- a/src/models/operations/filestoragesharedlinksdelete.ts +++ b/src/models/operations/filestoragesharedlinksdelete.ts @@ -55,81 +55,6 @@ export type FileStorageSharedLinksDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageSharedLinksDeleteGlobals$inboundSchema: z.ZodType< - FileStorageSharedLinksDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageSharedLinksDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksDeleteGlobals$outboundSchema: z.ZodType< - FileStorageSharedLinksDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksDeleteGlobals$ { - /** @deprecated use `FileStorageSharedLinksDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksDeleteGlobals$Outbound; -} - -export function fileStorageSharedLinksDeleteGlobalsToJSON( - fileStorageSharedLinksDeleteGlobals: FileStorageSharedLinksDeleteGlobals, -): string { - return JSON.stringify( - FileStorageSharedLinksDeleteGlobals$outboundSchema.parse( - fileStorageSharedLinksDeleteGlobals, - ), - ); -} - -export function fileStorageSharedLinksDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageSharedLinksDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageSharedLinksDeleteRequest$inboundSchema: z.ZodType< - FileStorageSharedLinksDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageSharedLinksDeleteRequest$Outbound = { id: string; @@ -152,21 +77,6 @@ export const FileStorageSharedLinksDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksDeleteRequest$ { - /** @deprecated use `FileStorageSharedLinksDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksDeleteRequest$Outbound; -} - export function fileStorageSharedLinksDeleteRequestToJSON( fileStorageSharedLinksDeleteRequest: FileStorageSharedLinksDeleteRequest, ): string { @@ -177,17 +87,6 @@ export function fileStorageSharedLinksDeleteRequestToJSON( ); } -export function fileStorageSharedLinksDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageSharedLinksDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageSharedLinksDeleteResponse$inboundSchema: z.ZodType< FileStorageSharedLinksDeleteResponse, @@ -207,61 +106,6 @@ export const FileStorageSharedLinksDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageSharedLinksDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteSharedLinkResponse?: - | components.DeleteSharedLinkResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksDeleteResponse$outboundSchema: z.ZodType< - FileStorageSharedLinksDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteSharedLinkResponse: components.DeleteSharedLinkResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteSharedLinkResponse: "DeleteSharedLinkResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksDeleteResponse$ { - /** @deprecated use `FileStorageSharedLinksDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageSharedLinksDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksDeleteResponse$Outbound; -} - -export function fileStorageSharedLinksDeleteResponseToJSON( - fileStorageSharedLinksDeleteResponse: FileStorageSharedLinksDeleteResponse, -): string { - return JSON.stringify( - FileStorageSharedLinksDeleteResponse$outboundSchema.parse( - fileStorageSharedLinksDeleteResponse, - ), - ); -} - export function fileStorageSharedLinksDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragesharedlinksone.ts b/src/models/operations/filestoragesharedlinksone.ts index f521d9992..529c655c5 100644 --- a/src/models/operations/filestoragesharedlinksone.ts +++ b/src/models/operations/filestoragesharedlinksone.ts @@ -59,79 +59,6 @@ export type FileStorageSharedLinksOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageSharedLinksOneGlobals$inboundSchema: z.ZodType< - FileStorageSharedLinksOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageSharedLinksOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksOneGlobals$outboundSchema: z.ZodType< - FileStorageSharedLinksOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksOneGlobals$ { - /** @deprecated use `FileStorageSharedLinksOneGlobals$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksOneGlobals$inboundSchema; - /** @deprecated use `FileStorageSharedLinksOneGlobals$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksOneGlobals$outboundSchema; - /** @deprecated use `FileStorageSharedLinksOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksOneGlobals$Outbound; -} - -export function fileStorageSharedLinksOneGlobalsToJSON( - fileStorageSharedLinksOneGlobals: FileStorageSharedLinksOneGlobals, -): string { - return JSON.stringify( - FileStorageSharedLinksOneGlobals$outboundSchema.parse( - fileStorageSharedLinksOneGlobals, - ), - ); -} - -export function fileStorageSharedLinksOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageSharedLinksOneRequest$inboundSchema: z.ZodType< - FileStorageSharedLinksOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageSharedLinksOneRequest$Outbound = { id: string; @@ -156,19 +83,6 @@ export const FileStorageSharedLinksOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksOneRequest$ { - /** @deprecated use `FileStorageSharedLinksOneRequest$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksOneRequest$inboundSchema; - /** @deprecated use `FileStorageSharedLinksOneRequest$outboundSchema` instead. */ - export const outboundSchema = FileStorageSharedLinksOneRequest$outboundSchema; - /** @deprecated use `FileStorageSharedLinksOneRequest$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksOneRequest$Outbound; -} - export function fileStorageSharedLinksOneRequestToJSON( fileStorageSharedLinksOneRequest: FileStorageSharedLinksOneRequest, ): string { @@ -179,16 +93,6 @@ export function fileStorageSharedLinksOneRequestToJSON( ); } -export function fileStorageSharedLinksOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FileStorageSharedLinksOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageSharedLinksOneResponse$inboundSchema: z.ZodType< FileStorageSharedLinksOneResponse, @@ -208,58 +112,6 @@ export const FileStorageSharedLinksOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageSharedLinksOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetSharedLinkResponse?: components.GetSharedLinkResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksOneResponse$outboundSchema: z.ZodType< - FileStorageSharedLinksOneResponse$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getSharedLinkResponse: components.GetSharedLinkResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getSharedLinkResponse: "GetSharedLinkResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksOneResponse$ { - /** @deprecated use `FileStorageSharedLinksOneResponse$inboundSchema` instead. */ - export const inboundSchema = FileStorageSharedLinksOneResponse$inboundSchema; - /** @deprecated use `FileStorageSharedLinksOneResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksOneResponse$outboundSchema; - /** @deprecated use `FileStorageSharedLinksOneResponse$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksOneResponse$Outbound; -} - -export function fileStorageSharedLinksOneResponseToJSON( - fileStorageSharedLinksOneResponse: FileStorageSharedLinksOneResponse, -): string { - return JSON.stringify( - FileStorageSharedLinksOneResponse$outboundSchema.parse( - fileStorageSharedLinksOneResponse, - ), - ); -} - export function fileStorageSharedLinksOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestoragesharedlinksupdate.ts b/src/models/operations/filestoragesharedlinksupdate.ts index 4548f9c19..8e4f7ba66 100644 --- a/src/models/operations/filestoragesharedlinksupdate.ts +++ b/src/models/operations/filestoragesharedlinksupdate.ts @@ -56,86 +56,6 @@ export type FileStorageSharedLinksUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageSharedLinksUpdateGlobals$inboundSchema: z.ZodType< - FileStorageSharedLinksUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageSharedLinksUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksUpdateGlobals$outboundSchema: z.ZodType< - FileStorageSharedLinksUpdateGlobals$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksUpdateGlobals$ { - /** @deprecated use `FileStorageSharedLinksUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksUpdateGlobals$inboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksUpdateGlobals$outboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateGlobals$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksUpdateGlobals$Outbound; -} - -export function fileStorageSharedLinksUpdateGlobalsToJSON( - fileStorageSharedLinksUpdateGlobals: FileStorageSharedLinksUpdateGlobals, -): string { - return JSON.stringify( - FileStorageSharedLinksUpdateGlobals$outboundSchema.parse( - fileStorageSharedLinksUpdateGlobals, - ), - ); -} - -export function fileStorageSharedLinksUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageSharedLinksUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageSharedLinksUpdateRequest$inboundSchema: z.ZodType< - FileStorageSharedLinksUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - SharedLink: components.SharedLinkInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "SharedLink": "sharedLink", - }); -}); - /** @internal */ export type FileStorageSharedLinksUpdateRequest$Outbound = { id: string; @@ -164,21 +84,6 @@ export const FileStorageSharedLinksUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksUpdateRequest$ { - /** @deprecated use `FileStorageSharedLinksUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksUpdateRequest$inboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksUpdateRequest$outboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateRequest$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksUpdateRequest$Outbound; -} - export function fileStorageSharedLinksUpdateRequestToJSON( fileStorageSharedLinksUpdateRequest: FileStorageSharedLinksUpdateRequest, ): string { @@ -189,17 +94,6 @@ export function fileStorageSharedLinksUpdateRequestToJSON( ); } -export function fileStorageSharedLinksUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageSharedLinksUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageSharedLinksUpdateRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageSharedLinksUpdateResponse$inboundSchema: z.ZodType< FileStorageSharedLinksUpdateResponse, @@ -219,61 +113,6 @@ export const FileStorageSharedLinksUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageSharedLinksUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateSharedLinkResponse?: - | components.UpdateSharedLinkResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageSharedLinksUpdateResponse$outboundSchema: z.ZodType< - FileStorageSharedLinksUpdateResponse$Outbound, - z.ZodTypeDef, - FileStorageSharedLinksUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateSharedLinkResponse: components.UpdateSharedLinkResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateSharedLinkResponse: "UpdateSharedLinkResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageSharedLinksUpdateResponse$ { - /** @deprecated use `FileStorageSharedLinksUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageSharedLinksUpdateResponse$inboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageSharedLinksUpdateResponse$outboundSchema; - /** @deprecated use `FileStorageSharedLinksUpdateResponse$Outbound` instead. */ - export type Outbound = FileStorageSharedLinksUpdateResponse$Outbound; -} - -export function fileStorageSharedLinksUpdateResponseToJSON( - fileStorageSharedLinksUpdateResponse: FileStorageSharedLinksUpdateResponse, -): string { - return JSON.stringify( - FileStorageSharedLinksUpdateResponse$outboundSchema.parse( - fileStorageSharedLinksUpdateResponse, - ), - ); -} - export function fileStorageSharedLinksUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestorageuploadsessionsadd.ts b/src/models/operations/filestorageuploadsessionsadd.ts index 9adbaf44d..a13098069 100644 --- a/src/models/operations/filestorageuploadsessionsadd.ts +++ b/src/models/operations/filestorageuploadsessionsadd.ts @@ -58,86 +58,6 @@ export type FileStorageUploadSessionsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageUploadSessionsAddGlobals$inboundSchema: z.ZodType< - FileStorageUploadSessionsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageUploadSessionsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsAddGlobals$outboundSchema: z.ZodType< - FileStorageUploadSessionsAddGlobals$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsAddGlobals$ { - /** @deprecated use `FileStorageUploadSessionsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsAddGlobals$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsAddGlobals$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddGlobals$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsAddGlobals$Outbound; -} - -export function fileStorageUploadSessionsAddGlobalsToJSON( - fileStorageUploadSessionsAddGlobals: FileStorageUploadSessionsAddGlobals, -): string { - return JSON.stringify( - FileStorageUploadSessionsAddGlobals$outboundSchema.parse( - fileStorageUploadSessionsAddGlobals, - ), - ); -} - -export function fileStorageUploadSessionsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsAddRequest$inboundSchema: z.ZodType< - FileStorageUploadSessionsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - CreateUploadSessionRequest: - components.CreateUploadSessionRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreateUploadSessionRequest": "createUploadSessionRequest", - }); -}); - /** @internal */ export type FileStorageUploadSessionsAddRequest$Outbound = { raw: boolean; @@ -165,21 +85,6 @@ export const FileStorageUploadSessionsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsAddRequest$ { - /** @deprecated use `FileStorageUploadSessionsAddRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsAddRequest$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsAddRequest$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddRequest$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsAddRequest$Outbound; -} - export function fileStorageUploadSessionsAddRequestToJSON( fileStorageUploadSessionsAddRequest: FileStorageUploadSessionsAddRequest, ): string { @@ -190,17 +95,6 @@ export function fileStorageUploadSessionsAddRequestToJSON( ); } -export function fileStorageUploadSessionsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsAddRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageUploadSessionsAddResponse$inboundSchema: z.ZodType< FileStorageUploadSessionsAddResponse, @@ -220,61 +114,6 @@ export const FileStorageUploadSessionsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageUploadSessionsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateUploadSessionResponse?: - | components.CreateUploadSessionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsAddResponse$outboundSchema: z.ZodType< - FileStorageUploadSessionsAddResponse$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createUploadSessionResponse: components - .CreateUploadSessionResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createUploadSessionResponse: "CreateUploadSessionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsAddResponse$ { - /** @deprecated use `FileStorageUploadSessionsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsAddResponse$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsAddResponse$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsAddResponse$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsAddResponse$Outbound; -} - -export function fileStorageUploadSessionsAddResponseToJSON( - fileStorageUploadSessionsAddResponse: FileStorageUploadSessionsAddResponse, -): string { - return JSON.stringify( - FileStorageUploadSessionsAddResponse$outboundSchema.parse( - fileStorageUploadSessionsAddResponse, - ), - ); -} - export function fileStorageUploadSessionsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestorageuploadsessionsdelete.ts b/src/models/operations/filestorageuploadsessionsdelete.ts index 2115a2c08..c9b89b297 100644 --- a/src/models/operations/filestorageuploadsessionsdelete.ts +++ b/src/models/operations/filestorageuploadsessionsdelete.ts @@ -57,82 +57,6 @@ export type FileStorageUploadSessionsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageUploadSessionsDeleteGlobals$inboundSchema: z.ZodType< - FileStorageUploadSessionsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageUploadSessionsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsDeleteGlobals$outboundSchema: z.ZodType< - FileStorageUploadSessionsDeleteGlobals$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsDeleteGlobals$ { - /** @deprecated use `FileStorageUploadSessionsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsDeleteGlobals$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsDeleteGlobals$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteGlobals$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsDeleteGlobals$Outbound; -} - -export function fileStorageUploadSessionsDeleteGlobalsToJSON( - fileStorageUploadSessionsDeleteGlobals: - FileStorageUploadSessionsDeleteGlobals, -): string { - return JSON.stringify( - FileStorageUploadSessionsDeleteGlobals$outboundSchema.parse( - fileStorageUploadSessionsDeleteGlobals, - ), - ); -} - -export function fileStorageUploadSessionsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsDeleteRequest$inboundSchema: z.ZodType< - FileStorageUploadSessionsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type FileStorageUploadSessionsDeleteRequest$Outbound = { id: string; @@ -155,21 +79,6 @@ export const FileStorageUploadSessionsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsDeleteRequest$ { - /** @deprecated use `FileStorageUploadSessionsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsDeleteRequest$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsDeleteRequest$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteRequest$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsDeleteRequest$Outbound; -} - export function fileStorageUploadSessionsDeleteRequestToJSON( fileStorageUploadSessionsDeleteRequest: FileStorageUploadSessionsDeleteRequest, @@ -181,17 +90,6 @@ export function fileStorageUploadSessionsDeleteRequestToJSON( ); } -export function fileStorageUploadSessionsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageUploadSessionsDeleteResponse$inboundSchema: z.ZodType< FileStorageUploadSessionsDeleteResponse, @@ -211,62 +109,6 @@ export const FileStorageUploadSessionsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageUploadSessionsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteUploadSessionResponse?: - | components.DeleteUploadSessionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsDeleteResponse$outboundSchema: z.ZodType< - FileStorageUploadSessionsDeleteResponse$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteUploadSessionResponse: components - .DeleteUploadSessionResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteUploadSessionResponse: "DeleteUploadSessionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsDeleteResponse$ { - /** @deprecated use `FileStorageUploadSessionsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsDeleteResponse$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsDeleteResponse$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsDeleteResponse$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsDeleteResponse$Outbound; -} - -export function fileStorageUploadSessionsDeleteResponseToJSON( - fileStorageUploadSessionsDeleteResponse: - FileStorageUploadSessionsDeleteResponse, -): string { - return JSON.stringify( - FileStorageUploadSessionsDeleteResponse$outboundSchema.parse( - fileStorageUploadSessionsDeleteResponse, - ), - ); -} - export function fileStorageUploadSessionsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/filestorageuploadsessionsfinish.ts b/src/models/operations/filestorageuploadsessionsfinish.ts index 1c0f91aea..4a564752d 100644 --- a/src/models/operations/filestorageuploadsessionsfinish.ts +++ b/src/models/operations/filestorageuploadsessionsfinish.ts @@ -66,74 +66,6 @@ export type FileStorageUploadSessionsFinishResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageUploadSessionsFinishGlobals$inboundSchema: z.ZodType< - FileStorageUploadSessionsFinishGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageUploadSessionsFinishGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsFinishGlobals$outboundSchema: z.ZodType< - FileStorageUploadSessionsFinishGlobals$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsFinishGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsFinishGlobals$ { - /** @deprecated use `FileStorageUploadSessionsFinishGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsFinishGlobals$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsFinishGlobals$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishGlobals$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsFinishGlobals$Outbound; -} - -export function fileStorageUploadSessionsFinishGlobalsToJSON( - fileStorageUploadSessionsFinishGlobals: - FileStorageUploadSessionsFinishGlobals, -): string { - return JSON.stringify( - FileStorageUploadSessionsFinishGlobals$outboundSchema.parse( - fileStorageUploadSessionsFinishGlobals, - ), - ); -} - -export function fileStorageUploadSessionsFinishGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsFinishGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsFinishGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsFinishRequestBody$inboundSchema: - z.ZodType = - z.object({}); - /** @internal */ export type FileStorageUploadSessionsFinishRequestBody$Outbound = {}; @@ -145,21 +77,6 @@ export const FileStorageUploadSessionsFinishRequestBody$outboundSchema: FileStorageUploadSessionsFinishRequestBody > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsFinishRequestBody$ { - /** @deprecated use `FileStorageUploadSessionsFinishRequestBody$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsFinishRequestBody$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishRequestBody$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsFinishRequestBody$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishRequestBody$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsFinishRequestBody$Outbound; -} - export function fileStorageUploadSessionsFinishRequestBodyToJSON( fileStorageUploadSessionsFinishRequestBody: FileStorageUploadSessionsFinishRequestBody, @@ -171,43 +88,6 @@ export function fileStorageUploadSessionsFinishRequestBodyToJSON( ); } -export function fileStorageUploadSessionsFinishRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - FileStorageUploadSessionsFinishRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsFinishRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'FileStorageUploadSessionsFinishRequestBody' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsFinishRequest$inboundSchema: z.ZodType< - FileStorageUploadSessionsFinishRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - digest: z.string().optional(), - RequestBody: z.lazy(() => - FileStorageUploadSessionsFinishRequestBody$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "RequestBody": "requestBody", - }); -}); - /** @internal */ export type FileStorageUploadSessionsFinishRequest$Outbound = { id: string; @@ -240,21 +120,6 @@ export const FileStorageUploadSessionsFinishRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsFinishRequest$ { - /** @deprecated use `FileStorageUploadSessionsFinishRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsFinishRequest$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsFinishRequest$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishRequest$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsFinishRequest$Outbound; -} - export function fileStorageUploadSessionsFinishRequestToJSON( fileStorageUploadSessionsFinishRequest: FileStorageUploadSessionsFinishRequest, @@ -266,17 +131,6 @@ export function fileStorageUploadSessionsFinishRequestToJSON( ); } -export function fileStorageUploadSessionsFinishRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsFinishRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsFinishRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageUploadSessionsFinishResponse$inboundSchema: z.ZodType< FileStorageUploadSessionsFinishResponse, @@ -295,59 +149,6 @@ export const FileStorageUploadSessionsFinishResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageUploadSessionsFinishResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetFileResponse?: components.GetFileResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsFinishResponse$outboundSchema: z.ZodType< - FileStorageUploadSessionsFinishResponse$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsFinishResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getFileResponse: components.GetFileResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getFileResponse: "GetFileResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsFinishResponse$ { - /** @deprecated use `FileStorageUploadSessionsFinishResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsFinishResponse$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsFinishResponse$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsFinishResponse$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsFinishResponse$Outbound; -} - -export function fileStorageUploadSessionsFinishResponseToJSON( - fileStorageUploadSessionsFinishResponse: - FileStorageUploadSessionsFinishResponse, -): string { - return JSON.stringify( - FileStorageUploadSessionsFinishResponse$outboundSchema.parse( - fileStorageUploadSessionsFinishResponse, - ), - ); -} - export function fileStorageUploadSessionsFinishResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/filestorageuploadsessionsone.ts b/src/models/operations/filestorageuploadsessionsone.ts index ba9acf7ac..fa5243936 100644 --- a/src/models/operations/filestorageuploadsessionsone.ts +++ b/src/models/operations/filestorageuploadsessionsone.ts @@ -63,82 +63,6 @@ export type FileStorageUploadSessionsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageUploadSessionsOneGlobals$inboundSchema: z.ZodType< - FileStorageUploadSessionsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageUploadSessionsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsOneGlobals$outboundSchema: z.ZodType< - FileStorageUploadSessionsOneGlobals$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsOneGlobals$ { - /** @deprecated use `FileStorageUploadSessionsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsOneGlobals$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsOneGlobals$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneGlobals$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsOneGlobals$Outbound; -} - -export function fileStorageUploadSessionsOneGlobalsToJSON( - fileStorageUploadSessionsOneGlobals: FileStorageUploadSessionsOneGlobals, -): string { - return JSON.stringify( - FileStorageUploadSessionsOneGlobals$outboundSchema.parse( - fileStorageUploadSessionsOneGlobals, - ), - ); -} - -export function fileStorageUploadSessionsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsOneRequest$inboundSchema: z.ZodType< - FileStorageUploadSessionsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type FileStorageUploadSessionsOneRequest$Outbound = { id: string; @@ -163,21 +87,6 @@ export const FileStorageUploadSessionsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsOneRequest$ { - /** @deprecated use `FileStorageUploadSessionsOneRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsOneRequest$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsOneRequest$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneRequest$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsOneRequest$Outbound; -} - export function fileStorageUploadSessionsOneRequestToJSON( fileStorageUploadSessionsOneRequest: FileStorageUploadSessionsOneRequest, ): string { @@ -188,17 +97,6 @@ export function fileStorageUploadSessionsOneRequestToJSON( ); } -export function fileStorageUploadSessionsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsOneRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageUploadSessionsOneResponse$inboundSchema: z.ZodType< FileStorageUploadSessionsOneResponse, @@ -218,61 +116,6 @@ export const FileStorageUploadSessionsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageUploadSessionsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetUploadSessionResponse?: - | components.GetUploadSessionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsOneResponse$outboundSchema: z.ZodType< - FileStorageUploadSessionsOneResponse$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getUploadSessionResponse: components.GetUploadSessionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getUploadSessionResponse: "GetUploadSessionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsOneResponse$ { - /** @deprecated use `FileStorageUploadSessionsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsOneResponse$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsOneResponse$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsOneResponse$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsOneResponse$Outbound; -} - -export function fileStorageUploadSessionsOneResponseToJSON( - fileStorageUploadSessionsOneResponse: FileStorageUploadSessionsOneResponse, -): string { - return JSON.stringify( - FileStorageUploadSessionsOneResponse$outboundSchema.parse( - fileStorageUploadSessionsOneResponse, - ), - ); -} - export function fileStorageUploadSessionsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/filestorageuploadsessionsupload.ts b/src/models/operations/filestorageuploadsessionsupload.ts index 95d4b4722..010d9b3bd 100644 --- a/src/models/operations/filestorageuploadsessionsupload.ts +++ b/src/models/operations/filestorageuploadsessionsupload.ts @@ -70,95 +70,6 @@ export type FileStorageUploadSessionsUploadResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const FileStorageUploadSessionsUploadGlobals$inboundSchema: z.ZodType< - FileStorageUploadSessionsUploadGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type FileStorageUploadSessionsUploadGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsUploadGlobals$outboundSchema: z.ZodType< - FileStorageUploadSessionsUploadGlobals$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsUploadGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsUploadGlobals$ { - /** @deprecated use `FileStorageUploadSessionsUploadGlobals$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsUploadGlobals$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadGlobals$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsUploadGlobals$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadGlobals$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsUploadGlobals$Outbound; -} - -export function fileStorageUploadSessionsUploadGlobalsToJSON( - fileStorageUploadSessionsUploadGlobals: - FileStorageUploadSessionsUploadGlobals, -): string { - return JSON.stringify( - FileStorageUploadSessionsUploadGlobals$outboundSchema.parse( - fileStorageUploadSessionsUploadGlobals, - ), - ); -} - -export function fileStorageUploadSessionsUploadGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsUploadGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsUploadGlobals' from JSON`, - ); -} - -/** @internal */ -export const FileStorageUploadSessionsUploadRequest$inboundSchema: z.ZodType< - FileStorageUploadSessionsUploadRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - part_number: z.number(), - digest: z.string().optional(), - raw: z.boolean().default(false), - RequestBody: z.union([ - z.instanceof(ReadableStream), - z.instanceof(Blob), - z.instanceof(ArrayBuffer), - z.instanceof(Uint8Array), - ]), -}).transform((v) => { - return remap$(v, { - "part_number": "partNumber", - "RequestBody": "requestBody", - }); -}); - /** @internal */ export type FileStorageUploadSessionsUploadRequest$Outbound = { id: string; @@ -197,21 +108,6 @@ export const FileStorageUploadSessionsUploadRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsUploadRequest$ { - /** @deprecated use `FileStorageUploadSessionsUploadRequest$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsUploadRequest$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadRequest$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsUploadRequest$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadRequest$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsUploadRequest$Outbound; -} - export function fileStorageUploadSessionsUploadRequestToJSON( fileStorageUploadSessionsUploadRequest: FileStorageUploadSessionsUploadRequest, @@ -223,17 +119,6 @@ export function fileStorageUploadSessionsUploadRequestToJSON( ); } -export function fileStorageUploadSessionsUploadRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - FileStorageUploadSessionsUploadRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FileStorageUploadSessionsUploadRequest' from JSON`, - ); -} - /** @internal */ export const FileStorageUploadSessionsUploadResponse$inboundSchema: z.ZodType< FileStorageUploadSessionsUploadResponse, @@ -253,62 +138,6 @@ export const FileStorageUploadSessionsUploadResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type FileStorageUploadSessionsUploadResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateUploadSessionResponse?: - | components.UpdateUploadSessionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const FileStorageUploadSessionsUploadResponse$outboundSchema: z.ZodType< - FileStorageUploadSessionsUploadResponse$Outbound, - z.ZodTypeDef, - FileStorageUploadSessionsUploadResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateUploadSessionResponse: components - .UpdateUploadSessionResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateUploadSessionResponse: "UpdateUploadSessionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FileStorageUploadSessionsUploadResponse$ { - /** @deprecated use `FileStorageUploadSessionsUploadResponse$inboundSchema` instead. */ - export const inboundSchema = - FileStorageUploadSessionsUploadResponse$inboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadResponse$outboundSchema` instead. */ - export const outboundSchema = - FileStorageUploadSessionsUploadResponse$outboundSchema; - /** @deprecated use `FileStorageUploadSessionsUploadResponse$Outbound` instead. */ - export type Outbound = FileStorageUploadSessionsUploadResponse$Outbound; -} - -export function fileStorageUploadSessionsUploadResponseToJSON( - fileStorageUploadSessionsUploadResponse: - FileStorageUploadSessionsUploadResponse, -): string { - return JSON.stringify( - FileStorageUploadSessionsUploadResponse$outboundSchema.parse( - fileStorageUploadSessionsUploadResponse, - ), - ); -} - export function fileStorageUploadSessionsUploadResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/hriscompaniesadd.ts b/src/models/operations/hriscompaniesadd.ts index 002e342f3..f7288841f 100644 --- a/src/models/operations/hriscompaniesadd.ts +++ b/src/models/operations/hriscompaniesadd.ts @@ -52,80 +52,6 @@ export type HrisCompaniesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisCompaniesAddGlobals$inboundSchema: z.ZodType< - HrisCompaniesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisCompaniesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisCompaniesAddGlobals$outboundSchema: z.ZodType< - HrisCompaniesAddGlobals$Outbound, - z.ZodTypeDef, - HrisCompaniesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAddGlobals$ { - /** @deprecated use `HrisCompaniesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAddGlobals$inboundSchema; - /** @deprecated use `HrisCompaniesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAddGlobals$outboundSchema; - /** @deprecated use `HrisCompaniesAddGlobals$Outbound` instead. */ - export type Outbound = HrisCompaniesAddGlobals$Outbound; -} - -export function hrisCompaniesAddGlobalsToJSON( - hrisCompaniesAddGlobals: HrisCompaniesAddGlobals, -): string { - return JSON.stringify( - HrisCompaniesAddGlobals$outboundSchema.parse(hrisCompaniesAddGlobals), - ); -} - -export function hrisCompaniesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisCompaniesAddRequest$inboundSchema: z.ZodType< - HrisCompaniesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - HrisCompany: components.HrisCompanyInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "HrisCompany": "hrisCompany", - }); -}); - /** @internal */ export type HrisCompaniesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const HrisCompaniesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAddRequest$ { - /** @deprecated use `HrisCompaniesAddRequest$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAddRequest$inboundSchema; - /** @deprecated use `HrisCompaniesAddRequest$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAddRequest$outboundSchema; - /** @deprecated use `HrisCompaniesAddRequest$Outbound` instead. */ - export type Outbound = HrisCompaniesAddRequest$Outbound; -} - export function hrisCompaniesAddRequestToJSON( hrisCompaniesAddRequest: HrisCompaniesAddRequest, ): string { @@ -173,16 +86,6 @@ export function hrisCompaniesAddRequestToJSON( ); } -export function hrisCompaniesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesAddRequest' from JSON`, - ); -} - /** @internal */ export const HrisCompaniesAddResponse$inboundSchema: z.ZodType< HrisCompaniesAddResponse, @@ -202,57 +105,6 @@ export const HrisCompaniesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompaniesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateHrisCompanyResponse?: - | components.CreateHrisCompanyResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisCompaniesAddResponse$outboundSchema: z.ZodType< - HrisCompaniesAddResponse$Outbound, - z.ZodTypeDef, - HrisCompaniesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createHrisCompanyResponse: components.CreateHrisCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createHrisCompanyResponse: "CreateHrisCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAddResponse$ { - /** @deprecated use `HrisCompaniesAddResponse$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAddResponse$inboundSchema; - /** @deprecated use `HrisCompaniesAddResponse$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAddResponse$outboundSchema; - /** @deprecated use `HrisCompaniesAddResponse$Outbound` instead. */ - export type Outbound = HrisCompaniesAddResponse$Outbound; -} - -export function hrisCompaniesAddResponseToJSON( - hrisCompaniesAddResponse: HrisCompaniesAddResponse, -): string { - return JSON.stringify( - HrisCompaniesAddResponse$outboundSchema.parse(hrisCompaniesAddResponse), - ); -} - export function hrisCompaniesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hriscompaniesall.ts b/src/models/operations/hriscompaniesall.ts index d4fa15b00..4fdc79c7b 100644 --- a/src/models/operations/hriscompaniesall.ts +++ b/src/models/operations/hriscompaniesall.ts @@ -67,83 +67,6 @@ export type HrisCompaniesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisCompaniesAllGlobals$inboundSchema: z.ZodType< - HrisCompaniesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisCompaniesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisCompaniesAllGlobals$outboundSchema: z.ZodType< - HrisCompaniesAllGlobals$Outbound, - z.ZodTypeDef, - HrisCompaniesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAllGlobals$ { - /** @deprecated use `HrisCompaniesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAllGlobals$inboundSchema; - /** @deprecated use `HrisCompaniesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAllGlobals$outboundSchema; - /** @deprecated use `HrisCompaniesAllGlobals$Outbound` instead. */ - export type Outbound = HrisCompaniesAllGlobals$Outbound; -} - -export function hrisCompaniesAllGlobalsToJSON( - hrisCompaniesAllGlobals: HrisCompaniesAllGlobals, -): string { - return JSON.stringify( - HrisCompaniesAllGlobals$outboundSchema.parse(hrisCompaniesAllGlobals), - ); -} - -export function hrisCompaniesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisCompaniesAllRequest$inboundSchema: z.ZodType< - HrisCompaniesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisCompaniesAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const HrisCompaniesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAllRequest$ { - /** @deprecated use `HrisCompaniesAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAllRequest$inboundSchema; - /** @deprecated use `HrisCompaniesAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAllRequest$outboundSchema; - /** @deprecated use `HrisCompaniesAllRequest$Outbound` instead. */ - export type Outbound = HrisCompaniesAllRequest$Outbound; -} - export function hrisCompaniesAllRequestToJSON( hrisCompaniesAllRequest: HrisCompaniesAllRequest, ): string { @@ -197,16 +107,6 @@ export function hrisCompaniesAllRequestToJSON( ); } -export function hrisCompaniesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisCompaniesAllResponse$inboundSchema: z.ZodType< HrisCompaniesAllResponse, @@ -226,57 +126,6 @@ export const HrisCompaniesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompaniesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetHrisCompaniesResponse?: - | components.GetHrisCompaniesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisCompaniesAllResponse$outboundSchema: z.ZodType< - HrisCompaniesAllResponse$Outbound, - z.ZodTypeDef, - HrisCompaniesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getHrisCompaniesResponse: components.GetHrisCompaniesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getHrisCompaniesResponse: "GetHrisCompaniesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesAllResponse$ { - /** @deprecated use `HrisCompaniesAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesAllResponse$inboundSchema; - /** @deprecated use `HrisCompaniesAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesAllResponse$outboundSchema; - /** @deprecated use `HrisCompaniesAllResponse$Outbound` instead. */ - export type Outbound = HrisCompaniesAllResponse$Outbound; -} - -export function hrisCompaniesAllResponseToJSON( - hrisCompaniesAllResponse: HrisCompaniesAllResponse, -): string { - return JSON.stringify( - HrisCompaniesAllResponse$outboundSchema.parse(hrisCompaniesAllResponse), - ); -} - export function hrisCompaniesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hriscompaniesdelete.ts b/src/models/operations/hriscompaniesdelete.ts index 26a432827..8b8c0c045 100644 --- a/src/models/operations/hriscompaniesdelete.ts +++ b/src/models/operations/hriscompaniesdelete.ts @@ -55,76 +55,6 @@ export type HrisCompaniesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisCompaniesDeleteGlobals$inboundSchema: z.ZodType< - HrisCompaniesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisCompaniesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisCompaniesDeleteGlobals$outboundSchema: z.ZodType< - HrisCompaniesDeleteGlobals$Outbound, - z.ZodTypeDef, - HrisCompaniesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesDeleteGlobals$ { - /** @deprecated use `HrisCompaniesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesDeleteGlobals$inboundSchema; - /** @deprecated use `HrisCompaniesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesDeleteGlobals$outboundSchema; - /** @deprecated use `HrisCompaniesDeleteGlobals$Outbound` instead. */ - export type Outbound = HrisCompaniesDeleteGlobals$Outbound; -} - -export function hrisCompaniesDeleteGlobalsToJSON( - hrisCompaniesDeleteGlobals: HrisCompaniesDeleteGlobals, -): string { - return JSON.stringify( - HrisCompaniesDeleteGlobals$outboundSchema.parse(hrisCompaniesDeleteGlobals), - ); -} - -export function hrisCompaniesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisCompaniesDeleteRequest$inboundSchema: z.ZodType< - HrisCompaniesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type HrisCompaniesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const HrisCompaniesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesDeleteRequest$ { - /** @deprecated use `HrisCompaniesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesDeleteRequest$inboundSchema; - /** @deprecated use `HrisCompaniesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesDeleteRequest$outboundSchema; - /** @deprecated use `HrisCompaniesDeleteRequest$Outbound` instead. */ - export type Outbound = HrisCompaniesDeleteRequest$Outbound; -} - export function hrisCompaniesDeleteRequestToJSON( hrisCompaniesDeleteRequest: HrisCompaniesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function hrisCompaniesDeleteRequestToJSON( ); } -export function hrisCompaniesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const HrisCompaniesDeleteResponse$inboundSchema: z.ZodType< HrisCompaniesDeleteResponse, @@ -197,59 +104,6 @@ export const HrisCompaniesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompaniesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteHrisCompanyResponse?: - | components.DeleteHrisCompanyResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisCompaniesDeleteResponse$outboundSchema: z.ZodType< - HrisCompaniesDeleteResponse$Outbound, - z.ZodTypeDef, - HrisCompaniesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteHrisCompanyResponse: components.DeleteHrisCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteHrisCompanyResponse: "DeleteHrisCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesDeleteResponse$ { - /** @deprecated use `HrisCompaniesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesDeleteResponse$inboundSchema; - /** @deprecated use `HrisCompaniesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesDeleteResponse$outboundSchema; - /** @deprecated use `HrisCompaniesDeleteResponse$Outbound` instead. */ - export type Outbound = HrisCompaniesDeleteResponse$Outbound; -} - -export function hrisCompaniesDeleteResponseToJSON( - hrisCompaniesDeleteResponse: HrisCompaniesDeleteResponse, -): string { - return JSON.stringify( - HrisCompaniesDeleteResponse$outboundSchema.parse( - hrisCompaniesDeleteResponse, - ), - ); -} - export function hrisCompaniesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hriscompaniesone.ts b/src/models/operations/hriscompaniesone.ts index f5d0cf166..019a7ec7d 100644 --- a/src/models/operations/hriscompaniesone.ts +++ b/src/models/operations/hriscompaniesone.ts @@ -59,77 +59,6 @@ export type HrisCompaniesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisCompaniesOneGlobals$inboundSchema: z.ZodType< - HrisCompaniesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisCompaniesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisCompaniesOneGlobals$outboundSchema: z.ZodType< - HrisCompaniesOneGlobals$Outbound, - z.ZodTypeDef, - HrisCompaniesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesOneGlobals$ { - /** @deprecated use `HrisCompaniesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesOneGlobals$inboundSchema; - /** @deprecated use `HrisCompaniesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesOneGlobals$outboundSchema; - /** @deprecated use `HrisCompaniesOneGlobals$Outbound` instead. */ - export type Outbound = HrisCompaniesOneGlobals$Outbound; -} - -export function hrisCompaniesOneGlobalsToJSON( - hrisCompaniesOneGlobals: HrisCompaniesOneGlobals, -): string { - return JSON.stringify( - HrisCompaniesOneGlobals$outboundSchema.parse(hrisCompaniesOneGlobals), - ); -} - -export function hrisCompaniesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisCompaniesOneRequest$inboundSchema: z.ZodType< - HrisCompaniesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type HrisCompaniesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const HrisCompaniesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesOneRequest$ { - /** @deprecated use `HrisCompaniesOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesOneRequest$inboundSchema; - /** @deprecated use `HrisCompaniesOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesOneRequest$outboundSchema; - /** @deprecated use `HrisCompaniesOneRequest$Outbound` instead. */ - export type Outbound = HrisCompaniesOneRequest$Outbound; -} - export function hrisCompaniesOneRequestToJSON( hrisCompaniesOneRequest: HrisCompaniesOneRequest, ): string { @@ -175,16 +91,6 @@ export function hrisCompaniesOneRequestToJSON( ); } -export function hrisCompaniesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisCompaniesOneResponse$inboundSchema: z.ZodType< HrisCompaniesOneResponse, @@ -204,57 +110,6 @@ export const HrisCompaniesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompaniesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetHrisCompanyResponse?: - | components.GetHrisCompanyResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisCompaniesOneResponse$outboundSchema: z.ZodType< - HrisCompaniesOneResponse$Outbound, - z.ZodTypeDef, - HrisCompaniesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getHrisCompanyResponse: components.GetHrisCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getHrisCompanyResponse: "GetHrisCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesOneResponse$ { - /** @deprecated use `HrisCompaniesOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesOneResponse$inboundSchema; - /** @deprecated use `HrisCompaniesOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesOneResponse$outboundSchema; - /** @deprecated use `HrisCompaniesOneResponse$Outbound` instead. */ - export type Outbound = HrisCompaniesOneResponse$Outbound; -} - -export function hrisCompaniesOneResponseToJSON( - hrisCompaniesOneResponse: HrisCompaniesOneResponse, -): string { - return JSON.stringify( - HrisCompaniesOneResponse$outboundSchema.parse(hrisCompaniesOneResponse), - ); -} - export function hrisCompaniesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hriscompaniesupdate.ts b/src/models/operations/hriscompaniesupdate.ts index 175940ddd..6888357be 100644 --- a/src/models/operations/hriscompaniesupdate.ts +++ b/src/models/operations/hriscompaniesupdate.ts @@ -56,81 +56,6 @@ export type HrisCompaniesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisCompaniesUpdateGlobals$inboundSchema: z.ZodType< - HrisCompaniesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisCompaniesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisCompaniesUpdateGlobals$outboundSchema: z.ZodType< - HrisCompaniesUpdateGlobals$Outbound, - z.ZodTypeDef, - HrisCompaniesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesUpdateGlobals$ { - /** @deprecated use `HrisCompaniesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesUpdateGlobals$inboundSchema; - /** @deprecated use `HrisCompaniesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesUpdateGlobals$outboundSchema; - /** @deprecated use `HrisCompaniesUpdateGlobals$Outbound` instead. */ - export type Outbound = HrisCompaniesUpdateGlobals$Outbound; -} - -export function hrisCompaniesUpdateGlobalsToJSON( - hrisCompaniesUpdateGlobals: HrisCompaniesUpdateGlobals, -): string { - return JSON.stringify( - HrisCompaniesUpdateGlobals$outboundSchema.parse(hrisCompaniesUpdateGlobals), - ); -} - -export function hrisCompaniesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisCompaniesUpdateRequest$inboundSchema: z.ZodType< - HrisCompaniesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - HrisCompany: components.HrisCompanyInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "HrisCompany": "hrisCompany", - }); -}); - /** @internal */ export type HrisCompaniesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const HrisCompaniesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesUpdateRequest$ { - /** @deprecated use `HrisCompaniesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesUpdateRequest$inboundSchema; - /** @deprecated use `HrisCompaniesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesUpdateRequest$outboundSchema; - /** @deprecated use `HrisCompaniesUpdateRequest$Outbound` instead. */ - export type Outbound = HrisCompaniesUpdateRequest$Outbound; -} - export function hrisCompaniesUpdateRequestToJSON( hrisCompaniesUpdateRequest: HrisCompaniesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function hrisCompaniesUpdateRequestToJSON( ); } -export function hrisCompaniesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisCompaniesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisCompaniesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const HrisCompaniesUpdateResponse$inboundSchema: z.ZodType< HrisCompaniesUpdateResponse, @@ -209,59 +111,6 @@ export const HrisCompaniesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisCompaniesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateHrisCompanyResponse?: - | components.UpdateHrisCompanyResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisCompaniesUpdateResponse$outboundSchema: z.ZodType< - HrisCompaniesUpdateResponse$Outbound, - z.ZodTypeDef, - HrisCompaniesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateHrisCompanyResponse: components.UpdateHrisCompanyResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateHrisCompanyResponse: "UpdateHrisCompanyResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisCompaniesUpdateResponse$ { - /** @deprecated use `HrisCompaniesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = HrisCompaniesUpdateResponse$inboundSchema; - /** @deprecated use `HrisCompaniesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = HrisCompaniesUpdateResponse$outboundSchema; - /** @deprecated use `HrisCompaniesUpdateResponse$Outbound` instead. */ - export type Outbound = HrisCompaniesUpdateResponse$Outbound; -} - -export function hrisCompaniesUpdateResponseToJSON( - hrisCompaniesUpdateResponse: HrisCompaniesUpdateResponse, -): string { - return JSON.stringify( - HrisCompaniesUpdateResponse$outboundSchema.parse( - hrisCompaniesUpdateResponse, - ), - ); -} - export function hrisCompaniesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisdepartmentsadd.ts b/src/models/operations/hrisdepartmentsadd.ts index 9d0cade77..7c0bebce2 100644 --- a/src/models/operations/hrisdepartmentsadd.ts +++ b/src/models/operations/hrisdepartmentsadd.ts @@ -52,80 +52,6 @@ export type HrisDepartmentsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisDepartmentsAddGlobals$inboundSchema: z.ZodType< - HrisDepartmentsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisDepartmentsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisDepartmentsAddGlobals$outboundSchema: z.ZodType< - HrisDepartmentsAddGlobals$Outbound, - z.ZodTypeDef, - HrisDepartmentsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAddGlobals$ { - /** @deprecated use `HrisDepartmentsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAddGlobals$inboundSchema; - /** @deprecated use `HrisDepartmentsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAddGlobals$outboundSchema; - /** @deprecated use `HrisDepartmentsAddGlobals$Outbound` instead. */ - export type Outbound = HrisDepartmentsAddGlobals$Outbound; -} - -export function hrisDepartmentsAddGlobalsToJSON( - hrisDepartmentsAddGlobals: HrisDepartmentsAddGlobals, -): string { - return JSON.stringify( - HrisDepartmentsAddGlobals$outboundSchema.parse(hrisDepartmentsAddGlobals), - ); -} - -export function hrisDepartmentsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisDepartmentsAddRequest$inboundSchema: z.ZodType< - HrisDepartmentsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Department: components.DepartmentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Department": "department", - }); -}); - /** @internal */ export type HrisDepartmentsAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const HrisDepartmentsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAddRequest$ { - /** @deprecated use `HrisDepartmentsAddRequest$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAddRequest$inboundSchema; - /** @deprecated use `HrisDepartmentsAddRequest$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAddRequest$outboundSchema; - /** @deprecated use `HrisDepartmentsAddRequest$Outbound` instead. */ - export type Outbound = HrisDepartmentsAddRequest$Outbound; -} - export function hrisDepartmentsAddRequestToJSON( hrisDepartmentsAddRequest: HrisDepartmentsAddRequest, ): string { @@ -173,16 +86,6 @@ export function hrisDepartmentsAddRequestToJSON( ); } -export function hrisDepartmentsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsAddRequest' from JSON`, - ); -} - /** @internal */ export const HrisDepartmentsAddResponse$inboundSchema: z.ZodType< HrisDepartmentsAddResponse, @@ -202,57 +105,6 @@ export const HrisDepartmentsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisDepartmentsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateDepartmentResponse?: - | components.CreateDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisDepartmentsAddResponse$outboundSchema: z.ZodType< - HrisDepartmentsAddResponse$Outbound, - z.ZodTypeDef, - HrisDepartmentsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createDepartmentResponse: components.CreateDepartmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createDepartmentResponse: "CreateDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAddResponse$ { - /** @deprecated use `HrisDepartmentsAddResponse$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAddResponse$inboundSchema; - /** @deprecated use `HrisDepartmentsAddResponse$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAddResponse$outboundSchema; - /** @deprecated use `HrisDepartmentsAddResponse$Outbound` instead. */ - export type Outbound = HrisDepartmentsAddResponse$Outbound; -} - -export function hrisDepartmentsAddResponseToJSON( - hrisDepartmentsAddResponse: HrisDepartmentsAddResponse, -): string { - return JSON.stringify( - HrisDepartmentsAddResponse$outboundSchema.parse(hrisDepartmentsAddResponse), - ); -} - export function hrisDepartmentsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisdepartmentsall.ts b/src/models/operations/hrisdepartmentsall.ts index cfde80156..896e91a95 100644 --- a/src/models/operations/hrisdepartmentsall.ts +++ b/src/models/operations/hrisdepartmentsall.ts @@ -67,83 +67,6 @@ export type HrisDepartmentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisDepartmentsAllGlobals$inboundSchema: z.ZodType< - HrisDepartmentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisDepartmentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisDepartmentsAllGlobals$outboundSchema: z.ZodType< - HrisDepartmentsAllGlobals$Outbound, - z.ZodTypeDef, - HrisDepartmentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAllGlobals$ { - /** @deprecated use `HrisDepartmentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAllGlobals$inboundSchema; - /** @deprecated use `HrisDepartmentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAllGlobals$outboundSchema; - /** @deprecated use `HrisDepartmentsAllGlobals$Outbound` instead. */ - export type Outbound = HrisDepartmentsAllGlobals$Outbound; -} - -export function hrisDepartmentsAllGlobalsToJSON( - hrisDepartmentsAllGlobals: HrisDepartmentsAllGlobals, -): string { - return JSON.stringify( - HrisDepartmentsAllGlobals$outboundSchema.parse(hrisDepartmentsAllGlobals), - ); -} - -export function hrisDepartmentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisDepartmentsAllRequest$inboundSchema: z.ZodType< - HrisDepartmentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisDepartmentsAllRequest$Outbound = { raw: boolean; @@ -176,19 +99,6 @@ export const HrisDepartmentsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAllRequest$ { - /** @deprecated use `HrisDepartmentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAllRequest$inboundSchema; - /** @deprecated use `HrisDepartmentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAllRequest$outboundSchema; - /** @deprecated use `HrisDepartmentsAllRequest$Outbound` instead. */ - export type Outbound = HrisDepartmentsAllRequest$Outbound; -} - export function hrisDepartmentsAllRequestToJSON( hrisDepartmentsAllRequest: HrisDepartmentsAllRequest, ): string { @@ -197,16 +107,6 @@ export function hrisDepartmentsAllRequestToJSON( ); } -export function hrisDepartmentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisDepartmentsAllResponse$inboundSchema: z.ZodType< HrisDepartmentsAllResponse, @@ -226,57 +126,6 @@ export const HrisDepartmentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisDepartmentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDepartmentsResponse?: - | components.GetDepartmentsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisDepartmentsAllResponse$outboundSchema: z.ZodType< - HrisDepartmentsAllResponse$Outbound, - z.ZodTypeDef, - HrisDepartmentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDepartmentsResponse: components.GetDepartmentsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDepartmentsResponse: "GetDepartmentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsAllResponse$ { - /** @deprecated use `HrisDepartmentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsAllResponse$inboundSchema; - /** @deprecated use `HrisDepartmentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsAllResponse$outboundSchema; - /** @deprecated use `HrisDepartmentsAllResponse$Outbound` instead. */ - export type Outbound = HrisDepartmentsAllResponse$Outbound; -} - -export function hrisDepartmentsAllResponseToJSON( - hrisDepartmentsAllResponse: HrisDepartmentsAllResponse, -): string { - return JSON.stringify( - HrisDepartmentsAllResponse$outboundSchema.parse(hrisDepartmentsAllResponse), - ); -} - export function hrisDepartmentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisdepartmentsdelete.ts b/src/models/operations/hrisdepartmentsdelete.ts index 650b5e34b..69a6af17b 100644 --- a/src/models/operations/hrisdepartmentsdelete.ts +++ b/src/models/operations/hrisdepartmentsdelete.ts @@ -55,78 +55,6 @@ export type HrisDepartmentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisDepartmentsDeleteGlobals$inboundSchema: z.ZodType< - HrisDepartmentsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisDepartmentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisDepartmentsDeleteGlobals$outboundSchema: z.ZodType< - HrisDepartmentsDeleteGlobals$Outbound, - z.ZodTypeDef, - HrisDepartmentsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsDeleteGlobals$ { - /** @deprecated use `HrisDepartmentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsDeleteGlobals$inboundSchema; - /** @deprecated use `HrisDepartmentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsDeleteGlobals$outboundSchema; - /** @deprecated use `HrisDepartmentsDeleteGlobals$Outbound` instead. */ - export type Outbound = HrisDepartmentsDeleteGlobals$Outbound; -} - -export function hrisDepartmentsDeleteGlobalsToJSON( - hrisDepartmentsDeleteGlobals: HrisDepartmentsDeleteGlobals, -): string { - return JSON.stringify( - HrisDepartmentsDeleteGlobals$outboundSchema.parse( - hrisDepartmentsDeleteGlobals, - ), - ); -} - -export function hrisDepartmentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisDepartmentsDeleteRequest$inboundSchema: z.ZodType< - HrisDepartmentsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type HrisDepartmentsDeleteRequest$Outbound = { id: string; @@ -149,19 +77,6 @@ export const HrisDepartmentsDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsDeleteRequest$ { - /** @deprecated use `HrisDepartmentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsDeleteRequest$inboundSchema; - /** @deprecated use `HrisDepartmentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsDeleteRequest$outboundSchema; - /** @deprecated use `HrisDepartmentsDeleteRequest$Outbound` instead. */ - export type Outbound = HrisDepartmentsDeleteRequest$Outbound; -} - export function hrisDepartmentsDeleteRequestToJSON( hrisDepartmentsDeleteRequest: HrisDepartmentsDeleteRequest, ): string { @@ -172,16 +87,6 @@ export function hrisDepartmentsDeleteRequestToJSON( ); } -export function hrisDepartmentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const HrisDepartmentsDeleteResponse$inboundSchema: z.ZodType< HrisDepartmentsDeleteResponse, @@ -201,59 +106,6 @@ export const HrisDepartmentsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisDepartmentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteDepartmentResponse?: - | components.DeleteDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisDepartmentsDeleteResponse$outboundSchema: z.ZodType< - HrisDepartmentsDeleteResponse$Outbound, - z.ZodTypeDef, - HrisDepartmentsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteDepartmentResponse: components.DeleteDepartmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteDepartmentResponse: "DeleteDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsDeleteResponse$ { - /** @deprecated use `HrisDepartmentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsDeleteResponse$inboundSchema; - /** @deprecated use `HrisDepartmentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsDeleteResponse$outboundSchema; - /** @deprecated use `HrisDepartmentsDeleteResponse$Outbound` instead. */ - export type Outbound = HrisDepartmentsDeleteResponse$Outbound; -} - -export function hrisDepartmentsDeleteResponseToJSON( - hrisDepartmentsDeleteResponse: HrisDepartmentsDeleteResponse, -): string { - return JSON.stringify( - HrisDepartmentsDeleteResponse$outboundSchema.parse( - hrisDepartmentsDeleteResponse, - ), - ); -} - export function hrisDepartmentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisdepartmentsone.ts b/src/models/operations/hrisdepartmentsone.ts index 8c69c34b0..c9900402b 100644 --- a/src/models/operations/hrisdepartmentsone.ts +++ b/src/models/operations/hrisdepartmentsone.ts @@ -59,77 +59,6 @@ export type HrisDepartmentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisDepartmentsOneGlobals$inboundSchema: z.ZodType< - HrisDepartmentsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisDepartmentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisDepartmentsOneGlobals$outboundSchema: z.ZodType< - HrisDepartmentsOneGlobals$Outbound, - z.ZodTypeDef, - HrisDepartmentsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsOneGlobals$ { - /** @deprecated use `HrisDepartmentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsOneGlobals$inboundSchema; - /** @deprecated use `HrisDepartmentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsOneGlobals$outboundSchema; - /** @deprecated use `HrisDepartmentsOneGlobals$Outbound` instead. */ - export type Outbound = HrisDepartmentsOneGlobals$Outbound; -} - -export function hrisDepartmentsOneGlobalsToJSON( - hrisDepartmentsOneGlobals: HrisDepartmentsOneGlobals, -): string { - return JSON.stringify( - HrisDepartmentsOneGlobals$outboundSchema.parse(hrisDepartmentsOneGlobals), - ); -} - -export function hrisDepartmentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisDepartmentsOneRequest$inboundSchema: z.ZodType< - HrisDepartmentsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type HrisDepartmentsOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const HrisDepartmentsOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsOneRequest$ { - /** @deprecated use `HrisDepartmentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsOneRequest$inboundSchema; - /** @deprecated use `HrisDepartmentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsOneRequest$outboundSchema; - /** @deprecated use `HrisDepartmentsOneRequest$Outbound` instead. */ - export type Outbound = HrisDepartmentsOneRequest$Outbound; -} - export function hrisDepartmentsOneRequestToJSON( hrisDepartmentsOneRequest: HrisDepartmentsOneRequest, ): string { @@ -175,16 +91,6 @@ export function hrisDepartmentsOneRequestToJSON( ); } -export function hrisDepartmentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisDepartmentsOneResponse$inboundSchema: z.ZodType< HrisDepartmentsOneResponse, @@ -204,55 +110,6 @@ export const HrisDepartmentsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisDepartmentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetDepartmentResponse?: components.GetDepartmentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisDepartmentsOneResponse$outboundSchema: z.ZodType< - HrisDepartmentsOneResponse$Outbound, - z.ZodTypeDef, - HrisDepartmentsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getDepartmentResponse: components.GetDepartmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getDepartmentResponse: "GetDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsOneResponse$ { - /** @deprecated use `HrisDepartmentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsOneResponse$inboundSchema; - /** @deprecated use `HrisDepartmentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsOneResponse$outboundSchema; - /** @deprecated use `HrisDepartmentsOneResponse$Outbound` instead. */ - export type Outbound = HrisDepartmentsOneResponse$Outbound; -} - -export function hrisDepartmentsOneResponseToJSON( - hrisDepartmentsOneResponse: HrisDepartmentsOneResponse, -): string { - return JSON.stringify( - HrisDepartmentsOneResponse$outboundSchema.parse(hrisDepartmentsOneResponse), - ); -} - export function hrisDepartmentsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisdepartmentsupdate.ts b/src/models/operations/hrisdepartmentsupdate.ts index 35a01e2f2..985e79bfb 100644 --- a/src/models/operations/hrisdepartmentsupdate.ts +++ b/src/models/operations/hrisdepartmentsupdate.ts @@ -56,83 +56,6 @@ export type HrisDepartmentsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisDepartmentsUpdateGlobals$inboundSchema: z.ZodType< - HrisDepartmentsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisDepartmentsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisDepartmentsUpdateGlobals$outboundSchema: z.ZodType< - HrisDepartmentsUpdateGlobals$Outbound, - z.ZodTypeDef, - HrisDepartmentsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsUpdateGlobals$ { - /** @deprecated use `HrisDepartmentsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsUpdateGlobals$inboundSchema; - /** @deprecated use `HrisDepartmentsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsUpdateGlobals$outboundSchema; - /** @deprecated use `HrisDepartmentsUpdateGlobals$Outbound` instead. */ - export type Outbound = HrisDepartmentsUpdateGlobals$Outbound; -} - -export function hrisDepartmentsUpdateGlobalsToJSON( - hrisDepartmentsUpdateGlobals: HrisDepartmentsUpdateGlobals, -): string { - return JSON.stringify( - HrisDepartmentsUpdateGlobals$outboundSchema.parse( - hrisDepartmentsUpdateGlobals, - ), - ); -} - -export function hrisDepartmentsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisDepartmentsUpdateRequest$inboundSchema: z.ZodType< - HrisDepartmentsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Department: components.DepartmentInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Department": "department", - }); -}); - /** @internal */ export type HrisDepartmentsUpdateRequest$Outbound = { id: string; @@ -161,19 +84,6 @@ export const HrisDepartmentsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsUpdateRequest$ { - /** @deprecated use `HrisDepartmentsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsUpdateRequest$inboundSchema; - /** @deprecated use `HrisDepartmentsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsUpdateRequest$outboundSchema; - /** @deprecated use `HrisDepartmentsUpdateRequest$Outbound` instead. */ - export type Outbound = HrisDepartmentsUpdateRequest$Outbound; -} - export function hrisDepartmentsUpdateRequestToJSON( hrisDepartmentsUpdateRequest: HrisDepartmentsUpdateRequest, ): string { @@ -184,16 +94,6 @@ export function hrisDepartmentsUpdateRequestToJSON( ); } -export function hrisDepartmentsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisDepartmentsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisDepartmentsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const HrisDepartmentsUpdateResponse$inboundSchema: z.ZodType< HrisDepartmentsUpdateResponse, @@ -213,59 +113,6 @@ export const HrisDepartmentsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisDepartmentsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateDepartmentResponse?: - | components.UpdateDepartmentResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisDepartmentsUpdateResponse$outboundSchema: z.ZodType< - HrisDepartmentsUpdateResponse$Outbound, - z.ZodTypeDef, - HrisDepartmentsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateDepartmentResponse: components.UpdateDepartmentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateDepartmentResponse: "UpdateDepartmentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisDepartmentsUpdateResponse$ { - /** @deprecated use `HrisDepartmentsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = HrisDepartmentsUpdateResponse$inboundSchema; - /** @deprecated use `HrisDepartmentsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = HrisDepartmentsUpdateResponse$outboundSchema; - /** @deprecated use `HrisDepartmentsUpdateResponse$Outbound` instead. */ - export type Outbound = HrisDepartmentsUpdateResponse$Outbound; -} - -export function hrisDepartmentsUpdateResponseToJSON( - hrisDepartmentsUpdateResponse: HrisDepartmentsUpdateResponse, -): string { - return JSON.stringify( - HrisDepartmentsUpdateResponse$outboundSchema.parse( - hrisDepartmentsUpdateResponse, - ), - ); -} - export function hrisDepartmentsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeepayrollsall.ts b/src/models/operations/hrisemployeepayrollsall.ts index 490e9359c..856a97107 100644 --- a/src/models/operations/hrisemployeepayrollsall.ts +++ b/src/models/operations/hrisemployeepayrollsall.ts @@ -69,86 +69,6 @@ export type HrisEmployeePayrollsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeePayrollsAllGlobals$inboundSchema: z.ZodType< - HrisEmployeePayrollsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeePayrollsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeePayrollsAllGlobals$outboundSchema: z.ZodType< - HrisEmployeePayrollsAllGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeePayrollsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsAllGlobals$ { - /** @deprecated use `HrisEmployeePayrollsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsAllGlobals$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsAllGlobals$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsAllGlobals$Outbound; -} - -export function hrisEmployeePayrollsAllGlobalsToJSON( - hrisEmployeePayrollsAllGlobals: HrisEmployeePayrollsAllGlobals, -): string { - return JSON.stringify( - HrisEmployeePayrollsAllGlobals$outboundSchema.parse( - hrisEmployeePayrollsAllGlobals, - ), - ); -} - -export function hrisEmployeePayrollsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeePayrollsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeePayrollsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeePayrollsAllRequest$inboundSchema: z.ZodType< - HrisEmployeePayrollsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - employee_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - filter: components.PayrollsFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisEmployeePayrollsAllRequest$Outbound = { employee_id: string; @@ -182,19 +102,6 @@ export const HrisEmployeePayrollsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsAllRequest$ { - /** @deprecated use `HrisEmployeePayrollsAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsAllRequest$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsAllRequest$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllRequest$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsAllRequest$Outbound; -} - export function hrisEmployeePayrollsAllRequestToJSON( hrisEmployeePayrollsAllRequest: HrisEmployeePayrollsAllRequest, ): string { @@ -205,16 +112,6 @@ export function hrisEmployeePayrollsAllRequestToJSON( ); } -export function hrisEmployeePayrollsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeePayrollsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeePayrollsAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeePayrollsAllResponse$inboundSchema: z.ZodType< HrisEmployeePayrollsAllResponse, @@ -234,59 +131,6 @@ export const HrisEmployeePayrollsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeePayrollsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEmployeePayrollsResponse?: - | components.GetEmployeePayrollsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeePayrollsAllResponse$outboundSchema: z.ZodType< - HrisEmployeePayrollsAllResponse$Outbound, - z.ZodTypeDef, - HrisEmployeePayrollsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEmployeePayrollsResponse: components - .GetEmployeePayrollsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEmployeePayrollsResponse: "GetEmployeePayrollsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsAllResponse$ { - /** @deprecated use `HrisEmployeePayrollsAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsAllResponse$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsAllResponse$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsAllResponse$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsAllResponse$Outbound; -} - -export function hrisEmployeePayrollsAllResponseToJSON( - hrisEmployeePayrollsAllResponse: HrisEmployeePayrollsAllResponse, -): string { - return JSON.stringify( - HrisEmployeePayrollsAllResponse$outboundSchema.parse( - hrisEmployeePayrollsAllResponse, - ), - ); -} - export function hrisEmployeePayrollsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeepayrollsone.ts b/src/models/operations/hrisemployeepayrollsone.ts index b2c48ac0c..a9128ce85 100644 --- a/src/models/operations/hrisemployeepayrollsone.ts +++ b/src/models/operations/hrisemployeepayrollsone.ts @@ -65,85 +65,6 @@ export type HrisEmployeePayrollsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeePayrollsOneGlobals$inboundSchema: z.ZodType< - HrisEmployeePayrollsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeePayrollsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeePayrollsOneGlobals$outboundSchema: z.ZodType< - HrisEmployeePayrollsOneGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeePayrollsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsOneGlobals$ { - /** @deprecated use `HrisEmployeePayrollsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsOneGlobals$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsOneGlobals$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsOneGlobals$Outbound; -} - -export function hrisEmployeePayrollsOneGlobalsToJSON( - hrisEmployeePayrollsOneGlobals: HrisEmployeePayrollsOneGlobals, -): string { - return JSON.stringify( - HrisEmployeePayrollsOneGlobals$outboundSchema.parse( - hrisEmployeePayrollsOneGlobals, - ), - ); -} - -export function hrisEmployeePayrollsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeePayrollsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeePayrollsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeePayrollsOneRequest$inboundSchema: z.ZodType< - HrisEmployeePayrollsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - payroll_id: z.string(), - employee_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "payroll_id": "payrollId", - "employee_id": "employeeId", - }); -}); - /** @internal */ export type HrisEmployeePayrollsOneRequest$Outbound = { payroll_id: string; @@ -175,19 +96,6 @@ export const HrisEmployeePayrollsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsOneRequest$ { - /** @deprecated use `HrisEmployeePayrollsOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsOneRequest$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsOneRequest$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneRequest$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsOneRequest$Outbound; -} - export function hrisEmployeePayrollsOneRequestToJSON( hrisEmployeePayrollsOneRequest: HrisEmployeePayrollsOneRequest, ): string { @@ -198,16 +106,6 @@ export function hrisEmployeePayrollsOneRequestToJSON( ); } -export function hrisEmployeePayrollsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeePayrollsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeePayrollsOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeePayrollsOneResponse$inboundSchema: z.ZodType< HrisEmployeePayrollsOneResponse, @@ -227,59 +125,6 @@ export const HrisEmployeePayrollsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeePayrollsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEmployeePayrollResponse?: - | components.GetEmployeePayrollResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeePayrollsOneResponse$outboundSchema: z.ZodType< - HrisEmployeePayrollsOneResponse$Outbound, - z.ZodTypeDef, - HrisEmployeePayrollsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEmployeePayrollResponse: components - .GetEmployeePayrollResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEmployeePayrollResponse: "GetEmployeePayrollResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeePayrollsOneResponse$ { - /** @deprecated use `HrisEmployeePayrollsOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeePayrollsOneResponse$inboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeePayrollsOneResponse$outboundSchema; - /** @deprecated use `HrisEmployeePayrollsOneResponse$Outbound` instead. */ - export type Outbound = HrisEmployeePayrollsOneResponse$Outbound; -} - -export function hrisEmployeePayrollsOneResponseToJSON( - hrisEmployeePayrollsOneResponse: HrisEmployeePayrollsOneResponse, -): string { - return JSON.stringify( - HrisEmployeePayrollsOneResponse$outboundSchema.parse( - hrisEmployeePayrollsOneResponse, - ), - ); -} - export function hrisEmployeePayrollsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeesadd.ts b/src/models/operations/hrisemployeesadd.ts index 83d38da1a..7deec1a01 100644 --- a/src/models/operations/hrisemployeesadd.ts +++ b/src/models/operations/hrisemployeesadd.ts @@ -52,80 +52,6 @@ export type HrisEmployeesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeesAddGlobals$inboundSchema: z.ZodType< - HrisEmployeesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeesAddGlobals$outboundSchema: z.ZodType< - HrisEmployeesAddGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAddGlobals$ { - /** @deprecated use `HrisEmployeesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAddGlobals$inboundSchema; - /** @deprecated use `HrisEmployeesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAddGlobals$outboundSchema; - /** @deprecated use `HrisEmployeesAddGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeesAddGlobals$Outbound; -} - -export function hrisEmployeesAddGlobalsToJSON( - hrisEmployeesAddGlobals: HrisEmployeesAddGlobals, -): string { - return JSON.stringify( - HrisEmployeesAddGlobals$outboundSchema.parse(hrisEmployeesAddGlobals), - ); -} - -export function hrisEmployeesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeesAddRequest$inboundSchema: z.ZodType< - HrisEmployeesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Employee: components.EmployeeInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Employee": "employee", - }); -}); - /** @internal */ export type HrisEmployeesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const HrisEmployeesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAddRequest$ { - /** @deprecated use `HrisEmployeesAddRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAddRequest$inboundSchema; - /** @deprecated use `HrisEmployeesAddRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAddRequest$outboundSchema; - /** @deprecated use `HrisEmployeesAddRequest$Outbound` instead. */ - export type Outbound = HrisEmployeesAddRequest$Outbound; -} - export function hrisEmployeesAddRequestToJSON( hrisEmployeesAddRequest: HrisEmployeesAddRequest, ): string { @@ -173,16 +86,6 @@ export function hrisEmployeesAddRequestToJSON( ); } -export function hrisEmployeesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesAddRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeesAddResponse$inboundSchema: z.ZodType< HrisEmployeesAddResponse, @@ -202,57 +105,6 @@ export const HrisEmployeesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateEmployeeResponse?: - | components.CreateEmployeeResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeesAddResponse$outboundSchema: z.ZodType< - HrisEmployeesAddResponse$Outbound, - z.ZodTypeDef, - HrisEmployeesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createEmployeeResponse: components.CreateEmployeeResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createEmployeeResponse: "CreateEmployeeResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAddResponse$ { - /** @deprecated use `HrisEmployeesAddResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAddResponse$inboundSchema; - /** @deprecated use `HrisEmployeesAddResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAddResponse$outboundSchema; - /** @deprecated use `HrisEmployeesAddResponse$Outbound` instead. */ - export type Outbound = HrisEmployeesAddResponse$Outbound; -} - -export function hrisEmployeesAddResponseToJSON( - hrisEmployeesAddResponse: HrisEmployeesAddResponse, -): string { - return JSON.stringify( - HrisEmployeesAddResponse$outboundSchema.parse(hrisEmployeesAddResponse), - ); -} - export function hrisEmployeesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeesall.ts b/src/models/operations/hrisemployeesall.ts index 05ea5f53a..f833ebc0f 100644 --- a/src/models/operations/hrisemployeesall.ts +++ b/src/models/operations/hrisemployeesall.ts @@ -75,85 +75,6 @@ export type HrisEmployeesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeesAllGlobals$inboundSchema: z.ZodType< - HrisEmployeesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeesAllGlobals$outboundSchema: z.ZodType< - HrisEmployeesAllGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAllGlobals$ { - /** @deprecated use `HrisEmployeesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAllGlobals$inboundSchema; - /** @deprecated use `HrisEmployeesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAllGlobals$outboundSchema; - /** @deprecated use `HrisEmployeesAllGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeesAllGlobals$Outbound; -} - -export function hrisEmployeesAllGlobalsToJSON( - hrisEmployeesAllGlobals: HrisEmployeesAllGlobals, -): string { - return JSON.stringify( - HrisEmployeesAllGlobals$outboundSchema.parse(hrisEmployeesAllGlobals), - ); -} - -export function hrisEmployeesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeesAllRequest$inboundSchema: z.ZodType< - HrisEmployeesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.EmployeesFilter$inboundSchema.optional(), - sort: components.EmployeesSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisEmployeesAllRequest$Outbound = { raw: boolean; @@ -190,19 +111,6 @@ export const HrisEmployeesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAllRequest$ { - /** @deprecated use `HrisEmployeesAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAllRequest$inboundSchema; - /** @deprecated use `HrisEmployeesAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAllRequest$outboundSchema; - /** @deprecated use `HrisEmployeesAllRequest$Outbound` instead. */ - export type Outbound = HrisEmployeesAllRequest$Outbound; -} - export function hrisEmployeesAllRequestToJSON( hrisEmployeesAllRequest: HrisEmployeesAllRequest, ): string { @@ -211,16 +119,6 @@ export function hrisEmployeesAllRequestToJSON( ); } -export function hrisEmployeesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeesAllResponse$inboundSchema: z.ZodType< HrisEmployeesAllResponse, @@ -240,55 +138,6 @@ export const HrisEmployeesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEmployeesResponse?: components.GetEmployeesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeesAllResponse$outboundSchema: z.ZodType< - HrisEmployeesAllResponse$Outbound, - z.ZodTypeDef, - HrisEmployeesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEmployeesResponse: components.GetEmployeesResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEmployeesResponse: "GetEmployeesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesAllResponse$ { - /** @deprecated use `HrisEmployeesAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesAllResponse$inboundSchema; - /** @deprecated use `HrisEmployeesAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesAllResponse$outboundSchema; - /** @deprecated use `HrisEmployeesAllResponse$Outbound` instead. */ - export type Outbound = HrisEmployeesAllResponse$Outbound; -} - -export function hrisEmployeesAllResponseToJSON( - hrisEmployeesAllResponse: HrisEmployeesAllResponse, -): string { - return JSON.stringify( - HrisEmployeesAllResponse$outboundSchema.parse(hrisEmployeesAllResponse), - ); -} - export function hrisEmployeesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeeschedulesall.ts b/src/models/operations/hrisemployeeschedulesall.ts index 7483b708c..2d2a8f7ec 100644 --- a/src/models/operations/hrisemployeeschedulesall.ts +++ b/src/models/operations/hrisemployeeschedulesall.ts @@ -65,85 +65,6 @@ export type HrisEmployeeSchedulesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeeSchedulesAllGlobals$inboundSchema: z.ZodType< - HrisEmployeeSchedulesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeeSchedulesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeeSchedulesAllGlobals$outboundSchema: z.ZodType< - HrisEmployeeSchedulesAllGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeeSchedulesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeeSchedulesAllGlobals$ { - /** @deprecated use `HrisEmployeeSchedulesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeeSchedulesAllGlobals$inboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeeSchedulesAllGlobals$outboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeeSchedulesAllGlobals$Outbound; -} - -export function hrisEmployeeSchedulesAllGlobalsToJSON( - hrisEmployeeSchedulesAllGlobals: HrisEmployeeSchedulesAllGlobals, -): string { - return JSON.stringify( - HrisEmployeeSchedulesAllGlobals$outboundSchema.parse( - hrisEmployeeSchedulesAllGlobals, - ), - ); -} - -export function hrisEmployeeSchedulesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeeSchedulesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeeSchedulesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeeSchedulesAllRequest$inboundSchema: z.ZodType< - HrisEmployeeSchedulesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - employee_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisEmployeeSchedulesAllRequest$Outbound = { employee_id: string; @@ -175,19 +96,6 @@ export const HrisEmployeeSchedulesAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeeSchedulesAllRequest$ { - /** @deprecated use `HrisEmployeeSchedulesAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeeSchedulesAllRequest$inboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeeSchedulesAllRequest$outboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllRequest$Outbound` instead. */ - export type Outbound = HrisEmployeeSchedulesAllRequest$Outbound; -} - export function hrisEmployeeSchedulesAllRequestToJSON( hrisEmployeeSchedulesAllRequest: HrisEmployeeSchedulesAllRequest, ): string { @@ -198,16 +106,6 @@ export function hrisEmployeeSchedulesAllRequestToJSON( ); } -export function hrisEmployeeSchedulesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeeSchedulesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeeSchedulesAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeeSchedulesAllResponse$inboundSchema: z.ZodType< HrisEmployeeSchedulesAllResponse, @@ -227,59 +125,6 @@ export const HrisEmployeeSchedulesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeeSchedulesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEmployeeSchedulesResponse?: - | components.GetEmployeeSchedulesResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeeSchedulesAllResponse$outboundSchema: z.ZodType< - HrisEmployeeSchedulesAllResponse$Outbound, - z.ZodTypeDef, - HrisEmployeeSchedulesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEmployeeSchedulesResponse: components - .GetEmployeeSchedulesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEmployeeSchedulesResponse: "GetEmployeeSchedulesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeeSchedulesAllResponse$ { - /** @deprecated use `HrisEmployeeSchedulesAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeeSchedulesAllResponse$inboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeeSchedulesAllResponse$outboundSchema; - /** @deprecated use `HrisEmployeeSchedulesAllResponse$Outbound` instead. */ - export type Outbound = HrisEmployeeSchedulesAllResponse$Outbound; -} - -export function hrisEmployeeSchedulesAllResponseToJSON( - hrisEmployeeSchedulesAllResponse: HrisEmployeeSchedulesAllResponse, -): string { - return JSON.stringify( - HrisEmployeeSchedulesAllResponse$outboundSchema.parse( - hrisEmployeeSchedulesAllResponse, - ), - ); -} - export function hrisEmployeeSchedulesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeesdelete.ts b/src/models/operations/hrisemployeesdelete.ts index 9fd15769e..dcb8b53eb 100644 --- a/src/models/operations/hrisemployeesdelete.ts +++ b/src/models/operations/hrisemployeesdelete.ts @@ -55,76 +55,6 @@ export type HrisEmployeesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeesDeleteGlobals$inboundSchema: z.ZodType< - HrisEmployeesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeesDeleteGlobals$outboundSchema: z.ZodType< - HrisEmployeesDeleteGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesDeleteGlobals$ { - /** @deprecated use `HrisEmployeesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesDeleteGlobals$inboundSchema; - /** @deprecated use `HrisEmployeesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesDeleteGlobals$outboundSchema; - /** @deprecated use `HrisEmployeesDeleteGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeesDeleteGlobals$Outbound; -} - -export function hrisEmployeesDeleteGlobalsToJSON( - hrisEmployeesDeleteGlobals: HrisEmployeesDeleteGlobals, -): string { - return JSON.stringify( - HrisEmployeesDeleteGlobals$outboundSchema.parse(hrisEmployeesDeleteGlobals), - ); -} - -export function hrisEmployeesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeesDeleteRequest$inboundSchema: z.ZodType< - HrisEmployeesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type HrisEmployeesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const HrisEmployeesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesDeleteRequest$ { - /** @deprecated use `HrisEmployeesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesDeleteRequest$inboundSchema; - /** @deprecated use `HrisEmployeesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesDeleteRequest$outboundSchema; - /** @deprecated use `HrisEmployeesDeleteRequest$Outbound` instead. */ - export type Outbound = HrisEmployeesDeleteRequest$Outbound; -} - export function hrisEmployeesDeleteRequestToJSON( hrisEmployeesDeleteRequest: HrisEmployeesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function hrisEmployeesDeleteRequestToJSON( ); } -export function hrisEmployeesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeesDeleteResponse$inboundSchema: z.ZodType< HrisEmployeesDeleteResponse, @@ -197,59 +104,6 @@ export const HrisEmployeesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteEmployeeResponse?: - | components.DeleteEmployeeResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeesDeleteResponse$outboundSchema: z.ZodType< - HrisEmployeesDeleteResponse$Outbound, - z.ZodTypeDef, - HrisEmployeesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteEmployeeResponse: components.DeleteEmployeeResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteEmployeeResponse: "DeleteEmployeeResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesDeleteResponse$ { - /** @deprecated use `HrisEmployeesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesDeleteResponse$inboundSchema; - /** @deprecated use `HrisEmployeesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesDeleteResponse$outboundSchema; - /** @deprecated use `HrisEmployeesDeleteResponse$Outbound` instead. */ - export type Outbound = HrisEmployeesDeleteResponse$Outbound; -} - -export function hrisEmployeesDeleteResponseToJSON( - hrisEmployeesDeleteResponse: HrisEmployeesDeleteResponse, -): string { - return JSON.stringify( - HrisEmployeesDeleteResponse$outboundSchema.parse( - hrisEmployeesDeleteResponse, - ), - ); -} - export function hrisEmployeesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeesone.ts b/src/models/operations/hrisemployeesone.ts index 32f41dbe5..912beb6bd 100644 --- a/src/models/operations/hrisemployeesone.ts +++ b/src/models/operations/hrisemployeesone.ts @@ -67,83 +67,6 @@ export type HrisEmployeesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeesOneGlobals$inboundSchema: z.ZodType< - HrisEmployeesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeesOneGlobals$outboundSchema: z.ZodType< - HrisEmployeesOneGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesOneGlobals$ { - /** @deprecated use `HrisEmployeesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesOneGlobals$inboundSchema; - /** @deprecated use `HrisEmployeesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesOneGlobals$outboundSchema; - /** @deprecated use `HrisEmployeesOneGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeesOneGlobals$Outbound; -} - -export function hrisEmployeesOneGlobalsToJSON( - hrisEmployeesOneGlobals: HrisEmployeesOneGlobals, -): string { - return JSON.stringify( - HrisEmployeesOneGlobals$outboundSchema.parse(hrisEmployeesOneGlobals), - ); -} - -export function hrisEmployeesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeesOneRequest$inboundSchema: z.ZodType< - HrisEmployeesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - filter: components.EmployeesOneFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisEmployeesOneRequest$Outbound = { id: string; @@ -176,19 +99,6 @@ export const HrisEmployeesOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesOneRequest$ { - /** @deprecated use `HrisEmployeesOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesOneRequest$inboundSchema; - /** @deprecated use `HrisEmployeesOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesOneRequest$outboundSchema; - /** @deprecated use `HrisEmployeesOneRequest$Outbound` instead. */ - export type Outbound = HrisEmployeesOneRequest$Outbound; -} - export function hrisEmployeesOneRequestToJSON( hrisEmployeesOneRequest: HrisEmployeesOneRequest, ): string { @@ -197,16 +107,6 @@ export function hrisEmployeesOneRequestToJSON( ); } -export function hrisEmployeesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeesOneResponse$inboundSchema: z.ZodType< HrisEmployeesOneResponse, @@ -225,54 +125,6 @@ export const HrisEmployeesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetEmployeeResponse?: components.GetEmployeeResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeesOneResponse$outboundSchema: z.ZodType< - HrisEmployeesOneResponse$Outbound, - z.ZodTypeDef, - HrisEmployeesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getEmployeeResponse: components.GetEmployeeResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getEmployeeResponse: "GetEmployeeResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesOneResponse$ { - /** @deprecated use `HrisEmployeesOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesOneResponse$inboundSchema; - /** @deprecated use `HrisEmployeesOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesOneResponse$outboundSchema; - /** @deprecated use `HrisEmployeesOneResponse$Outbound` instead. */ - export type Outbound = HrisEmployeesOneResponse$Outbound; -} - -export function hrisEmployeesOneResponseToJSON( - hrisEmployeesOneResponse: HrisEmployeesOneResponse, -): string { - return JSON.stringify( - HrisEmployeesOneResponse$outboundSchema.parse(hrisEmployeesOneResponse), - ); -} - export function hrisEmployeesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrisemployeesupdate.ts b/src/models/operations/hrisemployeesupdate.ts index fc89e4c53..3a0657c55 100644 --- a/src/models/operations/hrisemployeesupdate.ts +++ b/src/models/operations/hrisemployeesupdate.ts @@ -56,81 +56,6 @@ export type HrisEmployeesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisEmployeesUpdateGlobals$inboundSchema: z.ZodType< - HrisEmployeesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisEmployeesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisEmployeesUpdateGlobals$outboundSchema: z.ZodType< - HrisEmployeesUpdateGlobals$Outbound, - z.ZodTypeDef, - HrisEmployeesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesUpdateGlobals$ { - /** @deprecated use `HrisEmployeesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesUpdateGlobals$inboundSchema; - /** @deprecated use `HrisEmployeesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesUpdateGlobals$outboundSchema; - /** @deprecated use `HrisEmployeesUpdateGlobals$Outbound` instead. */ - export type Outbound = HrisEmployeesUpdateGlobals$Outbound; -} - -export function hrisEmployeesUpdateGlobalsToJSON( - hrisEmployeesUpdateGlobals: HrisEmployeesUpdateGlobals, -): string { - return JSON.stringify( - HrisEmployeesUpdateGlobals$outboundSchema.parse(hrisEmployeesUpdateGlobals), - ); -} - -export function hrisEmployeesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisEmployeesUpdateRequest$inboundSchema: z.ZodType< - HrisEmployeesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Employee: components.EmployeeInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Employee": "employee", - }); -}); - /** @internal */ export type HrisEmployeesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const HrisEmployeesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesUpdateRequest$ { - /** @deprecated use `HrisEmployeesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesUpdateRequest$inboundSchema; - /** @deprecated use `HrisEmployeesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesUpdateRequest$outboundSchema; - /** @deprecated use `HrisEmployeesUpdateRequest$Outbound` instead. */ - export type Outbound = HrisEmployeesUpdateRequest$Outbound; -} - export function hrisEmployeesUpdateRequestToJSON( hrisEmployeesUpdateRequest: HrisEmployeesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function hrisEmployeesUpdateRequestToJSON( ); } -export function hrisEmployeesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisEmployeesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisEmployeesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const HrisEmployeesUpdateResponse$inboundSchema: z.ZodType< HrisEmployeesUpdateResponse, @@ -209,59 +111,6 @@ export const HrisEmployeesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisEmployeesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateEmployeeResponse?: - | components.UpdateEmployeeResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisEmployeesUpdateResponse$outboundSchema: z.ZodType< - HrisEmployeesUpdateResponse$Outbound, - z.ZodTypeDef, - HrisEmployeesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateEmployeeResponse: components.UpdateEmployeeResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateEmployeeResponse: "UpdateEmployeeResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisEmployeesUpdateResponse$ { - /** @deprecated use `HrisEmployeesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = HrisEmployeesUpdateResponse$inboundSchema; - /** @deprecated use `HrisEmployeesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = HrisEmployeesUpdateResponse$outboundSchema; - /** @deprecated use `HrisEmployeesUpdateResponse$Outbound` instead. */ - export type Outbound = HrisEmployeesUpdateResponse$Outbound; -} - -export function hrisEmployeesUpdateResponseToJSON( - hrisEmployeesUpdateResponse: HrisEmployeesUpdateResponse, -): string { - return JSON.stringify( - HrisEmployeesUpdateResponse$outboundSchema.parse( - hrisEmployeesUpdateResponse, - ), - ); -} - export function hrisEmployeesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrispayrollsall.ts b/src/models/operations/hrispayrollsall.ts index 0d6c22c0f..f8c2e46f3 100644 --- a/src/models/operations/hrispayrollsall.ts +++ b/src/models/operations/hrispayrollsall.ts @@ -63,82 +63,6 @@ export type HrisPayrollsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisPayrollsAllGlobals$inboundSchema: z.ZodType< - HrisPayrollsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisPayrollsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisPayrollsAllGlobals$outboundSchema: z.ZodType< - HrisPayrollsAllGlobals$Outbound, - z.ZodTypeDef, - HrisPayrollsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsAllGlobals$ { - /** @deprecated use `HrisPayrollsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsAllGlobals$inboundSchema; - /** @deprecated use `HrisPayrollsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsAllGlobals$outboundSchema; - /** @deprecated use `HrisPayrollsAllGlobals$Outbound` instead. */ - export type Outbound = HrisPayrollsAllGlobals$Outbound; -} - -export function hrisPayrollsAllGlobalsToJSON( - hrisPayrollsAllGlobals: HrisPayrollsAllGlobals, -): string { - return JSON.stringify( - HrisPayrollsAllGlobals$outboundSchema.parse(hrisPayrollsAllGlobals), - ); -} - -export function hrisPayrollsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisPayrollsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisPayrollsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisPayrollsAllRequest$inboundSchema: z.ZodType< - HrisPayrollsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - filter: components.PayrollsFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisPayrollsAllRequest$Outbound = { raw: boolean; @@ -169,19 +93,6 @@ export const HrisPayrollsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsAllRequest$ { - /** @deprecated use `HrisPayrollsAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsAllRequest$inboundSchema; - /** @deprecated use `HrisPayrollsAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsAllRequest$outboundSchema; - /** @deprecated use `HrisPayrollsAllRequest$Outbound` instead. */ - export type Outbound = HrisPayrollsAllRequest$Outbound; -} - export function hrisPayrollsAllRequestToJSON( hrisPayrollsAllRequest: HrisPayrollsAllRequest, ): string { @@ -190,16 +101,6 @@ export function hrisPayrollsAllRequestToJSON( ); } -export function hrisPayrollsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisPayrollsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisPayrollsAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisPayrollsAllResponse$inboundSchema: z.ZodType< HrisPayrollsAllResponse, @@ -218,54 +119,6 @@ export const HrisPayrollsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisPayrollsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPayrollsResponse?: components.GetPayrollsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisPayrollsAllResponse$outboundSchema: z.ZodType< - HrisPayrollsAllResponse$Outbound, - z.ZodTypeDef, - HrisPayrollsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPayrollsResponse: components.GetPayrollsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPayrollsResponse: "GetPayrollsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsAllResponse$ { - /** @deprecated use `HrisPayrollsAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsAllResponse$inboundSchema; - /** @deprecated use `HrisPayrollsAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsAllResponse$outboundSchema; - /** @deprecated use `HrisPayrollsAllResponse$Outbound` instead. */ - export type Outbound = HrisPayrollsAllResponse$Outbound; -} - -export function hrisPayrollsAllResponseToJSON( - hrisPayrollsAllResponse: HrisPayrollsAllResponse, -): string { - return JSON.stringify( - HrisPayrollsAllResponse$outboundSchema.parse(hrisPayrollsAllResponse), - ); -} - export function hrisPayrollsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hrispayrollsone.ts b/src/models/operations/hrispayrollsone.ts index 097a292d5..fcb1ab312 100644 --- a/src/models/operations/hrispayrollsone.ts +++ b/src/models/operations/hrispayrollsone.ts @@ -59,81 +59,6 @@ export type HrisPayrollsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisPayrollsOneGlobals$inboundSchema: z.ZodType< - HrisPayrollsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisPayrollsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisPayrollsOneGlobals$outboundSchema: z.ZodType< - HrisPayrollsOneGlobals$Outbound, - z.ZodTypeDef, - HrisPayrollsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsOneGlobals$ { - /** @deprecated use `HrisPayrollsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsOneGlobals$inboundSchema; - /** @deprecated use `HrisPayrollsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsOneGlobals$outboundSchema; - /** @deprecated use `HrisPayrollsOneGlobals$Outbound` instead. */ - export type Outbound = HrisPayrollsOneGlobals$Outbound; -} - -export function hrisPayrollsOneGlobalsToJSON( - hrisPayrollsOneGlobals: HrisPayrollsOneGlobals, -): string { - return JSON.stringify( - HrisPayrollsOneGlobals$outboundSchema.parse(hrisPayrollsOneGlobals), - ); -} - -export function hrisPayrollsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisPayrollsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisPayrollsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisPayrollsOneRequest$inboundSchema: z.ZodType< - HrisPayrollsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - payroll_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "payroll_id": "payrollId", - }); -}); - /** @internal */ export type HrisPayrollsOneRequest$Outbound = { payroll_id: string; @@ -162,19 +87,6 @@ export const HrisPayrollsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsOneRequest$ { - /** @deprecated use `HrisPayrollsOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsOneRequest$inboundSchema; - /** @deprecated use `HrisPayrollsOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsOneRequest$outboundSchema; - /** @deprecated use `HrisPayrollsOneRequest$Outbound` instead. */ - export type Outbound = HrisPayrollsOneRequest$Outbound; -} - export function hrisPayrollsOneRequestToJSON( hrisPayrollsOneRequest: HrisPayrollsOneRequest, ): string { @@ -183,16 +95,6 @@ export function hrisPayrollsOneRequestToJSON( ); } -export function hrisPayrollsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisPayrollsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisPayrollsOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisPayrollsOneResponse$inboundSchema: z.ZodType< HrisPayrollsOneResponse, @@ -211,54 +113,6 @@ export const HrisPayrollsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisPayrollsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetPayrollResponse?: components.GetPayrollResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisPayrollsOneResponse$outboundSchema: z.ZodType< - HrisPayrollsOneResponse$Outbound, - z.ZodTypeDef, - HrisPayrollsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getPayrollResponse: components.GetPayrollResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getPayrollResponse: "GetPayrollResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisPayrollsOneResponse$ { - /** @deprecated use `HrisPayrollsOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisPayrollsOneResponse$inboundSchema; - /** @deprecated use `HrisPayrollsOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisPayrollsOneResponse$outboundSchema; - /** @deprecated use `HrisPayrollsOneResponse$Outbound` instead. */ - export type Outbound = HrisPayrollsOneResponse$Outbound; -} - -export function hrisPayrollsOneResponseToJSON( - hrisPayrollsOneResponse: HrisPayrollsOneResponse, -): string { - return JSON.stringify( - HrisPayrollsOneResponse$outboundSchema.parse(hrisPayrollsOneResponse), - ); -} - export function hrisPayrollsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hristimeoffrequestsadd.ts b/src/models/operations/hristimeoffrequestsadd.ts index fa876fd91..640bcf780 100644 --- a/src/models/operations/hristimeoffrequestsadd.ts +++ b/src/models/operations/hristimeoffrequestsadd.ts @@ -54,82 +54,6 @@ export type HrisTimeOffRequestsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisTimeOffRequestsAddGlobals$inboundSchema: z.ZodType< - HrisTimeOffRequestsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisTimeOffRequestsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsAddGlobals$outboundSchema: z.ZodType< - HrisTimeOffRequestsAddGlobals$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAddGlobals$ { - /** @deprecated use `HrisTimeOffRequestsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAddGlobals$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAddGlobals$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddGlobals$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAddGlobals$Outbound; -} - -export function hrisTimeOffRequestsAddGlobalsToJSON( - hrisTimeOffRequestsAddGlobals: HrisTimeOffRequestsAddGlobals, -): string { - return JSON.stringify( - HrisTimeOffRequestsAddGlobals$outboundSchema.parse( - hrisTimeOffRequestsAddGlobals, - ), - ); -} - -export function hrisTimeOffRequestsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisTimeOffRequestsAddRequest$inboundSchema: z.ZodType< - HrisTimeOffRequestsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - TimeOffRequest: components.TimeOffRequestInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "TimeOffRequest": "timeOffRequest", - }); -}); - /** @internal */ export type HrisTimeOffRequestsAddRequest$Outbound = { raw: boolean; @@ -156,19 +80,6 @@ export const HrisTimeOffRequestsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAddRequest$ { - /** @deprecated use `HrisTimeOffRequestsAddRequest$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAddRequest$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddRequest$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAddRequest$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddRequest$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAddRequest$Outbound; -} - export function hrisTimeOffRequestsAddRequestToJSON( hrisTimeOffRequestsAddRequest: HrisTimeOffRequestsAddRequest, ): string { @@ -179,16 +90,6 @@ export function hrisTimeOffRequestsAddRequestToJSON( ); } -export function hrisTimeOffRequestsAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsAddRequest' from JSON`, - ); -} - /** @internal */ export const HrisTimeOffRequestsAddResponse$inboundSchema: z.ZodType< HrisTimeOffRequestsAddResponse, @@ -208,59 +109,6 @@ export const HrisTimeOffRequestsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisTimeOffRequestsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateTimeOffRequestResponse?: - | components.CreateTimeOffRequestResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsAddResponse$outboundSchema: z.ZodType< - HrisTimeOffRequestsAddResponse$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createTimeOffRequestResponse: components - .CreateTimeOffRequestResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createTimeOffRequestResponse: "CreateTimeOffRequestResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAddResponse$ { - /** @deprecated use `HrisTimeOffRequestsAddResponse$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAddResponse$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddResponse$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAddResponse$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAddResponse$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAddResponse$Outbound; -} - -export function hrisTimeOffRequestsAddResponseToJSON( - hrisTimeOffRequestsAddResponse: HrisTimeOffRequestsAddResponse, -): string { - return JSON.stringify( - HrisTimeOffRequestsAddResponse$outboundSchema.parse( - hrisTimeOffRequestsAddResponse, - ), - ); -} - export function hrisTimeOffRequestsAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hristimeoffrequestsall.ts b/src/models/operations/hristimeoffrequestsall.ts index d1e651bb8..6851fd164 100644 --- a/src/models/operations/hristimeoffrequestsall.ts +++ b/src/models/operations/hristimeoffrequestsall.ts @@ -73,86 +73,6 @@ export type HrisTimeOffRequestsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisTimeOffRequestsAllGlobals$inboundSchema: z.ZodType< - HrisTimeOffRequestsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisTimeOffRequestsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsAllGlobals$outboundSchema: z.ZodType< - HrisTimeOffRequestsAllGlobals$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAllGlobals$ { - /** @deprecated use `HrisTimeOffRequestsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAllGlobals$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAllGlobals$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllGlobals$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAllGlobals$Outbound; -} - -export function hrisTimeOffRequestsAllGlobalsToJSON( - hrisTimeOffRequestsAllGlobals: HrisTimeOffRequestsAllGlobals, -): string { - return JSON.stringify( - HrisTimeOffRequestsAllGlobals$outboundSchema.parse( - hrisTimeOffRequestsAllGlobals, - ), - ); -} - -export function hrisTimeOffRequestsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisTimeOffRequestsAllRequest$inboundSchema: z.ZodType< - HrisTimeOffRequestsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.TimeOffRequestsFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type HrisTimeOffRequestsAllRequest$Outbound = { raw: boolean; @@ -187,19 +107,6 @@ export const HrisTimeOffRequestsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAllRequest$ { - /** @deprecated use `HrisTimeOffRequestsAllRequest$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAllRequest$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllRequest$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAllRequest$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllRequest$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAllRequest$Outbound; -} - export function hrisTimeOffRequestsAllRequestToJSON( hrisTimeOffRequestsAllRequest: HrisTimeOffRequestsAllRequest, ): string { @@ -210,16 +117,6 @@ export function hrisTimeOffRequestsAllRequestToJSON( ); } -export function hrisTimeOffRequestsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsAllRequest' from JSON`, - ); -} - /** @internal */ export const HrisTimeOffRequestsAllResponse$inboundSchema: z.ZodType< HrisTimeOffRequestsAllResponse, @@ -239,59 +136,6 @@ export const HrisTimeOffRequestsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisTimeOffRequestsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTimeOffRequestsResponse?: - | components.GetTimeOffRequestsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsAllResponse$outboundSchema: z.ZodType< - HrisTimeOffRequestsAllResponse$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTimeOffRequestsResponse: components - .GetTimeOffRequestsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTimeOffRequestsResponse: "GetTimeOffRequestsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsAllResponse$ { - /** @deprecated use `HrisTimeOffRequestsAllResponse$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsAllResponse$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllResponse$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsAllResponse$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsAllResponse$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsAllResponse$Outbound; -} - -export function hrisTimeOffRequestsAllResponseToJSON( - hrisTimeOffRequestsAllResponse: HrisTimeOffRequestsAllResponse, -): string { - return JSON.stringify( - HrisTimeOffRequestsAllResponse$outboundSchema.parse( - hrisTimeOffRequestsAllResponse, - ), - ); -} - export function hrisTimeOffRequestsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hristimeoffrequestsdelete.ts b/src/models/operations/hristimeoffrequestsdelete.ts index f78fd27e6..ce3a9438f 100644 --- a/src/models/operations/hristimeoffrequestsdelete.ts +++ b/src/models/operations/hristimeoffrequestsdelete.ts @@ -61,83 +61,6 @@ export type HrisTimeOffRequestsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisTimeOffRequestsDeleteGlobals$inboundSchema: z.ZodType< - HrisTimeOffRequestsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisTimeOffRequestsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsDeleteGlobals$outboundSchema: z.ZodType< - HrisTimeOffRequestsDeleteGlobals$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsDeleteGlobals$ { - /** @deprecated use `HrisTimeOffRequestsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsDeleteGlobals$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsDeleteGlobals$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteGlobals$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsDeleteGlobals$Outbound; -} - -export function hrisTimeOffRequestsDeleteGlobalsToJSON( - hrisTimeOffRequestsDeleteGlobals: HrisTimeOffRequestsDeleteGlobals, -): string { - return JSON.stringify( - HrisTimeOffRequestsDeleteGlobals$outboundSchema.parse( - hrisTimeOffRequestsDeleteGlobals, - ), - ); -} - -export function hrisTimeOffRequestsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisTimeOffRequestsDeleteRequest$inboundSchema: z.ZodType< - HrisTimeOffRequestsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - employee_id: z.string(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - }); -}); - /** @internal */ export type HrisTimeOffRequestsDeleteRequest$Outbound = { id: string; @@ -166,19 +89,6 @@ export const HrisTimeOffRequestsDeleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsDeleteRequest$ { - /** @deprecated use `HrisTimeOffRequestsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsDeleteRequest$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsDeleteRequest$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteRequest$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsDeleteRequest$Outbound; -} - export function hrisTimeOffRequestsDeleteRequestToJSON( hrisTimeOffRequestsDeleteRequest: HrisTimeOffRequestsDeleteRequest, ): string { @@ -189,16 +99,6 @@ export function hrisTimeOffRequestsDeleteRequestToJSON( ); } -export function hrisTimeOffRequestsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const HrisTimeOffRequestsDeleteResponse$inboundSchema: z.ZodType< HrisTimeOffRequestsDeleteResponse, @@ -218,60 +118,6 @@ export const HrisTimeOffRequestsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisTimeOffRequestsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteTimeOffRequestResponse?: - | components.DeleteTimeOffRequestResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsDeleteResponse$outboundSchema: z.ZodType< - HrisTimeOffRequestsDeleteResponse$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteTimeOffRequestResponse: components - .DeleteTimeOffRequestResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteTimeOffRequestResponse: "DeleteTimeOffRequestResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsDeleteResponse$ { - /** @deprecated use `HrisTimeOffRequestsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsDeleteResponse$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - HrisTimeOffRequestsDeleteResponse$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsDeleteResponse$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsDeleteResponse$Outbound; -} - -export function hrisTimeOffRequestsDeleteResponseToJSON( - hrisTimeOffRequestsDeleteResponse: HrisTimeOffRequestsDeleteResponse, -): string { - return JSON.stringify( - HrisTimeOffRequestsDeleteResponse$outboundSchema.parse( - hrisTimeOffRequestsDeleteResponse, - ), - ); -} - export function hrisTimeOffRequestsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hristimeoffrequestsone.ts b/src/models/operations/hristimeoffrequestsone.ts index e42962c82..6b0c61caf 100644 --- a/src/models/operations/hristimeoffrequestsone.ts +++ b/src/models/operations/hristimeoffrequestsone.ts @@ -63,84 +63,6 @@ export type HrisTimeOffRequestsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisTimeOffRequestsOneGlobals$inboundSchema: z.ZodType< - HrisTimeOffRequestsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisTimeOffRequestsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsOneGlobals$outboundSchema: z.ZodType< - HrisTimeOffRequestsOneGlobals$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsOneGlobals$ { - /** @deprecated use `HrisTimeOffRequestsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsOneGlobals$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsOneGlobals$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneGlobals$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsOneGlobals$Outbound; -} - -export function hrisTimeOffRequestsOneGlobalsToJSON( - hrisTimeOffRequestsOneGlobals: HrisTimeOffRequestsOneGlobals, -): string { - return JSON.stringify( - HrisTimeOffRequestsOneGlobals$outboundSchema.parse( - hrisTimeOffRequestsOneGlobals, - ), - ); -} - -export function hrisTimeOffRequestsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisTimeOffRequestsOneRequest$inboundSchema: z.ZodType< - HrisTimeOffRequestsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), - employee_id: z.string(), -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - }); -}); - /** @internal */ export type HrisTimeOffRequestsOneRequest$Outbound = { id: string; @@ -171,19 +93,6 @@ export const HrisTimeOffRequestsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsOneRequest$ { - /** @deprecated use `HrisTimeOffRequestsOneRequest$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsOneRequest$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneRequest$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsOneRequest$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneRequest$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsOneRequest$Outbound; -} - export function hrisTimeOffRequestsOneRequestToJSON( hrisTimeOffRequestsOneRequest: HrisTimeOffRequestsOneRequest, ): string { @@ -194,16 +103,6 @@ export function hrisTimeOffRequestsOneRequestToJSON( ); } -export function hrisTimeOffRequestsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsOneRequest' from JSON`, - ); -} - /** @internal */ export const HrisTimeOffRequestsOneResponse$inboundSchema: z.ZodType< HrisTimeOffRequestsOneResponse, @@ -223,59 +122,6 @@ export const HrisTimeOffRequestsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisTimeOffRequestsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTimeOffRequestResponse?: - | components.GetTimeOffRequestResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsOneResponse$outboundSchema: z.ZodType< - HrisTimeOffRequestsOneResponse$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTimeOffRequestResponse: components.GetTimeOffRequestResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTimeOffRequestResponse: "GetTimeOffRequestResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsOneResponse$ { - /** @deprecated use `HrisTimeOffRequestsOneResponse$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsOneResponse$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneResponse$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsOneResponse$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsOneResponse$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsOneResponse$Outbound; -} - -export function hrisTimeOffRequestsOneResponseToJSON( - hrisTimeOffRequestsOneResponse: HrisTimeOffRequestsOneResponse, -): string { - return JSON.stringify( - HrisTimeOffRequestsOneResponse$outboundSchema.parse( - hrisTimeOffRequestsOneResponse, - ), - ); -} - export function hrisTimeOffRequestsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/hristimeoffrequestsupdate.ts b/src/models/operations/hristimeoffrequestsupdate.ts index 1df582ca7..11c11963d 100644 --- a/src/models/operations/hristimeoffrequestsupdate.ts +++ b/src/models/operations/hristimeoffrequestsupdate.ts @@ -62,85 +62,6 @@ export type HrisTimeOffRequestsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const HrisTimeOffRequestsUpdateGlobals$inboundSchema: z.ZodType< - HrisTimeOffRequestsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type HrisTimeOffRequestsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsUpdateGlobals$outboundSchema: z.ZodType< - HrisTimeOffRequestsUpdateGlobals$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsUpdateGlobals$ { - /** @deprecated use `HrisTimeOffRequestsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsUpdateGlobals$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsUpdateGlobals$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateGlobals$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsUpdateGlobals$Outbound; -} - -export function hrisTimeOffRequestsUpdateGlobalsToJSON( - hrisTimeOffRequestsUpdateGlobals: HrisTimeOffRequestsUpdateGlobals, -): string { - return JSON.stringify( - HrisTimeOffRequestsUpdateGlobals$outboundSchema.parse( - hrisTimeOffRequestsUpdateGlobals, - ), - ); -} - -export function hrisTimeOffRequestsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const HrisTimeOffRequestsUpdateRequest$inboundSchema: z.ZodType< - HrisTimeOffRequestsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - employee_id: z.string(), - TimeOffRequest: components.TimeOffRequestInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "employee_id": "employeeId", - "TimeOffRequest": "timeOffRequest", - }); -}); - /** @internal */ export type HrisTimeOffRequestsUpdateRequest$Outbound = { id: string; @@ -172,19 +93,6 @@ export const HrisTimeOffRequestsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsUpdateRequest$ { - /** @deprecated use `HrisTimeOffRequestsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsUpdateRequest$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = HrisTimeOffRequestsUpdateRequest$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateRequest$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsUpdateRequest$Outbound; -} - export function hrisTimeOffRequestsUpdateRequestToJSON( hrisTimeOffRequestsUpdateRequest: HrisTimeOffRequestsUpdateRequest, ): string { @@ -195,16 +103,6 @@ export function hrisTimeOffRequestsUpdateRequestToJSON( ); } -export function hrisTimeOffRequestsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HrisTimeOffRequestsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HrisTimeOffRequestsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const HrisTimeOffRequestsUpdateResponse$inboundSchema: z.ZodType< HrisTimeOffRequestsUpdateResponse, @@ -224,60 +122,6 @@ export const HrisTimeOffRequestsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type HrisTimeOffRequestsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateTimeOffRequestResponse?: - | components.UpdateTimeOffRequestResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const HrisTimeOffRequestsUpdateResponse$outboundSchema: z.ZodType< - HrisTimeOffRequestsUpdateResponse$Outbound, - z.ZodTypeDef, - HrisTimeOffRequestsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateTimeOffRequestResponse: components - .UpdateTimeOffRequestResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateTimeOffRequestResponse: "UpdateTimeOffRequestResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HrisTimeOffRequestsUpdateResponse$ { - /** @deprecated use `HrisTimeOffRequestsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = HrisTimeOffRequestsUpdateResponse$inboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - HrisTimeOffRequestsUpdateResponse$outboundSchema; - /** @deprecated use `HrisTimeOffRequestsUpdateResponse$Outbound` instead. */ - export type Outbound = HrisTimeOffRequestsUpdateResponse$Outbound; -} - -export function hrisTimeOffRequestsUpdateResponseToJSON( - hrisTimeOffRequestsUpdateResponse: HrisTimeOffRequestsUpdateResponse, -): string { - return JSON.stringify( - HrisTimeOffRequestsUpdateResponse$outboundSchema.parse( - hrisTimeOffRequestsUpdateResponse, - ), - ); -} - export function hrisTimeOffRequestsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/issuetrackingcollectionsall.ts b/src/models/operations/issuetrackingcollectionsall.ts index b9a4b99d8..949fa12b1 100644 --- a/src/models/operations/issuetrackingcollectionsall.ts +++ b/src/models/operations/issuetrackingcollectionsall.ts @@ -71,88 +71,6 @@ export type IssueTrackingCollectionsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionsAllGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionsAllGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionsAllGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsAllGlobals$ { - /** @deprecated use `IssueTrackingCollectionsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = IssueTrackingCollectionsAllGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsAllGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsAllGlobals$Outbound; -} - -export function issueTrackingCollectionsAllGlobalsToJSON( - issueTrackingCollectionsAllGlobals: IssueTrackingCollectionsAllGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionsAllGlobals$outboundSchema.parse( - issueTrackingCollectionsAllGlobals, - ), - ); -} - -export function issueTrackingCollectionsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionsAllRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - sort: components.CollectionsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "pass_through": "passThrough", - }); -}); - /** @internal */ export type IssueTrackingCollectionsAllRequest$Outbound = { raw: boolean; @@ -187,20 +105,6 @@ export const IssueTrackingCollectionsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsAllRequest$ { - /** @deprecated use `IssueTrackingCollectionsAllRequest$inboundSchema` instead. */ - export const inboundSchema = IssueTrackingCollectionsAllRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsAllRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsAllRequest$Outbound; -} - export function issueTrackingCollectionsAllRequestToJSON( issueTrackingCollectionsAllRequest: IssueTrackingCollectionsAllRequest, ): string { @@ -211,17 +115,6 @@ export function issueTrackingCollectionsAllRequestToJSON( ); } -export function issueTrackingCollectionsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionsAllRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionsAllResponse$inboundSchema: z.ZodType< IssueTrackingCollectionsAllResponse, @@ -241,61 +134,6 @@ export const IssueTrackingCollectionsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCollectionsResponse?: - | components.GetCollectionsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionsAllResponse$outboundSchema: z.ZodType< - IssueTrackingCollectionsAllResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCollectionsResponse: components.GetCollectionsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCollectionsResponse: "GetCollectionsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsAllResponse$ { - /** @deprecated use `IssueTrackingCollectionsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionsAllResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsAllResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsAllResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsAllResponse$Outbound; -} - -export function issueTrackingCollectionsAllResponseToJSON( - issueTrackingCollectionsAllResponse: IssueTrackingCollectionsAllResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionsAllResponse$outboundSchema.parse( - issueTrackingCollectionsAllResponse, - ), - ); -} - export function issueTrackingCollectionsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/issuetrackingcollectionsone.ts b/src/models/operations/issuetrackingcollectionsone.ts index 39083f4cc..8df3b4951 100644 --- a/src/models/operations/issuetrackingcollectionsone.ts +++ b/src/models/operations/issuetrackingcollectionsone.ts @@ -59,85 +59,6 @@ export type IssueTrackingCollectionsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionsOneGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionsOneGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionsOneGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsOneGlobals$ { - /** @deprecated use `IssueTrackingCollectionsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = IssueTrackingCollectionsOneGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsOneGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsOneGlobals$Outbound; -} - -export function issueTrackingCollectionsOneGlobalsToJSON( - issueTrackingCollectionsOneGlobals: IssueTrackingCollectionsOneGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionsOneGlobals$outboundSchema.parse( - issueTrackingCollectionsOneGlobals, - ), - ); -} - -export function issueTrackingCollectionsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionsOneRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - collection_id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - }); -}); - /** @internal */ export type IssueTrackingCollectionsOneRequest$Outbound = { collection_id: string; @@ -166,20 +87,6 @@ export const IssueTrackingCollectionsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsOneRequest$ { - /** @deprecated use `IssueTrackingCollectionsOneRequest$inboundSchema` instead. */ - export const inboundSchema = IssueTrackingCollectionsOneRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsOneRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsOneRequest$Outbound; -} - export function issueTrackingCollectionsOneRequestToJSON( issueTrackingCollectionsOneRequest: IssueTrackingCollectionsOneRequest, ): string { @@ -190,17 +97,6 @@ export function issueTrackingCollectionsOneRequestToJSON( ); } -export function issueTrackingCollectionsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionsOneRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionsOneResponse$inboundSchema: z.ZodType< IssueTrackingCollectionsOneResponse, @@ -220,59 +116,6 @@ export const IssueTrackingCollectionsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCollectionResponse?: components.GetCollectionResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionsOneResponse$outboundSchema: z.ZodType< - IssueTrackingCollectionsOneResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCollectionResponse: components.GetCollectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCollectionResponse: "GetCollectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionsOneResponse$ { - /** @deprecated use `IssueTrackingCollectionsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionsOneResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionsOneResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionsOneResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionsOneResponse$Outbound; -} - -export function issueTrackingCollectionsOneResponseToJSON( - issueTrackingCollectionsOneResponse: IssueTrackingCollectionsOneResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionsOneResponse$outboundSchema.parse( - issueTrackingCollectionsOneResponse, - ), - ); -} - export function issueTrackingCollectionsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/issuetrackingcollectiontagsall.ts b/src/models/operations/issuetrackingcollectiontagsall.ts index 67e76f8bf..9f2fb4737 100644 --- a/src/models/operations/issuetrackingcollectiontagsall.ts +++ b/src/models/operations/issuetrackingcollectiontagsall.ts @@ -71,90 +71,6 @@ export type IssueTrackingCollectionTagsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTagsAllGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionTagsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionTagsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTagsAllGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionTagsAllGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTagsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTagsAllGlobals$ { - /** @deprecated use `IssueTrackingCollectionTagsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTagsAllGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTagsAllGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTagsAllGlobals$Outbound; -} - -export function issueTrackingCollectionTagsAllGlobalsToJSON( - issueTrackingCollectionTagsAllGlobals: IssueTrackingCollectionTagsAllGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTagsAllGlobals$outboundSchema.parse( - issueTrackingCollectionTagsAllGlobals, - ), - ); -} - -export function issueTrackingCollectionTagsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTagsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionTagsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTagsAllRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionTagsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - collection_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type IssueTrackingCollectionTagsAllRequest$Outbound = { collection_id: string; @@ -190,21 +106,6 @@ export const IssueTrackingCollectionTagsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTagsAllRequest$ { - /** @deprecated use `IssueTrackingCollectionTagsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTagsAllRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTagsAllRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTagsAllRequest$Outbound; -} - export function issueTrackingCollectionTagsAllRequestToJSON( issueTrackingCollectionTagsAllRequest: IssueTrackingCollectionTagsAllRequest, ): string { @@ -215,17 +116,6 @@ export function issueTrackingCollectionTagsAllRequestToJSON( ); } -export function issueTrackingCollectionTagsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTagsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionTagsAllRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTagsAllResponse$inboundSchema: z.ZodType< IssueTrackingCollectionTagsAllResponse, @@ -245,62 +135,6 @@ export const IssueTrackingCollectionTagsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionTagsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCollectionTagsResponse?: - | components.GetCollectionTagsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTagsAllResponse$outboundSchema: z.ZodType< - IssueTrackingCollectionTagsAllResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTagsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCollectionTagsResponse: components.GetCollectionTagsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCollectionTagsResponse: "GetCollectionTagsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTagsAllResponse$ { - /** @deprecated use `IssueTrackingCollectionTagsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTagsAllResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTagsAllResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTagsAllResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTagsAllResponse$Outbound; -} - -export function issueTrackingCollectionTagsAllResponseToJSON( - issueTrackingCollectionTagsAllResponse: - IssueTrackingCollectionTagsAllResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTagsAllResponse$outboundSchema.parse( - issueTrackingCollectionTagsAllResponse, - ), - ); -} - export function issueTrackingCollectionTagsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/issuetrackingcollectionticketcommentsadd.ts b/src/models/operations/issuetrackingcollectionticketcommentsadd.ts index a1d6fff52..01af7a284 100644 --- a/src/models/operations/issuetrackingcollectionticketcommentsadd.ts +++ b/src/models/operations/issuetrackingcollectionticketcommentsadd.ts @@ -60,100 +60,6 @@ export type IssueTrackingCollectionTicketCommentsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAddGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAddGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketCommentsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAddGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAddGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsAddGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAddGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAddGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAddGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddGlobals$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAddGlobals$Outbound; -} - -export function issueTrackingCollectionTicketCommentsAddGlobalsToJSON( - issueTrackingCollectionTicketCommentsAddGlobals: - IssueTrackingCollectionTicketCommentsAddGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsAddGlobals$outboundSchema.parse( - issueTrackingCollectionTicketCommentsAddGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketCommentsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsAddGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsAddGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAddRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAddRequest, - z.ZodTypeDef, - unknown - > = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - collection_id: z.string(), - ticket_id: z.string(), - CollectionTicketComment: - components.CollectionTicketCommentInput$inboundSchema, - }).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "ticket_id": "ticketId", - "CollectionTicketComment": "collectionTicketComment", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketCommentsAddRequest$Outbound = { raw: boolean; @@ -188,22 +94,6 @@ export const IssueTrackingCollectionTicketCommentsAddRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAddRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAddRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAddRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddRequest$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAddRequest$Outbound; -} - export function issueTrackingCollectionTicketCommentsAddRequestToJSON( issueTrackingCollectionTicketCommentsAddRequest: IssueTrackingCollectionTicketCommentsAddRequest, @@ -215,22 +105,6 @@ export function issueTrackingCollectionTicketCommentsAddRequestToJSON( ); } -export function issueTrackingCollectionTicketCommentsAddRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsAddRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsAddRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsAddRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketCommentsAddResponse$inboundSchema: z.ZodType< @@ -251,62 +125,6 @@ export const IssueTrackingCollectionTicketCommentsAddResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketCommentsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCommentResponse?: components.CreateCommentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAddResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAddResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsAddResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCommentResponse: components.CreateCommentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCommentResponse: "CreateCommentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAddResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAddResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAddResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAddResponse$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAddResponse$Outbound; -} - -export function issueTrackingCollectionTicketCommentsAddResponseToJSON( - issueTrackingCollectionTicketCommentsAddResponse: - IssueTrackingCollectionTicketCommentsAddResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsAddResponse$outboundSchema.parse( - issueTrackingCollectionTicketCommentsAddResponse, - ), - ); -} - export function issueTrackingCollectionTicketCommentsAddResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketcommentsall.ts b/src/models/operations/issuetrackingcollectionticketcommentsall.ts index 0a83c5253..3e0a1865d 100644 --- a/src/models/operations/issuetrackingcollectionticketcommentsall.ts +++ b/src/models/operations/issuetrackingcollectionticketcommentsall.ts @@ -79,103 +79,6 @@ export type IssueTrackingCollectionTicketCommentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAllGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAllGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketCommentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAllGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAllGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsAllGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAllGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAllGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAllGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllGlobals$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAllGlobals$Outbound; -} - -export function issueTrackingCollectionTicketCommentsAllGlobalsToJSON( - issueTrackingCollectionTicketCommentsAllGlobals: - IssueTrackingCollectionTicketCommentsAllGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsAllGlobals$outboundSchema.parse( - issueTrackingCollectionTicketCommentsAllGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketCommentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsAllGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsAllGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAllRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAllRequest, - z.ZodTypeDef, - unknown - > = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - collection_id: z.string(), - ticket_id: z.string(), - sort: components.CommentsSort$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "ticket_id": "ticketId", - "pass_through": "passThrough", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketCommentsAllRequest$Outbound = { raw: boolean; @@ -217,22 +120,6 @@ export const IssueTrackingCollectionTicketCommentsAllRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAllRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAllRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAllRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllRequest$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAllRequest$Outbound; -} - export function issueTrackingCollectionTicketCommentsAllRequestToJSON( issueTrackingCollectionTicketCommentsAllRequest: IssueTrackingCollectionTicketCommentsAllRequest, @@ -244,22 +131,6 @@ export function issueTrackingCollectionTicketCommentsAllRequestToJSON( ); } -export function issueTrackingCollectionTicketCommentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsAllRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsAllRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsAllRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketCommentsAllResponse$inboundSchema: z.ZodType< @@ -280,62 +151,6 @@ export const IssueTrackingCollectionTicketCommentsAllResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketCommentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCommentsResponse?: components.GetCommentsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsAllResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsAllResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsAllResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCommentsResponse: components.GetCommentsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCommentsResponse: "GetCommentsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsAllResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsAllResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsAllResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsAllResponse$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsAllResponse$Outbound; -} - -export function issueTrackingCollectionTicketCommentsAllResponseToJSON( - issueTrackingCollectionTicketCommentsAllResponse: - IssueTrackingCollectionTicketCommentsAllResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsAllResponse$outboundSchema.parse( - issueTrackingCollectionTicketCommentsAllResponse, - ), - ); -} - export function issueTrackingCollectionTicketCommentsAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketcommentsdelete.ts b/src/models/operations/issuetrackingcollectionticketcommentsdelete.ts index e086a441b..049b7d7fa 100644 --- a/src/models/operations/issuetrackingcollectionticketcommentsdelete.ts +++ b/src/models/operations/issuetrackingcollectionticketcommentsdelete.ts @@ -63,98 +63,6 @@ export type IssueTrackingCollectionTicketCommentsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketCommentsDeleteGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsDeleteGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketCommentsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsDeleteGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsDeleteGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsDeleteGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsDeleteGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsDeleteGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsDeleteGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteGlobals$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsDeleteGlobals$Outbound; -} - -export function issueTrackingCollectionTicketCommentsDeleteGlobalsToJSON( - issueTrackingCollectionTicketCommentsDeleteGlobals: - IssueTrackingCollectionTicketCommentsDeleteGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsDeleteGlobals$outboundSchema.parse( - issueTrackingCollectionTicketCommentsDeleteGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketCommentsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsDeleteGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsDeleteGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsDeleteRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsDeleteRequest, - z.ZodTypeDef, - unknown - > = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - collection_id: z.string(), - ticket_id: z.string(), - }).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "ticket_id": "ticketId", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketCommentsDeleteRequest$Outbound = { id: string; @@ -187,22 +95,6 @@ export const IssueTrackingCollectionTicketCommentsDeleteRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsDeleteRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsDeleteRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsDeleteRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteRequest$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsDeleteRequest$Outbound; -} - export function issueTrackingCollectionTicketCommentsDeleteRequestToJSON( issueTrackingCollectionTicketCommentsDeleteRequest: IssueTrackingCollectionTicketCommentsDeleteRequest, @@ -214,22 +106,6 @@ export function issueTrackingCollectionTicketCommentsDeleteRequestToJSON( ); } -export function issueTrackingCollectionTicketCommentsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsDeleteRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsDeleteRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketCommentsDeleteResponse$inboundSchema: z.ZodType< @@ -250,62 +126,6 @@ export const IssueTrackingCollectionTicketCommentsDeleteResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketCommentsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteCommentResponse?: components.DeleteCommentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsDeleteResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsDeleteResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsDeleteResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteCommentResponse: components.DeleteCommentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteCommentResponse: "DeleteCommentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsDeleteResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsDeleteResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsDeleteResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsDeleteResponse$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsDeleteResponse$Outbound; -} - -export function issueTrackingCollectionTicketCommentsDeleteResponseToJSON( - issueTrackingCollectionTicketCommentsDeleteResponse: - IssueTrackingCollectionTicketCommentsDeleteResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsDeleteResponse$outboundSchema.parse( - issueTrackingCollectionTicketCommentsDeleteResponse, - ), - ); -} - export function issueTrackingCollectionTicketCommentsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketcommentsone.ts b/src/models/operations/issuetrackingcollectionticketcommentsone.ts index 25724a7e7..c48d8a468 100644 --- a/src/models/operations/issuetrackingcollectionticketcommentsone.ts +++ b/src/models/operations/issuetrackingcollectionticketcommentsone.ts @@ -75,101 +75,6 @@ export type IssueTrackingCollectionTicketCommentsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketCommentsOneGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsOneGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketCommentsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsOneGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsOneGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsOneGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsOneGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsOneGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsOneGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneGlobals$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsOneGlobals$Outbound; -} - -export function issueTrackingCollectionTicketCommentsOneGlobalsToJSON( - issueTrackingCollectionTicketCommentsOneGlobals: - IssueTrackingCollectionTicketCommentsOneGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsOneGlobals$outboundSchema.parse( - issueTrackingCollectionTicketCommentsOneGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketCommentsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsOneGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsOneGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsOneRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsOneRequest, - z.ZodTypeDef, - unknown - > = z.object({ - id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - collection_id: z.string(), - ticket_id: z.string(), - fields: z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "ticket_id": "ticketId", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketCommentsOneRequest$Outbound = { id: string; @@ -208,22 +113,6 @@ export const IssueTrackingCollectionTicketCommentsOneRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsOneRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsOneRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsOneRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneRequest$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsOneRequest$Outbound; -} - export function issueTrackingCollectionTicketCommentsOneRequestToJSON( issueTrackingCollectionTicketCommentsOneRequest: IssueTrackingCollectionTicketCommentsOneRequest, @@ -235,22 +124,6 @@ export function issueTrackingCollectionTicketCommentsOneRequestToJSON( ); } -export function issueTrackingCollectionTicketCommentsOneRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsOneRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsOneRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsOneRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketCommentsOneResponse$inboundSchema: z.ZodType< @@ -270,61 +143,6 @@ export const IssueTrackingCollectionTicketCommentsOneResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketCommentsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCommentResponse?: components.GetCommentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsOneResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsOneResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsOneResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCommentResponse: components.GetCommentResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCommentResponse: "GetCommentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsOneResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsOneResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsOneResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsOneResponse$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsOneResponse$Outbound; -} - -export function issueTrackingCollectionTicketCommentsOneResponseToJSON( - issueTrackingCollectionTicketCommentsOneResponse: - IssueTrackingCollectionTicketCommentsOneResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsOneResponse$outboundSchema.parse( - issueTrackingCollectionTicketCommentsOneResponse, - ), - ); -} - export function issueTrackingCollectionTicketCommentsOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketcommentsupdate.ts b/src/models/operations/issuetrackingcollectionticketcommentsupdate.ts index cd056e486..b772783fa 100644 --- a/src/models/operations/issuetrackingcollectionticketcommentsupdate.ts +++ b/src/models/operations/issuetrackingcollectionticketcommentsupdate.ts @@ -64,101 +64,6 @@ export type IssueTrackingCollectionTicketCommentsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketCommentsUpdateGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsUpdateGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketCommentsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsUpdateGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsUpdateGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsUpdateGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsUpdateGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsUpdateGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsUpdateGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateGlobals$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsUpdateGlobals$Outbound; -} - -export function issueTrackingCollectionTicketCommentsUpdateGlobalsToJSON( - issueTrackingCollectionTicketCommentsUpdateGlobals: - IssueTrackingCollectionTicketCommentsUpdateGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsUpdateGlobals$outboundSchema.parse( - issueTrackingCollectionTicketCommentsUpdateGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketCommentsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsUpdateGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsUpdateGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsUpdateRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsUpdateRequest, - z.ZodTypeDef, - unknown - > = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - collection_id: z.string(), - ticket_id: z.string(), - CollectionTicketComment: - components.CollectionTicketCommentInput$inboundSchema, - }).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "ticket_id": "ticketId", - "CollectionTicketComment": "collectionTicketComment", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketCommentsUpdateRequest$Outbound = { id: string; @@ -195,22 +100,6 @@ export const IssueTrackingCollectionTicketCommentsUpdateRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsUpdateRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsUpdateRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsUpdateRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateRequest$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsUpdateRequest$Outbound; -} - export function issueTrackingCollectionTicketCommentsUpdateRequestToJSON( issueTrackingCollectionTicketCommentsUpdateRequest: IssueTrackingCollectionTicketCommentsUpdateRequest, @@ -222,22 +111,6 @@ export function issueTrackingCollectionTicketCommentsUpdateRequestToJSON( ); } -export function issueTrackingCollectionTicketCommentsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketCommentsUpdateRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketCommentsUpdateRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketCommentsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketCommentsUpdateResponse$inboundSchema: z.ZodType< @@ -258,62 +131,6 @@ export const IssueTrackingCollectionTicketCommentsUpdateResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketCommentsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateCommentResponse?: components.UpdateCommentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketCommentsUpdateResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketCommentsUpdateResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketCommentsUpdateResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateCommentResponse: components.UpdateCommentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateCommentResponse: "UpdateCommentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketCommentsUpdateResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketCommentsUpdateResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketCommentsUpdateResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketCommentsUpdateResponse$Outbound` instead. */ - export type Outbound = - IssueTrackingCollectionTicketCommentsUpdateResponse$Outbound; -} - -export function issueTrackingCollectionTicketCommentsUpdateResponseToJSON( - issueTrackingCollectionTicketCommentsUpdateResponse: - IssueTrackingCollectionTicketCommentsUpdateResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketCommentsUpdateResponse$outboundSchema.parse( - issueTrackingCollectionTicketCommentsUpdateResponse, - ), - ); -} - export function issueTrackingCollectionTicketCommentsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketsadd.ts b/src/models/operations/issuetrackingcollectionticketsadd.ts index 62fab3ca4..014e7e464 100644 --- a/src/models/operations/issuetrackingcollectionticketsadd.ts +++ b/src/models/operations/issuetrackingcollectionticketsadd.ts @@ -56,93 +56,6 @@ export type IssueTrackingCollectionTicketsAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketsAddGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionTicketsAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsAddGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAddGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAddGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketsAddGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAddGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAddGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAddGlobals$Outbound; -} - -export function issueTrackingCollectionTicketsAddGlobalsToJSON( - issueTrackingCollectionTicketsAddGlobals: - IssueTrackingCollectionTicketsAddGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsAddGlobals$outboundSchema.parse( - issueTrackingCollectionTicketsAddGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketsAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsAddGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsAddGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketsAddRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - collection_id: z.string(), - Ticket: components.TicketInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "Ticket": "ticket", - }); -}); - /** @internal */ export type IssueTrackingCollectionTicketsAddRequest$Outbound = { raw: boolean; @@ -172,21 +85,6 @@ export const IssueTrackingCollectionTicketsAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAddRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketsAddRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAddRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAddRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAddRequest$Outbound; -} - export function issueTrackingCollectionTicketsAddRequestToJSON( issueTrackingCollectionTicketsAddRequest: IssueTrackingCollectionTicketsAddRequest, @@ -198,22 +96,6 @@ export function issueTrackingCollectionTicketsAddRequestToJSON( ); } -export function issueTrackingCollectionTicketsAddRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsAddRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsAddRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsAddRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketsAddResponse$inboundSchema: z.ZodType< IssueTrackingCollectionTicketsAddResponse, @@ -233,61 +115,6 @@ export const IssueTrackingCollectionTicketsAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionTicketsAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateTicketResponse?: components.CreateTicketResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsAddResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsAddResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsAddResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createTicketResponse: components.CreateTicketResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createTicketResponse: "CreateTicketResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAddResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketsAddResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAddResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAddResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAddResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAddResponse$Outbound; -} - -export function issueTrackingCollectionTicketsAddResponseToJSON( - issueTrackingCollectionTicketsAddResponse: - IssueTrackingCollectionTicketsAddResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsAddResponse$outboundSchema.parse( - issueTrackingCollectionTicketsAddResponse, - ), - ); -} - export function issueTrackingCollectionTicketsAddResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketsall.ts b/src/models/operations/issuetrackingcollectionticketsall.ts index 0165a64ce..53cc2723e 100644 --- a/src/models/operations/issuetrackingcollectionticketsall.ts +++ b/src/models/operations/issuetrackingcollectionticketsall.ts @@ -79,98 +79,6 @@ export type IssueTrackingCollectionTicketsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketsAllGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionTicketsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsAllGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAllGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAllGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAllGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAllGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAllGlobals$Outbound; -} - -export function issueTrackingCollectionTicketsAllGlobalsToJSON( - issueTrackingCollectionTicketsAllGlobals: - IssueTrackingCollectionTicketsAllGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsAllGlobals$outboundSchema.parse( - issueTrackingCollectionTicketsAllGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsAllGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsAllGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketsAllRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - collection_id: z.string(), - sort: components.TicketsSort$inboundSchema.optional(), - filter: components.IssuesFilter$inboundSchema.optional(), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type IssueTrackingCollectionTicketsAllRequest$Outbound = { raw: boolean; @@ -210,21 +118,6 @@ export const IssueTrackingCollectionTicketsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAllRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAllRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAllRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAllRequest$Outbound; -} - export function issueTrackingCollectionTicketsAllRequestToJSON( issueTrackingCollectionTicketsAllRequest: IssueTrackingCollectionTicketsAllRequest, @@ -236,22 +129,6 @@ export function issueTrackingCollectionTicketsAllRequestToJSON( ); } -export function issueTrackingCollectionTicketsAllRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsAllRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsAllRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsAllRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketsAllResponse$inboundSchema: z.ZodType< IssueTrackingCollectionTicketsAllResponse, @@ -270,60 +147,6 @@ export const IssueTrackingCollectionTicketsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionTicketsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTicketsResponse?: components.GetTicketsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsAllResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsAllResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsAllResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTicketsResponse: components.GetTicketsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTicketsResponse: "GetTicketsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsAllResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsAllResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsAllResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsAllResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsAllResponse$Outbound; -} - -export function issueTrackingCollectionTicketsAllResponseToJSON( - issueTrackingCollectionTicketsAllResponse: - IssueTrackingCollectionTicketsAllResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsAllResponse$outboundSchema.parse( - issueTrackingCollectionTicketsAllResponse, - ), - ); -} - export function issueTrackingCollectionTicketsAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketsdelete.ts b/src/models/operations/issuetrackingcollectionticketsdelete.ts index dd4182eeb..a1e765a0b 100644 --- a/src/models/operations/issuetrackingcollectionticketsdelete.ts +++ b/src/models/operations/issuetrackingcollectionticketsdelete.ts @@ -59,96 +59,6 @@ export type IssueTrackingCollectionTicketsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketsDeleteGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsDeleteGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsDeleteGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsDeleteGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsDeleteGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsDeleteGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsDeleteGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsDeleteGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsDeleteGlobals$Outbound; -} - -export function issueTrackingCollectionTicketsDeleteGlobalsToJSON( - issueTrackingCollectionTicketsDeleteGlobals: - IssueTrackingCollectionTicketsDeleteGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsDeleteGlobals$outboundSchema.parse( - issueTrackingCollectionTicketsDeleteGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsDeleteGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsDeleteGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketsDeleteRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsDeleteRequest, - z.ZodTypeDef, - unknown - > = z.object({ - ticket_id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - collection_id: z.string(), - }).transform((v) => { - return remap$(v, { - "ticket_id": "ticketId", - "collection_id": "collectionId", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketsDeleteRequest$Outbound = { ticket_id: string; @@ -179,21 +89,6 @@ export const IssueTrackingCollectionTicketsDeleteRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsDeleteRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsDeleteRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsDeleteRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsDeleteRequest$Outbound; -} - export function issueTrackingCollectionTicketsDeleteRequestToJSON( issueTrackingCollectionTicketsDeleteRequest: IssueTrackingCollectionTicketsDeleteRequest, @@ -205,22 +100,6 @@ export function issueTrackingCollectionTicketsDeleteRequestToJSON( ); } -export function issueTrackingCollectionTicketsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsDeleteRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsDeleteRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketsDeleteResponse$inboundSchema: z.ZodType< @@ -241,61 +120,6 @@ export const IssueTrackingCollectionTicketsDeleteResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteTicketResponse?: components.DeleteTicketResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsDeleteResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsDeleteResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsDeleteResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteTicketResponse: components.DeleteTicketResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteTicketResponse: "DeleteTicketResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsDeleteResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsDeleteResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsDeleteResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsDeleteResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsDeleteResponse$Outbound; -} - -export function issueTrackingCollectionTicketsDeleteResponseToJSON( - issueTrackingCollectionTicketsDeleteResponse: - IssueTrackingCollectionTicketsDeleteResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsDeleteResponse$outboundSchema.parse( - issueTrackingCollectionTicketsDeleteResponse, - ), - ); -} - export function issueTrackingCollectionTicketsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketsone.ts b/src/models/operations/issuetrackingcollectionticketsone.ts index 1d50876c6..fe51fd121 100644 --- a/src/models/operations/issuetrackingcollectionticketsone.ts +++ b/src/models/operations/issuetrackingcollectionticketsone.ts @@ -63,94 +63,6 @@ export type IssueTrackingCollectionTicketsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketsOneGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionTicketsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsOneGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionTicketsOneGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsOneGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsOneGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsOneGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsOneGlobals$Outbound; -} - -export function issueTrackingCollectionTicketsOneGlobalsToJSON( - issueTrackingCollectionTicketsOneGlobals: - IssueTrackingCollectionTicketsOneGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsOneGlobals$outboundSchema.parse( - issueTrackingCollectionTicketsOneGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsOneGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsOneGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketsOneRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionTicketsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - ticket_id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - collection_id: z.string(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "ticket_id": "ticketId", - "collection_id": "collectionId", - }); -}); - /** @internal */ export type IssueTrackingCollectionTicketsOneRequest$Outbound = { ticket_id: string; @@ -182,21 +94,6 @@ export const IssueTrackingCollectionTicketsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsOneRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketsOneRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsOneRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsOneRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsOneRequest$Outbound; -} - export function issueTrackingCollectionTicketsOneRequestToJSON( issueTrackingCollectionTicketsOneRequest: IssueTrackingCollectionTicketsOneRequest, @@ -208,22 +105,6 @@ export function issueTrackingCollectionTicketsOneRequestToJSON( ); } -export function issueTrackingCollectionTicketsOneRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsOneRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsOneRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsOneRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketsOneResponse$inboundSchema: z.ZodType< IssueTrackingCollectionTicketsOneResponse, @@ -242,60 +123,6 @@ export const IssueTrackingCollectionTicketsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionTicketsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetTicketResponse?: components.GetTicketResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsOneResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsOneResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsOneResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getTicketResponse: components.GetTicketResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getTicketResponse: "GetTicketResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsOneResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketsOneResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsOneResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsOneResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsOneResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsOneResponse$Outbound; -} - -export function issueTrackingCollectionTicketsOneResponseToJSON( - issueTrackingCollectionTicketsOneResponse: - IssueTrackingCollectionTicketsOneResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsOneResponse$outboundSchema.parse( - issueTrackingCollectionTicketsOneResponse, - ), - ); -} - export function issueTrackingCollectionTicketsOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionticketsupdate.ts b/src/models/operations/issuetrackingcollectionticketsupdate.ts index 7f0d0cbd7..46e825587 100644 --- a/src/models/operations/issuetrackingcollectionticketsupdate.ts +++ b/src/models/operations/issuetrackingcollectionticketsupdate.ts @@ -60,98 +60,6 @@ export type IssueTrackingCollectionTicketsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionTicketsUpdateGlobals$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsUpdateGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** @internal */ -export type IssueTrackingCollectionTicketsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsUpdateGlobals$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsUpdateGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsUpdateGlobals - > = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsUpdateGlobals$ { - /** @deprecated use `IssueTrackingCollectionTicketsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsUpdateGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsUpdateGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsUpdateGlobals$Outbound; -} - -export function issueTrackingCollectionTicketsUpdateGlobalsToJSON( - issueTrackingCollectionTicketsUpdateGlobals: - IssueTrackingCollectionTicketsUpdateGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsUpdateGlobals$outboundSchema.parse( - issueTrackingCollectionTicketsUpdateGlobals, - ), - ); -} - -export function issueTrackingCollectionTicketsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsUpdateGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsUpdateGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionTicketsUpdateRequest$inboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsUpdateRequest, - z.ZodTypeDef, - unknown - > = z.object({ - ticket_id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - collection_id: z.string(), - Ticket: components.TicketInput$inboundSchema, - }).transform((v) => { - return remap$(v, { - "ticket_id": "ticketId", - "collection_id": "collectionId", - "Ticket": "ticket", - }); - }); - /** @internal */ export type IssueTrackingCollectionTicketsUpdateRequest$Outbound = { ticket_id: string; @@ -185,21 +93,6 @@ export const IssueTrackingCollectionTicketsUpdateRequest$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsUpdateRequest$ { - /** @deprecated use `IssueTrackingCollectionTicketsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsUpdateRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsUpdateRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsUpdateRequest$Outbound; -} - export function issueTrackingCollectionTicketsUpdateRequestToJSON( issueTrackingCollectionTicketsUpdateRequest: IssueTrackingCollectionTicketsUpdateRequest, @@ -211,22 +104,6 @@ export function issueTrackingCollectionTicketsUpdateRequestToJSON( ); } -export function issueTrackingCollectionTicketsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult< - IssueTrackingCollectionTicketsUpdateRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionTicketsUpdateRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'IssueTrackingCollectionTicketsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionTicketsUpdateResponse$inboundSchema: z.ZodType< @@ -247,61 +124,6 @@ export const IssueTrackingCollectionTicketsUpdateResponse$inboundSchema: }); }); -/** @internal */ -export type IssueTrackingCollectionTicketsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateTicketResponse?: components.UpdateTicketResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionTicketsUpdateResponse$outboundSchema: - z.ZodType< - IssueTrackingCollectionTicketsUpdateResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionTicketsUpdateResponse - > = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateTicketResponse: components.UpdateTicketResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), - }).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateTicketResponse: "UpdateTicketResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionTicketsUpdateResponse$ { - /** @deprecated use `IssueTrackingCollectionTicketsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionTicketsUpdateResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionTicketsUpdateResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionTicketsUpdateResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionTicketsUpdateResponse$Outbound; -} - -export function issueTrackingCollectionTicketsUpdateResponseToJSON( - issueTrackingCollectionTicketsUpdateResponse: - IssueTrackingCollectionTicketsUpdateResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionTicketsUpdateResponse$outboundSchema.parse( - issueTrackingCollectionTicketsUpdateResponse, - ), - ); -} - export function issueTrackingCollectionTicketsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionusersall.ts b/src/models/operations/issuetrackingcollectionusersall.ts index 64a20fa04..afffab4eb 100644 --- a/src/models/operations/issuetrackingcollectionusersall.ts +++ b/src/models/operations/issuetrackingcollectionusersall.ts @@ -73,91 +73,6 @@ export type IssueTrackingCollectionUsersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionUsersAllGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionUsersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionUsersAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionUsersAllGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionUsersAllGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionUsersAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersAllGlobals$ { - /** @deprecated use `IssueTrackingCollectionUsersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersAllGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersAllGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersAllGlobals$Outbound; -} - -export function issueTrackingCollectionUsersAllGlobalsToJSON( - issueTrackingCollectionUsersAllGlobals: - IssueTrackingCollectionUsersAllGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionUsersAllGlobals$outboundSchema.parse( - issueTrackingCollectionUsersAllGlobals, - ), - ); -} - -export function issueTrackingCollectionUsersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionUsersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionUsersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionUsersAllRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionUsersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - collection_id: z.string(), - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - pass_through: z.record(z.any()).optional(), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - "pass_through": "passThrough", - }); -}); - /** @internal */ export type IssueTrackingCollectionUsersAllRequest$Outbound = { collection_id: string; @@ -193,21 +108,6 @@ export const IssueTrackingCollectionUsersAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersAllRequest$ { - /** @deprecated use `IssueTrackingCollectionUsersAllRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersAllRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersAllRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersAllRequest$Outbound; -} - export function issueTrackingCollectionUsersAllRequestToJSON( issueTrackingCollectionUsersAllRequest: IssueTrackingCollectionUsersAllRequest, @@ -219,17 +119,6 @@ export function issueTrackingCollectionUsersAllRequestToJSON( ); } -export function issueTrackingCollectionUsersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionUsersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionUsersAllRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionUsersAllResponse$inboundSchema: z.ZodType< IssueTrackingCollectionUsersAllResponse, @@ -249,62 +138,6 @@ export const IssueTrackingCollectionUsersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionUsersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCollectionUsersResponse?: - | components.GetCollectionUsersResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionUsersAllResponse$outboundSchema: z.ZodType< - IssueTrackingCollectionUsersAllResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionUsersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCollectionUsersResponse: components - .GetCollectionUsersResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCollectionUsersResponse: "GetCollectionUsersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersAllResponse$ { - /** @deprecated use `IssueTrackingCollectionUsersAllResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersAllResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersAllResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersAllResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersAllResponse$Outbound; -} - -export function issueTrackingCollectionUsersAllResponseToJSON( - issueTrackingCollectionUsersAllResponse: - IssueTrackingCollectionUsersAllResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionUsersAllResponse$outboundSchema.parse( - issueTrackingCollectionUsersAllResponse, - ), - ); -} - export function issueTrackingCollectionUsersAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/issuetrackingcollectionusersone.ts b/src/models/operations/issuetrackingcollectionusersone.ts index 71e94fa36..1ef581083 100644 --- a/src/models/operations/issuetrackingcollectionusersone.ts +++ b/src/models/operations/issuetrackingcollectionusersone.ts @@ -63,88 +63,6 @@ export type IssueTrackingCollectionUsersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const IssueTrackingCollectionUsersOneGlobals$inboundSchema: z.ZodType< - IssueTrackingCollectionUsersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type IssueTrackingCollectionUsersOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionUsersOneGlobals$outboundSchema: z.ZodType< - IssueTrackingCollectionUsersOneGlobals$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionUsersOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersOneGlobals$ { - /** @deprecated use `IssueTrackingCollectionUsersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersOneGlobals$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersOneGlobals$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneGlobals$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersOneGlobals$Outbound; -} - -export function issueTrackingCollectionUsersOneGlobalsToJSON( - issueTrackingCollectionUsersOneGlobals: - IssueTrackingCollectionUsersOneGlobals, -): string { - return JSON.stringify( - IssueTrackingCollectionUsersOneGlobals$outboundSchema.parse( - issueTrackingCollectionUsersOneGlobals, - ), - ); -} - -export function issueTrackingCollectionUsersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionUsersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionUsersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const IssueTrackingCollectionUsersOneRequest$inboundSchema: z.ZodType< - IssueTrackingCollectionUsersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - collection_id: z.string(), - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "collection_id": "collectionId", - }); -}); - /** @internal */ export type IssueTrackingCollectionUsersOneRequest$Outbound = { collection_id: string; @@ -175,21 +93,6 @@ export const IssueTrackingCollectionUsersOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersOneRequest$ { - /** @deprecated use `IssueTrackingCollectionUsersOneRequest$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersOneRequest$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneRequest$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersOneRequest$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneRequest$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersOneRequest$Outbound; -} - export function issueTrackingCollectionUsersOneRequestToJSON( issueTrackingCollectionUsersOneRequest: IssueTrackingCollectionUsersOneRequest, @@ -201,17 +104,6 @@ export function issueTrackingCollectionUsersOneRequestToJSON( ); } -export function issueTrackingCollectionUsersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - IssueTrackingCollectionUsersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IssueTrackingCollectionUsersOneRequest' from JSON`, - ); -} - /** @internal */ export const IssueTrackingCollectionUsersOneResponse$inboundSchema: z.ZodType< IssueTrackingCollectionUsersOneResponse, @@ -231,62 +123,6 @@ export const IssueTrackingCollectionUsersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type IssueTrackingCollectionUsersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCollectionUserResponse?: - | components.GetCollectionUserResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const IssueTrackingCollectionUsersOneResponse$outboundSchema: z.ZodType< - IssueTrackingCollectionUsersOneResponse$Outbound, - z.ZodTypeDef, - IssueTrackingCollectionUsersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCollectionUserResponse: components.GetCollectionUserResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCollectionUserResponse: "GetCollectionUserResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IssueTrackingCollectionUsersOneResponse$ { - /** @deprecated use `IssueTrackingCollectionUsersOneResponse$inboundSchema` instead. */ - export const inboundSchema = - IssueTrackingCollectionUsersOneResponse$inboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneResponse$outboundSchema` instead. */ - export const outboundSchema = - IssueTrackingCollectionUsersOneResponse$outboundSchema; - /** @deprecated use `IssueTrackingCollectionUsersOneResponse$Outbound` instead. */ - export type Outbound = IssueTrackingCollectionUsersOneResponse$Outbound; -} - -export function issueTrackingCollectionUsersOneResponseToJSON( - issueTrackingCollectionUsersOneResponse: - IssueTrackingCollectionUsersOneResponse, -): string { - return JSON.stringify( - IssueTrackingCollectionUsersOneResponse$outboundSchema.parse( - issueTrackingCollectionUsersOneResponse, - ), - ); -} - export function issueTrackingCollectionUsersOneResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/smsmessagesadd.ts b/src/models/operations/smsmessagesadd.ts index 96facb910..44ff483c8 100644 --- a/src/models/operations/smsmessagesadd.ts +++ b/src/models/operations/smsmessagesadd.ts @@ -52,80 +52,6 @@ export type SmsMessagesAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const SmsMessagesAddGlobals$inboundSchema: z.ZodType< - SmsMessagesAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type SmsMessagesAddGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const SmsMessagesAddGlobals$outboundSchema: z.ZodType< - SmsMessagesAddGlobals$Outbound, - z.ZodTypeDef, - SmsMessagesAddGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAddGlobals$ { - /** @deprecated use `SmsMessagesAddGlobals$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAddGlobals$inboundSchema; - /** @deprecated use `SmsMessagesAddGlobals$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAddGlobals$outboundSchema; - /** @deprecated use `SmsMessagesAddGlobals$Outbound` instead. */ - export type Outbound = SmsMessagesAddGlobals$Outbound; -} - -export function smsMessagesAddGlobalsToJSON( - smsMessagesAddGlobals: SmsMessagesAddGlobals, -): string { - return JSON.stringify( - SmsMessagesAddGlobals$outboundSchema.parse(smsMessagesAddGlobals), - ); -} - -export function smsMessagesAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const SmsMessagesAddRequest$inboundSchema: z.ZodType< - SmsMessagesAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - Message: components.MessageInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Message": "message", - }); -}); - /** @internal */ export type SmsMessagesAddRequest$Outbound = { raw: boolean; @@ -152,19 +78,6 @@ export const SmsMessagesAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAddRequest$ { - /** @deprecated use `SmsMessagesAddRequest$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAddRequest$inboundSchema; - /** @deprecated use `SmsMessagesAddRequest$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAddRequest$outboundSchema; - /** @deprecated use `SmsMessagesAddRequest$Outbound` instead. */ - export type Outbound = SmsMessagesAddRequest$Outbound; -} - export function smsMessagesAddRequestToJSON( smsMessagesAddRequest: SmsMessagesAddRequest, ): string { @@ -173,16 +86,6 @@ export function smsMessagesAddRequestToJSON( ); } -export function smsMessagesAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesAddRequest' from JSON`, - ); -} - /** @internal */ export const SmsMessagesAddResponse$inboundSchema: z.ZodType< SmsMessagesAddResponse, @@ -202,55 +105,6 @@ export const SmsMessagesAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SmsMessagesAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateMessageResponse?: components.CreateMessageResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const SmsMessagesAddResponse$outboundSchema: z.ZodType< - SmsMessagesAddResponse$Outbound, - z.ZodTypeDef, - SmsMessagesAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createMessageResponse: components.CreateMessageResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createMessageResponse: "CreateMessageResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAddResponse$ { - /** @deprecated use `SmsMessagesAddResponse$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAddResponse$inboundSchema; - /** @deprecated use `SmsMessagesAddResponse$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAddResponse$outboundSchema; - /** @deprecated use `SmsMessagesAddResponse$Outbound` instead. */ - export type Outbound = SmsMessagesAddResponse$Outbound; -} - -export function smsMessagesAddResponseToJSON( - smsMessagesAddResponse: SmsMessagesAddResponse, -): string { - return JSON.stringify( - SmsMessagesAddResponse$outboundSchema.parse(smsMessagesAddResponse), - ); -} - export function smsMessagesAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/smsmessagesall.ts b/src/models/operations/smsmessagesall.ts index 2d837c57d..8b87ac65b 100644 --- a/src/models/operations/smsmessagesall.ts +++ b/src/models/operations/smsmessagesall.ts @@ -63,78 +63,6 @@ export type SmsMessagesAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const SmsMessagesAllGlobals$inboundSchema: z.ZodType< - SmsMessagesAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type SmsMessagesAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const SmsMessagesAllGlobals$outboundSchema: z.ZodType< - SmsMessagesAllGlobals$Outbound, - z.ZodTypeDef, - SmsMessagesAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAllGlobals$ { - /** @deprecated use `SmsMessagesAllGlobals$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAllGlobals$inboundSchema; - /** @deprecated use `SmsMessagesAllGlobals$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAllGlobals$outboundSchema; - /** @deprecated use `SmsMessagesAllGlobals$Outbound` instead. */ - export type Outbound = SmsMessagesAllGlobals$Outbound; -} - -export function smsMessagesAllGlobalsToJSON( - smsMessagesAllGlobals: SmsMessagesAllGlobals, -): string { - return JSON.stringify( - SmsMessagesAllGlobals$outboundSchema.parse(smsMessagesAllGlobals), - ); -} - -export function smsMessagesAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const SmsMessagesAllRequest$inboundSchema: z.ZodType< - SmsMessagesAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - raw: z.boolean().default(false), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type SmsMessagesAllRequest$Outbound = { raw: boolean; @@ -161,19 +89,6 @@ export const SmsMessagesAllRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAllRequest$ { - /** @deprecated use `SmsMessagesAllRequest$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAllRequest$inboundSchema; - /** @deprecated use `SmsMessagesAllRequest$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAllRequest$outboundSchema; - /** @deprecated use `SmsMessagesAllRequest$Outbound` instead. */ - export type Outbound = SmsMessagesAllRequest$Outbound; -} - export function smsMessagesAllRequestToJSON( smsMessagesAllRequest: SmsMessagesAllRequest, ): string { @@ -182,16 +97,6 @@ export function smsMessagesAllRequestToJSON( ); } -export function smsMessagesAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesAllRequest' from JSON`, - ); -} - /** @internal */ export const SmsMessagesAllResponse$inboundSchema: z.ZodType< SmsMessagesAllResponse, @@ -210,54 +115,6 @@ export const SmsMessagesAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SmsMessagesAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetMessagesResponse?: components.GetMessagesResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const SmsMessagesAllResponse$outboundSchema: z.ZodType< - SmsMessagesAllResponse$Outbound, - z.ZodTypeDef, - SmsMessagesAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getMessagesResponse: components.GetMessagesResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getMessagesResponse: "GetMessagesResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesAllResponse$ { - /** @deprecated use `SmsMessagesAllResponse$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesAllResponse$inboundSchema; - /** @deprecated use `SmsMessagesAllResponse$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesAllResponse$outboundSchema; - /** @deprecated use `SmsMessagesAllResponse$Outbound` instead. */ - export type Outbound = SmsMessagesAllResponse$Outbound; -} - -export function smsMessagesAllResponseToJSON( - smsMessagesAllResponse: SmsMessagesAllResponse, -): string { - return JSON.stringify( - SmsMessagesAllResponse$outboundSchema.parse(smsMessagesAllResponse), - ); -} - export function smsMessagesAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/smsmessagesdelete.ts b/src/models/operations/smsmessagesdelete.ts index 273a2595a..f669a6f3c 100644 --- a/src/models/operations/smsmessagesdelete.ts +++ b/src/models/operations/smsmessagesdelete.ts @@ -55,76 +55,6 @@ export type SmsMessagesDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const SmsMessagesDeleteGlobals$inboundSchema: z.ZodType< - SmsMessagesDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type SmsMessagesDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const SmsMessagesDeleteGlobals$outboundSchema: z.ZodType< - SmsMessagesDeleteGlobals$Outbound, - z.ZodTypeDef, - SmsMessagesDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesDeleteGlobals$ { - /** @deprecated use `SmsMessagesDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesDeleteGlobals$inboundSchema; - /** @deprecated use `SmsMessagesDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesDeleteGlobals$outboundSchema; - /** @deprecated use `SmsMessagesDeleteGlobals$Outbound` instead. */ - export type Outbound = SmsMessagesDeleteGlobals$Outbound; -} - -export function smsMessagesDeleteGlobalsToJSON( - smsMessagesDeleteGlobals: SmsMessagesDeleteGlobals, -): string { - return JSON.stringify( - SmsMessagesDeleteGlobals$outboundSchema.parse(smsMessagesDeleteGlobals), - ); -} - -export function smsMessagesDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const SmsMessagesDeleteRequest$inboundSchema: z.ZodType< - SmsMessagesDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), -}); - /** @internal */ export type SmsMessagesDeleteRequest$Outbound = { id: string; @@ -147,19 +77,6 @@ export const SmsMessagesDeleteRequest$outboundSchema: z.ZodType< raw: z.boolean().default(false), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesDeleteRequest$ { - /** @deprecated use `SmsMessagesDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesDeleteRequest$inboundSchema; - /** @deprecated use `SmsMessagesDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesDeleteRequest$outboundSchema; - /** @deprecated use `SmsMessagesDeleteRequest$Outbound` instead. */ - export type Outbound = SmsMessagesDeleteRequest$Outbound; -} - export function smsMessagesDeleteRequestToJSON( smsMessagesDeleteRequest: SmsMessagesDeleteRequest, ): string { @@ -168,16 +85,6 @@ export function smsMessagesDeleteRequestToJSON( ); } -export function smsMessagesDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesDeleteRequest' from JSON`, - ); -} - /** @internal */ export const SmsMessagesDeleteResponse$inboundSchema: z.ZodType< SmsMessagesDeleteResponse, @@ -197,55 +104,6 @@ export const SmsMessagesDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SmsMessagesDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteMessageResponse?: components.DeleteMessageResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const SmsMessagesDeleteResponse$outboundSchema: z.ZodType< - SmsMessagesDeleteResponse$Outbound, - z.ZodTypeDef, - SmsMessagesDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteMessageResponse: components.DeleteMessageResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteMessageResponse: "DeleteMessageResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesDeleteResponse$ { - /** @deprecated use `SmsMessagesDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesDeleteResponse$inboundSchema; - /** @deprecated use `SmsMessagesDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesDeleteResponse$outboundSchema; - /** @deprecated use `SmsMessagesDeleteResponse$Outbound` instead. */ - export type Outbound = SmsMessagesDeleteResponse$Outbound; -} - -export function smsMessagesDeleteResponseToJSON( - smsMessagesDeleteResponse: SmsMessagesDeleteResponse, -): string { - return JSON.stringify( - SmsMessagesDeleteResponse$outboundSchema.parse(smsMessagesDeleteResponse), - ); -} - export function smsMessagesDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/smsmessagesone.ts b/src/models/operations/smsmessagesone.ts index 6223c53db..c73967054 100644 --- a/src/models/operations/smsmessagesone.ts +++ b/src/models/operations/smsmessagesone.ts @@ -59,77 +59,6 @@ export type SmsMessagesOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const SmsMessagesOneGlobals$inboundSchema: z.ZodType< - SmsMessagesOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type SmsMessagesOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const SmsMessagesOneGlobals$outboundSchema: z.ZodType< - SmsMessagesOneGlobals$Outbound, - z.ZodTypeDef, - SmsMessagesOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesOneGlobals$ { - /** @deprecated use `SmsMessagesOneGlobals$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesOneGlobals$inboundSchema; - /** @deprecated use `SmsMessagesOneGlobals$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesOneGlobals$outboundSchema; - /** @deprecated use `SmsMessagesOneGlobals$Outbound` instead. */ - export type Outbound = SmsMessagesOneGlobals$Outbound; -} - -export function smsMessagesOneGlobalsToJSON( - smsMessagesOneGlobals: SmsMessagesOneGlobals, -): string { - return JSON.stringify( - SmsMessagesOneGlobals$outboundSchema.parse(smsMessagesOneGlobals), - ); -} - -export function smsMessagesOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const SmsMessagesOneRequest$inboundSchema: z.ZodType< - SmsMessagesOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - fields: z.nullable(z.string()).optional(), -}); - /** @internal */ export type SmsMessagesOneRequest$Outbound = { id: string; @@ -154,19 +83,6 @@ export const SmsMessagesOneRequest$outboundSchema: z.ZodType< fields: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesOneRequest$ { - /** @deprecated use `SmsMessagesOneRequest$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesOneRequest$inboundSchema; - /** @deprecated use `SmsMessagesOneRequest$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesOneRequest$outboundSchema; - /** @deprecated use `SmsMessagesOneRequest$Outbound` instead. */ - export type Outbound = SmsMessagesOneRequest$Outbound; -} - export function smsMessagesOneRequestToJSON( smsMessagesOneRequest: SmsMessagesOneRequest, ): string { @@ -175,16 +91,6 @@ export function smsMessagesOneRequestToJSON( ); } -export function smsMessagesOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesOneRequest' from JSON`, - ); -} - /** @internal */ export const SmsMessagesOneResponse$inboundSchema: z.ZodType< SmsMessagesOneResponse, @@ -203,54 +109,6 @@ export const SmsMessagesOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SmsMessagesOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetMessageResponse?: components.GetMessageResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const SmsMessagesOneResponse$outboundSchema: z.ZodType< - SmsMessagesOneResponse$Outbound, - z.ZodTypeDef, - SmsMessagesOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getMessageResponse: components.GetMessageResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getMessageResponse: "GetMessageResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesOneResponse$ { - /** @deprecated use `SmsMessagesOneResponse$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesOneResponse$inboundSchema; - /** @deprecated use `SmsMessagesOneResponse$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesOneResponse$outboundSchema; - /** @deprecated use `SmsMessagesOneResponse$Outbound` instead. */ - export type Outbound = SmsMessagesOneResponse$Outbound; -} - -export function smsMessagesOneResponseToJSON( - smsMessagesOneResponse: SmsMessagesOneResponse, -): string { - return JSON.stringify( - SmsMessagesOneResponse$outboundSchema.parse(smsMessagesOneResponse), - ); -} - export function smsMessagesOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/smsmessagesupdate.ts b/src/models/operations/smsmessagesupdate.ts index 1f5128c15..de78a6acf 100644 --- a/src/models/operations/smsmessagesupdate.ts +++ b/src/models/operations/smsmessagesupdate.ts @@ -56,81 +56,6 @@ export type SmsMessagesUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const SmsMessagesUpdateGlobals$inboundSchema: z.ZodType< - SmsMessagesUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type SmsMessagesUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const SmsMessagesUpdateGlobals$outboundSchema: z.ZodType< - SmsMessagesUpdateGlobals$Outbound, - z.ZodTypeDef, - SmsMessagesUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesUpdateGlobals$ { - /** @deprecated use `SmsMessagesUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesUpdateGlobals$inboundSchema; - /** @deprecated use `SmsMessagesUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesUpdateGlobals$outboundSchema; - /** @deprecated use `SmsMessagesUpdateGlobals$Outbound` instead. */ - export type Outbound = SmsMessagesUpdateGlobals$Outbound; -} - -export function smsMessagesUpdateGlobalsToJSON( - smsMessagesUpdateGlobals: SmsMessagesUpdateGlobals, -): string { - return JSON.stringify( - SmsMessagesUpdateGlobals$outboundSchema.parse(smsMessagesUpdateGlobals), - ); -} - -export function smsMessagesUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const SmsMessagesUpdateRequest$inboundSchema: z.ZodType< - SmsMessagesUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - consumerId: z.string().optional(), - appId: z.string().optional(), - serviceId: z.string().optional(), - raw: z.boolean().default(false), - Message: components.MessageInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Message": "message", - }); -}); - /** @internal */ export type SmsMessagesUpdateRequest$Outbound = { id: string; @@ -159,19 +84,6 @@ export const SmsMessagesUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesUpdateRequest$ { - /** @deprecated use `SmsMessagesUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesUpdateRequest$inboundSchema; - /** @deprecated use `SmsMessagesUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesUpdateRequest$outboundSchema; - /** @deprecated use `SmsMessagesUpdateRequest$Outbound` instead. */ - export type Outbound = SmsMessagesUpdateRequest$Outbound; -} - export function smsMessagesUpdateRequestToJSON( smsMessagesUpdateRequest: SmsMessagesUpdateRequest, ): string { @@ -180,16 +92,6 @@ export function smsMessagesUpdateRequestToJSON( ); } -export function smsMessagesUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SmsMessagesUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SmsMessagesUpdateRequest' from JSON`, - ); -} - /** @internal */ export const SmsMessagesUpdateResponse$inboundSchema: z.ZodType< SmsMessagesUpdateResponse, @@ -209,55 +111,6 @@ export const SmsMessagesUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type SmsMessagesUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateMessageResponse?: components.UpdateMessageResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const SmsMessagesUpdateResponse$outboundSchema: z.ZodType< - SmsMessagesUpdateResponse$Outbound, - z.ZodTypeDef, - SmsMessagesUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateMessageResponse: components.UpdateMessageResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateMessageResponse: "UpdateMessageResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SmsMessagesUpdateResponse$ { - /** @deprecated use `SmsMessagesUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = SmsMessagesUpdateResponse$inboundSchema; - /** @deprecated use `SmsMessagesUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = SmsMessagesUpdateResponse$outboundSchema; - /** @deprecated use `SmsMessagesUpdateResponse$Outbound` instead. */ - export type Outbound = SmsMessagesUpdateResponse$Outbound; -} - -export function smsMessagesUpdateResponseToJSON( - smsMessagesUpdateResponse: SmsMessagesUpdateResponse, -): string { - return JSON.stringify( - SmsMessagesUpdateResponse$outboundSchema.parse(smsMessagesUpdateResponse), - ); -} - export function smsMessagesUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionconsentsall.ts b/src/models/operations/vaultconnectionconsentsall.ts index 6779ffdc4..538cae143 100644 --- a/src/models/operations/vaultconnectionconsentsall.ts +++ b/src/models/operations/vaultconnectionconsentsall.ts @@ -51,83 +51,6 @@ export type VaultConnectionConsentsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionConsentsAllGlobals$inboundSchema: z.ZodType< - VaultConnectionConsentsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionConsentsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionConsentsAllGlobals$outboundSchema: z.ZodType< - VaultConnectionConsentsAllGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionConsentsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentsAllGlobals$ { - /** @deprecated use `VaultConnectionConsentsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionConsentsAllGlobals$inboundSchema; - /** @deprecated use `VaultConnectionConsentsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentsAllGlobals$outboundSchema; - /** @deprecated use `VaultConnectionConsentsAllGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionConsentsAllGlobals$Outbound; -} - -export function vaultConnectionConsentsAllGlobalsToJSON( - vaultConnectionConsentsAllGlobals: VaultConnectionConsentsAllGlobals, -): string { - return JSON.stringify( - VaultConnectionConsentsAllGlobals$outboundSchema.parse( - vaultConnectionConsentsAllGlobals, - ), - ); -} - -export function vaultConnectionConsentsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionConsentsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionConsentsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionConsentsAllRequest$inboundSchema: z.ZodType< - VaultConnectionConsentsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - }); -}); - /** @internal */ export type VaultConnectionConsentsAllRequest$Outbound = { consumerId?: string | undefined; @@ -153,20 +76,6 @@ export const VaultConnectionConsentsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentsAllRequest$ { - /** @deprecated use `VaultConnectionConsentsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionConsentsAllRequest$inboundSchema; - /** @deprecated use `VaultConnectionConsentsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentsAllRequest$outboundSchema; - /** @deprecated use `VaultConnectionConsentsAllRequest$Outbound` instead. */ - export type Outbound = VaultConnectionConsentsAllRequest$Outbound; -} - export function vaultConnectionConsentsAllRequestToJSON( vaultConnectionConsentsAllRequest: VaultConnectionConsentsAllRequest, ): string { @@ -177,16 +86,6 @@ export function vaultConnectionConsentsAllRequestToJSON( ); } -export function vaultConnectionConsentsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionConsentsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionConsentsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionConsentsAllResponse$inboundSchema: z.ZodType< VaultConnectionConsentsAllResponse, @@ -206,60 +105,6 @@ export const VaultConnectionConsentsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionConsentsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConsentRecordsResponse?: - | components.GetConsentRecordsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionConsentsAllResponse$outboundSchema: z.ZodType< - VaultConnectionConsentsAllResponse$Outbound, - z.ZodTypeDef, - VaultConnectionConsentsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConsentRecordsResponse: components.GetConsentRecordsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConsentRecordsResponse: "GetConsentRecordsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentsAllResponse$ { - /** @deprecated use `VaultConnectionConsentsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionConsentsAllResponse$inboundSchema; - /** @deprecated use `VaultConnectionConsentsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentsAllResponse$outboundSchema; - /** @deprecated use `VaultConnectionConsentsAllResponse$Outbound` instead. */ - export type Outbound = VaultConnectionConsentsAllResponse$Outbound; -} - -export function vaultConnectionConsentsAllResponseToJSON( - vaultConnectionConsentsAllResponse: VaultConnectionConsentsAllResponse, -): string { - return JSON.stringify( - VaultConnectionConsentsAllResponse$outboundSchema.parse( - vaultConnectionConsentsAllResponse, - ), - ); -} - export function vaultConnectionConsentsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionconsentupdate.ts b/src/models/operations/vaultconnectionconsentupdate.ts index 77d330011..d3f61254f 100644 --- a/src/models/operations/vaultconnectionconsentupdate.ts +++ b/src/models/operations/vaultconnectionconsentupdate.ts @@ -55,87 +55,6 @@ export type VaultConnectionConsentUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionConsentUpdateGlobals$inboundSchema: z.ZodType< - VaultConnectionConsentUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionConsentUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionConsentUpdateGlobals$outboundSchema: z.ZodType< - VaultConnectionConsentUpdateGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionConsentUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentUpdateGlobals$ { - /** @deprecated use `VaultConnectionConsentUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionConsentUpdateGlobals$inboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentUpdateGlobals$outboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionConsentUpdateGlobals$Outbound; -} - -export function vaultConnectionConsentUpdateGlobalsToJSON( - vaultConnectionConsentUpdateGlobals: VaultConnectionConsentUpdateGlobals, -): string { - return JSON.stringify( - VaultConnectionConsentUpdateGlobals$outboundSchema.parse( - vaultConnectionConsentUpdateGlobals, - ), - ); -} - -export function vaultConnectionConsentUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConnectionConsentUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionConsentUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionConsentUpdateRequest$inboundSchema: z.ZodType< - VaultConnectionConsentUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - UpdateConsentRequest: components.UpdateConsentRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "UpdateConsentRequest": "updateConsentRequest", - }); -}); - /** @internal */ export type VaultConnectionConsentUpdateRequest$Outbound = { consumerId?: string | undefined; @@ -164,21 +83,6 @@ export const VaultConnectionConsentUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentUpdateRequest$ { - /** @deprecated use `VaultConnectionConsentUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionConsentUpdateRequest$inboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentUpdateRequest$outboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateRequest$Outbound` instead. */ - export type Outbound = VaultConnectionConsentUpdateRequest$Outbound; -} - export function vaultConnectionConsentUpdateRequestToJSON( vaultConnectionConsentUpdateRequest: VaultConnectionConsentUpdateRequest, ): string { @@ -189,17 +93,6 @@ export function vaultConnectionConsentUpdateRequestToJSON( ); } -export function vaultConnectionConsentUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConnectionConsentUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionConsentUpdateRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionConsentUpdateResponse$inboundSchema: z.ZodType< VaultConnectionConsentUpdateResponse, @@ -219,59 +112,6 @@ export const VaultConnectionConsentUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionConsentUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateConsentResponse?: components.UpdateConsentResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionConsentUpdateResponse$outboundSchema: z.ZodType< - VaultConnectionConsentUpdateResponse$Outbound, - z.ZodTypeDef, - VaultConnectionConsentUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateConsentResponse: components.UpdateConsentResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateConsentResponse: "UpdateConsentResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionConsentUpdateResponse$ { - /** @deprecated use `VaultConnectionConsentUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionConsentUpdateResponse$inboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionConsentUpdateResponse$outboundSchema; - /** @deprecated use `VaultConnectionConsentUpdateResponse$Outbound` instead. */ - export type Outbound = VaultConnectionConsentUpdateResponse$Outbound; -} - -export function vaultConnectionConsentUpdateResponseToJSON( - vaultConnectionConsentUpdateResponse: VaultConnectionConsentUpdateResponse, -): string { - return JSON.stringify( - VaultConnectionConsentUpdateResponse$outboundSchema.parse( - vaultConnectionConsentUpdateResponse, - ), - ); -} - export function vaultConnectionConsentUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectioncustommappingsall.ts b/src/models/operations/vaultconnectioncustommappingsall.ts index 42c64bf73..cba16fe5b 100644 --- a/src/models/operations/vaultconnectioncustommappingsall.ts +++ b/src/models/operations/vaultconnectioncustommappingsall.ts @@ -59,94 +59,6 @@ export type VaultConnectionCustomMappingsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionCustomMappingsAllGlobals$inboundSchema: z.ZodType< - VaultConnectionCustomMappingsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionCustomMappingsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionCustomMappingsAllGlobals$outboundSchema: z.ZodType< - VaultConnectionCustomMappingsAllGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionCustomMappingsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionCustomMappingsAllGlobals$ { - /** @deprecated use `VaultConnectionCustomMappingsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionCustomMappingsAllGlobals$inboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionCustomMappingsAllGlobals$outboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionCustomMappingsAllGlobals$Outbound; -} - -export function vaultConnectionCustomMappingsAllGlobalsToJSON( - vaultConnectionCustomMappingsAllGlobals: - VaultConnectionCustomMappingsAllGlobals, -): string { - return JSON.stringify( - VaultConnectionCustomMappingsAllGlobals$outboundSchema.parse( - vaultConnectionCustomMappingsAllGlobals, - ), - ); -} - -export function vaultConnectionCustomMappingsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - VaultConnectionCustomMappingsAllGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - VaultConnectionCustomMappingsAllGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'VaultConnectionCustomMappingsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionCustomMappingsAllRequest$inboundSchema: z.ZodType< - VaultConnectionCustomMappingsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - unified_api: z.string(), - service_id: z.string(), - resource: z.string(), - resource_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - "service_id": "serviceId", - "resource_id": "resourceId", - }); -}); - /** @internal */ export type VaultConnectionCustomMappingsAllRequest$Outbound = { consumerId?: string | undefined; @@ -177,21 +89,6 @@ export const VaultConnectionCustomMappingsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionCustomMappingsAllRequest$ { - /** @deprecated use `VaultConnectionCustomMappingsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionCustomMappingsAllRequest$inboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionCustomMappingsAllRequest$outboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllRequest$Outbound` instead. */ - export type Outbound = VaultConnectionCustomMappingsAllRequest$Outbound; -} - export function vaultConnectionCustomMappingsAllRequestToJSON( vaultConnectionCustomMappingsAllRequest: VaultConnectionCustomMappingsAllRequest, @@ -203,22 +100,6 @@ export function vaultConnectionCustomMappingsAllRequestToJSON( ); } -export function vaultConnectionCustomMappingsAllRequestFromJSON( - jsonString: string, -): SafeParseResult< - VaultConnectionCustomMappingsAllRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - VaultConnectionCustomMappingsAllRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'VaultConnectionCustomMappingsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionCustomMappingsAllResponse$inboundSchema: z.ZodType< VaultConnectionCustomMappingsAllResponse, @@ -238,62 +119,6 @@ export const VaultConnectionCustomMappingsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionCustomMappingsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomMappingsResponse?: - | components.GetCustomMappingsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionCustomMappingsAllResponse$outboundSchema: z.ZodType< - VaultConnectionCustomMappingsAllResponse$Outbound, - z.ZodTypeDef, - VaultConnectionCustomMappingsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomMappingsResponse: components.GetCustomMappingsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomMappingsResponse: "GetCustomMappingsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionCustomMappingsAllResponse$ { - /** @deprecated use `VaultConnectionCustomMappingsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionCustomMappingsAllResponse$inboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionCustomMappingsAllResponse$outboundSchema; - /** @deprecated use `VaultConnectionCustomMappingsAllResponse$Outbound` instead. */ - export type Outbound = VaultConnectionCustomMappingsAllResponse$Outbound; -} - -export function vaultConnectionCustomMappingsAllResponseToJSON( - vaultConnectionCustomMappingsAllResponse: - VaultConnectionCustomMappingsAllResponse, -): string { - return JSON.stringify( - VaultConnectionCustomMappingsAllResponse$outboundSchema.parse( - vaultConnectionCustomMappingsAllResponse, - ), - ); -} - export function vaultConnectionCustomMappingsAllResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/vaultconnectionsall.ts b/src/models/operations/vaultconnectionsall.ts index bc731e2a1..ad3f0f349 100644 --- a/src/models/operations/vaultconnectionsall.ts +++ b/src/models/operations/vaultconnectionsall.ts @@ -51,75 +51,6 @@ export type VaultConnectionsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsAllGlobals$inboundSchema: z.ZodType< - VaultConnectionsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsAllGlobals$outboundSchema: z.ZodType< - VaultConnectionsAllGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsAllGlobals$ { - /** @deprecated use `VaultConnectionsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsAllGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsAllGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsAllGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsAllGlobals$Outbound; -} - -export function vaultConnectionsAllGlobalsToJSON( - vaultConnectionsAllGlobals: VaultConnectionsAllGlobals, -): string { - return JSON.stringify( - VaultConnectionsAllGlobals$outboundSchema.parse(vaultConnectionsAllGlobals), - ); -} - -export function vaultConnectionsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsAllRequest$inboundSchema: z.ZodType< - VaultConnectionsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - api: z.string().optional(), - configured: z.boolean().optional(), -}); - /** @internal */ export type VaultConnectionsAllRequest$Outbound = { consumerId?: string | undefined; @@ -140,19 +71,6 @@ export const VaultConnectionsAllRequest$outboundSchema: z.ZodType< configured: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsAllRequest$ { - /** @deprecated use `VaultConnectionsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsAllRequest$inboundSchema; - /** @deprecated use `VaultConnectionsAllRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsAllRequest$outboundSchema; - /** @deprecated use `VaultConnectionsAllRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsAllRequest$Outbound; -} - export function vaultConnectionsAllRequestToJSON( vaultConnectionsAllRequest: VaultConnectionsAllRequest, ): string { @@ -161,16 +79,6 @@ export function vaultConnectionsAllRequestToJSON( ); } -export function vaultConnectionsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsAllResponse$inboundSchema: z.ZodType< VaultConnectionsAllResponse, @@ -190,59 +98,6 @@ export const VaultConnectionsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectionsResponse?: - | components.GetConnectionsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsAllResponse$outboundSchema: z.ZodType< - VaultConnectionsAllResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectionsResponse: components.GetConnectionsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectionsResponse: "GetConnectionsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsAllResponse$ { - /** @deprecated use `VaultConnectionsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsAllResponse$inboundSchema; - /** @deprecated use `VaultConnectionsAllResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsAllResponse$outboundSchema; - /** @deprecated use `VaultConnectionsAllResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsAllResponse$Outbound; -} - -export function vaultConnectionsAllResponseToJSON( - vaultConnectionsAllResponse: VaultConnectionsAllResponse, -): string { - return JSON.stringify( - VaultConnectionsAllResponse$outboundSchema.parse( - vaultConnectionsAllResponse, - ), - ); -} - export function vaultConnectionsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsdelete.ts b/src/models/operations/vaultconnectionsdelete.ts index 89cb8f9d4..d5b71010b 100644 --- a/src/models/operations/vaultconnectionsdelete.ts +++ b/src/models/operations/vaultconnectionsdelete.ts @@ -47,82 +47,6 @@ export type VaultConnectionsDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsDeleteGlobals$inboundSchema: z.ZodType< - VaultConnectionsDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsDeleteGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsDeleteGlobals$outboundSchema: z.ZodType< - VaultConnectionsDeleteGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsDeleteGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsDeleteGlobals$ { - /** @deprecated use `VaultConnectionsDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsDeleteGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsDeleteGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsDeleteGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsDeleteGlobals$Outbound; -} - -export function vaultConnectionsDeleteGlobalsToJSON( - vaultConnectionsDeleteGlobals: VaultConnectionsDeleteGlobals, -): string { - return JSON.stringify( - VaultConnectionsDeleteGlobals$outboundSchema.parse( - vaultConnectionsDeleteGlobals, - ), - ); -} - -export function vaultConnectionsDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsDeleteRequest$inboundSchema: z.ZodType< - VaultConnectionsDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - }); -}); - /** @internal */ export type VaultConnectionsDeleteRequest$Outbound = { consumerId?: string | undefined; @@ -148,19 +72,6 @@ export const VaultConnectionsDeleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsDeleteRequest$ { - /** @deprecated use `VaultConnectionsDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsDeleteRequest$inboundSchema; - /** @deprecated use `VaultConnectionsDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsDeleteRequest$outboundSchema; - /** @deprecated use `VaultConnectionsDeleteRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsDeleteRequest$Outbound; -} - export function vaultConnectionsDeleteRequestToJSON( vaultConnectionsDeleteRequest: VaultConnectionsDeleteRequest, ): string { @@ -171,16 +82,6 @@ export function vaultConnectionsDeleteRequestToJSON( ); } -export function vaultConnectionsDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsDeleteRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsDeleteResponse$inboundSchema: z.ZodType< VaultConnectionsDeleteResponse, @@ -197,53 +98,6 @@ export const VaultConnectionsDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsDeleteResponse$outboundSchema: z.ZodType< - VaultConnectionsDeleteResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsDeleteResponse$ { - /** @deprecated use `VaultConnectionsDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsDeleteResponse$inboundSchema; - /** @deprecated use `VaultConnectionsDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsDeleteResponse$outboundSchema; - /** @deprecated use `VaultConnectionsDeleteResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsDeleteResponse$Outbound; -} - -export function vaultConnectionsDeleteResponseToJSON( - vaultConnectionsDeleteResponse: VaultConnectionsDeleteResponse, -): string { - return JSON.stringify( - VaultConnectionsDeleteResponse$outboundSchema.parse( - vaultConnectionsDeleteResponse, - ), - ); -} - export function vaultConnectionsDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsettingsall.ts b/src/models/operations/vaultconnectionsettingsall.ts index 1b9474597..07a681174 100644 --- a/src/models/operations/vaultconnectionsettingsall.ts +++ b/src/models/operations/vaultconnectionsettingsall.ts @@ -55,84 +55,6 @@ export type VaultConnectionSettingsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionSettingsAllGlobals$inboundSchema: z.ZodType< - VaultConnectionSettingsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionSettingsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionSettingsAllGlobals$outboundSchema: z.ZodType< - VaultConnectionSettingsAllGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionSettingsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsAllGlobals$ { - /** @deprecated use `VaultConnectionSettingsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionSettingsAllGlobals$inboundSchema; - /** @deprecated use `VaultConnectionSettingsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsAllGlobals$outboundSchema; - /** @deprecated use `VaultConnectionSettingsAllGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsAllGlobals$Outbound; -} - -export function vaultConnectionSettingsAllGlobalsToJSON( - vaultConnectionSettingsAllGlobals: VaultConnectionSettingsAllGlobals, -): string { - return JSON.stringify( - VaultConnectionSettingsAllGlobals$outboundSchema.parse( - vaultConnectionSettingsAllGlobals, - ), - ); -} - -export function vaultConnectionSettingsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionSettingsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionSettingsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionSettingsAllRequest$inboundSchema: z.ZodType< - VaultConnectionSettingsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - unified_api: z.string(), - service_id: z.string(), - resource: z.string(), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - "service_id": "serviceId", - }); -}); - /** @internal */ export type VaultConnectionSettingsAllRequest$Outbound = { consumerId?: string | undefined; @@ -160,20 +82,6 @@ export const VaultConnectionSettingsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsAllRequest$ { - /** @deprecated use `VaultConnectionSettingsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionSettingsAllRequest$inboundSchema; - /** @deprecated use `VaultConnectionSettingsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsAllRequest$outboundSchema; - /** @deprecated use `VaultConnectionSettingsAllRequest$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsAllRequest$Outbound; -} - export function vaultConnectionSettingsAllRequestToJSON( vaultConnectionSettingsAllRequest: VaultConnectionSettingsAllRequest, ): string { @@ -184,16 +92,6 @@ export function vaultConnectionSettingsAllRequestToJSON( ); } -export function vaultConnectionSettingsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionSettingsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionSettingsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionSettingsAllResponse$inboundSchema: z.ZodType< VaultConnectionSettingsAllResponse, @@ -213,58 +111,6 @@ export const VaultConnectionSettingsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionSettingsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectionResponse?: components.GetConnectionResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionSettingsAllResponse$outboundSchema: z.ZodType< - VaultConnectionSettingsAllResponse$Outbound, - z.ZodTypeDef, - VaultConnectionSettingsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectionResponse: components.GetConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectionResponse: "GetConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsAllResponse$ { - /** @deprecated use `VaultConnectionSettingsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionSettingsAllResponse$inboundSchema; - /** @deprecated use `VaultConnectionSettingsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsAllResponse$outboundSchema; - /** @deprecated use `VaultConnectionSettingsAllResponse$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsAllResponse$Outbound; -} - -export function vaultConnectionSettingsAllResponseToJSON( - vaultConnectionSettingsAllResponse: VaultConnectionSettingsAllResponse, -): string { - return JSON.stringify( - VaultConnectionSettingsAllResponse$outboundSchema.parse( - vaultConnectionSettingsAllResponse, - ), - ); -} - export function vaultConnectionSettingsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsettingsupdate.ts b/src/models/operations/vaultconnectionsettingsupdate.ts index fef9d3a47..a2aded55a 100644 --- a/src/models/operations/vaultconnectionsettingsupdate.ts +++ b/src/models/operations/vaultconnectionsettingsupdate.ts @@ -59,88 +59,6 @@ export type VaultConnectionSettingsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionSettingsUpdateGlobals$inboundSchema: z.ZodType< - VaultConnectionSettingsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionSettingsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionSettingsUpdateGlobals$outboundSchema: z.ZodType< - VaultConnectionSettingsUpdateGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionSettingsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsUpdateGlobals$ { - /** @deprecated use `VaultConnectionSettingsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionSettingsUpdateGlobals$inboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsUpdateGlobals$outboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsUpdateGlobals$Outbound; -} - -export function vaultConnectionSettingsUpdateGlobalsToJSON( - vaultConnectionSettingsUpdateGlobals: VaultConnectionSettingsUpdateGlobals, -): string { - return JSON.stringify( - VaultConnectionSettingsUpdateGlobals$outboundSchema.parse( - vaultConnectionSettingsUpdateGlobals, - ), - ); -} - -export function vaultConnectionSettingsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConnectionSettingsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionSettingsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionSettingsUpdateRequest$inboundSchema: z.ZodType< - VaultConnectionSettingsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - resource: z.string(), - Connection: components.ConnectionInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "Connection": "connection", - }); -}); - /** @internal */ export type VaultConnectionSettingsUpdateRequest$Outbound = { consumerId?: string | undefined; @@ -171,21 +89,6 @@ export const VaultConnectionSettingsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsUpdateRequest$ { - /** @deprecated use `VaultConnectionSettingsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionSettingsUpdateRequest$inboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsUpdateRequest$outboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateRequest$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsUpdateRequest$Outbound; -} - export function vaultConnectionSettingsUpdateRequestToJSON( vaultConnectionSettingsUpdateRequest: VaultConnectionSettingsUpdateRequest, ): string { @@ -196,17 +99,6 @@ export function vaultConnectionSettingsUpdateRequestToJSON( ); } -export function vaultConnectionSettingsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConnectionSettingsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionSettingsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionSettingsUpdateResponse$inboundSchema: z.ZodType< VaultConnectionSettingsUpdateResponse, @@ -226,61 +118,6 @@ export const VaultConnectionSettingsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionSettingsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateConnectionResponse?: - | components.UpdateConnectionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionSettingsUpdateResponse$outboundSchema: z.ZodType< - VaultConnectionSettingsUpdateResponse$Outbound, - z.ZodTypeDef, - VaultConnectionSettingsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateConnectionResponse: components.UpdateConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateConnectionResponse: "UpdateConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionSettingsUpdateResponse$ { - /** @deprecated use `VaultConnectionSettingsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = - VaultConnectionSettingsUpdateResponse$inboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConnectionSettingsUpdateResponse$outboundSchema; - /** @deprecated use `VaultConnectionSettingsUpdateResponse$Outbound` instead. */ - export type Outbound = VaultConnectionSettingsUpdateResponse$Outbound; -} - -export function vaultConnectionSettingsUpdateResponseToJSON( - vaultConnectionSettingsUpdateResponse: VaultConnectionSettingsUpdateResponse, -): string { - return JSON.stringify( - VaultConnectionSettingsUpdateResponse$outboundSchema.parse( - vaultConnectionSettingsUpdateResponse, - ), - ); -} - export function vaultConnectionSettingsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsimport.ts b/src/models/operations/vaultconnectionsimport.ts index cbc742aac..8b053ff84 100644 --- a/src/models/operations/vaultconnectionsimport.ts +++ b/src/models/operations/vaultconnectionsimport.ts @@ -55,84 +55,6 @@ export type VaultConnectionsImportResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsImportGlobals$inboundSchema: z.ZodType< - VaultConnectionsImportGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsImportGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsImportGlobals$outboundSchema: z.ZodType< - VaultConnectionsImportGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsImportGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsImportGlobals$ { - /** @deprecated use `VaultConnectionsImportGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsImportGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsImportGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsImportGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsImportGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsImportGlobals$Outbound; -} - -export function vaultConnectionsImportGlobalsToJSON( - vaultConnectionsImportGlobals: VaultConnectionsImportGlobals, -): string { - return JSON.stringify( - VaultConnectionsImportGlobals$outboundSchema.parse( - vaultConnectionsImportGlobals, - ), - ); -} - -export function vaultConnectionsImportGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsImportGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsImportGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsImportRequest$inboundSchema: z.ZodType< - VaultConnectionsImportRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - ConnectionImportData: components.ConnectionImportData$inboundSchema, -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "ConnectionImportData": "connectionImportData", - }); -}); - /** @internal */ export type VaultConnectionsImportRequest$Outbound = { consumerId?: string | undefined; @@ -161,19 +83,6 @@ export const VaultConnectionsImportRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsImportRequest$ { - /** @deprecated use `VaultConnectionsImportRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsImportRequest$inboundSchema; - /** @deprecated use `VaultConnectionsImportRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsImportRequest$outboundSchema; - /** @deprecated use `VaultConnectionsImportRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsImportRequest$Outbound; -} - export function vaultConnectionsImportRequestToJSON( vaultConnectionsImportRequest: VaultConnectionsImportRequest, ): string { @@ -184,16 +93,6 @@ export function vaultConnectionsImportRequestToJSON( ); } -export function vaultConnectionsImportRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsImportRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsImportRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsImportResponse$inboundSchema: z.ZodType< VaultConnectionsImportResponse, @@ -213,59 +112,6 @@ export const VaultConnectionsImportResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsImportResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateConnectionResponse?: - | components.CreateConnectionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsImportResponse$outboundSchema: z.ZodType< - VaultConnectionsImportResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsImportResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createConnectionResponse: components.CreateConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createConnectionResponse: "CreateConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsImportResponse$ { - /** @deprecated use `VaultConnectionsImportResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsImportResponse$inboundSchema; - /** @deprecated use `VaultConnectionsImportResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsImportResponse$outboundSchema; - /** @deprecated use `VaultConnectionsImportResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsImportResponse$Outbound; -} - -export function vaultConnectionsImportResponseToJSON( - vaultConnectionsImportResponse: VaultConnectionsImportResponse, -): string { - return JSON.stringify( - VaultConnectionsImportResponse$outboundSchema.parse( - vaultConnectionsImportResponse, - ), - ); -} - export function vaultConnectionsImportResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsone.ts b/src/models/operations/vaultconnectionsone.ts index c582937b4..fb59e6238 100644 --- a/src/models/operations/vaultconnectionsone.ts +++ b/src/models/operations/vaultconnectionsone.ts @@ -51,80 +51,6 @@ export type VaultConnectionsOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsOneGlobals$inboundSchema: z.ZodType< - VaultConnectionsOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsOneGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsOneGlobals$outboundSchema: z.ZodType< - VaultConnectionsOneGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsOneGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsOneGlobals$ { - /** @deprecated use `VaultConnectionsOneGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsOneGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsOneGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsOneGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsOneGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsOneGlobals$Outbound; -} - -export function vaultConnectionsOneGlobalsToJSON( - vaultConnectionsOneGlobals: VaultConnectionsOneGlobals, -): string { - return JSON.stringify( - VaultConnectionsOneGlobals$outboundSchema.parse(vaultConnectionsOneGlobals), - ); -} - -export function vaultConnectionsOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsOneRequest$inboundSchema: z.ZodType< - VaultConnectionsOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - }); -}); - /** @internal */ export type VaultConnectionsOneRequest$Outbound = { consumerId?: string | undefined; @@ -150,19 +76,6 @@ export const VaultConnectionsOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsOneRequest$ { - /** @deprecated use `VaultConnectionsOneRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsOneRequest$inboundSchema; - /** @deprecated use `VaultConnectionsOneRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsOneRequest$outboundSchema; - /** @deprecated use `VaultConnectionsOneRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsOneRequest$Outbound; -} - export function vaultConnectionsOneRequestToJSON( vaultConnectionsOneRequest: VaultConnectionsOneRequest, ): string { @@ -171,16 +84,6 @@ export function vaultConnectionsOneRequestToJSON( ); } -export function vaultConnectionsOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsOneRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsOneResponse$inboundSchema: z.ZodType< VaultConnectionsOneResponse, @@ -200,57 +103,6 @@ export const VaultConnectionsOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectionResponse?: components.GetConnectionResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsOneResponse$outboundSchema: z.ZodType< - VaultConnectionsOneResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectionResponse: components.GetConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectionResponse: "GetConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsOneResponse$ { - /** @deprecated use `VaultConnectionsOneResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsOneResponse$inboundSchema; - /** @deprecated use `VaultConnectionsOneResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsOneResponse$outboundSchema; - /** @deprecated use `VaultConnectionsOneResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsOneResponse$Outbound; -} - -export function vaultConnectionsOneResponseToJSON( - vaultConnectionsOneResponse: VaultConnectionsOneResponse, -): string { - return JSON.stringify( - VaultConnectionsOneResponse$outboundSchema.parse( - vaultConnectionsOneResponse, - ), - ); -} - export function vaultConnectionsOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionstoken.ts b/src/models/operations/vaultconnectionstoken.ts index 94dbc67cb..eb899e9c5 100644 --- a/src/models/operations/vaultconnectionstoken.ts +++ b/src/models/operations/vaultconnectionstoken.ts @@ -54,72 +54,6 @@ export type VaultConnectionsTokenResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsTokenGlobals$inboundSchema: z.ZodType< - VaultConnectionsTokenGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsTokenGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsTokenGlobals$outboundSchema: z.ZodType< - VaultConnectionsTokenGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsTokenGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsTokenGlobals$ { - /** @deprecated use `VaultConnectionsTokenGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsTokenGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsTokenGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsTokenGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsTokenGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsTokenGlobals$Outbound; -} - -export function vaultConnectionsTokenGlobalsToJSON( - vaultConnectionsTokenGlobals: VaultConnectionsTokenGlobals, -): string { - return JSON.stringify( - VaultConnectionsTokenGlobals$outboundSchema.parse( - vaultConnectionsTokenGlobals, - ), - ); -} - -export function vaultConnectionsTokenGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsTokenGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsTokenGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsTokenRequestBody$inboundSchema: z.ZodType< - VaultConnectionsTokenRequestBody, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type VaultConnectionsTokenRequestBody$Outbound = {}; @@ -130,19 +64,6 @@ export const VaultConnectionsTokenRequestBody$outboundSchema: z.ZodType< VaultConnectionsTokenRequestBody > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsTokenRequestBody$ { - /** @deprecated use `VaultConnectionsTokenRequestBody$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsTokenRequestBody$inboundSchema; - /** @deprecated use `VaultConnectionsTokenRequestBody$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsTokenRequestBody$outboundSchema; - /** @deprecated use `VaultConnectionsTokenRequestBody$Outbound` instead. */ - export type Outbound = VaultConnectionsTokenRequestBody$Outbound; -} - export function vaultConnectionsTokenRequestBodyToJSON( vaultConnectionsTokenRequestBody: VaultConnectionsTokenRequestBody, ): string { @@ -153,36 +74,6 @@ export function vaultConnectionsTokenRequestBodyToJSON( ); } -export function vaultConnectionsTokenRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsTokenRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsTokenRequestBody' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsTokenRequest$inboundSchema: z.ZodType< - VaultConnectionsTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - RequestBody: z.lazy(() => VaultConnectionsTokenRequestBody$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "RequestBody": "requestBody", - }); -}); - /** @internal */ export type VaultConnectionsTokenRequest$Outbound = { consumerId?: string | undefined; @@ -212,19 +103,6 @@ export const VaultConnectionsTokenRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsTokenRequest$ { - /** @deprecated use `VaultConnectionsTokenRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsTokenRequest$inboundSchema; - /** @deprecated use `VaultConnectionsTokenRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsTokenRequest$outboundSchema; - /** @deprecated use `VaultConnectionsTokenRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsTokenRequest$Outbound; -} - export function vaultConnectionsTokenRequestToJSON( vaultConnectionsTokenRequest: VaultConnectionsTokenRequest, ): string { @@ -235,16 +113,6 @@ export function vaultConnectionsTokenRequestToJSON( ); } -export function vaultConnectionsTokenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsTokenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsTokenRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsTokenResponse$inboundSchema: z.ZodType< VaultConnectionsTokenResponse, @@ -264,57 +132,6 @@ export const VaultConnectionsTokenResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsTokenResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConnectionResponse?: components.GetConnectionResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsTokenResponse$outboundSchema: z.ZodType< - VaultConnectionsTokenResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsTokenResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConnectionResponse: components.GetConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConnectionResponse: "GetConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsTokenResponse$ { - /** @deprecated use `VaultConnectionsTokenResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsTokenResponse$inboundSchema; - /** @deprecated use `VaultConnectionsTokenResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsTokenResponse$outboundSchema; - /** @deprecated use `VaultConnectionsTokenResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsTokenResponse$Outbound; -} - -export function vaultConnectionsTokenResponseToJSON( - vaultConnectionsTokenResponse: VaultConnectionsTokenResponse, -): string { - return JSON.stringify( - VaultConnectionsTokenResponse$outboundSchema.parse( - vaultConnectionsTokenResponse, - ), - ); -} - export function vaultConnectionsTokenResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconnectionsupdate.ts b/src/models/operations/vaultconnectionsupdate.ts index 3cd4f3112..7c5acce22 100644 --- a/src/models/operations/vaultconnectionsupdate.ts +++ b/src/models/operations/vaultconnectionsupdate.ts @@ -55,84 +55,6 @@ export type VaultConnectionsUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConnectionsUpdateGlobals$inboundSchema: z.ZodType< - VaultConnectionsUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConnectionsUpdateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConnectionsUpdateGlobals$outboundSchema: z.ZodType< - VaultConnectionsUpdateGlobals$Outbound, - z.ZodTypeDef, - VaultConnectionsUpdateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsUpdateGlobals$ { - /** @deprecated use `VaultConnectionsUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsUpdateGlobals$inboundSchema; - /** @deprecated use `VaultConnectionsUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsUpdateGlobals$outboundSchema; - /** @deprecated use `VaultConnectionsUpdateGlobals$Outbound` instead. */ - export type Outbound = VaultConnectionsUpdateGlobals$Outbound; -} - -export function vaultConnectionsUpdateGlobalsToJSON( - vaultConnectionsUpdateGlobals: VaultConnectionsUpdateGlobals, -): string { - return JSON.stringify( - VaultConnectionsUpdateGlobals$outboundSchema.parse( - vaultConnectionsUpdateGlobals, - ), - ); -} - -export function vaultConnectionsUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConnectionsUpdateRequest$inboundSchema: z.ZodType< - VaultConnectionsUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - Connection: components.ConnectionInput$inboundSchema, -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "Connection": "connection", - }); -}); - /** @internal */ export type VaultConnectionsUpdateRequest$Outbound = { consumerId?: string | undefined; @@ -161,19 +83,6 @@ export const VaultConnectionsUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsUpdateRequest$ { - /** @deprecated use `VaultConnectionsUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsUpdateRequest$inboundSchema; - /** @deprecated use `VaultConnectionsUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsUpdateRequest$outboundSchema; - /** @deprecated use `VaultConnectionsUpdateRequest$Outbound` instead. */ - export type Outbound = VaultConnectionsUpdateRequest$Outbound; -} - export function vaultConnectionsUpdateRequestToJSON( vaultConnectionsUpdateRequest: VaultConnectionsUpdateRequest, ): string { @@ -184,16 +93,6 @@ export function vaultConnectionsUpdateRequestToJSON( ); } -export function vaultConnectionsUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConnectionsUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConnectionsUpdateRequest' from JSON`, - ); -} - /** @internal */ export const VaultConnectionsUpdateResponse$inboundSchema: z.ZodType< VaultConnectionsUpdateResponse, @@ -213,59 +112,6 @@ export const VaultConnectionsUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConnectionsUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateConnectionResponse?: - | components.UpdateConnectionResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConnectionsUpdateResponse$outboundSchema: z.ZodType< - VaultConnectionsUpdateResponse$Outbound, - z.ZodTypeDef, - VaultConnectionsUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateConnectionResponse: components.UpdateConnectionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateConnectionResponse: "UpdateConnectionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConnectionsUpdateResponse$ { - /** @deprecated use `VaultConnectionsUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConnectionsUpdateResponse$inboundSchema; - /** @deprecated use `VaultConnectionsUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConnectionsUpdateResponse$outboundSchema; - /** @deprecated use `VaultConnectionsUpdateResponse$Outbound` instead. */ - export type Outbound = VaultConnectionsUpdateResponse$Outbound; -} - -export function vaultConnectionsUpdateResponseToJSON( - vaultConnectionsUpdateResponse: VaultConnectionsUpdateResponse, -): string { - return JSON.stringify( - VaultConnectionsUpdateResponse$outboundSchema.parse( - vaultConnectionsUpdateResponse, - ), - ); -} - export function vaultConnectionsUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumerrequestcountsall.ts b/src/models/operations/vaultconsumerrequestcountsall.ts index 990f4e600..41881344a 100644 --- a/src/models/operations/vaultconsumerrequestcountsall.ts +++ b/src/models/operations/vaultconsumerrequestcountsall.ts @@ -49,83 +49,6 @@ export type VaultConsumerRequestCountsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumerRequestCountsAllGlobals$inboundSchema: z.ZodType< - VaultConsumerRequestCountsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumerRequestCountsAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumerRequestCountsAllGlobals$outboundSchema: z.ZodType< - VaultConsumerRequestCountsAllGlobals$Outbound, - z.ZodTypeDef, - VaultConsumerRequestCountsAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumerRequestCountsAllGlobals$ { - /** @deprecated use `VaultConsumerRequestCountsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = - VaultConsumerRequestCountsAllGlobals$inboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultConsumerRequestCountsAllGlobals$outboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllGlobals$Outbound` instead. */ - export type Outbound = VaultConsumerRequestCountsAllGlobals$Outbound; -} - -export function vaultConsumerRequestCountsAllGlobalsToJSON( - vaultConsumerRequestCountsAllGlobals: VaultConsumerRequestCountsAllGlobals, -): string { - return JSON.stringify( - VaultConsumerRequestCountsAllGlobals$outboundSchema.parse( - vaultConsumerRequestCountsAllGlobals, - ), - ); -} - -export function vaultConsumerRequestCountsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConsumerRequestCountsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumerRequestCountsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumerRequestCountsAllRequest$inboundSchema: z.ZodType< - VaultConsumerRequestCountsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumer_id: z.string(), - start_datetime: z.string(), - end_datetime: z.string(), -}).transform((v) => { - return remap$(v, { - "consumer_id": "consumerId", - "start_datetime": "startDatetime", - "end_datetime": "endDatetime", - }); -}); - /** @internal */ export type VaultConsumerRequestCountsAllRequest$Outbound = { appId?: string | undefined; @@ -152,21 +75,6 @@ export const VaultConsumerRequestCountsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumerRequestCountsAllRequest$ { - /** @deprecated use `VaultConsumerRequestCountsAllRequest$inboundSchema` instead. */ - export const inboundSchema = - VaultConsumerRequestCountsAllRequest$inboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultConsumerRequestCountsAllRequest$outboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllRequest$Outbound` instead. */ - export type Outbound = VaultConsumerRequestCountsAllRequest$Outbound; -} - export function vaultConsumerRequestCountsAllRequestToJSON( vaultConsumerRequestCountsAllRequest: VaultConsumerRequestCountsAllRequest, ): string { @@ -177,17 +85,6 @@ export function vaultConsumerRequestCountsAllRequestToJSON( ); } -export function vaultConsumerRequestCountsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultConsumerRequestCountsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumerRequestCountsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumerRequestCountsAllResponse$inboundSchema: z.ZodType< VaultConsumerRequestCountsAllResponse, @@ -208,62 +105,6 @@ export const VaultConsumerRequestCountsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumerRequestCountsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - ConsumerRequestCountsInDateRangeResponse?: - | components.ConsumerRequestCountsInDateRangeResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumerRequestCountsAllResponse$outboundSchema: z.ZodType< - VaultConsumerRequestCountsAllResponse$Outbound, - z.ZodTypeDef, - VaultConsumerRequestCountsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - consumerRequestCountsInDateRangeResponse: components - .ConsumerRequestCountsInDateRangeResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - consumerRequestCountsInDateRangeResponse: - "ConsumerRequestCountsInDateRangeResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumerRequestCountsAllResponse$ { - /** @deprecated use `VaultConsumerRequestCountsAllResponse$inboundSchema` instead. */ - export const inboundSchema = - VaultConsumerRequestCountsAllResponse$inboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultConsumerRequestCountsAllResponse$outboundSchema; - /** @deprecated use `VaultConsumerRequestCountsAllResponse$Outbound` instead. */ - export type Outbound = VaultConsumerRequestCountsAllResponse$Outbound; -} - -export function vaultConsumerRequestCountsAllResponseToJSON( - vaultConsumerRequestCountsAllResponse: VaultConsumerRequestCountsAllResponse, -): string { - return JSON.stringify( - VaultConsumerRequestCountsAllResponse$outboundSchema.parse( - vaultConsumerRequestCountsAllResponse, - ), - ); -} - export function vaultConsumerRequestCountsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumersadd.ts b/src/models/operations/vaultconsumersadd.ts index f035770bf..e6e2a969e 100644 --- a/src/models/operations/vaultconsumersadd.ts +++ b/src/models/operations/vaultconsumersadd.ts @@ -36,74 +36,6 @@ export type VaultConsumersAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumersAddGlobals$inboundSchema: z.ZodType< - VaultConsumersAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumersAddGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumersAddGlobals$outboundSchema: z.ZodType< - VaultConsumersAddGlobals$Outbound, - z.ZodTypeDef, - VaultConsumersAddGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAddGlobals$ { - /** @deprecated use `VaultConsumersAddGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAddGlobals$inboundSchema; - /** @deprecated use `VaultConsumersAddGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAddGlobals$outboundSchema; - /** @deprecated use `VaultConsumersAddGlobals$Outbound` instead. */ - export type Outbound = VaultConsumersAddGlobals$Outbound; -} - -export function vaultConsumersAddGlobalsToJSON( - vaultConsumersAddGlobals: VaultConsumersAddGlobals, -): string { - return JSON.stringify( - VaultConsumersAddGlobals$outboundSchema.parse(vaultConsumersAddGlobals), - ); -} - -export function vaultConsumersAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumersAddRequest$inboundSchema: z.ZodType< - VaultConsumersAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - CreateConsumerRequest: components.CreateConsumerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreateConsumerRequest": "createConsumerRequest", - }); -}); - /** @internal */ export type VaultConsumersAddRequest$Outbound = { appId?: string | undefined; @@ -124,19 +56,6 @@ export const VaultConsumersAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAddRequest$ { - /** @deprecated use `VaultConsumersAddRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAddRequest$inboundSchema; - /** @deprecated use `VaultConsumersAddRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAddRequest$outboundSchema; - /** @deprecated use `VaultConsumersAddRequest$Outbound` instead. */ - export type Outbound = VaultConsumersAddRequest$Outbound; -} - export function vaultConsumersAddRequestToJSON( vaultConsumersAddRequest: VaultConsumersAddRequest, ): string { @@ -145,16 +64,6 @@ export function vaultConsumersAddRequestToJSON( ); } -export function vaultConsumersAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersAddRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumersAddResponse$inboundSchema: z.ZodType< VaultConsumersAddResponse, @@ -174,57 +83,6 @@ export const VaultConsumersAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumersAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateConsumerResponse?: - | components.CreateConsumerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumersAddResponse$outboundSchema: z.ZodType< - VaultConsumersAddResponse$Outbound, - z.ZodTypeDef, - VaultConsumersAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createConsumerResponse: components.CreateConsumerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createConsumerResponse: "CreateConsumerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAddResponse$ { - /** @deprecated use `VaultConsumersAddResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAddResponse$inboundSchema; - /** @deprecated use `VaultConsumersAddResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAddResponse$outboundSchema; - /** @deprecated use `VaultConsumersAddResponse$Outbound` instead. */ - export type Outbound = VaultConsumersAddResponse$Outbound; -} - -export function vaultConsumersAddResponseToJSON( - vaultConsumersAddResponse: VaultConsumersAddResponse, -): string { - return JSON.stringify( - VaultConsumersAddResponse$outboundSchema.parse(vaultConsumersAddResponse), - ); -} - export function vaultConsumersAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumersall.ts b/src/models/operations/vaultconsumersall.ts index a7c6080e2..88b22c2b2 100644 --- a/src/models/operations/vaultconsumersall.ts +++ b/src/models/operations/vaultconsumersall.ts @@ -43,71 +43,6 @@ export type VaultConsumersAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumersAllGlobals$inboundSchema: z.ZodType< - VaultConsumersAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumersAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumersAllGlobals$outboundSchema: z.ZodType< - VaultConsumersAllGlobals$Outbound, - z.ZodTypeDef, - VaultConsumersAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAllGlobals$ { - /** @deprecated use `VaultConsumersAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAllGlobals$inboundSchema; - /** @deprecated use `VaultConsumersAllGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAllGlobals$outboundSchema; - /** @deprecated use `VaultConsumersAllGlobals$Outbound` instead. */ - export type Outbound = VaultConsumersAllGlobals$Outbound; -} - -export function vaultConsumersAllGlobalsToJSON( - vaultConsumersAllGlobals: VaultConsumersAllGlobals, -): string { - return JSON.stringify( - VaultConsumersAllGlobals$outboundSchema.parse(vaultConsumersAllGlobals), - ); -} - -export function vaultConsumersAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumersAllRequest$inboundSchema: z.ZodType< - VaultConsumersAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), -}); - /** @internal */ export type VaultConsumersAllRequest$Outbound = { appId?: string | undefined; @@ -126,19 +61,6 @@ export const VaultConsumersAllRequest$outboundSchema: z.ZodType< limit: z.number().int().default(20), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAllRequest$ { - /** @deprecated use `VaultConsumersAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAllRequest$inboundSchema; - /** @deprecated use `VaultConsumersAllRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAllRequest$outboundSchema; - /** @deprecated use `VaultConsumersAllRequest$Outbound` instead. */ - export type Outbound = VaultConsumersAllRequest$Outbound; -} - export function vaultConsumersAllRequestToJSON( vaultConsumersAllRequest: VaultConsumersAllRequest, ): string { @@ -147,16 +69,6 @@ export function vaultConsumersAllRequestToJSON( ); } -export function vaultConsumersAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumersAllResponse$inboundSchema: z.ZodType< VaultConsumersAllResponse, @@ -176,55 +88,6 @@ export const VaultConsumersAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumersAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConsumersResponse?: components.GetConsumersResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumersAllResponse$outboundSchema: z.ZodType< - VaultConsumersAllResponse$Outbound, - z.ZodTypeDef, - VaultConsumersAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConsumersResponse: components.GetConsumersResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConsumersResponse: "GetConsumersResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersAllResponse$ { - /** @deprecated use `VaultConsumersAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersAllResponse$inboundSchema; - /** @deprecated use `VaultConsumersAllResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersAllResponse$outboundSchema; - /** @deprecated use `VaultConsumersAllResponse$Outbound` instead. */ - export type Outbound = VaultConsumersAllResponse$Outbound; -} - -export function vaultConsumersAllResponseToJSON( - vaultConsumersAllResponse: VaultConsumersAllResponse, -): string { - return JSON.stringify( - VaultConsumersAllResponse$outboundSchema.parse(vaultConsumersAllResponse), - ); -} - export function vaultConsumersAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumersdelete.ts b/src/models/operations/vaultconsumersdelete.ts index 136fbcf58..50141915f 100644 --- a/src/models/operations/vaultconsumersdelete.ts +++ b/src/models/operations/vaultconsumersdelete.ts @@ -39,76 +39,6 @@ export type VaultConsumersDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumersDeleteGlobals$inboundSchema: z.ZodType< - VaultConsumersDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumersDeleteGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumersDeleteGlobals$outboundSchema: z.ZodType< - VaultConsumersDeleteGlobals$Outbound, - z.ZodTypeDef, - VaultConsumersDeleteGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersDeleteGlobals$ { - /** @deprecated use `VaultConsumersDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersDeleteGlobals$inboundSchema; - /** @deprecated use `VaultConsumersDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersDeleteGlobals$outboundSchema; - /** @deprecated use `VaultConsumersDeleteGlobals$Outbound` instead. */ - export type Outbound = VaultConsumersDeleteGlobals$Outbound; -} - -export function vaultConsumersDeleteGlobalsToJSON( - vaultConsumersDeleteGlobals: VaultConsumersDeleteGlobals, -): string { - return JSON.stringify( - VaultConsumersDeleteGlobals$outboundSchema.parse( - vaultConsumersDeleteGlobals, - ), - ); -} - -export function vaultConsumersDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumersDeleteRequest$inboundSchema: z.ZodType< - VaultConsumersDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumer_id: z.string(), -}).transform((v) => { - return remap$(v, { - "consumer_id": "consumerId", - }); -}); - /** @internal */ export type VaultConsumersDeleteRequest$Outbound = { appId?: string | undefined; @@ -129,19 +59,6 @@ export const VaultConsumersDeleteRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersDeleteRequest$ { - /** @deprecated use `VaultConsumersDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersDeleteRequest$inboundSchema; - /** @deprecated use `VaultConsumersDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersDeleteRequest$outboundSchema; - /** @deprecated use `VaultConsumersDeleteRequest$Outbound` instead. */ - export type Outbound = VaultConsumersDeleteRequest$Outbound; -} - export function vaultConsumersDeleteRequestToJSON( vaultConsumersDeleteRequest: VaultConsumersDeleteRequest, ): string { @@ -152,16 +69,6 @@ export function vaultConsumersDeleteRequestToJSON( ); } -export function vaultConsumersDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersDeleteRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumersDeleteResponse$inboundSchema: z.ZodType< VaultConsumersDeleteResponse, @@ -181,59 +88,6 @@ export const VaultConsumersDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumersDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteConsumerResponse?: - | components.DeleteConsumerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumersDeleteResponse$outboundSchema: z.ZodType< - VaultConsumersDeleteResponse$Outbound, - z.ZodTypeDef, - VaultConsumersDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteConsumerResponse: components.DeleteConsumerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteConsumerResponse: "DeleteConsumerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersDeleteResponse$ { - /** @deprecated use `VaultConsumersDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersDeleteResponse$inboundSchema; - /** @deprecated use `VaultConsumersDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersDeleteResponse$outboundSchema; - /** @deprecated use `VaultConsumersDeleteResponse$Outbound` instead. */ - export type Outbound = VaultConsumersDeleteResponse$Outbound; -} - -export function vaultConsumersDeleteResponseToJSON( - vaultConsumersDeleteResponse: VaultConsumersDeleteResponse, -): string { - return JSON.stringify( - VaultConsumersDeleteResponse$outboundSchema.parse( - vaultConsumersDeleteResponse, - ), - ); -} - export function vaultConsumersDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumersone.ts b/src/models/operations/vaultconsumersone.ts index 16b9eb1f3..37aaeb35e 100644 --- a/src/models/operations/vaultconsumersone.ts +++ b/src/models/operations/vaultconsumersone.ts @@ -39,74 +39,6 @@ export type VaultConsumersOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumersOneGlobals$inboundSchema: z.ZodType< - VaultConsumersOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumersOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumersOneGlobals$outboundSchema: z.ZodType< - VaultConsumersOneGlobals$Outbound, - z.ZodTypeDef, - VaultConsumersOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersOneGlobals$ { - /** @deprecated use `VaultConsumersOneGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersOneGlobals$inboundSchema; - /** @deprecated use `VaultConsumersOneGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersOneGlobals$outboundSchema; - /** @deprecated use `VaultConsumersOneGlobals$Outbound` instead. */ - export type Outbound = VaultConsumersOneGlobals$Outbound; -} - -export function vaultConsumersOneGlobalsToJSON( - vaultConsumersOneGlobals: VaultConsumersOneGlobals, -): string { - return JSON.stringify( - VaultConsumersOneGlobals$outboundSchema.parse(vaultConsumersOneGlobals), - ); -} - -export function vaultConsumersOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumersOneRequest$inboundSchema: z.ZodType< - VaultConsumersOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumer_id: z.string(), -}).transform((v) => { - return remap$(v, { - "consumer_id": "consumerId", - }); -}); - /** @internal */ export type VaultConsumersOneRequest$Outbound = { appId?: string | undefined; @@ -127,19 +59,6 @@ export const VaultConsumersOneRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersOneRequest$ { - /** @deprecated use `VaultConsumersOneRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersOneRequest$inboundSchema; - /** @deprecated use `VaultConsumersOneRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersOneRequest$outboundSchema; - /** @deprecated use `VaultConsumersOneRequest$Outbound` instead. */ - export type Outbound = VaultConsumersOneRequest$Outbound; -} - export function vaultConsumersOneRequestToJSON( vaultConsumersOneRequest: VaultConsumersOneRequest, ): string { @@ -148,16 +67,6 @@ export function vaultConsumersOneRequestToJSON( ); } -export function vaultConsumersOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersOneRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumersOneResponse$inboundSchema: z.ZodType< VaultConsumersOneResponse, @@ -176,54 +85,6 @@ export const VaultConsumersOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumersOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetConsumerResponse?: components.GetConsumerResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumersOneResponse$outboundSchema: z.ZodType< - VaultConsumersOneResponse$Outbound, - z.ZodTypeDef, - VaultConsumersOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getConsumerResponse: components.GetConsumerResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getConsumerResponse: "GetConsumerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersOneResponse$ { - /** @deprecated use `VaultConsumersOneResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersOneResponse$inboundSchema; - /** @deprecated use `VaultConsumersOneResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersOneResponse$outboundSchema; - /** @deprecated use `VaultConsumersOneResponse$Outbound` instead. */ - export type Outbound = VaultConsumersOneResponse$Outbound; -} - -export function vaultConsumersOneResponseToJSON( - vaultConsumersOneResponse: VaultConsumersOneResponse, -): string { - return JSON.stringify( - VaultConsumersOneResponse$outboundSchema.parse(vaultConsumersOneResponse), - ); -} - export function vaultConsumersOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultconsumersupdate.ts b/src/models/operations/vaultconsumersupdate.ts index 10635ff8c..6bc17464c 100644 --- a/src/models/operations/vaultconsumersupdate.ts +++ b/src/models/operations/vaultconsumersupdate.ts @@ -40,78 +40,6 @@ export type VaultConsumersUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultConsumersUpdateGlobals$inboundSchema: z.ZodType< - VaultConsumersUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultConsumersUpdateGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const VaultConsumersUpdateGlobals$outboundSchema: z.ZodType< - VaultConsumersUpdateGlobals$Outbound, - z.ZodTypeDef, - VaultConsumersUpdateGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersUpdateGlobals$ { - /** @deprecated use `VaultConsumersUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersUpdateGlobals$inboundSchema; - /** @deprecated use `VaultConsumersUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersUpdateGlobals$outboundSchema; - /** @deprecated use `VaultConsumersUpdateGlobals$Outbound` instead. */ - export type Outbound = VaultConsumersUpdateGlobals$Outbound; -} - -export function vaultConsumersUpdateGlobalsToJSON( - vaultConsumersUpdateGlobals: VaultConsumersUpdateGlobals, -): string { - return JSON.stringify( - VaultConsumersUpdateGlobals$outboundSchema.parse( - vaultConsumersUpdateGlobals, - ), - ); -} - -export function vaultConsumersUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultConsumersUpdateRequest$inboundSchema: z.ZodType< - VaultConsumersUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumer_id: z.string(), - UpdateConsumerRequest: components.UpdateConsumerRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "consumer_id": "consumerId", - "UpdateConsumerRequest": "updateConsumerRequest", - }); -}); - /** @internal */ export type VaultConsumersUpdateRequest$Outbound = { appId?: string | undefined; @@ -135,19 +63,6 @@ export const VaultConsumersUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersUpdateRequest$ { - /** @deprecated use `VaultConsumersUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersUpdateRequest$inboundSchema; - /** @deprecated use `VaultConsumersUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersUpdateRequest$outboundSchema; - /** @deprecated use `VaultConsumersUpdateRequest$Outbound` instead. */ - export type Outbound = VaultConsumersUpdateRequest$Outbound; -} - export function vaultConsumersUpdateRequestToJSON( vaultConsumersUpdateRequest: VaultConsumersUpdateRequest, ): string { @@ -158,16 +73,6 @@ export function vaultConsumersUpdateRequestToJSON( ); } -export function vaultConsumersUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultConsumersUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultConsumersUpdateRequest' from JSON`, - ); -} - /** @internal */ export const VaultConsumersUpdateResponse$inboundSchema: z.ZodType< VaultConsumersUpdateResponse, @@ -187,59 +92,6 @@ export const VaultConsumersUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultConsumersUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateConsumerResponse?: - | components.UpdateConsumerResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultConsumersUpdateResponse$outboundSchema: z.ZodType< - VaultConsumersUpdateResponse$Outbound, - z.ZodTypeDef, - VaultConsumersUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateConsumerResponse: components.UpdateConsumerResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateConsumerResponse: "UpdateConsumerResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultConsumersUpdateResponse$ { - /** @deprecated use `VaultConsumersUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = VaultConsumersUpdateResponse$inboundSchema; - /** @deprecated use `VaultConsumersUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = VaultConsumersUpdateResponse$outboundSchema; - /** @deprecated use `VaultConsumersUpdateResponse$Outbound` instead. */ - export type Outbound = VaultConsumersUpdateResponse$Outbound; -} - -export function vaultConsumersUpdateResponseToJSON( - vaultConsumersUpdateResponse: VaultConsumersUpdateResponse, -): string { - return JSON.stringify( - VaultConsumersUpdateResponse$outboundSchema.parse( - vaultConsumersUpdateResponse, - ), - ); -} - export function vaultConsumersUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultcreatecallbackstate.ts b/src/models/operations/vaultcreatecallbackstate.ts index cb75c35c8..b98321280 100644 --- a/src/models/operations/vaultcreatecallbackstate.ts +++ b/src/models/operations/vaultcreatecallbackstate.ts @@ -57,84 +57,6 @@ export type VaultCreateCallbackStateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultCreateCallbackStateGlobals$inboundSchema: z.ZodType< - VaultCreateCallbackStateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultCreateCallbackStateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultCreateCallbackStateGlobals$outboundSchema: z.ZodType< - VaultCreateCallbackStateGlobals$Outbound, - z.ZodTypeDef, - VaultCreateCallbackStateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCreateCallbackStateGlobals$ { - /** @deprecated use `VaultCreateCallbackStateGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultCreateCallbackStateGlobals$inboundSchema; - /** @deprecated use `VaultCreateCallbackStateGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultCreateCallbackStateGlobals$outboundSchema; - /** @deprecated use `VaultCreateCallbackStateGlobals$Outbound` instead. */ - export type Outbound = VaultCreateCallbackStateGlobals$Outbound; -} - -export function vaultCreateCallbackStateGlobalsToJSON( - vaultCreateCallbackStateGlobals: VaultCreateCallbackStateGlobals, -): string { - return JSON.stringify( - VaultCreateCallbackStateGlobals$outboundSchema.parse( - vaultCreateCallbackStateGlobals, - ), - ); -} - -export function vaultCreateCallbackStateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCreateCallbackStateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCreateCallbackStateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultCreateCallbackStateRequest$inboundSchema: z.ZodType< - VaultCreateCallbackStateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - CreateCallbackState: components.CreateCallbackState$inboundSchema, -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "CreateCallbackState": "createCallbackState", - }); -}); - /** @internal */ export type VaultCreateCallbackStateRequest$Outbound = { consumerId?: string | undefined; @@ -163,19 +85,6 @@ export const VaultCreateCallbackStateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCreateCallbackStateRequest$ { - /** @deprecated use `VaultCreateCallbackStateRequest$inboundSchema` instead. */ - export const inboundSchema = VaultCreateCallbackStateRequest$inboundSchema; - /** @deprecated use `VaultCreateCallbackStateRequest$outboundSchema` instead. */ - export const outboundSchema = VaultCreateCallbackStateRequest$outboundSchema; - /** @deprecated use `VaultCreateCallbackStateRequest$Outbound` instead. */ - export type Outbound = VaultCreateCallbackStateRequest$Outbound; -} - export function vaultCreateCallbackStateRequestToJSON( vaultCreateCallbackStateRequest: VaultCreateCallbackStateRequest, ): string { @@ -186,16 +95,6 @@ export function vaultCreateCallbackStateRequestToJSON( ); } -export function vaultCreateCallbackStateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCreateCallbackStateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCreateCallbackStateRequest' from JSON`, - ); -} - /** @internal */ export const VaultCreateCallbackStateResponse$inboundSchema: z.ZodType< VaultCreateCallbackStateResponse, @@ -215,59 +114,6 @@ export const VaultCreateCallbackStateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultCreateCallbackStateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateCallbackStateResponse?: - | components.CreateCallbackStateResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultCreateCallbackStateResponse$outboundSchema: z.ZodType< - VaultCreateCallbackStateResponse$Outbound, - z.ZodTypeDef, - VaultCreateCallbackStateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createCallbackStateResponse: components - .CreateCallbackStateResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createCallbackStateResponse: "CreateCallbackStateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCreateCallbackStateResponse$ { - /** @deprecated use `VaultCreateCallbackStateResponse$inboundSchema` instead. */ - export const inboundSchema = VaultCreateCallbackStateResponse$inboundSchema; - /** @deprecated use `VaultCreateCallbackStateResponse$outboundSchema` instead. */ - export const outboundSchema = VaultCreateCallbackStateResponse$outboundSchema; - /** @deprecated use `VaultCreateCallbackStateResponse$Outbound` instead. */ - export type Outbound = VaultCreateCallbackStateResponse$Outbound; -} - -export function vaultCreateCallbackStateResponseToJSON( - vaultCreateCallbackStateResponse: VaultCreateCallbackStateResponse, -): string { - return JSON.stringify( - VaultCreateCallbackStateResponse$outboundSchema.parse( - vaultCreateCallbackStateResponse, - ), - ); -} - export function vaultCreateCallbackStateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultcustomfieldsall.ts b/src/models/operations/vaultcustomfieldsall.ts index a54d9ef6c..71f18a7b8 100644 --- a/src/models/operations/vaultcustomfieldsall.ts +++ b/src/models/operations/vaultcustomfieldsall.ts @@ -59,85 +59,6 @@ export type VaultCustomFieldsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultCustomFieldsAllGlobals$inboundSchema: z.ZodType< - VaultCustomFieldsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultCustomFieldsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultCustomFieldsAllGlobals$outboundSchema: z.ZodType< - VaultCustomFieldsAllGlobals$Outbound, - z.ZodTypeDef, - VaultCustomFieldsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomFieldsAllGlobals$ { - /** @deprecated use `VaultCustomFieldsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultCustomFieldsAllGlobals$inboundSchema; - /** @deprecated use `VaultCustomFieldsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultCustomFieldsAllGlobals$outboundSchema; - /** @deprecated use `VaultCustomFieldsAllGlobals$Outbound` instead. */ - export type Outbound = VaultCustomFieldsAllGlobals$Outbound; -} - -export function vaultCustomFieldsAllGlobalsToJSON( - vaultCustomFieldsAllGlobals: VaultCustomFieldsAllGlobals, -): string { - return JSON.stringify( - VaultCustomFieldsAllGlobals$outboundSchema.parse( - vaultCustomFieldsAllGlobals, - ), - ); -} - -export function vaultCustomFieldsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCustomFieldsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCustomFieldsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultCustomFieldsAllRequest$inboundSchema: z.ZodType< - VaultCustomFieldsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - unified_api: z.string(), - service_id: z.string(), - resource: z.string(), - resource_id: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - "service_id": "serviceId", - "resource_id": "resourceId", - }); -}); - /** @internal */ export type VaultCustomFieldsAllRequest$Outbound = { consumerId?: string | undefined; @@ -168,19 +89,6 @@ export const VaultCustomFieldsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomFieldsAllRequest$ { - /** @deprecated use `VaultCustomFieldsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultCustomFieldsAllRequest$inboundSchema; - /** @deprecated use `VaultCustomFieldsAllRequest$outboundSchema` instead. */ - export const outboundSchema = VaultCustomFieldsAllRequest$outboundSchema; - /** @deprecated use `VaultCustomFieldsAllRequest$Outbound` instead. */ - export type Outbound = VaultCustomFieldsAllRequest$Outbound; -} - export function vaultCustomFieldsAllRequestToJSON( vaultCustomFieldsAllRequest: VaultCustomFieldsAllRequest, ): string { @@ -191,16 +99,6 @@ export function vaultCustomFieldsAllRequestToJSON( ); } -export function vaultCustomFieldsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCustomFieldsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCustomFieldsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultCustomFieldsAllResponse$inboundSchema: z.ZodType< VaultCustomFieldsAllResponse, @@ -220,59 +118,6 @@ export const VaultCustomFieldsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultCustomFieldsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomFieldsResponse?: - | components.GetCustomFieldsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultCustomFieldsAllResponse$outboundSchema: z.ZodType< - VaultCustomFieldsAllResponse$Outbound, - z.ZodTypeDef, - VaultCustomFieldsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomFieldsResponse: components.GetCustomFieldsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomFieldsResponse: "GetCustomFieldsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomFieldsAllResponse$ { - /** @deprecated use `VaultCustomFieldsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultCustomFieldsAllResponse$inboundSchema; - /** @deprecated use `VaultCustomFieldsAllResponse$outboundSchema` instead. */ - export const outboundSchema = VaultCustomFieldsAllResponse$outboundSchema; - /** @deprecated use `VaultCustomFieldsAllResponse$Outbound` instead. */ - export type Outbound = VaultCustomFieldsAllResponse$Outbound; -} - -export function vaultCustomFieldsAllResponseToJSON( - vaultCustomFieldsAllResponse: VaultCustomFieldsAllResponse, -): string { - return JSON.stringify( - VaultCustomFieldsAllResponse$outboundSchema.parse( - vaultCustomFieldsAllResponse, - ), - ); -} - export function vaultCustomFieldsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultcustommappingsall.ts b/src/models/operations/vaultcustommappingsall.ts index 5474a909b..5133d6f06 100644 --- a/src/models/operations/vaultcustommappingsall.ts +++ b/src/models/operations/vaultcustommappingsall.ts @@ -51,82 +51,6 @@ export type VaultCustomMappingsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultCustomMappingsAllGlobals$inboundSchema: z.ZodType< - VaultCustomMappingsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultCustomMappingsAllGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultCustomMappingsAllGlobals$outboundSchema: z.ZodType< - VaultCustomMappingsAllGlobals$Outbound, - z.ZodTypeDef, - VaultCustomMappingsAllGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomMappingsAllGlobals$ { - /** @deprecated use `VaultCustomMappingsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultCustomMappingsAllGlobals$inboundSchema; - /** @deprecated use `VaultCustomMappingsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultCustomMappingsAllGlobals$outboundSchema; - /** @deprecated use `VaultCustomMappingsAllGlobals$Outbound` instead. */ - export type Outbound = VaultCustomMappingsAllGlobals$Outbound; -} - -export function vaultCustomMappingsAllGlobalsToJSON( - vaultCustomMappingsAllGlobals: VaultCustomMappingsAllGlobals, -): string { - return JSON.stringify( - VaultCustomMappingsAllGlobals$outboundSchema.parse( - vaultCustomMappingsAllGlobals, - ), - ); -} - -export function vaultCustomMappingsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCustomMappingsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCustomMappingsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultCustomMappingsAllRequest$inboundSchema: z.ZodType< - VaultCustomMappingsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - unified_api: z.string(), - service_id: z.string(), -}).transform((v) => { - return remap$(v, { - "unified_api": "unifiedApi", - "service_id": "serviceId", - }); -}); - /** @internal */ export type VaultCustomMappingsAllRequest$Outbound = { consumerId?: string | undefined; @@ -152,19 +76,6 @@ export const VaultCustomMappingsAllRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomMappingsAllRequest$ { - /** @deprecated use `VaultCustomMappingsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultCustomMappingsAllRequest$inboundSchema; - /** @deprecated use `VaultCustomMappingsAllRequest$outboundSchema` instead. */ - export const outboundSchema = VaultCustomMappingsAllRequest$outboundSchema; - /** @deprecated use `VaultCustomMappingsAllRequest$Outbound` instead. */ - export type Outbound = VaultCustomMappingsAllRequest$Outbound; -} - export function vaultCustomMappingsAllRequestToJSON( vaultCustomMappingsAllRequest: VaultCustomMappingsAllRequest, ): string { @@ -175,16 +86,6 @@ export function vaultCustomMappingsAllRequestToJSON( ); } -export function vaultCustomMappingsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultCustomMappingsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultCustomMappingsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultCustomMappingsAllResponse$inboundSchema: z.ZodType< VaultCustomMappingsAllResponse, @@ -204,59 +105,6 @@ export const VaultCustomMappingsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultCustomMappingsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetCustomMappingsResponse?: - | components.GetCustomMappingsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultCustomMappingsAllResponse$outboundSchema: z.ZodType< - VaultCustomMappingsAllResponse$Outbound, - z.ZodTypeDef, - VaultCustomMappingsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getCustomMappingsResponse: components.GetCustomMappingsResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getCustomMappingsResponse: "GetCustomMappingsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultCustomMappingsAllResponse$ { - /** @deprecated use `VaultCustomMappingsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultCustomMappingsAllResponse$inboundSchema; - /** @deprecated use `VaultCustomMappingsAllResponse$outboundSchema` instead. */ - export const outboundSchema = VaultCustomMappingsAllResponse$outboundSchema; - /** @deprecated use `VaultCustomMappingsAllResponse$Outbound` instead. */ - export type Outbound = VaultCustomMappingsAllResponse$Outbound; -} - -export function vaultCustomMappingsAllResponseToJSON( - vaultCustomMappingsAllResponse: VaultCustomMappingsAllResponse, -): string { - return JSON.stringify( - VaultCustomMappingsAllResponse$outboundSchema.parse( - vaultCustomMappingsAllResponse, - ), - ); -} - export function vaultCustomMappingsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultlogsall.ts b/src/models/operations/vaultlogsall.ts index 1e6405847..72c3b4ce9 100644 --- a/src/models/operations/vaultlogsall.ts +++ b/src/models/operations/vaultlogsall.ts @@ -55,76 +55,6 @@ export type VaultLogsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultLogsAllGlobals$inboundSchema: z.ZodType< - VaultLogsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumerId: z.string().optional(), -}); - -/** @internal */ -export type VaultLogsAllGlobals$Outbound = { - appId?: string | undefined; - consumerId?: string | undefined; -}; - -/** @internal */ -export const VaultLogsAllGlobals$outboundSchema: z.ZodType< - VaultLogsAllGlobals$Outbound, - z.ZodTypeDef, - VaultLogsAllGlobals -> = z.object({ - appId: z.string().optional(), - consumerId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultLogsAllGlobals$ { - /** @deprecated use `VaultLogsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultLogsAllGlobals$inboundSchema; - /** @deprecated use `VaultLogsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultLogsAllGlobals$outboundSchema; - /** @deprecated use `VaultLogsAllGlobals$Outbound` instead. */ - export type Outbound = VaultLogsAllGlobals$Outbound; -} - -export function vaultLogsAllGlobalsToJSON( - vaultLogsAllGlobals: VaultLogsAllGlobals, -): string { - return JSON.stringify( - VaultLogsAllGlobals$outboundSchema.parse(vaultLogsAllGlobals), - ); -} - -export function vaultLogsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultLogsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultLogsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultLogsAllRequest$inboundSchema: z.ZodType< - VaultLogsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - consumerId: z.string().optional(), - filter: components.LogsFilter$inboundSchema.optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), -}); - /** @internal */ export type VaultLogsAllRequest$Outbound = { appId?: string | undefined; @@ -147,19 +77,6 @@ export const VaultLogsAllRequest$outboundSchema: z.ZodType< limit: z.number().int().default(20), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultLogsAllRequest$ { - /** @deprecated use `VaultLogsAllRequest$inboundSchema` instead. */ - export const inboundSchema = VaultLogsAllRequest$inboundSchema; - /** @deprecated use `VaultLogsAllRequest$outboundSchema` instead. */ - export const outboundSchema = VaultLogsAllRequest$outboundSchema; - /** @deprecated use `VaultLogsAllRequest$Outbound` instead. */ - export type Outbound = VaultLogsAllRequest$Outbound; -} - export function vaultLogsAllRequestToJSON( vaultLogsAllRequest: VaultLogsAllRequest, ): string { @@ -168,16 +85,6 @@ export function vaultLogsAllRequestToJSON( ); } -export function vaultLogsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultLogsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultLogsAllRequest' from JSON`, - ); -} - /** @internal */ export const VaultLogsAllResponse$inboundSchema: z.ZodType< VaultLogsAllResponse, @@ -196,54 +103,6 @@ export const VaultLogsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultLogsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetLogsResponse?: components.GetLogsResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultLogsAllResponse$outboundSchema: z.ZodType< - VaultLogsAllResponse$Outbound, - z.ZodTypeDef, - VaultLogsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getLogsResponse: components.GetLogsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getLogsResponse: "GetLogsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultLogsAllResponse$ { - /** @deprecated use `VaultLogsAllResponse$inboundSchema` instead. */ - export const inboundSchema = VaultLogsAllResponse$inboundSchema; - /** @deprecated use `VaultLogsAllResponse$outboundSchema` instead. */ - export const outboundSchema = VaultLogsAllResponse$outboundSchema; - /** @deprecated use `VaultLogsAllResponse$Outbound` instead. */ - export type Outbound = VaultLogsAllResponse$Outbound; -} - -export function vaultLogsAllResponseToJSON( - vaultLogsAllResponse: VaultLogsAllResponse, -): string { - return JSON.stringify( - VaultLogsAllResponse$outboundSchema.parse(vaultLogsAllResponse), - ); -} - export function vaultLogsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultsessionscreate.ts b/src/models/operations/vaultsessionscreate.ts index 3204ea3b2..e0c970f1c 100644 --- a/src/models/operations/vaultsessionscreate.ts +++ b/src/models/operations/vaultsessionscreate.ts @@ -47,78 +47,6 @@ export type VaultSessionsCreateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultSessionsCreateGlobals$inboundSchema: z.ZodType< - VaultSessionsCreateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultSessionsCreateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultSessionsCreateGlobals$outboundSchema: z.ZodType< - VaultSessionsCreateGlobals$Outbound, - z.ZodTypeDef, - VaultSessionsCreateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultSessionsCreateGlobals$ { - /** @deprecated use `VaultSessionsCreateGlobals$inboundSchema` instead. */ - export const inboundSchema = VaultSessionsCreateGlobals$inboundSchema; - /** @deprecated use `VaultSessionsCreateGlobals$outboundSchema` instead. */ - export const outboundSchema = VaultSessionsCreateGlobals$outboundSchema; - /** @deprecated use `VaultSessionsCreateGlobals$Outbound` instead. */ - export type Outbound = VaultSessionsCreateGlobals$Outbound; -} - -export function vaultSessionsCreateGlobalsToJSON( - vaultSessionsCreateGlobals: VaultSessionsCreateGlobals, -): string { - return JSON.stringify( - VaultSessionsCreateGlobals$outboundSchema.parse(vaultSessionsCreateGlobals), - ); -} - -export function vaultSessionsCreateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultSessionsCreateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultSessionsCreateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultSessionsCreateRequest$inboundSchema: z.ZodType< - VaultSessionsCreateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - Session: components.Session$inboundSchema.optional(), -}).transform((v) => { - return remap$(v, { - "Session": "session", - }); -}); - /** @internal */ export type VaultSessionsCreateRequest$Outbound = { consumerId?: string | undefined; @@ -141,19 +69,6 @@ export const VaultSessionsCreateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultSessionsCreateRequest$ { - /** @deprecated use `VaultSessionsCreateRequest$inboundSchema` instead. */ - export const inboundSchema = VaultSessionsCreateRequest$inboundSchema; - /** @deprecated use `VaultSessionsCreateRequest$outboundSchema` instead. */ - export const outboundSchema = VaultSessionsCreateRequest$outboundSchema; - /** @deprecated use `VaultSessionsCreateRequest$Outbound` instead. */ - export type Outbound = VaultSessionsCreateRequest$Outbound; -} - export function vaultSessionsCreateRequestToJSON( vaultSessionsCreateRequest: VaultSessionsCreateRequest, ): string { @@ -162,16 +77,6 @@ export function vaultSessionsCreateRequestToJSON( ); } -export function vaultSessionsCreateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => VaultSessionsCreateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultSessionsCreateRequest' from JSON`, - ); -} - /** @internal */ export const VaultSessionsCreateResponse$inboundSchema: z.ZodType< VaultSessionsCreateResponse, @@ -191,57 +96,6 @@ export const VaultSessionsCreateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultSessionsCreateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateSessionResponse?: components.CreateSessionResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultSessionsCreateResponse$outboundSchema: z.ZodType< - VaultSessionsCreateResponse$Outbound, - z.ZodTypeDef, - VaultSessionsCreateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createSessionResponse: components.CreateSessionResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createSessionResponse: "CreateSessionResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultSessionsCreateResponse$ { - /** @deprecated use `VaultSessionsCreateResponse$inboundSchema` instead. */ - export const inboundSchema = VaultSessionsCreateResponse$inboundSchema; - /** @deprecated use `VaultSessionsCreateResponse$outboundSchema` instead. */ - export const outboundSchema = VaultSessionsCreateResponse$outboundSchema; - /** @deprecated use `VaultSessionsCreateResponse$Outbound` instead. */ - export type Outbound = VaultSessionsCreateResponse$Outbound; -} - -export function vaultSessionsCreateResponseToJSON( - vaultSessionsCreateResponse: VaultSessionsCreateResponse, -): string { - return JSON.stringify( - VaultSessionsCreateResponse$outboundSchema.parse( - vaultSessionsCreateResponse, - ), - ); -} - export function vaultSessionsCreateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/vaultvalidateconnectionstate.ts b/src/models/operations/vaultvalidateconnectionstate.ts index b0421843e..f8f6280e7 100644 --- a/src/models/operations/vaultvalidateconnectionstate.ts +++ b/src/models/operations/vaultvalidateconnectionstate.ts @@ -56,75 +56,6 @@ export type VaultValidateConnectionStateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const VaultValidateConnectionStateGlobals$inboundSchema: z.ZodType< - VaultValidateConnectionStateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** @internal */ -export type VaultValidateConnectionStateGlobals$Outbound = { - consumerId?: string | undefined; - appId?: string | undefined; -}; - -/** @internal */ -export const VaultValidateConnectionStateGlobals$outboundSchema: z.ZodType< - VaultValidateConnectionStateGlobals$Outbound, - z.ZodTypeDef, - VaultValidateConnectionStateGlobals -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultValidateConnectionStateGlobals$ { - /** @deprecated use `VaultValidateConnectionStateGlobals$inboundSchema` instead. */ - export const inboundSchema = - VaultValidateConnectionStateGlobals$inboundSchema; - /** @deprecated use `VaultValidateConnectionStateGlobals$outboundSchema` instead. */ - export const outboundSchema = - VaultValidateConnectionStateGlobals$outboundSchema; - /** @deprecated use `VaultValidateConnectionStateGlobals$Outbound` instead. */ - export type Outbound = VaultValidateConnectionStateGlobals$Outbound; -} - -export function vaultValidateConnectionStateGlobalsToJSON( - vaultValidateConnectionStateGlobals: VaultValidateConnectionStateGlobals, -): string { - return JSON.stringify( - VaultValidateConnectionStateGlobals$outboundSchema.parse( - vaultValidateConnectionStateGlobals, - ), - ); -} - -export function vaultValidateConnectionStateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultValidateConnectionStateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultValidateConnectionStateGlobals' from JSON`, - ); -} - -/** @internal */ -export const VaultValidateConnectionStateRequestBody$inboundSchema: z.ZodType< - VaultValidateConnectionStateRequestBody, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type VaultValidateConnectionStateRequestBody$Outbound = {}; @@ -135,21 +66,6 @@ export const VaultValidateConnectionStateRequestBody$outboundSchema: z.ZodType< VaultValidateConnectionStateRequestBody > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultValidateConnectionStateRequestBody$ { - /** @deprecated use `VaultValidateConnectionStateRequestBody$inboundSchema` instead. */ - export const inboundSchema = - VaultValidateConnectionStateRequestBody$inboundSchema; - /** @deprecated use `VaultValidateConnectionStateRequestBody$outboundSchema` instead. */ - export const outboundSchema = - VaultValidateConnectionStateRequestBody$outboundSchema; - /** @deprecated use `VaultValidateConnectionStateRequestBody$Outbound` instead. */ - export type Outbound = VaultValidateConnectionStateRequestBody$Outbound; -} - export function vaultValidateConnectionStateRequestBodyToJSON( vaultValidateConnectionStateRequestBody: VaultValidateConnectionStateRequestBody, @@ -161,43 +77,6 @@ export function vaultValidateConnectionStateRequestBodyToJSON( ); } -export function vaultValidateConnectionStateRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - VaultValidateConnectionStateRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - VaultValidateConnectionStateRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'VaultValidateConnectionStateRequestBody' from JSON`, - ); -} - -/** @internal */ -export const VaultValidateConnectionStateRequest$inboundSchema: z.ZodType< - VaultValidateConnectionStateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - consumerId: z.string().optional(), - appId: z.string().optional(), - service_id: z.string(), - unified_api: z.string(), - RequestBody: z.lazy(() => - VaultValidateConnectionStateRequestBody$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "service_id": "serviceId", - "unified_api": "unifiedApi", - "RequestBody": "requestBody", - }); -}); - /** @internal */ export type VaultValidateConnectionStateRequest$Outbound = { consumerId?: string | undefined; @@ -228,21 +107,6 @@ export const VaultValidateConnectionStateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultValidateConnectionStateRequest$ { - /** @deprecated use `VaultValidateConnectionStateRequest$inboundSchema` instead. */ - export const inboundSchema = - VaultValidateConnectionStateRequest$inboundSchema; - /** @deprecated use `VaultValidateConnectionStateRequest$outboundSchema` instead. */ - export const outboundSchema = - VaultValidateConnectionStateRequest$outboundSchema; - /** @deprecated use `VaultValidateConnectionStateRequest$Outbound` instead. */ - export type Outbound = VaultValidateConnectionStateRequest$Outbound; -} - export function vaultValidateConnectionStateRequestToJSON( vaultValidateConnectionStateRequest: VaultValidateConnectionStateRequest, ): string { @@ -253,17 +117,6 @@ export function vaultValidateConnectionStateRequestToJSON( ); } -export function vaultValidateConnectionStateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - VaultValidateConnectionStateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'VaultValidateConnectionStateRequest' from JSON`, - ); -} - /** @internal */ export const VaultValidateConnectionStateResponse$inboundSchema: z.ZodType< VaultValidateConnectionStateResponse, @@ -283,61 +136,6 @@ export const VaultValidateConnectionStateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type VaultValidateConnectionStateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - ValidateConnectionStateResponse?: - | components.ValidateConnectionStateResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const VaultValidateConnectionStateResponse$outboundSchema: z.ZodType< - VaultValidateConnectionStateResponse$Outbound, - z.ZodTypeDef, - VaultValidateConnectionStateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - validateConnectionStateResponse: components - .ValidateConnectionStateResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - validateConnectionStateResponse: "ValidateConnectionStateResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VaultValidateConnectionStateResponse$ { - /** @deprecated use `VaultValidateConnectionStateResponse$inboundSchema` instead. */ - export const inboundSchema = - VaultValidateConnectionStateResponse$inboundSchema; - /** @deprecated use `VaultValidateConnectionStateResponse$outboundSchema` instead. */ - export const outboundSchema = - VaultValidateConnectionStateResponse$outboundSchema; - /** @deprecated use `VaultValidateConnectionStateResponse$Outbound` instead. */ - export type Outbound = VaultValidateConnectionStateResponse$Outbound; -} - -export function vaultValidateConnectionStateResponseToJSON( - vaultValidateConnectionStateResponse: VaultValidateConnectionStateResponse, -): string { - return JSON.stringify( - VaultValidateConnectionStateResponse$outboundSchema.parse( - vaultValidateConnectionStateResponse, - ), - ); -} - export function vaultValidateConnectionStateResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookeventlogsall.ts b/src/models/operations/webhookeventlogsall.ts index 9ebed7e72..aad529e19 100644 --- a/src/models/operations/webhookeventlogsall.ts +++ b/src/models/operations/webhookeventlogsall.ts @@ -49,72 +49,6 @@ export type WebhookEventLogsAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookEventLogsAllGlobals$inboundSchema: z.ZodType< - WebhookEventLogsAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookEventLogsAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookEventLogsAllGlobals$outboundSchema: z.ZodType< - WebhookEventLogsAllGlobals$Outbound, - z.ZodTypeDef, - WebhookEventLogsAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogsAllGlobals$ { - /** @deprecated use `WebhookEventLogsAllGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogsAllGlobals$inboundSchema; - /** @deprecated use `WebhookEventLogsAllGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogsAllGlobals$outboundSchema; - /** @deprecated use `WebhookEventLogsAllGlobals$Outbound` instead. */ - export type Outbound = WebhookEventLogsAllGlobals$Outbound; -} - -export function webhookEventLogsAllGlobalsToJSON( - webhookEventLogsAllGlobals: WebhookEventLogsAllGlobals, -): string { - return JSON.stringify( - WebhookEventLogsAllGlobals$outboundSchema.parse(webhookEventLogsAllGlobals), - ); -} - -export function webhookEventLogsAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookEventLogsAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookEventLogsAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookEventLogsAllRequest$inboundSchema: z.ZodType< - WebhookEventLogsAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), - filter: components.WebhookEventLogsFilter$inboundSchema.optional(), -}); - /** @internal */ export type WebhookEventLogsAllRequest$Outbound = { appId?: string | undefined; @@ -135,19 +69,6 @@ export const WebhookEventLogsAllRequest$outboundSchema: z.ZodType< filter: components.WebhookEventLogsFilter$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogsAllRequest$ { - /** @deprecated use `WebhookEventLogsAllRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogsAllRequest$inboundSchema; - /** @deprecated use `WebhookEventLogsAllRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogsAllRequest$outboundSchema; - /** @deprecated use `WebhookEventLogsAllRequest$Outbound` instead. */ - export type Outbound = WebhookEventLogsAllRequest$Outbound; -} - export function webhookEventLogsAllRequestToJSON( webhookEventLogsAllRequest: WebhookEventLogsAllRequest, ): string { @@ -156,16 +77,6 @@ export function webhookEventLogsAllRequestToJSON( ); } -export function webhookEventLogsAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookEventLogsAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookEventLogsAllRequest' from JSON`, - ); -} - /** @internal */ export const WebhookEventLogsAllResponse$inboundSchema: z.ZodType< WebhookEventLogsAllResponse, @@ -185,59 +96,6 @@ export const WebhookEventLogsAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookEventLogsAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetWebhookEventLogsResponse?: - | components.GetWebhookEventLogsResponse$Outbound - | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookEventLogsAllResponse$outboundSchema: z.ZodType< - WebhookEventLogsAllResponse$Outbound, - z.ZodTypeDef, - WebhookEventLogsAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getWebhookEventLogsResponse: components - .GetWebhookEventLogsResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getWebhookEventLogsResponse: "GetWebhookEventLogsResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookEventLogsAllResponse$ { - /** @deprecated use `WebhookEventLogsAllResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookEventLogsAllResponse$inboundSchema; - /** @deprecated use `WebhookEventLogsAllResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookEventLogsAllResponse$outboundSchema; - /** @deprecated use `WebhookEventLogsAllResponse$Outbound` instead. */ - export type Outbound = WebhookEventLogsAllResponse$Outbound; -} - -export function webhookEventLogsAllResponseToJSON( - webhookEventLogsAllResponse: WebhookEventLogsAllResponse, -): string { - return JSON.stringify( - WebhookEventLogsAllResponse$outboundSchema.parse( - webhookEventLogsAllResponse, - ), - ); -} - export function webhookEventLogsAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookwebhooksadd.ts b/src/models/operations/webhookwebhooksadd.ts index da97fdb42..ebc82bd3f 100644 --- a/src/models/operations/webhookwebhooksadd.ts +++ b/src/models/operations/webhookwebhooksadd.ts @@ -36,74 +36,6 @@ export type WebhookWebhooksAddResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookWebhooksAddGlobals$inboundSchema: z.ZodType< - WebhookWebhooksAddGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookWebhooksAddGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookWebhooksAddGlobals$outboundSchema: z.ZodType< - WebhookWebhooksAddGlobals$Outbound, - z.ZodTypeDef, - WebhookWebhooksAddGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAddGlobals$ { - /** @deprecated use `WebhookWebhooksAddGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAddGlobals$inboundSchema; - /** @deprecated use `WebhookWebhooksAddGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAddGlobals$outboundSchema; - /** @deprecated use `WebhookWebhooksAddGlobals$Outbound` instead. */ - export type Outbound = WebhookWebhooksAddGlobals$Outbound; -} - -export function webhookWebhooksAddGlobalsToJSON( - webhookWebhooksAddGlobals: WebhookWebhooksAddGlobals, -): string { - return JSON.stringify( - WebhookWebhooksAddGlobals$outboundSchema.parse(webhookWebhooksAddGlobals), - ); -} - -export function webhookWebhooksAddGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksAddGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksAddGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookWebhooksAddRequest$inboundSchema: z.ZodType< - WebhookWebhooksAddRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - CreateWebhookRequest: components.CreateWebhookRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "CreateWebhookRequest": "createWebhookRequest", - }); -}); - /** @internal */ export type WebhookWebhooksAddRequest$Outbound = { appId?: string | undefined; @@ -124,19 +56,6 @@ export const WebhookWebhooksAddRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAddRequest$ { - /** @deprecated use `WebhookWebhooksAddRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAddRequest$inboundSchema; - /** @deprecated use `WebhookWebhooksAddRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAddRequest$outboundSchema; - /** @deprecated use `WebhookWebhooksAddRequest$Outbound` instead. */ - export type Outbound = WebhookWebhooksAddRequest$Outbound; -} - export function webhookWebhooksAddRequestToJSON( webhookWebhooksAddRequest: WebhookWebhooksAddRequest, ): string { @@ -145,16 +64,6 @@ export function webhookWebhooksAddRequestToJSON( ); } -export function webhookWebhooksAddRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksAddRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksAddRequest' from JSON`, - ); -} - /** @internal */ export const WebhookWebhooksAddResponse$inboundSchema: z.ZodType< WebhookWebhooksAddResponse, @@ -174,55 +83,6 @@ export const WebhookWebhooksAddResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookWebhooksAddResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - CreateWebhookResponse?: components.CreateWebhookResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookWebhooksAddResponse$outboundSchema: z.ZodType< - WebhookWebhooksAddResponse$Outbound, - z.ZodTypeDef, - WebhookWebhooksAddResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - createWebhookResponse: components.CreateWebhookResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - createWebhookResponse: "CreateWebhookResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAddResponse$ { - /** @deprecated use `WebhookWebhooksAddResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAddResponse$inboundSchema; - /** @deprecated use `WebhookWebhooksAddResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAddResponse$outboundSchema; - /** @deprecated use `WebhookWebhooksAddResponse$Outbound` instead. */ - export type Outbound = WebhookWebhooksAddResponse$Outbound; -} - -export function webhookWebhooksAddResponseToJSON( - webhookWebhooksAddResponse: WebhookWebhooksAddResponse, -): string { - return JSON.stringify( - WebhookWebhooksAddResponse$outboundSchema.parse(webhookWebhooksAddResponse), - ); -} - export function webhookWebhooksAddResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookwebhooksall.ts b/src/models/operations/webhookwebhooksall.ts index ce5dea66d..a1253f900 100644 --- a/src/models/operations/webhookwebhooksall.ts +++ b/src/models/operations/webhookwebhooksall.ts @@ -43,71 +43,6 @@ export type WebhookWebhooksAllResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookWebhooksAllGlobals$inboundSchema: z.ZodType< - WebhookWebhooksAllGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookWebhooksAllGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookWebhooksAllGlobals$outboundSchema: z.ZodType< - WebhookWebhooksAllGlobals$Outbound, - z.ZodTypeDef, - WebhookWebhooksAllGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAllGlobals$ { - /** @deprecated use `WebhookWebhooksAllGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAllGlobals$inboundSchema; - /** @deprecated use `WebhookWebhooksAllGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAllGlobals$outboundSchema; - /** @deprecated use `WebhookWebhooksAllGlobals$Outbound` instead. */ - export type Outbound = WebhookWebhooksAllGlobals$Outbound; -} - -export function webhookWebhooksAllGlobalsToJSON( - webhookWebhooksAllGlobals: WebhookWebhooksAllGlobals, -): string { - return JSON.stringify( - WebhookWebhooksAllGlobals$outboundSchema.parse(webhookWebhooksAllGlobals), - ); -} - -export function webhookWebhooksAllGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksAllGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksAllGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookWebhooksAllRequest$inboundSchema: z.ZodType< - WebhookWebhooksAllRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - cursor: z.nullable(z.string()).optional(), - limit: z.number().int().default(20), -}); - /** @internal */ export type WebhookWebhooksAllRequest$Outbound = { appId?: string | undefined; @@ -126,19 +61,6 @@ export const WebhookWebhooksAllRequest$outboundSchema: z.ZodType< limit: z.number().int().default(20), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAllRequest$ { - /** @deprecated use `WebhookWebhooksAllRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAllRequest$inboundSchema; - /** @deprecated use `WebhookWebhooksAllRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAllRequest$outboundSchema; - /** @deprecated use `WebhookWebhooksAllRequest$Outbound` instead. */ - export type Outbound = WebhookWebhooksAllRequest$Outbound; -} - export function webhookWebhooksAllRequestToJSON( webhookWebhooksAllRequest: WebhookWebhooksAllRequest, ): string { @@ -147,16 +69,6 @@ export function webhookWebhooksAllRequestToJSON( ); } -export function webhookWebhooksAllRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksAllRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksAllRequest' from JSON`, - ); -} - /** @internal */ export const WebhookWebhooksAllResponse$inboundSchema: z.ZodType< WebhookWebhooksAllResponse, @@ -175,54 +87,6 @@ export const WebhookWebhooksAllResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookWebhooksAllResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetWebhooksResponse?: components.GetWebhooksResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookWebhooksAllResponse$outboundSchema: z.ZodType< - WebhookWebhooksAllResponse$Outbound, - z.ZodTypeDef, - WebhookWebhooksAllResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getWebhooksResponse: components.GetWebhooksResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getWebhooksResponse: "GetWebhooksResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksAllResponse$ { - /** @deprecated use `WebhookWebhooksAllResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksAllResponse$inboundSchema; - /** @deprecated use `WebhookWebhooksAllResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksAllResponse$outboundSchema; - /** @deprecated use `WebhookWebhooksAllResponse$Outbound` instead. */ - export type Outbound = WebhookWebhooksAllResponse$Outbound; -} - -export function webhookWebhooksAllResponseToJSON( - webhookWebhooksAllResponse: WebhookWebhooksAllResponse, -): string { - return JSON.stringify( - WebhookWebhooksAllResponse$outboundSchema.parse(webhookWebhooksAllResponse), - ); -} - export function webhookWebhooksAllResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookwebhooksdelete.ts b/src/models/operations/webhookwebhooksdelete.ts index a56f7e2d6..6f468312b 100644 --- a/src/models/operations/webhookwebhooksdelete.ts +++ b/src/models/operations/webhookwebhooksdelete.ts @@ -39,72 +39,6 @@ export type WebhookWebhooksDeleteResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookWebhooksDeleteGlobals$inboundSchema: z.ZodType< - WebhookWebhooksDeleteGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookWebhooksDeleteGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookWebhooksDeleteGlobals$outboundSchema: z.ZodType< - WebhookWebhooksDeleteGlobals$Outbound, - z.ZodTypeDef, - WebhookWebhooksDeleteGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksDeleteGlobals$ { - /** @deprecated use `WebhookWebhooksDeleteGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksDeleteGlobals$inboundSchema; - /** @deprecated use `WebhookWebhooksDeleteGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksDeleteGlobals$outboundSchema; - /** @deprecated use `WebhookWebhooksDeleteGlobals$Outbound` instead. */ - export type Outbound = WebhookWebhooksDeleteGlobals$Outbound; -} - -export function webhookWebhooksDeleteGlobalsToJSON( - webhookWebhooksDeleteGlobals: WebhookWebhooksDeleteGlobals, -): string { - return JSON.stringify( - WebhookWebhooksDeleteGlobals$outboundSchema.parse( - webhookWebhooksDeleteGlobals, - ), - ); -} - -export function webhookWebhooksDeleteGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksDeleteGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksDeleteGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookWebhooksDeleteRequest$inboundSchema: z.ZodType< - WebhookWebhooksDeleteRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - appId: z.string().optional(), -}); - /** @internal */ export type WebhookWebhooksDeleteRequest$Outbound = { id: string; @@ -121,19 +55,6 @@ export const WebhookWebhooksDeleteRequest$outboundSchema: z.ZodType< appId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksDeleteRequest$ { - /** @deprecated use `WebhookWebhooksDeleteRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksDeleteRequest$inboundSchema; - /** @deprecated use `WebhookWebhooksDeleteRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksDeleteRequest$outboundSchema; - /** @deprecated use `WebhookWebhooksDeleteRequest$Outbound` instead. */ - export type Outbound = WebhookWebhooksDeleteRequest$Outbound; -} - export function webhookWebhooksDeleteRequestToJSON( webhookWebhooksDeleteRequest: WebhookWebhooksDeleteRequest, ): string { @@ -144,16 +65,6 @@ export function webhookWebhooksDeleteRequestToJSON( ); } -export function webhookWebhooksDeleteRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksDeleteRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksDeleteRequest' from JSON`, - ); -} - /** @internal */ export const WebhookWebhooksDeleteResponse$inboundSchema: z.ZodType< WebhookWebhooksDeleteResponse, @@ -173,57 +84,6 @@ export const WebhookWebhooksDeleteResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookWebhooksDeleteResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - DeleteWebhookResponse?: components.DeleteWebhookResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookWebhooksDeleteResponse$outboundSchema: z.ZodType< - WebhookWebhooksDeleteResponse$Outbound, - z.ZodTypeDef, - WebhookWebhooksDeleteResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - deleteWebhookResponse: components.DeleteWebhookResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - deleteWebhookResponse: "DeleteWebhookResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksDeleteResponse$ { - /** @deprecated use `WebhookWebhooksDeleteResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksDeleteResponse$inboundSchema; - /** @deprecated use `WebhookWebhooksDeleteResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksDeleteResponse$outboundSchema; - /** @deprecated use `WebhookWebhooksDeleteResponse$Outbound` instead. */ - export type Outbound = WebhookWebhooksDeleteResponse$Outbound; -} - -export function webhookWebhooksDeleteResponseToJSON( - webhookWebhooksDeleteResponse: WebhookWebhooksDeleteResponse, -): string { - return JSON.stringify( - WebhookWebhooksDeleteResponse$outboundSchema.parse( - webhookWebhooksDeleteResponse, - ), - ); -} - export function webhookWebhooksDeleteResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookwebhooksone.ts b/src/models/operations/webhookwebhooksone.ts index 0b6cb499e..bbf75cc51 100644 --- a/src/models/operations/webhookwebhooksone.ts +++ b/src/models/operations/webhookwebhooksone.ts @@ -39,70 +39,6 @@ export type WebhookWebhooksOneResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookWebhooksOneGlobals$inboundSchema: z.ZodType< - WebhookWebhooksOneGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookWebhooksOneGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookWebhooksOneGlobals$outboundSchema: z.ZodType< - WebhookWebhooksOneGlobals$Outbound, - z.ZodTypeDef, - WebhookWebhooksOneGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksOneGlobals$ { - /** @deprecated use `WebhookWebhooksOneGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksOneGlobals$inboundSchema; - /** @deprecated use `WebhookWebhooksOneGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksOneGlobals$outboundSchema; - /** @deprecated use `WebhookWebhooksOneGlobals$Outbound` instead. */ - export type Outbound = WebhookWebhooksOneGlobals$Outbound; -} - -export function webhookWebhooksOneGlobalsToJSON( - webhookWebhooksOneGlobals: WebhookWebhooksOneGlobals, -): string { - return JSON.stringify( - WebhookWebhooksOneGlobals$outboundSchema.parse(webhookWebhooksOneGlobals), - ); -} - -export function webhookWebhooksOneGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksOneGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksOneGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookWebhooksOneRequest$inboundSchema: z.ZodType< - WebhookWebhooksOneRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - appId: z.string().optional(), -}); - /** @internal */ export type WebhookWebhooksOneRequest$Outbound = { id: string; @@ -119,19 +55,6 @@ export const WebhookWebhooksOneRequest$outboundSchema: z.ZodType< appId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksOneRequest$ { - /** @deprecated use `WebhookWebhooksOneRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksOneRequest$inboundSchema; - /** @deprecated use `WebhookWebhooksOneRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksOneRequest$outboundSchema; - /** @deprecated use `WebhookWebhooksOneRequest$Outbound` instead. */ - export type Outbound = WebhookWebhooksOneRequest$Outbound; -} - export function webhookWebhooksOneRequestToJSON( webhookWebhooksOneRequest: WebhookWebhooksOneRequest, ): string { @@ -140,16 +63,6 @@ export function webhookWebhooksOneRequestToJSON( ); } -export function webhookWebhooksOneRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksOneRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksOneRequest' from JSON`, - ); -} - /** @internal */ export const WebhookWebhooksOneResponse$inboundSchema: z.ZodType< WebhookWebhooksOneResponse, @@ -168,54 +81,6 @@ export const WebhookWebhooksOneResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookWebhooksOneResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - GetWebhookResponse?: components.GetWebhookResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookWebhooksOneResponse$outboundSchema: z.ZodType< - WebhookWebhooksOneResponse$Outbound, - z.ZodTypeDef, - WebhookWebhooksOneResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - getWebhookResponse: components.GetWebhookResponse$outboundSchema.optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - getWebhookResponse: "GetWebhookResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksOneResponse$ { - /** @deprecated use `WebhookWebhooksOneResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksOneResponse$inboundSchema; - /** @deprecated use `WebhookWebhooksOneResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksOneResponse$outboundSchema; - /** @deprecated use `WebhookWebhooksOneResponse$Outbound` instead. */ - export type Outbound = WebhookWebhooksOneResponse$Outbound; -} - -export function webhookWebhooksOneResponseToJSON( - webhookWebhooksOneResponse: WebhookWebhooksOneResponse, -): string { - return JSON.stringify( - WebhookWebhooksOneResponse$outboundSchema.parse(webhookWebhooksOneResponse), - ); -} - export function webhookWebhooksOneResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/webhookwebhooksupdate.ts b/src/models/operations/webhookwebhooksupdate.ts index 612ff0ab0..5d2425936 100644 --- a/src/models/operations/webhookwebhooksupdate.ts +++ b/src/models/operations/webhookwebhooksupdate.ts @@ -40,77 +40,6 @@ export type WebhookWebhooksUpdateResponse = { unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; }; -/** @internal */ -export const WebhookWebhooksUpdateGlobals$inboundSchema: z.ZodType< - WebhookWebhooksUpdateGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type WebhookWebhooksUpdateGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const WebhookWebhooksUpdateGlobals$outboundSchema: z.ZodType< - WebhookWebhooksUpdateGlobals$Outbound, - z.ZodTypeDef, - WebhookWebhooksUpdateGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksUpdateGlobals$ { - /** @deprecated use `WebhookWebhooksUpdateGlobals$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksUpdateGlobals$inboundSchema; - /** @deprecated use `WebhookWebhooksUpdateGlobals$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksUpdateGlobals$outboundSchema; - /** @deprecated use `WebhookWebhooksUpdateGlobals$Outbound` instead. */ - export type Outbound = WebhookWebhooksUpdateGlobals$Outbound; -} - -export function webhookWebhooksUpdateGlobalsToJSON( - webhookWebhooksUpdateGlobals: WebhookWebhooksUpdateGlobals, -): string { - return JSON.stringify( - WebhookWebhooksUpdateGlobals$outboundSchema.parse( - webhookWebhooksUpdateGlobals, - ), - ); -} - -export function webhookWebhooksUpdateGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksUpdateGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksUpdateGlobals' from JSON`, - ); -} - -/** @internal */ -export const WebhookWebhooksUpdateRequest$inboundSchema: z.ZodType< - WebhookWebhooksUpdateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - appId: z.string().optional(), - UpdateWebhookRequest: components.UpdateWebhookRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "UpdateWebhookRequest": "updateWebhookRequest", - }); -}); - /** @internal */ export type WebhookWebhooksUpdateRequest$Outbound = { id: string; @@ -133,19 +62,6 @@ export const WebhookWebhooksUpdateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksUpdateRequest$ { - /** @deprecated use `WebhookWebhooksUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksUpdateRequest$inboundSchema; - /** @deprecated use `WebhookWebhooksUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksUpdateRequest$outboundSchema; - /** @deprecated use `WebhookWebhooksUpdateRequest$Outbound` instead. */ - export type Outbound = WebhookWebhooksUpdateRequest$Outbound; -} - export function webhookWebhooksUpdateRequestToJSON( webhookWebhooksUpdateRequest: WebhookWebhooksUpdateRequest, ): string { @@ -156,16 +72,6 @@ export function webhookWebhooksUpdateRequestToJSON( ); } -export function webhookWebhooksUpdateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookWebhooksUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookWebhooksUpdateRequest' from JSON`, - ); -} - /** @internal */ export const WebhookWebhooksUpdateResponse$inboundSchema: z.ZodType< WebhookWebhooksUpdateResponse, @@ -185,57 +91,6 @@ export const WebhookWebhooksUpdateResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type WebhookWebhooksUpdateResponse$Outbound = { - HttpMeta: components.HTTPMetadata$Outbound; - UpdateWebhookResponse?: components.UpdateWebhookResponse$Outbound | undefined; - UnexpectedErrorResponse?: - | components.UnexpectedErrorResponse$Outbound - | undefined; -}; - -/** @internal */ -export const WebhookWebhooksUpdateResponse$outboundSchema: z.ZodType< - WebhookWebhooksUpdateResponse$Outbound, - z.ZodTypeDef, - WebhookWebhooksUpdateResponse -> = z.object({ - httpMeta: components.HTTPMetadata$outboundSchema, - updateWebhookResponse: components.UpdateWebhookResponse$outboundSchema - .optional(), - unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema - .optional(), -}).transform((v) => { - return remap$(v, { - httpMeta: "HttpMeta", - updateWebhookResponse: "UpdateWebhookResponse", - unexpectedErrorResponse: "UnexpectedErrorResponse", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookWebhooksUpdateResponse$ { - /** @deprecated use `WebhookWebhooksUpdateResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookWebhooksUpdateResponse$inboundSchema; - /** @deprecated use `WebhookWebhooksUpdateResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookWebhooksUpdateResponse$outboundSchema; - /** @deprecated use `WebhookWebhooksUpdateResponse$Outbound` instead. */ - export type Outbound = WebhookWebhooksUpdateResponse$Outbound; -} - -export function webhookWebhooksUpdateResponseToJSON( - webhookWebhooksUpdateResponse: WebhookWebhooksUpdateResponse, -): string { - return JSON.stringify( - WebhookWebhooksUpdateResponse$outboundSchema.parse( - webhookWebhooksUpdateResponse, - ), - ); -} - export function webhookWebhooksUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { From cb9b5ebfbedbcda91db0c1ad33445909e738c723 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:09:34 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow